/* Personal and governance entrances share the existing paper/ink palette. */
.account-center, .governance-workbench { max-width: 1080px; margin-inline: auto; }
.account-home-body, .governance-home-body, .profile-editor-body { --account-action-text: #a54220; }
.account-identity { display: flex; align-items: center; gap: 16px; padding: 20px 0; color: var(--ink); text-decoration: none; }
.account-avatar { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 28px; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-identity-copy { display: grid; gap: 5px; min-width: 0; flex: 1; }
.account-identity-copy > strong { font-size: 22px; line-height: 1.35; overflow-wrap: anywhere; }
.account-role, .account-identity-copy > small { font-size: 13px; color: var(--muted); line-height: 1.6; }
.account-identity-copy > small { color: var(--account-action-text); }
.account-bio { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.entry-chevron { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--muted); }
.account-balances { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 0 18px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.account-balances strong { margin-left: 6px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.account-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 24px; }
.account-shortcuts a { display: grid; place-items: center; gap: 8px; min-height: 84px; padding: 12px 8px; text-align: center; font-size: 15px; text-decoration: none; color: var(--ink); }
.account-shortcuts a + a { border-left: 1px solid var(--line); }
.account-shortcuts svg { width: 24px; height: 24px; fill: none; stroke: currentColor; }
.account-entry-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px 28px; }
.account-entry-group { min-width: 0; }
.account-entry-group h2, .workbench-section h2 { margin: 0 0 10px; font-family: var(--sans); font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--muted); }
.account-entry-group nav { background: var(--paper-light, #faf7f1); border-radius: 8px; padding-inline: 16px; }
.account-entry { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 0; text-decoration: none; color: var(--ink); }
.account-entry + .account-entry { border-top: 1px solid var(--line); }
.account-entry-icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--spark); fill: none; stroke: currentColor; }
.account-entry-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.account-entry-copy strong { font-size: 16px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.account-entry-copy small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.account-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; padding-top: 28px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.account-legal a { color: inherit; text-underline-offset: 3px; min-height: 44px; display: flex; align-items: center; }
.account-center a:focus-visible, .governance-workbench a:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }
.account-center a:hover, .workbench-entry:hover { color: var(--account-action-text); }
.workbench-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin: 8px 0 28px; }
.workbench-heading h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.3; }
.workbench-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.workbench-return { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; color: var(--account-action-text); font-size: 14px; text-underline-offset: 3px; }
.workbench-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.workbench-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.workbench-entry { display: flex; align-items: start; gap: 10px; padding: 18px 12px; color: var(--ink); background: var(--paper-light, #faf7f1); text-decoration: none; min-width: 0; }
.workbench-icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--spark); fill: none; stroke: currentColor; }
.workbench-entry > span { min-width: 0; flex: 1; display: grid; gap: 6px; }
.workbench-entry strong { font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.workbench-entry small { font-size: 13px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.workbench-entry .entry-chevron { display: none; }
.workbench-entry:last-child:nth-child(odd) { grid-column: 1 / -1; }
.profile-editor-body .profile-heading { margin-bottom: 16px; padding-bottom: 16px; }
.profile-editor-body .profile-heading h1 { font-size: 28px; }
.profile-editor-body .profile-preview { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
.profile-editor-body .profile-avatar-large { width: 64px; border-radius: 12px; font-size: 28px; }
.profile-editor-body .profile-preview h2 { font-size: 22px; margin: 0 0 6px; }
.profile-editor-body .profile-preview p { font-size: 14px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profile-editor-body .private-account-ledger h2 { font-size: 22px; margin: 0 0 8px; }
.profile-editor-body .profile-form { gap: 16px; }
.profile-editor-body .profile-form textarea { min-height: 120px; }
.profile-editor-body .account-details dd { overflow-wrap: anywhere; }
.profile-editor-body .app-topbar .profile-return { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; color: var(--account-action-text); flex-shrink: 0; text-decoration: none; }
.operation-wait { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 12px 0; background: var(--paper-light, #faf7f1); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.operation-wait[hidden] { display: none !important; }
.operation-wait > span { flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--spark); border-radius: 50%; animation: spark-thinking-turn .9s linear infinite; }
.operation-wait > div { min-width: 0; display: grid; gap: 3px; }
.operation-wait strong { font-size: 15px; font-weight: 600; line-height: 1.5; }
.operation-wait small { font-size: 13px; line-height: 1.6; color: var(--muted); font-variant-numeric: tabular-nums; }
button.is-operation-busy { position: relative; }
button.is-operation-busy::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spark-thinking-turn .9s linear infinite; }
@media (max-width: 900px) {
  .account-home-body .creator-product-layout .app-content { padding-inline: 16px; padding-top: 0; }
  .account-home-body .app-topbar .menu-button { display: none; }
  .account-home-body .app-topbar { justify-content: flex-start; min-height: 52px; padding-inline: 16px; }
  .account-home-body .app-topbar-title { font-size: 20px; }
  .account-identity { padding: 20px 0 12px; gap: 12px; }
  .account-avatar { flex-basis: 56px; width: 56px; height: 56px; }
  .account-identity-copy > strong { font-size: 21px; }
  .account-entry-groups, .workbench-groups { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .account-shortcuts { margin-bottom: 20px; }
  .account-shortcuts a { min-height: 76px; }
  .workbench-heading { margin: 0 0 20px; }
  .workbench-heading h1 { font-size: 24px; }
  .governance-home-body .workbench-heading h1 { display: none; }
  .workbench-heading .workbench-return { display: none; }
  .governance-home-body .app-content { padding-inline: 16px; }
  .workbench-entry { padding: 16px 12px; }
  .profile-editor-body .profile-workspace { gap: 24px; }
  .profile-editor-body .profile-preview { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .operation-wait > span, button.is-operation-busy::before { animation: none; }
}
