/* Shared personal surfaces. Keep author canvases and administration tables scoped out. */
.personal-detail-body { --personal-panel: #fcfaf5; --personal-muted: #70685d; }
.personal-detail-body .app-content { max-width: 1120px; width: 100%; margin-inline: auto; padding: 28px 32px 40px; }
.personal-detail-body .page-heading { margin: 0 0 20px; padding: 0; border: 0; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.personal-detail-body .page-heading h1 { font: 600 26px/1.4 var(--sans); margin: 0 0 6px; }
.personal-detail-body .page-heading p { font-size: 14px; line-height: 1.65; margin: 0; color: var(--personal-muted); }
.personal-detail-body .eyebrow, .personal-detail-body .section-kicker { display: none; }
.personal-detail-body :is(.settings-panel,.account-settings-section,.growth-section,.notification-ledger,.private-account-ledger,.profile-public-editor) { min-width: 0; padding: 22px; margin: 0 0 16px; border: 1px solid #e7e0d5; border-radius: 12px; background: var(--personal-panel); }
.personal-detail-body :is(h2,h3) { font-family: var(--sans); font-weight: 600; }
.personal-detail-body h2 { font-size: 18px; line-height: 1.5; margin: 0 0 14px; }
.personal-detail-body h3 { font-size: 16px; line-height: 1.5; }
.personal-detail-body :is(p,li,dd,dt) { line-height: 1.7; overflow-wrap: anywhere; }
.personal-detail-body :is(.muted-note,.form-note,.field small,.account-details small) { font-size: 13px; line-height: 1.6; color: var(--personal-muted); }
.personal-detail-body .typographic-cover small { color: #fff; }
.personal-detail-body :is(.settings-grid,.profile-workspace) { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,1fr); gap: 20px; align-items: start; border: 0; padding: 0; }
.personal-detail-body .memory-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.personal-detail-body .memory-grid > section:first-child { grid-column: 1 / -1; }
.personal-detail-body :is(.paper-form,.form-grid,.profile-form,.growth-form) { display: grid; gap: 18px; min-width: 0; }
.personal-detail-body :is(.field,label) { min-width: 0; font-size: 15px; font-weight: 500; }
.personal-detail-body :is(.field > label,label > input,label > textarea,label > select) { margin-top: 0; }
.personal-detail-body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select) { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; border: 1px solid #bfb7ab; border-radius: 8px; background: #fffdf9; color: var(--ink); font: 400 16px/1.6 var(--sans); padding: 10px 12px; margin-top: 8px; caret-color: var(--spark); }
.personal-detail-body textarea { resize: vertical; min-height: 104px; }
.personal-detail-body :is(input,textarea)::placeholder { color: #756e63; }
.personal-detail-body :is(input,textarea,select):focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
.personal-detail-body :is(.button,button.text-button) { min-height: 44px; padding: 10px 18px; border-radius: 8px; font: 600 15px/1.5 var(--sans); white-space: normal; }
.personal-detail-body :is(.button-row,.form-actions,.inline-actions,.profile-save-actions) { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block: 12px 0; }
.personal-detail-body .button-primary { background: #a54220; border-color: #a54220; color: #fff; }
.personal-detail-body .button-secondary { background: transparent; border-color: #b9afa0; color: var(--ink); }
.personal-detail-body .button:hover { filter: brightness(.95); }
.personal-detail-body button:disabled { opacity: .65; cursor: wait; }
.personal-detail-body a:focus-visible,.personal-detail-body button:focus-visible,.personal-detail-body summary:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }
.personal-detail-body summary { min-height: 44px; padding-block: 10px; font-size: 16px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.personal-detail-body .empty-panel { padding: 20px; border: 1px dashed #cfc5b5; border-radius: 8px; background: transparent; font-size: 14px; }
.personal-detail-body [hidden] { display: none !important; }
.personal-detail-body .account-details > div { padding: 12px 0; gap: 12px; grid-template-columns: minmax(90px,.7fr) minmax(0,1fr); }
.personal-detail-body .account-details { margin: 0; font-size: 14px; }
.personal-detail-body .account-details dt { color: var(--personal-muted); }
.personal-detail-body .profile-public-editor { display: block; }
.personal-detail-body .profile-preview { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 14px; padding: 0; margin: 0 0 12px; border: 0; }
.personal-detail-body .profile-avatar-large { width: 56px; height: 56px; border-radius: 12px; font-size: 26px; }
.personal-detail-body .profile-preview h2 { font-size: 20px; margin: 0 0 4px; }
.personal-detail-body .profile-preview p { font-size: 13px; margin: 0; }
.personal-detail-body .profile-avatar-editor { margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.personal-detail-body .profile-avatar-editor summary { color: #a54220; font-size: 14px; }
.personal-detail-body .avatar-form { margin-block: 8px; }
.personal-detail-body .profile-form textarea { min-height: 120px; }
.personal-detail-body .profile-count { display: block; text-align: right; font-variant-numeric: tabular-nums; margin-top: 4px; }
.personal-detail-body .profile-privacy { margin: 0; }
.personal-detail-body .profile-save-actions { margin: 0; }
.personal-detail-body .memory-import-method { border-top: 1px solid var(--line); padding: 6px 0 12px; }
.personal-detail-body :is(.import-wechat-form,.import-paste-form) { display: grid; gap: 12px; margin: 8px 0; }
.personal-detail-body :is(.import-wechat-form,.import-paste-form) .button { justify-self: start; }
.personal-detail-body .card-balance { flex-shrink: 0; font: 500 14px/1.5 var(--sans); color: var(--personal-muted); }
.personal-detail-body .card-balance > span { font-size: 28px; color: var(--ink); }
.personal-detail-body .ledger-rows { padding: 0; margin: 0; list-style: none; }
.personal-detail-body .ledger-row { display: grid; grid-template-columns: minmax(100px,.8fr) minmax(110px,.8fr) minmax(0,1.5fr) auto; gap: 10px 16px; align-items: center; padding: 16px 0; font-size: 14px; border: 0; border-bottom: 1px solid var(--line); }
.personal-detail-body .ledger-row:last-child { border-bottom: 0; }
.personal-detail-body .ledger-row time { font-size: 12px; color: var(--personal-muted); font-variant-numeric: tabular-nums; }
.personal-detail-body .status-pill { width: fit-content; padding: 3px 9px; font-size: 12px; border: 0; border-radius: 20px; background: #eee9df; color: #514b40; }
.personal-detail-body .status-pill[data-status=pending],.personal-detail-body .status-pill[data-status=prelim_approved] { background: #f8e8d9; color: #8e381c; }
.personal-detail-body .card-request-state { display: grid; gap: 8px; }
.personal-detail-body .card-request-state p { margin: 0; }
.personal-detail-body .card-request-state a { width: fit-content; }
.personal-detail-body :is(.growth-page,.account-settings-layout) { padding: 0; margin: 0; max-width: none; }
.personal-detail-body .growth-record { padding: 16px 0; border: 0; border-top: 1px solid var(--line); margin: 0; }
.personal-detail-body .growth-record h3 { margin: 0 0 8px; }
.personal-detail-body .growth-record p { margin-block: 8px; font-size: 14px; }
.personal-detail-body .growth-section .growth-section { background: transparent; padding: 12px 0; border: 0; }
.personal-detail-body .notification-row { padding: 16px 0; gap: 12px; min-height: 72px; }
.personal-detail-body .notification-copy strong { font-size: 16px; }
.personal-detail-body .notification-copy span { font-size: 13px; line-height: 1.6; }
.personal-detail-body .notification-row time { font-size: 12px; }
.personal-back,.personal-public-return { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--ink); text-decoration: none; font-size: 14px; }
.personal-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.personal-public-return { margin-bottom: 12px; }
.personal-help-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 64px; padding: 8px 32px; border-bottom: 1px solid var(--line); background: var(--paper); }
.personal-help-title { font: 600 18px/1.4 var(--sans); text-align: center; overflow-wrap: anywhere; }
.personal-help-home { display: inline-flex; justify-self: end; gap: 8px; align-items: center; min-height: 44px; color: var(--ink); font-size: 14px; text-decoration: none; }
.personal-help-home svg { width: 22px; height: 22px; fill: currentColor; }
.personal-detail-body .growth-entry-nav { gap: 0; border: 1px solid #e2d9cc; border-radius: 10px; overflow: hidden; background: var(--personal-panel); }
.personal-detail-body .growth-entry-nav a { border: 0; border-right: 1px solid var(--line); background: transparent; min-height: 60px; margin: 0; padding: 12px 16px; font-size: 15px; }
.personal-detail-body .growth-entry-nav a:last-child { border-right: 0; }
.creator-product-layout .creator-return-home { gap: 8px; }
.operation-result { font: 400 14px/1.65 var(--sans); padding: 10px 12px; margin: 12px 0 0; border-radius: 8px; background: #f0ece2; color: #4f493f; overflow-wrap: anywhere; }
.operation-result[data-kind=error] { background: #f9e7e1; color: #872b21; }
.operation-result[data-kind=success] { background: #e9f0e5; color: #33583c; }
.page-operation-result { margin: 0 0 16px; }
.operation-wait { max-width: 100%; box-sizing: border-box; }
@media (max-width: 900px) {
  .personal-help-topbar { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 10px; padding: calc(6px + env(safe-area-inset-top,0px)) 12px 6px; min-height: 56px; position: sticky; top: 0; z-index: 45; }
  .native-safe-viewport .personal-help-topbar { padding-top: 6px; }
  .personal-help-topbar :is(.personal-back,.personal-help-home) { display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 10px; }
  .personal-help-topbar a span { display: none; }
  .creator-product-layout .app-topbar { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 10px; min-height: 56px; padding: 6px 12px; }
  .creator-product-layout .app-topbar .menu-button,.creator-product-layout .app-topbar .personal-back,.creator-product-layout .app-topbar .creator-return-home { display: flex; width: 44px; height: 44px; min-width: 44px; margin: 0; padding: 10px; border: 0; align-items: center; justify-content: center; background: transparent; color: var(--ink); }
  .creator-product-layout .app-topbar :is(.menu-button,.personal-back,.creator-return-home) span { display: none; }
  .creator-product-layout .app-topbar :is(.menu-button,.personal-back,.creator-return-home) svg { width: 23px; height: 23px; flex-shrink: 0; }
  .creator-product-layout .app-topbar-title { margin: 0; text-align: center; min-width: 0; font: 600 18px/1.4 var(--sans); overflow-wrap: anywhere; }
  .creator-product-layout .topbar-library { display: none; }
  .account-home-body .creator-product-layout .app-topbar .menu-button { visibility: hidden; }
  .personal-detail-body .creator-product-layout .app-content { padding: 20px 16px 28px; }
  .personal-detail-body .page-heading { align-items: start; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
  .personal-detail-body .page-heading h1 { font-size: 20px; }
  .personal-detail-body :is(.settings-panel,.account-settings-section,.growth-section,.notification-ledger,.private-account-ledger,.profile-public-editor) { padding: 18px 16px; border-radius: 10px; margin-bottom: 14px; }
  .personal-detail-body :is(.settings-grid,.profile-workspace,.memory-grid) { grid-template-columns: minmax(0,1fr); gap: 0; }
  .personal-detail-body .ledger-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .personal-detail-body .ledger-row__detail { grid-column: 1 / -1; }
  .personal-detail-body .ledger-row time { grid-column: 1 / -1; }
  .personal-detail-body .account-setting-row { flex-wrap: wrap; gap: 12px; }
  .personal-detail-body :is(.growth-qualifications,.growth-shortcuts,.growth-entry-nav) { grid-template-columns: minmax(0,1fr); }
  .personal-detail-body .growth-entry-nav a { border: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .personal-detail-body .growth-entry-nav a:last-child { border-bottom: 0; }
  .personal-detail-body .growth-entry-nav .growth-entry-arrow { display: inline; }
  .personal-detail-body .growth-progress-stats strong { font-size: 22px; }
  .personal-detail-body .notification-row { display: grid; grid-template-columns: 8px minmax(0,1fr); }
  .personal-detail-body .notification-row time { grid-column: 2; }
  .personal-detail-body .profile-save-actions > .button-primary { width: 100%; }
  .site-message { max-width: calc(100vw - 32px); left: 16px; right: 16px; width: fit-content; margin-inline: auto; bottom: calc(var(--mobile-nav-height, 64px) + env(safe-area-inset-bottom, 0px) + 12px); }
}
@media (prefers-reduced-motion: reduce) { .is-operation-busy::before { animation: none; } }

.personal-detail-body .paper-form { padding: 0; border: 0; background: transparent; }
.personal-detail-body .profile-form input#profile-nickname { padding: 10px 12px; border: 1px solid #bfb7ab; border-radius: 8px; font: 400 16px/1.6 var(--sans); background: #fffdf9; }
.personal-detail-body .memory-grid .empty-panel { border: 0; padding: 0; margin: 0; }
.personal-detail-body .memory-grid > section:first-child > .muted-note { margin: 10px 0; }
.personal-detail-body .memory-import-method summary { list-style-position: inside; }
