/* Account pages share surfaces; reader and authoring layouts remain independent. */
.recharge-page .plan-card { font-family:inherit; color:var(--site-ink); min-width:0; }
.recharge-page .plan-card:disabled { opacity:.65; cursor:wait; transform:none; }
.recharge-retry[hidden] { display:none; }
.recharge-page #checkin-retry[hidden] { display:none; }
.recharge-page #recharge-method-status { margin-bottom:18px; }
@media(max-width:600px) {
  .recharge-page .checkin-bar { flex-wrap:wrap; gap:14px; }
  .recharge-page .checkin-info { min-width:0; }
  .recharge-page .checkin-btn { margin-left:auto; }
  .recharge-page .pay-summary { flex-wrap:wrap; gap:10px 18px; line-height:1.8; }
  .recharge-page .plan-card { padding:18px 10px; }
}
.account-page :is(.container,.recharge-wrap) { width:100%; max-width:1040px; margin:0 auto; padding:36px 28px 64px; box-sizing:border-box; }
.account-heading { margin:0 0 26px; text-align:left; }
.account-heading h1 { margin:0 0 8px; font-family:var(--font-story); font-size:28px; line-height:1.4; letter-spacing:.5px; color:var(--site-ink); background:none; -webkit-text-fill-color:currentColor; }
.account-heading p { margin:0; color:var(--site-muted); font-size:14px; line-height:1.75; }
.account-page :is(.profile-card,.content-section,.balance-bar,.checkin-bar,.pay-section,.msg-item,.user-header) { border-radius:20px; box-shadow:none; background:var(--site-paper); border-color:var(--site-border); }
.account-page :is(button,input,a):focus-visible { outline:2px solid var(--site-accent); outline-offset:3px; }
.account-page :is(.btn,.pay-btn) { box-shadow:none; letter-spacing:0; min-height:42px; }
.account-page :is(.btn,.pay-btn):hover:not(:disabled) { transform:none; box-shadow:none; }
.account-page :is(.profile-card,.auth-card) label::before { content:none; }
.account-page :is(.profile-card,.auth-card) label { color:var(--site-ink); font-size:14px; }
.account-page :is(.profile-card,.auth-card) input:not([type=checkbox]) { min-width:0; min-height:44px; background:var(--site-page); border:1px solid var(--site-border); border-radius:10px; color:var(--site-ink); font-size:15px; box-sizing:border-box; }
.account-page :is(.profile-card,.auth-card) input:focus { border-color:var(--site-accent); }

.profile-page .profile-shell { max-width:1160px; padding:32px 28px 64px; gap:28px; box-sizing:border-box; }
.profile-page .profile-sidebar { width:190px; padding:14px 10px; top:96px; border-radius:16px; box-shadow:none; }
.profile-page .side-group-title { font-size:12px; letter-spacing:.5px; color:var(--site-muted); }
.profile-page .side-group:last-child { margin-bottom:0; }
.profile-page .side-item { width:100%; border:0; background:transparent; text-align:left; font-family:inherit; text-decoration:none; box-sizing:border-box; line-height:1.5; min-height:42px; }
.profile-page .side-item.active { color:var(--site-accent); background:var(--site-soft); }
.profile-page .side-item.active::before { box-shadow:none; }
.profile-page .profile-main { padding:0; }
.profile-page .panel-head { margin:0; padding:0 0 20px; font-size:25px; line-height:1.4; }
.profile-page .panel-head::before { content:none; }
.profile-page .profile-card { padding:26px; }
.profile-page .profile-card .panel-head { padding-bottom:18px; }
.profile-page .avatar-zone { padding-bottom:24px; border-bottom:1px solid var(--site-border); margin-bottom:24px; }
.profile-page .avatar-info { min-width:0; }
.profile-page .avatar-info .hint { line-height:1.6; }
.profile-page .form-item { max-width:540px; }
.profile-page .form-item label { margin-bottom:8px; }
.profile-page .credits-summary { gap:12px; padding:22px 16px; }
.profile-page .cs-val { overflow-wrap:anywhere; }
.profile-page .history-item { flex-wrap:wrap; }
.profile-page .history-item .hi-info { min-width:120px; }
.profile-page .history-item .hi-actions { margin-left:auto; }
.profile-page .history-pager button { background:var(--site-paper); }

.messages-page .msg-hero { margin:0 0 26px; }
.messages-page .msg-tabs { gap:4px; padding:5px; background:var(--site-tint); border-radius:12px; width:fit-content; max-width:100%; box-sizing:border-box; }
.messages-page .msg-tab { padding:9px 18px; min-height:40px; color:var(--site-muted); border-radius:9px; }
.messages-page .msg-tab.active { background:var(--site-paper); color:var(--site-accent); box-shadow:0 2px 5px #00000008; }
.messages-page .msg-actions { margin:0 0 16px; }
.messages-page .message-controls { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:22px; }
.messages-page .message-controls :is(.msg-tabs,.msg-actions) { margin:0; }
.messages-page .message-controls .msg-actions { margin-left:auto; }
.messages-page .msg-action-btn { min-height:38px; }
.messages-page .msg-item { padding:22px 24px; transition:border-color .15s; }
.messages-page .msg-item:hover { transform:none; box-shadow:none; border-color:var(--site-accent); }
.messages-page .msg-item.unread { border-left:3px solid var(--site-accent); }
.messages-page .msg-item.unread::before { top:26px; right:20px; box-shadow:none; width:6px; height:6px; }
.messages-page .msg-item-head { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:8px 12px; padding-right:12px; }
.messages-page .msg-type-tag { font-size:12px; line-height:1.6; border-radius:6px; white-space:nowrap; }
.messages-page .msg-title { font-size:16px; line-height:1.6; overflow-wrap:anywhere; }
.messages-page .msg-time { grid-column:2; font-size:12px; }
.messages-page .msg-content { font-size:14px; line-height:1.85; margin-top:12px; overflow-wrap:anywhere; }
.messages-page .msg-actions-row { flex-wrap:wrap; }
.messages-page a.msg-handle-btn { display:inline-flex; align-items:center; min-height:38px; box-sizing:border-box; color:var(--site-accent); background:var(--site-soft); text-decoration:none; padding:8px 14px; }
.messages-page .msg-empty { padding:54px 20px; border:1px dashed var(--site-border); border-radius:20px; background:var(--site-paper); }
.messages-page #modal-overlay > div { width:calc(100% - 32px); box-sizing:border-box; max-height:85dvh; overflow-y:auto; }
html[data-appearance=dark] .messages-page .msg-type-tag.comment { color:#accff0; }
html[data-appearance=dark] .messages-page .msg-type-tag.reply { color:#a6dcb1; }
html[data-appearance=dark] .messages-page .msg-type-tag.system { color:#d4b9ee; }
html[data-appearance=dark] .messages-page .msg-type-tag.announcement { color:#efcf91; }
html[data-appearance=light] .messages-page .msg-type-tag.announcement { color:#79580e; }
html[data-appearance=light] .messages-page .msg-type-tag.comment { color:#37658e; }
html[data-appearance=light] .messages-page .msg-type-tag.reply { color:#2e703a; }

.account-page .balance-bar { display:flex; flex-wrap:wrap; gap:8px 14px; padding:24px; }
.account-page .balance-bar :is(.val,.b-val) { font-size:32px; line-height:1.3; overflow-wrap:anywhere; }
.account-page .balance-bar :is(.hint,.b-hint) { flex-basis:100%; margin-left:0; line-height:1.75; }
.account-page .checkin-bar { gap:16px; flex-wrap:wrap; padding:18px 24px; background:var(--site-soft); }
.account-page .checkin-info { min-width:0; }
.account-page .checkin-text { line-height:1.65; }
.account-page .checkin-btn { flex-shrink:0; }
.account-page .plan-grid { grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:14px; }
.account-page .plan-card { padding:30px 14px 22px; box-shadow:none; transition:border-color .15s,background .15s; }
.account-page .plan-card:hover { transform:none; box-shadow:none; }
.account-page .plan-card .p-label { font-size:12px; letter-spacing:0; }
.account-page .plan-card.popular::after { background:var(--site-action); color:#fff; font-size:11px; }
.account-page .pay-summary { gap:12px; flex-wrap:wrap; line-height:1.7; }
html[data-appearance=dark] .account-page :is(.p-bonus,.pay-result.success) { color:#a6dcb1; }

.login-page { min-height:100dvh; display:flex; flex-direction:column; }
.login-page .toolbar { flex-shrink:0; }
.login-page .auth-wrap { min-height:0; flex:1; padding:40px 24px; gap:80px; box-sizing:border-box; }
.login-intro { max-width:350px; }
.login-intro .intro-mark { display:block; font-size:64px; line-height:1; color:var(--site-accent); margin-bottom:24px; }
.login-intro h2 { font-family:var(--font-story); font-size:36px; line-height:1.55; letter-spacing:2px; margin:0 0 20px; color:var(--site-ink); }
.login-intro p { font-size:15px; line-height:1.9; color:var(--site-muted); margin:0; }
.login-page .auth-card { width:400px; max-width:100%; padding:32px; flex-shrink:0; border-radius:24px; background:var(--site-paper); box-shadow:var(--site-shadow); box-sizing:border-box; }
.login-page .auth-card h1 { font-size:23px; line-height:1.5; letter-spacing:0; color:var(--site-ink); background:none; -webkit-text-fill-color:currentColor; margin:0 0 24px; text-align:left; }
.login-page .auth-card h1::before,.login-page .auth-card h1::after { content:none; }
.login-page .auth-card label { margin-top:18px; margin-bottom:8px; }
.login-page #agreement-row label { margin:0; font-size:13px; line-height:1.7; }
.login-page .auth-card input { width:100%; }
.login-page .auth-card input[type=checkbox] { width:auto; }
.login-page .auth-card #submit-btn { min-height:46px; }
.login-page .auth-card .msg { line-height:1.6; }
.login-page .auth-card :is(#send-btn,#reset-send-btn) { box-shadow:none; font-size:13px; }

.author-page .user-header { display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;column-gap:22px;row-gap:0;margin:0 0 28px;padding:26px 30px;background:linear-gradient(110deg,var(--site-soft),var(--site-paper) 58%); }
.author-page .user-avatar,.author-page .user-avatar-placeholder { grid-column:1;grid-row:1;width:88px;height:88px;border:3px solid var(--site-paper);box-shadow:0 0 0 1px var(--site-border),0 5px 16px color-mix(in srgb,var(--site-accent) 14%,transparent); }
.author-page .user-avatar-placeholder { font-family:var(--font-story);font-size:34px;font-weight:600;color:var(--site-accent);background:linear-gradient(145deg,var(--site-tint),var(--site-paper)); }
.author-page .user-info { grid-column:2;grid-row:1;min-width:0; }
.author-page .user-identity { display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0; }
.author-page .user-name { display:flex;align-items:center;flex:1 1 160px;min-width:0;flex-wrap:wrap;gap:8px;overflow-wrap:anywhere;line-height:1.4;font-size:24px;letter-spacing:0; }
.author-page .user-badge { margin:0; }
.author-page .user-social-stats { display:flex;align-items:center;flex-wrap:wrap;gap:8px 22px;margin-top:14px; }
.author-page .user-stat { display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap;color:var(--site-muted);font-size:13px; }
.author-page .user-stat strong { color:var(--site-ink);font-size:15px;font-weight:650;font-variant-numeric:tabular-nums; }
.author-page .user-stat + .user-stat { position:relative; }
.author-page .user-stat + .user-stat::before { content:"";position:absolute;left:-12px;top:3px;bottom:3px;width:1px;background:var(--site-border); }
.author-page .grid { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; }
.author-page .story-card { min-width:0; padding:18px; gap:10px; border-radius:18px; box-shadow:none; }
.author-page a.story-card { text-decoration:none; color:var(--site-ink); }
.author-page .story-card::before { content:none; }
.author-page .story-card:hover { transform:translateY(-2px); box-shadow:var(--site-shadow); }
.author-page .story-card .cover { margin:-18px -18px 4px; aspect-ratio:2/3; height:auto; max-height:none; flex-shrink:0; background:var(--site-tint); border-radius:18px 18px 0 0; }
.author-page .story-card .cover img { position:absolute;inset:0;width:100%; height:100%; object-fit:cover; object-position:center top; }
.account-page img[data-story-cover][hidden] { display:none; }
.account-page .story-cover-ready > :is(.fc-cover-placeholder,.cover-letter,[data-cover-placeholder]) { visibility:hidden; }
.author-page .sort-btn { min-height:44px; }
.author-page .user-info { overflow-wrap:anywhere; }
.author-page .cover-letter { display:flex; align-items:center; justify-content:center; height:100%; font-family:var(--font-story); font-size:64px; color:var(--site-accent); background:linear-gradient(145deg,var(--site-soft),var(--site-tint)); }
.author-page .story-card:hover .cover img { transform:none; }
.author-page .story-card .desc { font-size:14px; line-height:1.8; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.author-page .story-card .title { line-height:1.5; overflow-wrap:anywhere; }
.author-page .story-card .meta { line-height:1.6; }

@media(max-width:900px) {
  .login-page .auth-wrap { gap:36px; }
  .login-intro { max-width:260px; }
  .login-intro h2 { font-size:28px; }
}
@media(max-width:760px) {
  .account-page :is(.container,.recharge-wrap) { padding:24px 16px 48px; }
  .account-heading h1 { font-size:25px; }
  .profile-page .profile-shell { padding:20px 16px 48px; gap:24px; }
  .profile-page .profile-sidebar { width:100%; top:auto; padding:6px; gap:4px; border-radius:12px; }
  .profile-page .side-group { gap:4px; }
  .profile-page .side-item { width:auto; flex-shrink:0; padding:9px 13px; }
  .profile-page .side-item::before { display:none; }
  .profile-page :is(.profile-card,.content-section) { padding:20px; }
  .profile-page .panel-head { font-size:23px; }
  .profile-page .avatar-zone { gap:14px; align-items:flex-start; }
  .profile-page :is(.avatar-img,.avatar-placeholder) { width:60px; height:60px; }
  .account-page :is(.balance-bar,.checkin-bar,.pay-section) { padding:20px; }
  .account-page .plan-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .account-page .plan-card .p-amount { font-size:26px; }
  .messages-page .msg-item { padding:18px; }
  .messages-page .msg-tabs { width:100%; }
  .messages-page .msg-tab { flex:1; padding:8px 12px; }
  .messages-page .msg-item.unread::before { top:24px; right:14px; }
  .login-page .auth-wrap { padding:28px 16px 40px; align-items:flex-start; }
  .login-intro { display:none; }
  .login-page .auth-card { padding:26px 24px; border-radius:20px; }
  .author-page .user-header { padding:22px 18px; }
  .author-page .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .author-page .story-card { padding:12px; }
  .author-page .story-card .cover { margin:-12px -12px 0; }
  .author-page .story-card .title { font-size:16px; }
  .author-page .story-card .desc { font-size:13px; }
}
@media(prefers-reduced-motion:reduce) { .account-page .story-card:hover { transform:none; } }
/* Account verification stays within the existing profile card rhythm. */
.account-security p { line-height: 1.7; }
.security-hint { color: var(--ink-light); font-size: 13px; line-height: 1.7; }
.account-security details { margin: 14px 0; border-top: 1px solid var(--border); padding-top: 14px; }
.account-security summary { cursor: pointer; color: var(--accent-dark); font-weight: 600; margin-bottom: 16px; }
.security-code-row { display: flex; align-items: stretch; gap: 10px; }
.security-code-row input { flex: 1; min-width: 0; }
.security-code-row button { flex: 0 0 auto; white-space: nowrap; }
.security-hint[role="status"] { margin-bottom: 14px; }
/* Public author identity shares the personal homepage vocabulary. */
.user-public-id { display:inline-flex;align-items:center;gap:7px;max-width:100%;font-size:12px;color:var(--site-muted);margin-top:7px;letter-spacing:0;white-space:nowrap; }
.user-public-id strong { padding:3px 8px;border-radius:5px;background:var(--site-page);color:var(--site-muted);font-size:12px;font-weight:550;font-variant-numeric:tabular-nums;white-space:nowrap; }
.author-follow { display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:34px;padding:0 12px;border:1px solid color-mix(in srgb,var(--site-accent) 38%,var(--site-border));border-radius:8px;color:var(--site-paper);background:var(--site-accent);font:inherit;font-size:12px;text-decoration:none;cursor:pointer;transition:background .16s,border-color .16s; }
.author-follow:hover:not(:disabled) { filter:brightness(.94); }
.author-follow[aria-pressed=true] { color:var(--site-ink);background:var(--site-paper);border-color:var(--site-border); }
.author-follow:disabled { opacity:.65;cursor:wait; }
.author-follow:focus-visible { outline:2px solid var(--site-accent);outline-offset:3px; }
@media(max-width:600px) {
  .author-page .user-header { grid-template-columns:60px minmax(0,1fr);column-gap:14px;row-gap:0;padding:20px 18px; }
  .author-page .user-avatar,.author-page .user-avatar-placeholder { grid-column:1;grid-row:1;width:58px;height:58px; }
  .author-page .user-avatar-placeholder { font-size:25px; }
  .author-page .user-info { grid-column:2;grid-row:1; }
  .author-page .user-name { font-size:20px; }
  .author-page .user-social-stats { gap:8px 14px;margin-top:12px; }
  .author-page .user-stat { font-size:12px; }
  .author-page .user-stat strong { font-size:14px; }
  .author-page .user-stat + .user-stat::before { left:-8px; }
  .author-page .user-info .user-bio { font-size:13px; }
  .author-page .user-identity { gap:8px; }
  .author-page .author-follow { min-height:32px;padding:0 10px;font-size:12px; }
}
@media(max-width:380px) {
  .author-page .user-header { grid-template-columns:52px minmax(0,1fr);column-gap:12px;padding:18px 14px; }
  .author-page .user-avatar,.author-page .user-avatar-placeholder { width:50px;height:50px; }
  .author-page .user-social-stats { gap:8px 12px; }
  .author-page .user-stat + .user-stat::before { display:none; }
}
