/* Shared brand placement: the logo is the stable, always-visible way home. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-header{height:82px;min-height:82px;padding:0 max(5vw,32px);justify-content:space-between}.site-header .brand{display:flex;align-items:center;gap:9px;color:#20293e;font-size:19px;font-weight:800;line-height:1.02;letter-spacing:-.5px;text-decoration:none}.site-header .brand small{display:block;margin-top:3px;color:#9e93ca;font-size:10px;font-weight:600;letter-spacing:1.5px}.site-header .brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;color:#fff;background:linear-gradient(135deg,#8e7be1,#6350bd);box-shadow:0 5px 11px #7560c852;font:20px KaiTi,STKaiti,serif}.brand-home{position:relative}.brand-home:focus-visible{outline:2px solid #806bd0;outline-offset:5px}.brand-home::after{position:absolute;left:0;top:calc(100% + 9px);z-index:30;content:"返回主页";padding:5px 8px;border-radius:6px;color:#fff;background:#4d3a92;box-shadow:0 6px 14px #4d3a9230;font-size:11px;font-weight:700;letter-spacing:0;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translateY(-3px);transition:.16s}.brand-home:hover::after,.brand-home:focus-visible::after{opacity:1;transform:translateY(0)}

/* Authentication uses the same coordinates without adding a second header. */
.auth-page .auth-card .brand-home{position:fixed;top:22px;left:max(5vw,32px);z-index:20;margin:0;justify-content:flex-start}.auth-page .auth-card .brand-home::after{top:calc(100% + 9px)}

/* A configured horizontal logo replaces both the default mark and wordmark. */
.site-header .brand-home:is(.has-image-logo,.has-custom-logo),.auth-page .auth-card .brand-home:is(.has-image-logo,.has-custom-logo){gap:0}.site-header .brand-home:is(.has-image-logo,.has-custom-logo) .brand-mark,.auth-page .auth-card .brand-home:is(.has-image-logo,.has-custom-logo) .brand-mark{display:flex;align-items:center;width:auto;max-width:180px;height:42px;overflow:hidden;border-radius:0;background:none;box-shadow:none}.brand-home:is(.has-image-logo,.has-custom-logo) .brand-mark img{display:block;width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain}.brand-home:is(.has-image-logo,.has-custom-logo)>.brand-mark+span[hidden]{display:none}
.site-header .brand-home.has-fallback-logo .brand-mark,.auth-page .auth-card .brand-home.has-fallback-logo .brand-mark{display:flex;align-items:center;justify-content:center;width:42px;height:42px;overflow:visible;border-radius:0;background:none;box-shadow:none}.brand-fallback-cup{display:block;width:42px;height:42px;flex:0 0 42px}

@media(max-width:760px){.site-header{height:68px;min-height:68px;padding:0 18px}.site-header .brand{font-size:16px}.site-header .brand-mark{width:33px;height:33px}.site-header .brand-home:is(.has-image-logo,.has-custom-logo) .brand-mark,.auth-page .auth-card .brand-home:is(.has-image-logo,.has-custom-logo) .brand-mark{max-width:clamp(112px,34vw,140px);height:34px}.auth-page .auth-card .brand-home{top:17px;left:18px}}
@media(max-width:760px){.site-header .brand-home.has-fallback-logo .brand-mark,.auth-page .auth-card .brand-home.has-fallback-logo .brand-mark{width:34px;height:34px}.brand-fallback-cup{width:34px;height:34px;flex-basis:34px}}
/* English eyebrow labels only repeat the page title. */
.eyebrow,
.kicker {
  display: none;
}

/* Pagination is page content, not the desktop header navigation. */
.author-pagination {
  margin-left: 0;
  margin-right: 0;
}

/* Mobile controls keep a comfortable hit area without making their visible
   icons oversized. Editable fields stay at 16px to prevent Safari zooming the
   whole page when the keyboard opens. */
@media(max-width:760px){
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea{font-size:16px!important}
  .notification-link{flex-basis:44px;width:44px;height:44px}
  .brand-home,
  .site-header .account-status .user-account,
  .site-header .account-status .logout-button,
  .password-toggle,
  .auth-text-button,
  .admin-inline-retry,
  .profile-notifications-message button{min-height:44px}
  .brand-home,
  .site-header .account-status .user-account,
  .site-header .account-status .logout-button,
  .auth-text-button,
  .admin-inline-retry,
  .profile-notifications-message button{display:inline-flex;align-items:center}
  .password-toggle{min-width:44px;right:0}
  .close-modal,
  .dialog-close{width:44px;height:44px;min-width:44px;min-height:44px}
  .form-actions>button,
  .form-actions>a,
  .manage-actions>button,
  .manage-actions>a,
  .admin-pagination button{min-height:44px}
}

/* Keep secondary information readable instead of relying on 10px low-contrast
   text. These selectors cover the account and public-history surfaces that do
   not load the community stylesheet. */
.profile-notifications-message,
.profile-notification-excerpt,
.profile-notification-copy time,
.profile-notification-empty,
.profile-notification-pagination span,
.author-page .author-heading p,
.author-page .author-card-header,
.author-page .author-card-meta,
.author-page .author-empty,
.author-page .author-pagination{color:#746e7f;font-size:12px}
.author-page .author-title{font-size:11px}
.player-id{color:#746e7f;font-size:12px}
.close-modal:disabled{opacity:.55;cursor:wait}
.review-action-buttons{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px}
.review-action-message{flex:1 0 100%;margin:2px 0 0;color:#655b72;font-size:12px;font-weight:700;line-height:1.5}
.review-action-message:empty{display:none}
.review-action-message.error{color:#a64e4e}
.review-actions a[aria-disabled="true"]{opacity:.5;pointer-events:none}

/* Destructive and consequential actions use one predictable confirmation
   surface on every active page instead of browser-specific native prompts. */
.site-confirm-dialog{width:min(420px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;border:0;border-radius:12px;padding:0;overflow:hidden;color:#332f3c;background:#fff;box-shadow:0 24px 70px rgba(25,20,37,.28)}
.site-confirm-dialog::backdrop{background:rgba(36,29,58,.55);backdrop-filter:none}
.site-confirm-shell{max-height:calc(100dvh - 24px);padding:24px;overflow-y:auto;overscroll-behavior:contain}
.site-confirm-shell h2{margin:0;color:#383240;font-size:20px;font-weight:800;line-height:1.4;letter-spacing:0}
.site-confirm-shell p{margin:9px 0 22px;color:#6f6977;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.site-confirm-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.site-confirm-actions button{min-width:96px;min-height:42px;border-radius:8px;padding:9px 14px;font:800 13px/1.4 "Microsoft YaHei","PingFang SC",system-ui,sans-serif;cursor:pointer}
.site-confirm-cancel{border:1px solid #dcd7df;color:#665f70;background:#fff}
.site-confirm-cancel:hover{border-color:#aaa0b5;color:#493f59;background:#faf9fb}
.site-confirm-submit{border:1px solid #6650b6;color:#fff;background:#6f59c4}
.site-confirm-submit:hover{border-color:#5842a4;background:#5d47ad}
.site-confirm-dialog[data-danger="true"] .site-confirm-submit{border-color:#a43f49;background:#b54752}
.site-confirm-dialog[data-danger="true"] .site-confirm-submit:hover{border-color:#91333e;background:#9d3944}
.site-confirm-actions button:focus-visible{outline:3px solid #cfc4ee;outline-offset:2px}
.site-confirm-dialog[data-danger="true"] .site-confirm-submit:focus-visible{outline-color:#efcbd0}
.site-confirm-failure{position:fixed;left:50%;bottom:24px;z-index:1000;max-width:min(420px,calc(100vw - 32px));margin:0;transform:translateX(-50%);border:1px solid #d99da3;border-radius:8px;padding:10px 14px;color:#823943;background:#fff5f6;box-shadow:0 10px 30px rgba(62,31,37,.2);font-size:13px;font-weight:700;line-height:1.5;text-align:center}

@media(max-width:760px){
  .profile-notification-tabs button,
  .profile-notification-pagination button,
  .author-page .author-tabs button,
  .author-page .author-pagination button,
  .dashboard-tabs button,
  .history-tabs button,
  .profile-overview-actions .outline-button,
  .profile-overview-actions .publish-button,
  .admin-table .outline-button,
  .admin-table .danger-button,
  .moderation-actions .outline-button,
  .moderation-actions .publish-button{min-height:44px}
  .admin-user-title-editor .user-title-color{width:44px;height:44px;flex-basis:44px}
  .existing-image button{display:grid;place-items:start end;width:44px;height:44px;top:0;right:0;padding:0;color:transparent;background:transparent;font-size:0;line-height:1}
  .existing-image button::before{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;content:"×";color:#fff;background:#4a4551;font:20px/1 sans-serif}
  .site-confirm-dialog{width:calc(100vw - 24px)}
  .site-confirm-shell{padding:21px 18px 18px}
  .site-confirm-shell h2{font-size:18px}
  .site-confirm-actions{align-items:stretch;flex-direction:column}
  .site-confirm-actions button{width:100%;min-height:44px}
  .site-confirm-failure{bottom:12px;width:calc(100vw - 24px);max-width:none}
}
