:root{color-scheme:dark;--bg:#0d0f10;--panel:#151819;--panel-2:#191d1e;--line:#2b3030;--text:#f0ede7;--muted:#929894;--gold:#d3b866;--green:#35dda5;--serif:Georgia,'Times New Roman',serif;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-family:var(--sans);background:var(--bg);color:var(--text)}
*{box-sizing:border-box}body{display:flex;min-width:300px;min-height:100dvh;flex-direction:column;margin:0;background:radial-gradient(circle at 78% 0,#12312622,transparent 28%),var(--bg);color:var(--text)}[hidden]{display:none!important}a{color:inherit;text-decoration:none}button,select{font:inherit;color:inherit}button,select,a{cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:3px}.skip-link{position:fixed;z-index:30;top:-80px;left:18px;padding:12px 16px;background:var(--green);color:#071611}.skip-link:focus{top:12px}
.account-header{position:sticky;z-index:10;top:0;display:flex;align-items:center;gap:36px;height:76px;padding:0 clamp(20px,3vw,46px);border-bottom:1px solid #ffffff13;background:#0d0f10e8;backdrop-filter:blur(18px)}.brand{display:inline-flex;align-items:center}.honglou-brand{flex:0 0 auto;gap:8px;color:#e0c28a}.brand-emblem{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 8px #d2ad5f24)}.brand-cn{display:flex;flex-direction:column;font-family:var(--serif);font-size:25px;letter-spacing:2px;line-height:.9;white-space:nowrap}.brand-cn small{margin-top:5px;font-family:var(--sans);font-size:5px;font-weight:600;letter-spacing:3px;text-align:center}.brand-en{display:flex;gap:0;margin-left:3px;font-family:var(--sans);font-size:18px;font-weight:800;letter-spacing:1.5px;white-space:nowrap}.brand-en b:first-child{color:#f3f3ef}.brand-en b:last-child{color:#39d9a3}.header-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.header-coins{display:flex;align-items:center;gap:7px;color:#e9ca65;font-size:13px}.header-coins i{display:grid;place-items:center;width:25px;height:25px;border:1px solid #705c2c;border-radius:50%;background:#2c271b;font-style:normal}.back-link{padding:11px 15px;border:1px solid #343938;border-radius:10px;color:#b7bcb8;font-size:11px}.back-link:hover{background:#1a1e1d;color:#fff}
.account-shell{width:100%;max-width:1500px;flex:1;margin:0 auto;padding:clamp(24px,3vw,42px) clamp(20px,3vw,46px) 76px}.dashboard{display:grid;gap:18px}.panel{border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#171a1b,#131617);box-shadow:0 20px 60px #0002}.continue-card{position:relative;min-height:310px;overflow:hidden}.continue-backdrop{position:absolute;inset:0;background-image:linear-gradient(90deg,#0a0d0ff7 0%,#0a0d0fd8 34%,#0a0d0f52 70%,#0a0d0f80 100%),url('/posters/45-day-and-night.webp');background-position:center 37%;background-size:cover;filter:saturate(.82)}.continue-content{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;width:min(560px,72%);min-height:310px;padding:36px clamp(30px,4vw,64px)}.section-kicker{display:flex;align-items:center;gap:10px;color:#d8dcd8;font-size:13px;font-weight:700}.section-kicker i{color:var(--green);font-size:11px;font-style:normal}.continue-content h1{margin:17px 0 8px;font-family:var(--serif);font-size:clamp(34px,4vw,58px);font-weight:400;letter-spacing:.03em}.episode-label{margin:0;color:#c4c9c5;font-size:13px}.progress-line{width:min(390px,100%);height:5px;margin:21px 0 8px;overflow:hidden;border-radius:999px;background:#303533}.progress-line span{display:block;width:0;height:100%;border-radius:inherit;background:var(--green)}.progress-copy{margin:0;color:#8f9792;font-size:10px}.primary-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 20px;border:0;border-radius:10px;background:var(--green);color:#061611;font-size:12px;font-weight:800;box-shadow:0 9px 26px #35dda51f}.primary-button:hover{background:#58e8b8}.continue-button{align-self:flex-start;min-width:185px;margin-top:20px}.view-series-link{position:absolute;z-index:2;top:28px;right:30px;display:flex;align-items:center;gap:8px;color:#aeb5b0;font-size:10px}.view-series-link:hover{color:var(--green)}.view-series-link b{font-size:20px;font-weight:300}
.account-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,330px);gap:18px;align-items:start}.library-card{min-height:510px;padding:28px}.library-head{display:flex;align-items:center;justify-content:space-between}.eyebrow{display:block;color:#a58f72;font-size:8px;font-weight:700;letter-spacing:1.8px}.library-head>span:last-child{color:#858c88;font-size:10px}.library-tabs{display:flex;gap:6px;margin:17px 0 20px;padding-bottom:12px;border-bottom:1px solid var(--line)}.library-tab{min-height:38px;padding:0 18px;border:1px solid transparent;border-radius:9px;background:transparent;color:#8d9590;font-size:11px}.library-tab:hover{color:#d9ded9}.library-tab.is-active{border-color:#2b7259;background:#17261f;color:#58e7b6}.library-list{display:grid;gap:12px}.library-item{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:18px;align-items:center;min-height:150px;padding:12px;border:1px solid #2b3130;border-radius:12px;background:#111516}.library-cover{width:120px;height:126px;border-radius:9px;object-fit:cover;object-position:center 18%}.library-copy{min-width:0}.library-copy h3{margin:0 0 10px;font-family:var(--serif);font-size:22px;font-weight:400}.library-copy p{margin:5px 0;color:#929994;font-size:10px}.library-mini-progress{width:min(300px,100%);height:4px;margin-top:14px;overflow:hidden;border-radius:99px;background:#2b302f}.library-mini-progress span{display:block;height:100%;background:var(--green)}.library-action{min-width:105px;min-height:40px;padding:0 14px;border:0;border-radius:9px;background:var(--green);color:#061611;font-size:10px;font-weight:800}.library-empty{display:grid;place-items:center;min-height:270px;padding:30px;border:1px dashed #303635;border-radius:12px;color:#78817c;font-size:11px;text-align:center}
.account-rail{display:grid;gap:18px}.profile-card,.wallet-card,.activity-card{padding:22px}.profile-top{display:flex;align-items:center;gap:14px;margin-bottom:20px}.account-avatar{display:grid;place-items:center;flex:0 0 auto;width:58px;height:58px;border:2px solid #d0b652;border-radius:50%;background:#592bb7;color:#fff;font-size:25px;font-weight:700;box-shadow:0 0 0 2px #276d55}.profile-top h2{margin:0 0 6px;font-family:var(--serif);font-size:22px;font-weight:400}.profile-top p{max-width:205px;margin:0;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.language-field{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);color:#aeb4b0;font-size:10px}.language-field select{width:100%;height:38px;padding:0 10px;border:1px solid #343a39;border-radius:8px;background:#111415}.rail-row{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:42px;padding:0;border:0;border-top:1px solid var(--line);background:transparent;color:#c2c8c4;font-size:10px;text-align:left}.rail-row:hover:not(:disabled){color:var(--green)}.rail-row:disabled{cursor:default;opacity:.45}.rail-row b{font-size:18px;font-weight:300}.wallet-summary{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px}.coin-symbol{display:grid;place-items:center;width:38px;height:38px;border:1px solid #705c2c;border-radius:50%;background:#2c271b;color:#e3c45d;font-size:18px}.wallet-summary div{display:grid;gap:2px}.wallet-summary div span{color:#a7ada9;font-size:9px}.wallet-summary strong{color:#e6c65f;font-size:26px;font-variant-numeric:tabular-nums}.wallet-topup{min-width:65px;min-height:34px;border:0;border-radius:8px;background:var(--green);color:#071611;font-size:10px;font-weight:800}.wallet-topup:disabled{cursor:not-allowed;opacity:.5}.coin-detail-link{width:100%;min-height:40px;margin-top:15px;border:1px solid #373d3b;border-radius:8px;background:#111516;color:#c7ccc8;font-size:10px}.wallet-card>p{margin:10px 0 0;color:#6f7772;font-size:8px;line-height:1.55}.activity-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.activity-heading h2{margin:0;font-size:13px}.activity-heading span{color:#737b76;font-size:8px}.coin-activity{display:grid}.activity-row{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.activity-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#232927;color:#e2c35f;font-size:12px}.activity-copy{min-width:0}.activity-copy strong,.activity-copy span{display:block}.activity-copy strong{overflow:hidden;color:#d4d8d5;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.activity-copy span{margin-top:4px;color:#7e8681;font-size:8px}.activity-amount{color:#e7c85f;font-size:11px}.activity-empty{padding:22px 6px;color:#78817c;font-size:10px;text-align:center}
.signed-out{max-width:560px;margin:90px auto;padding:44px;border:1px solid var(--line);border-radius:16px;background:var(--panel);text-align:center}.status-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 20px;border:1px solid #735d2c;border-radius:50%;color:var(--gold);font-size:24px}.signed-out h1{margin:0 0 13px;font-family:var(--serif);font-size:32px;font-weight:400}.signed-out p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}.signed-out .primary-button{margin-top:22px}.account-message{position:fixed;z-index:20;right:22px;bottom:22px;padding:13px 17px;border:1px solid #5c645f;border-radius:9px;background:#202522;font-size:11px}.account-footer{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;width:100%;min-height:52px;padding:9px clamp(20px,3vw,46px);border-top:1px solid var(--line);background:#101415;color:#858b87;font-size:8px;white-space:nowrap}.account-footer .footer-brand{color:#d3b866;font-family:var(--serif);font-size:14px;letter-spacing:2px}.account-footer .footer-brand small{margin-left:7px;font-family:var(--sans);font-size:7px;letter-spacing:2px}.account-footer nav{display:flex;justify-self:center;align-items:center;gap:9px;margin:0}.account-footer nav i{color:#4d5451;font-style:normal}.account-footer nav a:hover{color:var(--green)}.account-footer .footer-age{display:grid;place-items:center;width:38px;height:25px;justify-self:end;padding:0;border:1px solid #3b4240;border-radius:999px}
@media(max-width:960px){.account-workspace{grid-template-columns:1fr}.account-rail{grid-template-columns:1fr 1fr}.activity-card{grid-column:1/-1}.library-card{min-height:auto}}
@media(max-width:620px){.account-header{gap:8px;height:70px;padding:0 18px}.brand-emblem{width:35px;height:35px}.brand-cn{font-size:22px}.brand-en{display:none}.header-actions{gap:7px}.header-coins{font-size:11px}.back-link{padding:9px 10px;font-size:9px}.account-shell{padding:14px 16px 56px}.continue-card{min-height:250px}.continue-backdrop{background-image:linear-gradient(90deg,#0a0d0ff4 0%,#0a0d0fc7 60%,#0a0d0f6f),url('/posters/45-day-and-night.webp');background-position:center 25%}.continue-content{width:86%;min-height:250px;padding:26px 22px}.continue-content h1{font-size:31px}.continue-button{min-width:150px;min-height:42px}.view-series-link{top:17px;right:18px}.account-workspace{gap:14px}.library-card{padding:20px}.library-head h2{font-size:25px}.library-tabs{gap:2px;overflow-x:auto}.library-tab{flex:0 0 auto;padding:0 13px}.library-item{grid-template-columns:88px minmax(0,1fr);gap:13px}.library-cover{width:88px;height:118px}.library-copy h3{font-size:18px}.library-action{grid-column:2;width:100%}.account-rail{grid-template-columns:1fr;gap:14px}.activity-card{grid-column:auto}.account-footer{min-height:44px;gap:9px;padding:8px 18px;font-size:7px}.account-footer .footer-brand{font-size:12px;letter-spacing:1.5px}.account-footer .footer-brand small{margin-left:4px;font-size:6px;letter-spacing:1px}.account-footer nav{gap:6px}.account-footer .footer-age{width:34px;height:23px}.signed-out{margin:50px auto;padding:32px 24px}}
@media(max-width:390px){.account-footer{padding-inline:12px}.account-footer .footer-brand small{display:none}.account-footer nav{gap:5px;font-size:6.5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Multiple-series library cards retain poster proportions and long localized titles. */
.library-item{grid-template-columns:96px minmax(0,1fr) auto}
.library-cover{width:96px;height:132px}
.library-copy h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:620px){.library-item{grid-template-columns:74px minmax(0,1fr)}.library-cover{width:74px;height:108px}.library-copy h3{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}}

/* Match the language picker used on the browse page. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.language-field{grid-template-columns:auto minmax(0,1fr)}
.language-picker{position:relative;min-width:0}
.language-control{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-width:132px;height:44px;padding:0 38px 0 13px;border:1px solid #313535;border-radius:12px;background:#141718;color:#e4e4df;font-size:12px;font-weight:650;white-space:nowrap;transition:border-color .18s,background .18s}
.language-control:hover,.language-control[aria-expanded=true]{border-color:#555b59;background:#181c1d}
.language-control>svg{flex:0 0 auto;width:19px;height:19px;fill:none;stroke:#aeb5b2;stroke-width:1.6}
.language-control i{position:absolute;right:14px;width:7px;height:7px;border-right:1.5px solid #aeb5b2;border-bottom:1.5px solid #aeb5b2;transform:translateY(-2px) rotate(45deg);transition:transform .18s}
.language-control[aria-expanded=true] i{transform:translateY(2px) rotate(225deg)}
.language-menu{position:absolute;z-index:40;top:calc(100% + 9px);right:0;width:188px;padding:7px;border:1px solid #343938;border-radius:12px;background:#171a1b;box-shadow:0 18px 55px #000c}
.language-menu[hidden]{display:none}
.language-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:42px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#d9dcd8;font-size:12px;text-align:left}
.language-menu button:hover,.language-menu button:focus-visible{background:#252a29}
.language-menu button[aria-selected=true]{background:#20332c;color:#54e6b2}
.language-menu button[aria-selected=true]:before{content:'\2713';margin-right:9px}
.language-menu button small{margin-left:auto;color:#7e8783;font-size:9px;letter-spacing:1px}
.language-menu button[aria-selected=true] small{color:#54e6b2}
.language-menu{max-height:min(360px,calc(100vh - 100px));overflow-y:auto}
html[dir=rtl] .header-actions{margin-right:auto;margin-left:0}
html[dir=rtl] .language-menu{right:auto;left:0}
html[dir=rtl] .language-control{padding-right:13px;padding-left:38px}
html[dir=rtl] .language-control i{right:auto;left:14px}
html[dir=rtl] .language-menu button{text-align:right}

/* Account dashboard: one viewing entry, with account and wallet information first. */
.account-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,410px);align-items:center;gap:30px;padding:24px 28px}
.overview-profile{display:flex;align-items:center;gap:17px;min-width:0}
.overview-profile .account-avatar{width:64px;height:64px;font-size:27px}
.overview-profile div{min-width:0}
.overview-profile h1{margin:0 0 7px;font-family:var(--serif);font-size:30px;font-weight:400}
.overview-profile p{margin:0;overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.overview-wallet{min-width:0;padding-left:28px;border-left:1px solid var(--line)}
.overview-wallet .coin-detail-link{min-height:34px;margin-top:10px}
.overview-wallet>p{margin:8px 0 0;color:#6f7772;font-size:8px;line-height:1.45}
.settings-card{padding:0 22px}
.settings-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:64px;padding:0;border:0;background:transparent;color:var(--text);text-align:left}
.settings-toggle span{display:grid;gap:5px}
.settings-toggle small{color:#a58f72;font-size:8px;font-weight:700;letter-spacing:1.8px}
.settings-toggle strong{font-size:13px}
.settings-toggle i{width:9px;height:9px;margin-right:4px;border-right:1.5px solid #9aa19d;border-bottom:1.5px solid #9aa19d;transform:rotate(45deg);transition:transform .18s}
.settings-toggle[aria-expanded=true] i{transform:rotate(225deg)}
.settings-toggle:hover strong{color:var(--green)}
.panel-collapse{width:100%;min-height:44px;padding:0;border:0;background:transparent;color:var(--text);text-align:left}
.panel-collapse-title{display:block;margin:0;font-weight:700}
.panel-collapse-meta{display:inline-flex;align-items:center;gap:12px;flex:0 0 auto;white-space:nowrap}
.panel-collapse-meta>i{flex:0 0 auto;width:9px;height:9px;margin-right:4px;border-right:1.5px solid #9aa19d;border-bottom:1.5px solid #9aa19d;transform:rotate(45deg);transition:transform .18s}
.panel-collapse[aria-expanded=true] .panel-collapse-meta>i{transform:rotate(225deg)}
.panel-collapse:hover .panel-collapse-title{color:var(--green)}
.library-head .panel-collapse-title{font-size:20px;line-height:1.3;letter-spacing:-.02em}
.activity-heading .panel-collapse-title{font-size:18px;line-height:1.35}
.activity-heading[aria-expanded=false]{margin-bottom:0}
.settings-panel{padding-bottom:14px;border-top:1px solid var(--line)}
.settings-card .language-field{border-top:0}
.account-workspace{grid-template-columns:minmax(0,1fr) minmax(300px,350px)}
.library-card{min-height:0}

@media(max-width:960px){
  .account-overview{grid-template-columns:minmax(0,1fr) minmax(280px,360px)}
  .account-workspace{grid-template-columns:1fr}
}

@media(max-width:620px){
  .account-shell{padding-bottom:34px}
  .dashboard{gap:12px}
  .account-overview{grid-template-columns:1fr;gap:16px;padding:18px;border-radius:14px}
  .overview-profile{gap:13px}
  .overview-profile .account-avatar{width:54px;height:54px;font-size:23px}
  .overview-profile h1{margin-bottom:5px;font-size:23px}
  .overview-profile p{font-size:9px}
  .overview-wallet{padding:15px 0 0;border-top:1px solid var(--line);border-left:0}
  .overview-wallet .wallet-summary{grid-template-columns:34px minmax(0,1fr) auto;gap:9px}
  .overview-wallet .coin-symbol{width:34px;height:34px;font-size:15px}
  .overview-wallet .wallet-summary strong{font-size:23px}
  .overview-wallet .wallet-topup{min-width:70px;min-height:36px}
  .overview-wallet .coin-detail-link{min-height:36px;margin-top:10px}
  .account-workspace{gap:12px}
  .library-card{padding:16px;border-radius:14px}
  .library-head{align-items:center}
  .library-tabs{margin:16px 0 14px;padding-bottom:9px}
  .library-tab{min-height:34px;padding:0 11px;font-size:10px}
  .library-item{grid-template-columns:74px minmax(0,1fr);gap:12px;min-height:0;padding:10px}
  .library-cover{width:74px;height:100px}
  .library-copy h3{margin-bottom:7px;font-size:17px}
  .library-copy p{font-size:9px}
  .library-mini-progress{margin-top:10px}
  .library-action{grid-column:2;min-height:38px}
  .settings-card{padding:0 16px;border-radius:14px}
  .activity-card{padding:16px;border-radius:14px}
  .settings-toggle{min-height:56px}
  .language-field{padding:10px 0}
  .rail-row{min-height:40px}
}

/* Recharge, coin history and password settings use the existing account visual system. */
.activity-tabs{display:flex;gap:5px;margin:0 0 4px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.activity-tab{min-height:30px;padding:0 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#858d88;font-size:9px}
.activity-tab:hover{color:#e0e4e1}.activity-tab.is-active{border-color:#2b7259;background:#17261f;color:#58e7b6}
.activity-date{margin-top:4px;color:#656d69!important;font-size:7px!important}
.activity-amount.is-credit{color:#58e7b6}.activity-status{display:block;margin-top:3px;color:#7e8681;font-size:7px;text-align:right}
.report-link{margin-top:5px;padding:0;border:0;background:transparent;color:#a9b0ac;font-size:7px;text-decoration:underline;text-underline-offset:2px}
.report-link:hover{color:var(--green)}.report-link:disabled{cursor:default;color:#5f6763;text-decoration:none}

.account-dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:17px;background:transparent;color:var(--text);overflow:auto}
.account-dialog::backdrop{background:#050807d9;backdrop-filter:blur(8px)}
.dialog-card{display:grid;gap:18px;padding:25px;border:1px solid #363c3a;border-radius:17px;background:linear-gradient(145deg,#1a1e1f,#111516);box-shadow:0 28px 90px #000a}
.dialog-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.dialog-card h2{margin:6px 0 0;font-family:var(--serif);font-size:28px;font-weight:400}
.dialog-close{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border:1px solid #3b4140;border-radius:50%;background:#15191a;color:#bfc5c1;font-size:22px;line-height:1}
.dialog-close:hover{border-color:#65706b;color:#fff}.dialog-intro,.dialog-footnote{margin:0;color:#8f9792;font-size:10px;line-height:1.6}
.topup-packages{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.topup-package{position:relative;display:grid;gap:5px;min-height:106px;padding:16px 13px;border:1px solid #343a38;border-radius:12px;background:#121617;color:#dfe2df;text-align:left}
.topup-package:hover{border-color:#56605c}.topup-package[aria-checked=true]{border-color:var(--green);background:#14231e;box-shadow:inset 0 0 0 1px #35dda533}
.topup-package strong{color:#e7c85f;font-size:22px;font-variant-numeric:tabular-nums}.topup-package span{color:#929a95;font-size:9px}.topup-package em{color:#58e7b6;font-size:8px;font-style:normal}
.topup-confirmation{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border:1px solid #303635;border-radius:10px;background:#101415;color:#969e99;font-size:10px}
.topup-confirmation strong{display:flex;align-items:center;gap:7px;color:#e8ca65;font-size:22px}.topup-confirmation strong i{font-size:15px;font-style:normal}
.dialog-primary{width:100%;min-height:48px}.dialog-card label{display:grid;gap:7px;color:#aeb4b0;font-size:10px}
.primary-button:disabled{cursor:not-allowed;background:#2a312e;color:#79817c;box-shadow:none}
.topup-package[aria-disabled=true]{opacity:.45;cursor:not-allowed}.topup-package .topup-price{color:#b9c0bb;font-variant-numeric:tabular-nums}
.topup-pay{display:grid;gap:9px}
.topup-pay-title{color:#8f9792;font-size:10px;letter-spacing:.04em}
.topup-pay-channels{display:flex;flex-wrap:wrap;gap:8px}
.topup-pay-channel{min-height:36px;padding:0 15px;border:1px solid #343a38;border-radius:9px;background:#121617;color:#cfd4d1;font-size:11px}
.topup-pay-channel:hover{border-color:#56605c}
.topup-pay-channel[aria-checked=true]{border-color:var(--green);background:#14231e;color:#fff;box-shadow:inset 0 0 0 1px #35dda533}
.topup-pay-box{display:grid;gap:10px;justify-items:center;padding:14px;border:1px solid #303635;border-radius:10px;background:#101415;text-align:center}
.topup-pay-qr{width:180px;max-width:100%;height:auto;border-radius:8px;background:#fff}
.topup-pay-account{width:100%;padding:10px 12px;border:1px dashed #3b4140;border-radius:8px;color:#e8ca65;font-size:12px;word-break:break-all;user-select:all}
.topup-pay-tip{margin:0;color:#8f9792;font-size:10px;line-height:1.6}
.topup-pay-empty{margin:0;color:#8f9792;font-size:10px}
.dialog-card input,.dialog-card textarea{width:100%;border:1px solid #353b39;border-radius:10px;background:#0f1314;color:#eceeea;font:inherit;font-size:12px}
.dialog-card input{height:44px;padding:0 13px}.dialog-card textarea{min-height:100px;padding:12px;resize:vertical;line-height:1.55}
.dialog-card input:focus,.dialog-card textarea:focus{border-color:var(--green);outline:0;box-shadow:0 0 0 2px #35dda526}
.form-error{margin:0;padding:10px 12px;border:1px solid #74413e;border-radius:8px;background:#2d1818;color:#f0aaa2;font-size:9px;line-height:1.5}
.report-order{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px;border:1px solid #303635;border-radius:9px;color:#858d88;font-size:9px}
.report-order strong{overflow:hidden;color:#d7dbd8;font-size:10px;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:620px){
  .activity-heading{align-items:flex-start;gap:12px}.activity-heading span{text-align:right}
  .account-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}
  .dialog-card{gap:15px;padding:19px;border-radius:14px}.dialog-card h2{font-size:23px}
  .topup-packages{grid-template-columns:1fr}.topup-package{grid-template-columns:1fr auto;align-items:center;min-height:70px;padding:13px 15px}
  .topup-package span{grid-column:1}.topup-package em{grid-column:2;grid-row:1/3;justify-self:end}
}
/* Let narrow-screen grid items shrink; tabs keep their own horizontal scroll. */
.dashboard{grid-template-columns:minmax(0,1fr)}
.dashboard>*{min-width:0}
@media(max-width:700px){.account-workspace,.account-rail,.account-overview{grid-template-columns:minmax(0,1fr)}.account-workspace>*,.account-rail>*{min-width:0}}
@media(max-width:700px){.account-footer{flex-wrap:wrap;justify-content:center;gap:8px}.account-footer nav{flex-wrap:wrap;justify-content:center}.account-footer .footer-age{flex:0 0 34px}}

/* Preview account hierarchy: wallet, viewing, rewards, records, then settings. */
.account-shell{max-width:1120px}
.account-header .header-coins{display:none}
.account-header #account-header-language-picker .language-current-code,.account-header #account-header-language-picker .language-flag{display:none}
#account-header-language-picker #account-header-language-button{width:120px;min-width:108px;max-width:120px;padding-inline:11px 28px;gap:0}
#account-header-language-picker #account-header-language-button i{right:10px;left:auto}
html[dir=rtl] #account-header-language-picker #account-header-language-button i{right:auto;left:10px}
.back-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:12px;text-align:center}
.account-workspace{grid-template-columns:minmax(0,1fr)}
.panel{box-shadow:none}
.account-overview{padding:22px 24px;gap:24px}
.overview-profile .account-avatar{width:48px;height:48px;font-size:21px;background:#1c3029;box-shadow:none;border:1px solid #776739}
.overview-profile h1{font-family:var(--sans);font-size:24px;font-weight:700;letter-spacing:-.025em;margin-bottom:5px}
.overview-profile p{font-size:12px}
.overview-wallet{padding-inline-start:24px;padding-inline-end:0;border-inline-start:1px solid var(--line);border-left:0}
.overview-wallet .wallet-summary{grid-template-columns:34px minmax(0,1fr) auto}
.overview-wallet .coin-symbol{width:34px;height:34px;font-size:17px}
.wallet-summary div span{font-size:12px}
.overview-wallet .wallet-summary strong{font-size:32px;line-height:1.15}
.overview-wallet .wallet-topup{min-width:80px;min-height:44px;padding:10px 15px;font-size:13px}
.overview-wallet .coin-detail-link{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:80px;min-height:44px;margin:8px 0 0;padding:10px 15px;border:0;border-radius:8px;background:var(--green);color:#071611;font-size:13px;font-weight:800;text-decoration:none}
.overview-wallet .coin-detail-link:hover{background:#58e8b8}
.overview-wallet>p{font-size:12px;color:#a7afaa;line-height:1.55;margin-top:0}
.library-card{padding:24px}
.library-head{gap:12px;align-items:baseline}
.library-head h2{margin:0;font-size:20px;line-height:1.3;letter-spacing:-.02em}
.library-head>span:last-child{font-size:12px;white-space:nowrap}
.library-tabs{gap:4px;overflow-x:auto;margin:14px 0 16px;padding:6px 6px 9px;scroll-padding-inline:6px;scrollbar-width:thin}
.library-tab{flex:0 0 auto;min-width:44px;min-height:44px;padding:8px 15px;scroll-margin-inline:6px;font-size:13px}
.library-item{grid-template-columns:80px minmax(0,1fr) auto;min-height:132px;padding:12px;gap:16px}
.library-cover{width:80px;height:108px}
.library-copy h3{font-family:var(--sans);font-size:17px;font-weight:650;line-height:1.4}
.library-copy p{font-size:12px;line-height:1.45;color:#a3aba5}
.library-action{min-height:44px;padding:10px 16px;font-size:13px}
.library-empty{min-height:130px;gap:4px;align-content:center;padding:18px;border:0;background:#111516;font-size:14px;line-height:1.55;color:#a7afaa}
.library-empty p{margin:0}
.library-empty-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;color:var(--green);font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.activity-card{scroll-margin-block-start:94px;padding:22px 24px}
.activity-heading{gap:12px;align-items:baseline;flex-wrap:wrap}
.activity-heading h2{font-size:18px;line-height:1.35}
.activity-heading span{font-size:12px;color:#a1aaa4;text-align:start}
.activity-tab{min-height:44px;font-size:13px;padding:8px 14px}
.activity-row{grid-template-columns:30px minmax(0,1fr) minmax(54px,auto);padding-block:16px}
.activity-copy strong{font-size:13px;white-space:normal;line-height:1.45}
.activity-copy span{font-size:12px;line-height:1.5;color:#a1aaa4;overflow-wrap:anywhere}
.activity-date{font-size:11px!important;color:#929b95!important}
.activity-amount{display:block;font-size:15px;font-variant-numeric:tabular-nums;text-align:end;unicode-bidi:isolate}
.activity-status{font-size:11px;line-height:1.45;text-align:end}
.report-link{min-height:44px;padding:7px 0;font-size:12px;line-height:1.4;max-width:108px;text-align:end}
.activity-empty{padding:16px 4px;font-size:13px;color:#a7afaa}
.library-card.is-empty,.activity-card.is-empty{padding-block:16px}
.library-card.is-empty .library-tabs{margin-block:8px;padding-block:4px 8px}
.library-card.is-empty .library-empty{min-height:0;padding:4px 0;gap:0;background:transparent}
.activity-card.is-empty .activity-heading{margin-bottom:8px}
.activity-card.is-empty .activity-empty{margin:0;padding:8px 0;line-height:1.55}
.settings-toggle{min-height:60px;text-align:start}
.settings-toggle small{display:none}
.settings-toggle strong{font-size:16px}
.settings-card .language-field{font-size:13px}
.rail-row{min-height:48px;font-size:13px;text-align:start}
.language-menu button{min-height:44px}
.signed-out{margin:24px auto;padding:30px 24px}
.signed-out h1{font-family:var(--sans);font-size:26px;font-weight:700;line-height:1.25;letter-spacing:-.03em}
.signed-out p{font-size:14px}
.signed-out .primary-button{font-size:14px;min-height:48px}
#signed-out .status-icon{display:none}
body.interior-page .account-footer{display:grid;white-space:normal;font-size:12px;padding-block:12px;color:#a2aaa5}
.account-footer nav{flex-wrap:wrap;justify-content:center;column-gap:12px;row-gap:0}
.account-footer nav a{display:inline-flex;align-items:center;min-height:44px;line-height:1.4}
.account-footer nav i{display:none}
html[dir=rtl] .overview-wallet{border-left:0;border-right:1px solid var(--line)}
html[dir=rtl] .rail-row b{transform:rotate(180deg)}
@media(max-width:700px){
  .account-shell{padding:16px 14px 40px}
  .dashboard{gap:16px}
  .account-overview{padding:18px 16px;gap:14px}
  .overview-profile{gap:12px}
  .overview-profile h1{font-size:22px}
  .overview-wallet{padding:14px 0 0;border-inline-start:0;border-top:1px solid var(--line)}
  html[dir=rtl] .overview-wallet{border-right:0}
  .library-card{padding:18px 16px}
  .library-head h2{font-size:19px}
  .library-tab{padding-inline:4px}
  .library-item{grid-template-columns:74px minmax(0,1fr);gap:8px 13px;padding:11px}
  .library-cover{width:74px;height:112px;grid-row:1/3;align-self:start}
  .library-copy h3{font-size:16px;margin-bottom:5px}
  .library-copy p{font-size:12px}
  .library-mini-progress{margin-top:8px}
  .library-action{grid-column:2;min-height:44px;margin-top:3px}
  .library-empty{min-height:112px;padding:14px 8px}
  .activity-card{padding:18px 16px}
  .activity-row{gap:9px}
  .activity-heading span{width:100%}
  .activity-heading .panel-collapse-meta{width:auto}
  .settings-card{padding:0 16px}
  .account-message{inset-inline:12px;bottom:92px;font-size:13px}
  .account-footer{grid-template-columns:1fr auto;padding-inline:14px}
  .account-footer nav{grid-column:1/-1;grid-row:2;font-size:12px}
  .account-footer .footer-age{grid-column:2;grid-row:1}
  .account-header{padding-inline:14px;gap:8px}
  .account-header .header-actions{gap:8px;min-width:0}
  .account-header .back-link{padding:8px 10px;max-width:106px;font-size:12px;line-height:1.3}
  .account-header .language-control{min-width:108px;max-width:120px}
}
@media(max-width:360px){
  .account-header{padding-inline:10px;gap:6px}
  .account-header .brand-emblem{display:none}
  .account-header .header-actions{gap:6px}
  .account-header .language-control{min-width:106px;max-width:116px}
  .library-tabs{margin-inline:-3px}
  .activity-row{grid-template-columns:minmax(0,1fr) auto}
  .activity-icon{display:none}
}

/* Balance the signed-out desktop view; the signed-in workspace keeps its existing layout. */
@media(min-width:901px){
  #account-main:has(>#signed-out:not([hidden])){display:grid;place-items:center;padding-block:36px}
  #account-main>#signed-out:not([hidden]){width:min(100%,560px);margin:0 auto}
}

/* Account overview: align the coin with its value and share one compact detail row. */
.account-overview{padding:18px 20px;gap:20px}
.account-overview .overview-wallet{display:flex;flex-wrap:wrap;align-items:flex-start;column-gap:14px;row-gap:0}
.account-overview .wallet-summary{flex:0 0 100%;grid-template-columns:30px minmax(0,1fr) auto;grid-template-rows:auto 34px;column-gap:8px;row-gap:2px}
.account-overview .wallet-summary>div{display:contents}
.account-overview .wallet-summary>div>span{grid-column:1/3;grid-row:1;line-height:1.4}
.account-overview .wallet-summary .coin-symbol{grid-column:1;grid-row:2;width:30px;height:30px;align-self:center}
.account-overview .wallet-summary .coin-symbol .honglou-coin{width:30px;height:30px}
.account-overview .wallet-summary strong{grid-column:2;grid-row:2;align-self:center;font-size:30px;line-height:34px;min-width:0;overflow-wrap:anywhere}
.account-overview .wallet-topup{grid-column:3;grid-row:1/3;align-self:center}
.account-overview .coin-detail-link{order:2;flex:0 0 auto;min-width:80px;min-height:44px;margin:8px 0 0;padding:10px 15px;margin-inline-start:auto}
.account-overview .reward-wallet-detail{order:1;flex:1 1 150px;min-width:0;margin:0}
.account-overview .reward-wallet-detail summary{min-height:44px;padding-block:12px;line-height:20px}
.account-overview .reward-wallet-detail p{margin:4px 0;overflow-wrap:anywhere}
.account-overview #wallet-note{order:3;flex:0 0 100%;margin:0}
@media(max-width:700px){
  .account-overview{padding:16px;gap:12px}
  .account-overview .overview-profile .account-avatar{width:44px;height:44px;font-size:20px}
  .account-overview .overview-profile h1{margin-bottom:3px;font-size:21px}
  .account-overview .overview-wallet{padding:12px 0 0}
}

/* 在线客服 */
.support-dialog{width:min(680px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:hidden}
.support-dialog .support-card{display:flex;flex-direction:column;gap:0;height:min(640px,calc(100dvh - 64px));padding:0;overflow:hidden}
.support-header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line)}
.support-header h2{margin:0;font-size:17px;line-height:1.2}
.support-header-actions{display:flex;align-items:center;gap:10px}
.support-body{display:flex;flex:1;min-height:0;width:100%}
.support-avatar{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:9px;background:#2f6f5c;color:#eafff6;font-size:14px;font-weight:700}
.support-chat{display:flex;flex:1 1 auto;flex-direction:column;width:100%;min-width:0;min-height:0;background:#101415}
.support-chat-head{display:flex;flex:0 0 auto;align-items:center;gap:10px;padding:13px 18px;border-bottom:1px solid var(--line)}
.support-chat-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.support-chat-title strong{font-size:14px;color:var(--text)}
.support-chat-title small{font-size:12px;color:var(--muted)}
.support-thread{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start;gap:14px;width:100%;min-width:0;padding:18px;overflow-y:auto;scrollbar-gutter:stable}
.support-msg{display:flex;flex:0 0 auto;flex-direction:column;align-self:flex-start;align-items:flex-start;gap:4px;max-width:78%;min-width:0}
.support-msg.is-mine{align-self:flex-end;align-items:flex-end}
.support-bubble{max-width:100%;min-width:0;padding:10px 14px;border-radius:12px;background:#1e2425;color:var(--text);font-size:13px;line-height:1.55}
.support-msg.is-mine .support-bubble{background:#2b8f6f;color:#f2fffb}
.support-text{white-space:pre-wrap;overflow-wrap:anywhere}
.support-image{display:block;max-width:100%;overflow:hidden;border-radius:8px;line-height:0}
.support-image img{display:block;width:auto;height:auto;max-width:220px;max-height:220px;border-radius:8px;object-fit:contain}
.support-time{font-size:11px;color:var(--muted)}
.support-empty{margin:auto;text-align:center;font-size:13px;color:var(--muted)}
.support-composer{flex:0 0 auto;padding:12px 16px 10px;border-top:1px solid var(--line);background:#0d1112}
.support-composer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.support-hint{font-size:12px;color:var(--muted)}
.support-error{font-size:12px;color:#ff8b8b}
.support-input-row{display:flex;align-items:flex-end;gap:8px}
.support-image-input{display:none}
.support-image-btn{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;padding:0;border:1px solid #2f3634;border-radius:9px;background:#161b1c;color:var(--muted);cursor:pointer}
.support-image-btn:hover{color:var(--text);border-color:#414a47}
.support-dialog .support-input{flex:1;min-width:0;height:38px;min-height:38px;padding:9px 12px;border:1px solid #2f3634;border-radius:9px;background:#161b1c;color:var(--text);font:inherit;font-size:13px;line-height:20px;resize:none;overflow:hidden;scrollbar-width:none}
.support-dialog .support-input::-webkit-scrollbar{display:none}
.support-dialog .support-input:focus{outline:none;border-color:#3f5a50}
.support-send{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:var(--green);color:#052018;cursor:pointer}
.support-send:disabled{opacity:.45;cursor:not-allowed}
.support-enter-hint{display:block;margin-top:6px;font-size:11px;color:var(--muted);text-align:right}
@media(max-width:620px){
  .support-dialog{width:calc(100% - 16px)}
  .support-dialog .support-card{height:calc(100dvh - 24px)}
  .support-thread{padding:14px}
  .support-msg{max-width:88%}
  .support-composer{padding:10px 12px 8px}
}
