/* Identity and reputation are independent, with one quiet geometric language. */
.user-avatar,.person-avatar.user-avatar,.account-avatar,.mobile-profile-avatar,.profile-avatar,.embed-avatar,.avatar-current img,.avatar-settings-link img,.avatar-crop-preview {border-radius:20% !important;overflow:hidden;background:var(--surface-2,#232a33);box-shadow:none !important}
.user-avatar img,.person-avatar img,.account-avatar img,.mobile-profile-avatar img,.profile-avatar img,.embed-avatar img {width:100%;height:100%;object-fit:cover;border-radius:inherit}
.avatar-variant-official img {object-fit:contain}
.muxi-reputation {display:inline-flex;align-items:center;gap:5px;padding:2px 6px;min-height:22px;border:1px solid var(--border,#737e8c);border-radius:5px;background:var(--surface-2,#232a33);color:var(--text,#e7ebf0);font-size:12px;font-variant-numeric:tabular-nums;font-weight:500;line-height:1.3;white-space:nowrap}
.muxi-level-table table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.muxi-level-table td,.muxi-level-table th {text-align:left;padding:10px;border-bottom:1px solid var(--border)}
.muxi-level-table th img {vertical-align:middle;margin-right:12px}
.muxi-level-table .is-current {background:var(--surface-2)}
.muxi-overview .muxi-overview-art {width:80px;height:40px;filter:none}
.muxi-summary-level img {width:64px;height:32px}
.avatar-editor{padding:24px;min-width:0}
.avatar-editor form{display:grid;gap:12px;max-width:520px;margin-block:20px}
.avatar-editor input[type=range]{width:100%;min-height:44px}
.avatar-editor input[type=file]{max-width:100%;min-height:44px}
.avatar-editor-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.avatar-crop-preview{max-width:100%;width:256px;height:auto}
.avatar-crop-preview[hidden]{display:none}
.avatar-editor-actions a,.avatar-editor button{min-height:44px}
.avatar-settings-link{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.profile-reputation-help{color:var(--muted);font-size:13px;padding-inline:16px}
@media(min-width:768px){.profile-v3 .profile-avatar{width:96px;height:96px}}
@media(max-width:767px){.profile-v3 .profile-avatar{width:72px;height:72px}.avatar-editor{padding:16px}}
.profile-stat>.muxi-reputation{flex-direction:row;flex-shrink:0}
@media(min-width:768px){.profile-v3 .profile-hero{grid-template-columns:96px minmax(0,1fr) auto}}
@media(max-width:680px){.profile-v3 .profile-hero{grid-template-columns:72px minmax(0,1fr)}}


/* Focused avatar editor: compact on mobile, direct manipulation instead of three raw sliders. */
.avatar-editor-page .avatar-editor{width:100%;max-width:820px;margin:0 auto;padding:28px 22px 150px}
.avatar-editor-page .avatar-editor-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:4px 0 22px;border-bottom:1px solid var(--border)}
.avatar-editor-page .avatar-editor-copy{min-width:0}
.avatar-editor-page .avatar-editor-back{display:inline-flex;align-items:center;min-height:34px;margin-bottom:10px;color:var(--muted);font-size:12px;font-weight:700}
.avatar-editor-page .avatar-editor-back:hover{color:var(--text)}
.avatar-editor-page .avatar-editor h1{margin:0;font-size:32px;line-height:1.08;letter-spacing:-.7px}
.avatar-editor-page .avatar-editor-copy>p{max-width:580px;margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.avatar-editor-page .avatar-current{flex:0 0 88px;width:88px;height:88px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--border);border-radius:20px;background:var(--surface-2)}
.avatar-editor-page .avatar-current img{width:100%;height:100%;display:block;object-fit:cover}
.avatar-editor-page .avatar-editor-status{max-width:760px;margin:14px 0 0;padding:11px 13px;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--muted);font-size:12px}
.avatar-editor-page .avatar-editor-form{display:grid;gap:18px;max-width:none;margin:22px 0 0;padding:20px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}
.avatar-editor-page .avatar-file-field{display:grid;gap:9px}
.avatar-editor-page .avatar-file-row{display:flex;align-items:center;gap:12px;min-width:0}
.avatar-editor-page .avatar-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.avatar-editor-page .avatar-file-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border:1px solid color-mix(in srgb,var(--accent) 44%,var(--border));border-radius:11px;background:color-mix(in srgb,var(--accent) 9%,var(--bg));color:var(--text);font-size:13px;font-weight:800;cursor:pointer}
.avatar-editor-page .avatar-file-button:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,var(--bg))}
.avatar-editor-page .avatar-file-input:focus-visible+.avatar-file-button{outline:2px solid var(--accent-2);outline-offset:2px}
.avatar-editor-page .avatar-file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}
.avatar-editor-page .avatar-file-name:empty{display:none}
.avatar-editor-page .avatar-limits{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.avatar-editor-page .avatar-crop-workspace{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:22px;align-items:center;padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--bg)}
.avatar-editor-page .avatar-crop-workspace[hidden]{display:none}
.avatar-editor-page .avatar-preview-shell{display:grid;place-items:center;width:100%;padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--surface-2)}
.avatar-editor-page .avatar-crop-preview{display:block;width:min(100%,276px);height:auto;aspect-ratio:1;border:1px solid color-mix(in srgb,var(--accent) 28%,var(--border));border-radius:20%!important;background:var(--surface-2);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.avatar-editor-page .avatar-crop-preview.is-dragging{cursor:grabbing}
.avatar-editor-page .avatar-crop-preview:focus-visible{outline:2px solid var(--accent-2);outline-offset:3px}
.avatar-editor-page .avatar-crop-controls{display:grid;gap:18px;align-content:center;min-width:0}
.avatar-editor-page .avatar-crop-help{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.avatar-editor-page .avatar-zoom-control{display:grid;gap:9px}
.avatar-editor-page .avatar-zoom-control label{font-size:12px;font-weight:800}
.avatar-editor-page .avatar-zoom-control input[type=range]{width:100%;min-height:30px;margin:0;accent-color:var(--accent);cursor:pointer}
.avatar-editor-page .avatar-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:2px}
.avatar-editor-page .avatar-editor-actions .primary,.avatar-editor-page .avatar-editor-actions .account-button{min-height:44px}
.avatar-editor-page .avatar-editor-actions .primary:disabled{opacity:.48;cursor:not-allowed}
.avatar-editor-page .avatar-remove-form{max-width:none;margin:12px 0 0}
@media(max-width:680px){
  .avatar-editor-page .avatar-editor{padding:22px 14px calc(170px + env(safe-area-inset-bottom))}
  .avatar-editor-page .avatar-editor-hero{align-items:flex-start;gap:14px;padding-bottom:18px}
  .avatar-editor-page .avatar-editor h1{font-size:28px}
  .avatar-editor-page .avatar-editor-copy>p{font-size:12.5px}
  .avatar-editor-page .avatar-current{flex-basis:72px;width:72px;height:72px;border-radius:16px}
  .avatar-editor-page .avatar-editor-form{gap:15px;margin-top:16px;padding:14px;border-radius:15px}
  .avatar-editor-page .avatar-file-row{align-items:stretch;flex-direction:column}
  .avatar-editor-page .avatar-file-button{width:100%}
  .avatar-editor-page .avatar-file-name{text-align:center}
  .avatar-editor-page .avatar-crop-workspace{grid-template-columns:1fr;gap:15px;padding:13px}
  .avatar-editor-page .avatar-preview-shell{width:min(100%,340px);margin-inline:auto;padding:10px}
  .avatar-editor-page .avatar-crop-preview{width:min(100%,300px)}
  .avatar-editor-page .avatar-editor-actions{align-items:stretch;flex-direction:column}
  .avatar-editor-page .avatar-editor-actions .primary,.avatar-editor-page .avatar-editor-actions .account-button{width:100%;justify-content:center}
}

/* Post-card metadata: spend the full horizontal row on identity.
   Timestamps live below the action buttons, so long community/user names are
   only ellipsized when the card is genuinely out of room. */
.post-card .meta{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:5px;
  width:100%;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
}
.home .post-card .meta{padding-right:0}
.post-card .meta>.post-community{
  flex:0 2 auto;
  min-width:0;
  max-width:none;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.post-card .meta>.meta-separator{flex:0 0 auto}
.post-card .meta>.author-identity{
  flex:1 1 auto;
  min-width:0;
  max-width:none;
  overflow:hidden;
}
.post-card .meta .author-identity>.user-avatar,
.post-card .meta .author-identity>.muxi-reputation,
.post-card .meta .author-identity>.official-account-badge{flex:0 0 auto}
.post-card .meta .author-identity .identity-copy{
  display:flex;
  align-items:baseline;
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  gap:5px;
}
.post-card .meta .author-identity .identity-name,
.post-card .meta .author-identity .identity-handle{
  display:block;
  min-width:0;
  max-width:none;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.post-card .meta .author-identity .identity-name{flex:0 1 auto}
.post-card .meta .author-identity .identity-handle{flex:1 3 auto}
.post-card .meta>.post-rating-separator,
.post-card .meta>.eyebrow{flex:0 0 auto}
.post-card .post-temporal-meta{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
  min-width:0;
  margin:5px 0 0;
  color:var(--muted,#9EABB8);
  font-size:11px;
  line-height:1.25;
  white-space:nowrap;
}
.post-card .post-temporal-meta .edited-marker{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-width:0;
}
.post-card .post-temporal-meta .meta-separator{opacity:.72}
.post-card .post-temporal-meta time{color:inherit}
@media(max-width:680px){
  .post-card .meta{gap:4px}
  .post-card .meta .author-identity{gap:4px}
  .post-card .meta .author-identity .identity-copy{gap:4px}
  .post-card .post-temporal-meta{font-size:10.5px;margin:4px 0 0}
}
