/* Public profiles share the site's existing paper, ink and green palette. */
.user-profile { max-width: 960px; min-width: 0; margin-inline: auto; color: var(--ink); overflow-wrap: anywhere; }
.user-profile [hidden] { display: none !important; }
.user-profile .up-header { display: flex; align-items: flex-start; gap: 20px; padding-bottom: 28px; }
.user-profile .up-avatar { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; color: var(--green-deep); background: var(--mint-soft); font-size: 1.5rem; }
.user-profile .up-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-profile .up-identity { min-width: 0; }
.user-profile .up-name { margin: 0 0 10px; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.4; }
.user-profile .up-bio, .user-profile .up-body { max-width: 70ch; margin: 10px 0 18px; white-space: pre-wrap; line-height: 1.8; }
.user-profile .up-bio, .user-profile .up-muted { color: var(--muted); }
.user-profile .up-admin:empty { display: none; }
.user-profile .up-admin { padding: 24px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.user-profile .up-heading { margin: 0 0 12px; font-size: 1.15rem; }
.user-profile .up-id { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.user-profile .up-muted, .user-profile .up-admin-note { margin: 8px 0; font-size: .9rem; line-height: 1.7; }
.user-profile .up-admin-note { color: var(--green-deep); }
.user-profile .up-form { display: grid; gap: 10px; max-width: 640px; margin-top: 22px; }
.user-profile .up-form label { font-weight: 650; }
.user-profile .up-form input, .user-profile .up-form textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: var(--paper); font: inherit; font-size: 1rem; caret-color: var(--green); }
.user-profile .up-form input { max-width: 240px; }
.user-profile .up-form textarea { resize: vertical; }
.user-profile .up-form :is(input, textarea)::placeholder { color: var(--muted); }
.user-profile .up-form .up-button { justify-self: start; }
.user-profile .up-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px; border-block: 1px solid var(--line); }
.user-profile .up-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; max-width: 100%; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--green-deep); background: var(--paper); font: inherit; font-weight: 650; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.user-profile .up-button:hover:not(:disabled) { background: var(--mint-soft); border-color: var(--green); }
.user-profile .up-button[aria-pressed="true"] { color: var(--paper); background: var(--green-deep); border-color: var(--green-deep); }
.user-profile .up-button-danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger); }
.user-profile .up-button-danger:hover:not(:disabled) { color: var(--paper); background: var(--danger); }
.user-profile .up-button:disabled { cursor: default; opacity: .55; }
.user-profile :is(button, input, textarea):focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.user-profile .up-status { min-height: 1.7em; margin: 20px 0; color: var(--muted); }
.user-profile .up-error { color: var(--danger); }
.user-profile .up-error:empty { display: none; }
.user-profile .up-list { margin: 0; padding: 0; list-style: none; }
.user-profile .up-row { padding-block: 24px; border-bottom: 1px solid var(--line); }
.user-profile .up-row-title { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.6; }
.user-profile .up-score { color: var(--green-deep); font-weight: 650; }
.user-profile .up-empty { padding: 32px 0; color: var(--muted); }
.user-profile .up-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.user-profile .up-confirm { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 24px; border: 0; border-radius: 14px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.user-profile .up-confirm::backdrop { background: rgba(18, 35, 29, .58); }
.user-profile .up-confirm-detail { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.user-profile .up-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 480px) {
  .user-profile .up-header { gap: 14px; }
  .user-profile .up-avatar { flex-basis: 48px; width: 48px; height: 48px; }
  .user-profile .up-admin { padding: 18px 14px; }
  .user-profile .up-tabs .up-button { flex: 1 1 88px; padding-inline: 8px; }
  .user-profile .up-form .up-button { width: 100%; }
  .user-profile .up-confirm-actions .up-button { flex: 1 1 120px; }
}
