body:has(.member-page) { --paper:#f7f6f2; --surface:#fff; --ink:#202226; --muted:#66686b; --green:#775200; --soft:#f0ece1; --line:#e6e3da; --color-surface:var(--surface); --color-ink:var(--ink); --color-muted:var(--muted); --color-rule:var(--line); --color-tint:var(--soft); --color-accent:var(--green); background:var(--paper); color:var(--ink); }
html[data-theme="night"] body:has(.member-page) { --paper:#191a1d; --surface:#232529; --ink:#f4f2eb; --muted:#b5b5b4; --green:#f2c34e; --soft:#2d2e31; --line:#3b3c40; }
.account-disclosure { position:relative; }
#accountDropdown { --surface:#fff; --ink:#202226; --muted:#66686b; --green:#775200; --soft:#f0ece1; --line:#e6e3da; }
html[data-theme="night"] #accountDropdown { --surface:#28292d; --ink:#f4f2eb; --muted:#b5b5b4; --green:#f2c34e; --soft:#35363b; --line:#404146; }
#account .account-toggle { display:flex; align-items:center; gap:8px; min-height:44px; padding:0 4px; border:0; background:transparent; color:var(--ink); }
.account-avatar { display:grid; place-items:center; width:32px; height:32px; flex:none; border-radius:50%; background:#efb923; color:#29200c; font-size:16px; font-weight:700; }
.account-display-name { max-width:100px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:13px; font-weight:600; }
.account-chevron { font-size:15px; color:var(--muted); }
#accountDropdown { position:absolute; top:calc(100% + 10px); right:0; z-index:150; width:min(280px,calc(100vw - 32px)); padding:0; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink); box-shadow:0 12px 35px #0003; overflow:hidden; text-align:left; }
#accountDropdown[hidden] { display:none!important; }
.account-dropdown-head { padding:18px 18px 16px; border-bottom:1px solid var(--line); }
.account-dropdown-head strong { display:block; color:var(--green); font-size:14px; overflow-wrap:anywhere; }
.account-balance { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; font-size:13px; font-weight:600; }
body #account #accountDropdown a { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; min-height:44px; border:0; border-radius:0; color:var(--ink); background:transparent; padding:10px 18px; font-weight:400; font-size:14px; }
body #account #accountDropdown .account-topup { background:#efb923; color:#29200c; padding:8px 12px; border-radius:7px; font-size:12px; font-weight:700; white-space:nowrap; }
.account-menu-links { display:grid; padding:8px 0; }
.account-menu-item { display:flex; align-items:center; gap:12px; text-decoration:none; }
.account-menu-item svg,.reading-history-row>svg { width:18px; height:18px; flex:none; stroke:currentColor; stroke-width:1.7; fill:none; stroke-linecap:round; stroke-linejoin:round; }
#account .account-logout { width:100%; min-height:52px; padding:12px 18px; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; color:var(--ink); text-align:left; font-size:14px; }
#account #logout { display:flex; }
body #account #accountDropdown .account-menu-item:hover { background:var(--soft); color:var(--green); }
#accountDropdown :focus-visible,.account-toggle:focus-visible { outline:2px solid var(--green); outline-offset:-3px; }
.member-page { max-width:960px; margin:8px auto 40px; }
.member-page h1 { font:700 28px/1.6 var(--font-body); margin-bottom:20px; }
.member-muted { color:var(--muted); font-size:13px; line-height:1.8; }
.profile-card { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--surface); }
.profile-banner { height:112px; background:linear-gradient(110deg,#d6a51d,#f0cb60,#b89026); }
.profile-info { display:flex; align-items:center; gap:20px; padding:0 26px 24px; }
.profile-avatar { display:grid; place-items:center; flex:none; width:88px; height:88px; border-radius:50%; border:4px solid var(--surface); margin-top:-20px; background:#efb923; color:#29200c; font-size:34px; font-weight:700; }
.profile-info>div { padding-top:16px; min-width:0; overflow-wrap:anywhere; }
.profile-info h2 { font:700 21px/1.5 var(--font-body); }
.profile-balance { display:flex; flex-direction:column; align-items:center; gap:8px; padding:26px; margin:24px 0; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.profile-balance strong { font-size:34px; color:var(--green); }
.profile-balance a { padding:10px; color:var(--green); font-size:13px; min-height:44px; }
.profile-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.profile-shortcuts>a { display:flex; align-items:center; justify-content:center; min-height:72px; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--surface); font-size:14px; }
.reading-history-list { display:grid; gap:12px; margin-top:20px; }
.reading-history-row { display:flex; align-items:center; gap:20px; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.reading-history-row>div { flex:1; min-width:0; }
.history-title { display:block; font-weight:600; overflow-wrap:anywhere; }
.reading-history-row .solid { flex:none; font-size:13px; padding:10px 16px; min-height:44px; }
.credit-channels { padding:24px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.credit-channels h2 { font:600 20px/1.6 var(--font-body); margin-bottom:12px; }
.credit-stores { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0; }
.credit-stores span { display:block; padding:12px 18px; border:1px solid var(--line); border-radius:8px; font-size:14px; }
.credit-channels>a { display:inline-flex; align-items:center; min-height:44px; margin-top:16px; }
.purchase-row h2 { font:600 16px/1.6 var(--font-body); }
.purchase-amount { color:var(--green); font-size:16px; }
@media(max-width:600px) {
  .account-display-name { display:none; }
  #account .account-toggle { gap:4px; }
  .profile-info { padding-inline:16px; gap:14px; }
  .profile-avatar { width:66px; height:66px; font-size:26px; }
  .profile-shortcuts { grid-template-columns:1fr; gap:10px; }
  .profile-shortcuts>a { min-height:56px; }
  .reading-history-row { gap:12px; padding:14px; flex-wrap:wrap; }
  .reading-history-row>div { flex-basis:calc(100% - 36px); }
  .reading-history-row .solid { margin-left:30px; }
}
