.personal-settings-trigger { margin-top: 10px; padding: 9px 14px; width: 100%; border: 1px solid #d8cbd6; border-radius: 10px; background: #fff; color: #452540; cursor: pointer; font: inherit; }
.account-summary[role="button"] { cursor: pointer; }
.top-actions .personal-settings-trigger, .topbar-actions .personal-settings-trigger { width: auto; margin: 0; }
.personal-settings-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid #e7e2e4; border-radius: 20px; background: #fff; color: #29232c; box-shadow: 0 32px 100px #20132240; overflow: auto; }
.personal-settings-dialog::backdrop { background: #21162373; backdrop-filter: blur(7px); }
.personal-settings-form { display: grid; gap: 18px; font-size: 17px; font-weight: 500; line-height: 1.75; }
.personal-settings-form h2, .personal-settings-form h3, .personal-settings-form p { margin: 0; }
.personal-settings-form h2 { font-size: 27px; font-weight: 750; letter-spacing: -.5px; }
.personal-settings-form label { display: grid; gap: 8px; font-weight: 650; }
.personal-settings-form input, .personal-settings-form select, .personal-settings-form textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #d8d4da; border-radius: 11px; color: #29232c; background: #fff; font: inherit; box-shadow: 0 1px 2px #2a1c2810; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.personal-settings-form textarea { min-height: 98px; resize: vertical; }
.personal-settings-form input:focus, .personal-settings-form textarea:focus { border-color: #9b6c8f; outline: 0; box-shadow: 0 0 0 4px #8c5f8318; }
.personal-settings-form small { color: #6d7480; font-size: 15px; line-height: 1.55; }
.personal-settings-form button { min-height: 48px; padding: 9px 15px; border: 1px solid #d8cbd6; border-radius: 11px; background: #fff; color: #452540; font: inherit; font-weight: 680; cursor: pointer; }
.personal-settings-form button:hover { border-color: #b99dac; background: #faf6f9; }
.personal-settings-form [data-save] { min-width: 140px; border-color: #452540; background: #452540; color: #fff; box-shadow: 0 8px 22px #45254026; }
.personal-settings-form [data-save]:hover { background: #5a304f; }
.personal-settings-form :disabled { opacity: .55; cursor: wait; }
.personal-settings-status { min-height: 24px; font-size: 15px; }

body:has(.account-settings-dialog[open]) { overflow: hidden; }
.account-settings-dialog { width: min(1120px, calc(100vw - 48px)); height: min(780px, calc(100dvh - 48px)); max-width: none; max-height: none; padding: 0; border-color: #dfd5de; border-radius: 26px; overflow: hidden; }
.account-settings-dialog .personal-settings-form { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 0; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.account-settings-rail { display: flex; flex-direction: column; min-width: 0; padding: 28px 20px 22px; color: #fff; background: radial-gradient(circle at 14% 2%, #8c496a55, transparent 34%), linear-gradient(165deg, #3d2339 0%, #281a2b 100%); }
.account-settings-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; }
.account-settings-brand strong, .account-settings-brand small { display: block; }
.account-settings-brand strong { font-size: 28px; letter-spacing: -.5px; }
.account-settings-brand small { color: #cfbdca; font-size: 15px; }
.account-settings-rail-identity { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 24px; padding: 14px; border: 1px solid #ffffff1f; border-radius: 17px; background: #ffffff0d; box-shadow: inset 0 1px #ffffff0d; }
.account-settings-rail-identity > span { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #ffffff38; border-radius: 50%; background: linear-gradient(145deg, #fae8ef, #dfb0c3); color: #5a2d4a; font-size: 21px; font-weight: 750; }
.account-settings-rail-identity div { min-width: 0; }
.account-settings-rail-identity strong, .account-settings-rail-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-settings-rail-identity strong { color: #fff; font-size: 16px; }
.account-settings-rail-identity small { color: #c9b9c5; font-size: 15px; }
.account-settings-nav { display: grid; gap: 7px; }
.account-settings-nav > button { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 11px; width: 100%; min-height: 66px; padding: 10px 12px; border: 0; border-radius: 13px; color: #d5c7d2; background: transparent; text-align: left; box-shadow: none; }
.account-settings-nav > button:hover { border-color: transparent; background: #ffffff0c; color: #fff; }
.account-settings-nav > button.is-active { background: #ffffff17; color: #fff; box-shadow: inset 3px 0 #d87398; }
.account-settings-nav-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #ffffff10; }
.account-settings-nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-settings-nav strong, .account-settings-nav small { display: block; }
.account-settings-nav strong { color: inherit; font-size: 15px; line-height: 1.35; }
.account-settings-nav small { margin-top: 3px; color: #a998a5; font-size: 15px; line-height: 1.35; }
.account-settings-nav > button.is-active small { color: #d9cbd5; }
.account-settings-rail-note { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 14px; border: 1px solid #ffffff17; border-radius: 14px; background: #ffffff0a; }
.account-settings-rail-note > span { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff18; color: #f3d7e2; font-size: 15px; }
.account-settings-rail-note p { min-width: 0; }
.account-settings-rail-note strong, .account-settings-rail-note small { display: block; }
.account-settings-rail-note strong { color: #eadfe7; font-size: 15px; }
.account-settings-rail-note small { margin-top: 4px; color: #a998a5; font-size: 15px; line-height: 1.5; }
.account-settings-content { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.account-settings-dialog .account-settings-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 34px 19px 40px; border-bottom: 1px solid #eee9ed; background: #ffffffed; }
.account-settings-header > div > small { display: block; color: #9a6487; font-size: 15px; font-weight: 750; letter-spacing: 1.4px; }
.account-settings-dialog .account-settings-header h2 { line-height: 1.25; }
.account-settings-dialog .account-settings-header p { margin-top: 2px; color: #6a7180; font-size: 15px; }
.account-settings-dialog .account-settings-header [data-close] { display: grid; place-items: center; flex: 0 0 42px; width: 42px; min-height: 42px; padding: 0; border: 0; border-radius: 50%; background: #f4f1f3; color: #746a72; font-size: 24px; font-weight: 500; box-shadow: none; }
.account-settings-dialog .account-settings-header [data-close]:hover { background: #ece6eb; color: #43283c; }
.account-settings-body { display: grid; gap: 34px; min-height: 0; padding: 30px 40px 42px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d8cbd5 transparent; scroll-behavior: smooth; }
.account-settings-section { display: grid; gap: 20px; padding: 0 0 36px; border-bottom: 1px solid #eee9ed; scroll-margin-top: 24px; }
.account-settings-section:last-child { padding-bottom: 8px; border-bottom: 0; }
.account-settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.account-settings-heading > div > small { display: block; color: #9b6688; font-size: 15px; font-weight: 750; letter-spacing: 1.1px; }
.account-settings-heading h3 { margin-top: 2px; color: #2c252b; font-size: 23px; line-height: 1.35; }
.account-settings-heading p { margin-top: 3px; color: #737986; font-size: 15px; }
.account-settings-scope { flex: 0 0 auto; padding: 5px 11px; border: 1px solid #ead9e4; border-radius: 999px; background: #f8f0f5; color: #71415f; font-size: 15px; font-weight: 700; }
.account-settings-scope.is-private { border-color: #dfe6ee; background: #f1f5f8; color: #46596f; }
.account-public-preview { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 17px; min-width: 0; min-height: 124px; padding: 24px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 82% 0%, #e89ab066, transparent 36%), linear-gradient(135deg, #3c2238 0%, #61354f 58%, #a55672 100%); box-shadow: 0 14px 32px #50314626; overflow: hidden; }
.account-public-preview::after { content: ""; position: absolute; right: -54px; bottom: -82px; width: 210px; height: 210px; border: 1px solid #ffffff1c; border-radius: 50%; box-shadow: 0 0 0 34px #ffffff08, 0 0 0 68px #ffffff06; pointer-events: none; }
.account-public-preview > [data-public-avatar] { display: grid; place-items: center; width: 68px; height: 68px; border: 2px solid #ffffff8f; border-radius: 50%; background: #ffffffdd; color: #5a304b; font-size: 28px; font-weight: 750; box-shadow: 0 7px 18px #25111e33; }
.account-public-preview-copy { position: relative; z-index: 1; min-width: 0; }
.account-public-preview-copy > small { display: block; color: #e7ccd8; font-size: 15px; font-weight: 750; letter-spacing: 1.6px; }
.account-public-preview strong { display: block; margin-top: 2px; color: #fff; font-size: 22px; line-height: 1.4; overflow-wrap: anywhere; }
.account-public-preview p { color: #f1e5eb; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.account-public-preview-state { position: relative; z-index: 1; align-self: start; padding: 6px 10px; border: 1px solid #ffffff2b; border-radius: 999px; background: #ffffff12; color: #f8eef3; font-size: 15px; font-weight: 650; white-space: nowrap; backdrop-filter: blur(8px); }
.account-settings-id { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #e6e8ed; border-radius: 12px; background: #f8f9fb; }
.account-settings-id > span { color: #465367; font-size: 15px; font-weight: 750; }
.account-settings-id code { min-width: 0; color: #283548; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.account-settings-id small { color: #79808b; text-align: right; }
.account-settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-settings-fields label:has(textarea) { grid-column: 1 / -1; }
.account-settings-fields label > small { font-weight: 500; }
.account-settings-disclosure { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.account-settings-dialog .account-settings-visibility { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 16px; border: 1px solid #e2dbe1; border-radius: 13px; background: #fcfafc; cursor: pointer; }
.account-settings-visibility strong, .account-settings-visibility small { display: block; }
.account-settings-visibility strong { color: #382d35; font-size: 15px; }
.account-settings-visibility small { margin-top: 2px; font-weight: 500; }
.account-settings-dialog .account-settings-visibility input { appearance: none; position: relative; flex: 0 0 44px; width: 44px; height: 26px; min-height: 26px; padding: 0; border: 0; border-radius: 99px; background: #c9c3c8; box-shadow: inset 0 1px 3px #2e232d24; cursor: pointer; }
.account-settings-dialog .account-settings-visibility input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px #30232d33; transition: transform .18s ease; }
.account-settings-dialog .account-settings-visibility input:checked { background: #70415f; }
.account-settings-dialog .account-settings-visibility input:checked::after { transform: translateX(18px); }
.account-settings-dialog .account-settings-view { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 230px; border-color: #e2dbe1; background: #fff; color: #493041; }
.account-settings-view > span:last-child { font-size: 20px; font-weight: 400; }
.personal-account-identity { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; border: 1px solid #e3e7ed; border-radius: 15px; background: #f8fafc; }
.personal-account-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: #fff; color: var(--primary, #452540); font-size: 21px; font-weight: 750; box-shadow: 0 3px 12px #1c243015; }
.personal-account-identity div { min-width: 0; }
.personal-account-identity small { display: block; margin: 0 0 1px; }
.personal-account-identity strong { display: block; overflow: hidden; color: #202b3a; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.personal-account-identity p { margin-top: 1px; color: #687383; font-size: 15px; line-height: 1.55; }
.personal-verified-badge { padding: 4px 9px; border-radius: 999px; background: #e7f5ed; color: #187449; font-size: 15px; font-weight: 700; white-space: nowrap; }
.account-settings-privacy-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: 12px; background: #f7f4f7; color: #626a77; font-size: 15px; line-height: 1.65; }
.account-settings-privacy-note > span:first-child { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid #ddcfd9; border-radius: 50%; color: #78526b; font-family: Georgia, serif; font-weight: 700; }
.account-settings-dialog .personal-settings-status { flex: 0 0 auto; min-height: 0; margin: 0; padding: 9px 40px 0; color: #67445e; font-size: 15px; }
.account-settings-dialog .personal-settings-status:empty { display: none; }
.account-settings-dialog .account-settings-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 34px 17px 40px; border-top: 1px solid #eee9ed; background: #fff; }
.account-settings-footer > div { display: flex; align-items: center; gap: 18px; }
.account-settings-footer > div > small { color: #8a8f98; font-size: 15px; }
.account-settings-dialog .account-settings-footer [data-reload] { padding-inline: 2px; border-color: transparent; background: transparent; color: #6f6470; box-shadow: none; }
.account-settings-dialog :focus-visible { outline: 3px solid #b27b9e; outline-offset: 2px; }
:root[data-personal-accent="blue"] { --primary: #2455a4; --primary-soft: #edf3ff; }
:root[data-personal-accent="green"] { --primary: #23644e; --primary-soft: #edf7f0; }
:root[data-personal-density="compact"] .panel { padding: 18px; }
:root[data-personal-density="compact"] .table-row { padding-block: 10px; }
@media (max-width: 900px) {
  .account-settings-dialog { width: calc(100vw - 24px); height: calc(100dvh - 24px); }
  .account-settings-dialog .personal-settings-form { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .account-settings-rail { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px 16px; }
  .account-settings-brand, .account-settings-rail-note { display: none; }
  .account-settings-rail-identity { margin: 0; padding: 7px; border: 0; background: transparent; }
  .account-settings-rail-identity > span { width: 40px; height: 40px; }
  .account-settings-nav { display: flex; justify-content: flex-end; gap: 6px; min-width: 0; overflow-x: auto; }
  .account-settings-nav > button { display: flex; width: auto; min-height: 44px; padding: 7px 11px; white-space: nowrap; }
  .account-settings-nav > button.is-active { box-shadow: inset 0 -2px #d87398; }
  .account-settings-nav-icon { width: 28px; height: 28px; }
  .account-settings-nav small { display: none; }
  .account-settings-body { padding-inline: 28px; }
  .account-settings-dialog .account-settings-header, .account-settings-dialog .account-settings-footer { padding-inline: 28px; }
  .account-settings-dialog .personal-settings-status { padding-inline: 28px; }
  .account-settings-disclosure { grid-template-columns: 1fr; }
  .account-settings-dialog .account-settings-view { min-width: 0; }
}
@media (max-width: 600px) {
  .personal-settings-dialog { padding: 18px; }
  .account-settings-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-radius: 0; }
  .account-settings-rail { grid-template-columns: 1fr; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
  .account-settings-rail-identity { display: none; }
  .account-settings-nav { justify-content: stretch; overflow: visible; }
  .account-settings-nav > button { flex: 1 1 0; justify-content: center; padding-inline: 8px; }
  .account-settings-nav-icon { display: none; }
  .account-settings-dialog .account-settings-header { padding: 16px 18px 14px; }
  .account-settings-dialog .account-settings-header h2 { font-size: 24px; }
  .account-settings-dialog .account-settings-header p { display: none; }
  .account-settings-body { gap: 28px; padding: 22px 18px 34px; }
  .account-settings-heading { align-items: center; }
  .account-settings-heading h3 { font-size: 21px; }
  .account-public-preview { grid-template-columns: 54px minmax(0, 1fr); min-height: 0; padding: 19px; }
  .account-public-preview > [data-public-avatar] { width: 54px; height: 54px; font-size: 23px; }
  .account-public-preview-state { grid-column: 1 / -1; justify-self: start; }
  .account-settings-id { grid-template-columns: auto minmax(0, 1fr); }
  .account-settings-id small { grid-column: 1 / -1; text-align: left; }
  .account-settings-fields { grid-template-columns: 1fr; }
  .account-settings-fields label:has(textarea) { grid-column: auto; }
  .personal-account-identity { grid-template-columns: 42px minmax(0, 1fr); }
  .personal-account-icon { width: 42px; height: 42px; }
  .personal-verified-badge { grid-column: 2; justify-self: start; }
  .account-settings-dialog .account-settings-footer { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .account-settings-footer > div > small { display: none; }
  .account-settings-dialog .personal-settings-status { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { .personal-settings-form *, .account-settings-body { scroll-behavior: auto; transition: none !important; } }
.account-hub { position: fixed; inset: auto auto 108px 16px; margin: 0; width: 224px; max-height: calc(100dvh - 160px); overflow: auto; padding: 12px; border: 1px solid #e4dce3; border-radius: 18px; background: #fff; color: #332333; box-shadow: 0 12px 44px #25132324; box-sizing: border-box; }
.account-hub-title { margin: 4px 10px 10px; font-size: 15px; color: #786d79; }
.account-hub-items { display: flex; flex-direction: column; gap: 4px; }
.account-hub-items > button, .account-hub-items > details > summary { display: block; width: 100%; margin: 0; padding: 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; box-sizing: border-box; }
.account-hub-items > button:hover, .account-hub-items summary:hover { background: #faf0f5; }
.account-hub-items .public-profile-launch { order: -3; }
.account-hub-items .personal-settings-trigger { order: -2; }
.account-hub .task-auth-account { margin: 0; width: 100%; }
.account-hub .task-auth-account > div { position: static; min-width: 0; width: auto; box-shadow: none; border: 0; background: #faf7f9; }
.account-hub-anchor { cursor: pointer; }
.account-hub-anchor::after { content: "⌃"; margin-left: auto; color: currentColor; }
.account-hub-mobile { display: none; }
.account-hub-new { position: relative; }
.account-hub-new::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #c33466; box-shadow: 0 0 0 2px #fff; display: inline-block; margin-right: 6px; }
.personal-settings-form textarea { box-sizing: border-box; width: 100%; border: 1px solid #cfc6ce; border-radius: 10px; padding: 12px; font: inherit; resize: vertical; }
/* Profile panels are self-contained across the three independently hosted portals. */
body:has(.profile-panel[open]) { overflow: hidden; }
.profile-panel { --profile-ink: #342433; --profile-muted: #596579; --profile-line: #ece5eb; box-sizing: border-box; position: fixed; inset: 0; margin: auto; width: min(560px, calc(100vw - 40px)); max-width: none; height: min(900px, calc(100dvh - 64px)); max-height: none; padding: 0; border: 1px solid #e9e0e7; border-radius: 24px; color: var(--profile-ink); background: #fff; box-shadow: 0 32px 100px #29172730; overflow: hidden; font-family: inherit; font-size: 17px; font-weight: 500; line-height: 1.75; overflow-wrap: anywhere; }
.profile-panel::backdrop { background: #251c2b66; backdrop-filter: blur(5px); }
.profile-panel *, .profile-panel *::before, .profile-panel *::after { box-sizing: border-box; }
.profile-panel[open].collaboration-dialog, .profile-panel .profile-form { display: flex; flex-direction: column; gap: 0; }
.profile-panel .profile-form { height: 100%; margin: 0; }
.profile-panel[open].collaboration-dialog { height: min(920px, calc(100dvh - 64px)); width: min(620px, calc(100vw - 40px)); }
.profile-panel .profile-panel-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--profile-line); background: #fff; }
.profile-panel h2, .profile-panel h3, .profile-panel h4, .profile-panel p { margin: 0; }
.profile-panel .profile-panel-header h2 { margin-top: 3px; font-size: 24px; font-weight: 700; line-height: 1.35; letter-spacing: -.6px; }
.profile-eyebrow { display: block; color: var(--profile-muted); font-size: 15px; font-weight: 500; letter-spacing: 1.1px; }
.profile-panel button { min-height: 48px; padding: 10px 16px; border: 1px solid #ded2dc; border-radius: 12px; background: #fff; color: #452540; font: inherit; font-size: 17px; font-weight: 650; line-height: 1.5; cursor: pointer; }
.profile-panel button:hover { background: #f8f3f7; border-color: #c1aaba; }
.profile-panel button:disabled { cursor: wait; opacity: .55; }
.profile-panel button.profile-close { display: grid; place-items: center; flex: 0 0 44px; min-height: 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f6f3f5; color: #776574; font-size: 23px; font-weight: 500; }
.profile-panel :focus-visible { outline: 3px solid #ac799a; outline-offset: 3px; }
.profile-panel [hidden] { display: none !important; }
.profile-panel .profile-panel-body { flex: 1 1 auto; min-height: 0; padding: 24px 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #dfd2db transparent; }
.profile-panel .public-profile-preview { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: start; gap: 14px 16px; padding: 20px; border: 1px solid #ede0e8; border-radius: 18px; background: linear-gradient(125deg, #faf2f6, #faf8fc); }
.profile-panel .collaboration-avatar { display: grid; place-items: center; flex: 0 0 64px; width: 60px; height: 60px; margin: 0; border: 3px solid #fff; border-radius: 50%; background: #eadbe6; color: #633e5a; font-size: 27px; font-weight: 600; line-height: 1; box-shadow: 0 3px 12px #53354b0d; }
.profile-card-copy { min-width: 0; }
.profile-page-id { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; margin: 14px 0; border: 1px solid #e5e7eb; border-radius: 12px; background: #f8fafc; font-size: 15px; }
.profile-page-id code { flex: 1 1 200px; min-width: 0; color: #334155; font-size: 15px; font-weight: 600; }
.profile-page-id button { min-height: 44px; padding: 6px 12px; }
.profile-page-id small { flex-basis: 100%; color: #64748b; }
.profile-panel .profile-card-copy h3 { margin: 2px 0 5px; color: var(--profile-ink); font-size: 24px; font-weight: 700; line-height: 1.45; }
.profile-panel .profile-card-copy p { color: #596579; font-size: 17px; line-height: 1.8; }
.profile-panel .profile-visibility { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid #e9dfe6; color: #86617a; font-size: 15px; }
.profile-visibility::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #a27894; vertical-align: 1px; }
.profile-panel .profile-avatar-note { margin: 9px 0 18px; color: var(--profile-muted); font-size: 15px; text-align: center; }
.profile-panel button.profile-view-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 1px solid var(--profile-line); background: #fff; text-align: left; }
.profile-panel .profile-view-link small { display: block; margin-top: 2px; color: var(--profile-muted); font-size: 15px; font-weight: 500; }
.profile-view-link > span:last-child { font-size: 22px; font-weight: 500; }
.profile-panel .profile-fields { display: grid; gap: 18px; margin: 24px 0; }
.profile-panel .profile-fields label { display: grid; gap: 8px; margin: 0; font-size: 17px; font-weight: 600; }
.profile-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-panel .profile-label small { font-size: 15px; font-weight: 500; color: var(--profile-muted); font-variant-numeric: tabular-nums; }
.profile-panel .profile-fields input, .profile-panel .profile-fields textarea { display: block; width: 100%; min-height: 46px; margin: 0; padding: 11px 14px; border: 1px solid #e1d8df; border-radius: 11px; background: #fdfcfd; color: var(--profile-ink); font: inherit; font-size: 17px; font-weight: 500; line-height: 1.75; box-shadow: none; }
.profile-panel .profile-fields textarea { min-height: 92px; resize: vertical; }
.profile-panel .profile-fields input::placeholder, .profile-panel .profile-fields textarea::placeholder { color: #687487; font-weight: 500; }
.profile-panel .profile-fields input:focus, .profile-panel .profile-fields textarea:focus { border-color: #a77b98; background: #fff; outline: 0; box-shadow: 0 0 0 3px #9f719415; }
.profile-panel .profile-fields > small { display: block; margin-top: -9px; color: var(--profile-muted); font-size: 15px; line-height: 1.65; }
.profile-panel .public-profile-consent { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--profile-line); border-radius: 14px; background: #faf8fa; font-weight: 500; cursor: pointer; }
.profile-panel .public-profile-consent strong { display: block; font-size: 17px; font-weight: 600; }
.profile-panel .public-profile-consent small { display: block; margin-top: 3px; color: var(--profile-muted); font-size: 15px; }
.profile-panel .public-profile-consent input { appearance: none; position: relative; flex: 0 0 40px; width: 40px; height: 24px; min-height: 24px; margin: 0; padding: 0; border: 0; border-radius: 20px; background: #d5ccd3; cursor: pointer; transition: background .18s ease; }
.profile-panel .public-profile-consent input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #33213326; transition: transform .18s ease; }
.profile-panel .public-profile-consent input:checked { background: #62405a; }
.profile-panel .public-profile-consent input:checked::after { transform: translateX(16px); }
.profile-panel .profile-privacy-note { margin-top: 14px; color: var(--profile-muted); font-size: 15px; line-height: 1.8; }
.profile-panel .profile-panel-footer { flex: 0 0 auto; display: block; padding: 14px 28px 18px; border-top: 1px solid var(--profile-line); background: #fff; }
.profile-panel-footer > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.profile-panel .profile-panel-footer [role="status"] { margin: 0 0 9px; color: #77566c; font-size: 15px; }
.profile-panel .profile-panel-footer [role="status"]:empty { display: none; }
.profile-panel .profile-panel-footer [data-reload] { padding-inline: 0; border-color: transparent; color: var(--profile-muted); background: transparent; font-weight: 500; }
.profile-panel .profile-panel-footer [data-save] { min-width: 144px; border-color: #452540; background: #452540; color: #fff; box-shadow: 0 3px 8px #45254018; }
.profile-panel .profile-panel-footer [data-save]:hover { background: #603753; }
.profile-panel [data-save] span { margin-left: 20px; font-size: 16px; }
.profile-panel .collaboration-identity { padding: 24px; border: 1px solid #eee0e9; border-radius: 18px; background: linear-gradient(120deg, #faf0f5, #f9f7fc); }
.profile-identity-top { display: flex; align-items: center; gap: 16px; }
.profile-panel .collaboration-identity .collaboration-avatar { width: 72px; height: 72px; flex-basis: 72px; font-size: 32px; }
.profile-panel .collaboration-identity h3 { margin: 6px 0 0; font-size: 25px; }
.profile-role { display: inline-block; padding: 2px 9px; border: 1px solid #e2cfdb; border-radius: 6px; color: #89617b; font-size: 15px; line-height: 1.6; }
.profile-panel .profile-signature { margin-top: 18px; color: #4b586b; font-size: 17px; line-height: 1.85; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.profile-tag { max-width: 100%; padding: 3px 10px; border: 1px solid #eaddE6; border-radius: 7px; background: #ffffffb3; color: #795c70; font-size: 15px; line-height: 1.6; }
.profile-domain-note { display: block; margin-top: 12px; color: var(--profile-muted); font-size: 15px; }
.profile-section { margin-top: 28px; }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.profile-panel .profile-section-heading h3 { font-size: 20px; font-weight: 700; }
.profile-section-heading > span { color: var(--profile-muted); font-size: 15px; }
.profile-panel .collaboration-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 18px 0; border: 1px solid var(--profile-line); border-radius: 14px; background: #fff; }
.collaboration-stats > div { padding: 0 14px; border-right: 1px solid var(--profile-line); }
.collaboration-stats > div:last-child { border-right: 0; }
.collaboration-stats dt { color: var(--profile-muted); font-size: 15px; }
.collaboration-stats dd { margin: 7px 0 0; font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.collaboration-stats dd small { display: inline; margin-left: 4px; color: var(--profile-muted); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.collaboration-stats dd.profile-no-rating { padding-top: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; }
.profile-panel .profile-stat-note { margin-top: 9px; color: var(--profile-muted); font-size: 15px; }
.profile-review-list { display: grid; gap: 12px; }
.profile-panel .collaboration-review { padding: 18px; border: 1px solid var(--profile-line); border-radius: 14px; background: #fff; }
.profile-panel .collaboration-review header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.collaboration-review header strong { font-size: 17px; font-weight: 600; }
.collaboration-review time { display: block; margin-top: 3px; color: var(--profile-muted); font-size: 15px; }
.profile-stars { display: inline-flex; flex-shrink: 0; gap: 2px; color: #b78647; font-size: 15px; letter-spacing: 0; }
.profile-stars .is-empty { color: #e1dbe0; }
.profile-panel .collaboration-review > p { margin-top: 12px; color: #445166; font-size: 17px; line-height: 1.85; white-space: pre-wrap; }
.profile-panel button.profile-report-button { display: block; min-height: 44px; margin: 8px 0 -6px auto; padding: 4px 0 4px 12px; border: 0; background: transparent; color: var(--profile-muted); font-size: 15px; font-weight: 500; }
.profile-panel .profile-empty { padding: 30px 16px; border: 1px dashed #e3d7e0; border-radius: 14px; background: #fcfafc; text-align: center; }
.profile-empty > span { display: block; color: #a28297; font-size: 32px; line-height: 1.2; }
.profile-panel .profile-empty h4 { margin: 12px 0 7px; font-size: 20px; font-weight: 600; }
.profile-panel .profile-empty p, .profile-panel .profile-empty small { color: var(--profile-muted); font-size: 15px; }
.profile-panel .profile-empty small { display: block; margin-top: 4px; }
.profile-panel .profile-view-footer { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 28px; border-top: 1px solid var(--profile-line); color: #596579; font-size: 15px; }
.profile-panel .profile-view-footer button { min-height: 44px; padding: 8px 12px; font-size: 17px; }
.profile-load-state { text-align: center; color: var(--profile-muted); font-size: 15px; }
.profile-load-state:has([role="status"]:empty) { display: none; }
.profile-load-state [role="status"] { padding: 40px 10px 20px; }
.profile-panel .profile-report-form { margin-top: 14px; padding: 14px; border-radius: 10px; background: #f8f4f7; font-size: 15px; }
.profile-report-form textarea { min-height: 100px; }
@media (max-width: 600px) {
  .profile-panel, .profile-panel[open].collaboration-dialog { inset: 0; width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .profile-panel .profile-panel-header { padding: calc(18px + env(safe-area-inset-top)) 20px 16px; }
  .profile-panel .profile-panel-header h2 { font-size: 24px; }
  .profile-panel .profile-panel-body { padding: 20px; }
  .profile-panel .profile-panel-footer { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }
  .profile-panel .profile-view-footer { flex-wrap: wrap; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .profile-panel .public-profile-preview { grid-template-columns: 48px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .profile-panel .public-profile-preview .collaboration-avatar { width: 48px; height: 48px; }
  .profile-panel .profile-fields input, .profile-panel .profile-fields textarea { font-size: 17px; }
  .profile-panel .collaboration-identity { padding: 20px; }
  .profile-panel .collaboration-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .collaboration-stats > div { padding: 16px 18px; }
  .collaboration-stats > div:nth-child(2) { border-right: 0; }
  .collaboration-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--profile-line); }
  .profile-panel .profile-fields { gap: 16px; margin: 22px 0; }
}
@media (prefers-reduced-motion: reduce) { .profile-panel .public-profile-consent input, .profile-panel .public-profile-consent input::after { transition: none; } }
@media (max-width: 900px) {
  .account-hub-mobile { display: block; position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 80; border: 1px solid #dccfdb; border-radius: 24px; padding: 12px 18px; background: #fff; color: #452540; box-shadow: 0 4px 18px #45254018; font: inherit; }
  .account-hub { inset: auto 12px calc(138px + env(safe-area-inset-bottom)) auto; width: min(280px, calc(100vw - 24px)); max-height: calc(100dvh - 180px); }
}

/* Readable, wrapping account controls remain usable with enlarged Chinese text. */
.account-hub { font-size: 17px; font-weight: 600; line-height: 1.7; }
.account-hub-title { color: #596579; font-weight: 500; }
.profile-panel .profile-section-heading, .profile-panel .collaboration-review header { flex-wrap: wrap; }
.profile-panel .profile-panel-header > div, .profile-identity-top > div { min-width: 0; }
.profile-panel .profile-page-id small { font-size: 15px; }
.personal-settings-form input, .personal-settings-form select, .personal-settings-form textarea { min-width: 0; font-size: 17px; font-weight: 500; }
.profile-panel .profile-card-copy p, .profile-panel .profile-signature, .profile-panel .collaboration-review > p { font-weight: 600; }
