/* Original avatar artwork. SVG centers remain clear and decorative bounds stay predictable. */
.av-art { position: absolute; width: 144%; height: 144%; top: -22%; left: -22%; pointer-events: none; overflow: visible; z-index: 2; }
.av-art-decoration { z-index: 3; }
.av.art-framed > .av-img { border-radius: 50%; }
.av.art-framed > .dot { z-index: 5; }
.m-reply .av-art,.vuser .av-art,.ac-item .av-art,.dtile-btn .av-art { display: none; }
.art-twinkle { animation: art-glint 4.5s ease-in-out var(--art-delay,0s) infinite; }
.art-neon-pulse { animation: art-glint 3.8s ease-in-out infinite; }
.art-float { animation: art-hover 5s ease-in-out infinite; }
.art-embers { animation: art-ember 4s ease-in-out infinite; }
.art-snow { animation: art-snow-drift 7s ease-in-out infinite; }
.art-petals { animation: art-petal-drift 7s ease-in-out infinite; }
.art-orbit { transform-origin: 80px 80px; animation: art-orbit 24s linear infinite; }
@keyframes art-glint { 0%,100% { opacity: .45; } 45%,60% { opacity: 1; } }
@keyframes art-hover { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes art-ember { 0%,100% { opacity: .35; transform: translateY(0); } 55% { opacity: .95; transform: translateY(-3px); } }
@keyframes art-snow-drift { 0%,100% { transform: translate(0,-2px); opacity: .45; } 50% { transform: translate(2px,4px); opacity: .9; } }
@keyframes art-petal-drift { 0%,100% { transform: translate(0,-2px); opacity: .55; } 50% { transform: translate(-3px,5px); opacity: 1; } }
@keyframes art-orbit { to { transform: rotate(360deg); } }
.reduce-motion .av-art *, .reduce-motion .av-art { animation: none !important; }
@media(prefers-reduced-motion:reduce) { .av-art *, .av-art { animation: none !important; } }

.community-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 10px; margin: 20px 0; }
.community-stats > div { border: 1px solid var(--line); background: var(--bg-2); border-radius: 7px; padding: 16px; min-width: 0; }
.community-stats b { display: block; font-size: 26px; font-weight: 650; }
.community-stats span { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 5px; }
.community-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.community-section { margin: 26px 0; }
.community-section h3 { margin-bottom: 12px; font-size: 15px; }
.community-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.community-row > b { font-size: 13px; overflow-wrap: anywhere; }
.community-row > .av { flex: none; }
.community-row > span { flex: 1; min-width: 100px; color: var(--text-2); font-size: 12px; overflow-wrap: anywhere; }
.community-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.community-log { border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 13px; overflow-wrap: anywhere; }
.community-log p { color: var(--text-2); font-size: 13px; line-height: 1.7; }
.community-log small { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; }
.community-preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.community-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; margin: 16px 0; }
.community-table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 12px; }
.community-table :is(th,td) { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.community-table th { color: var(--muted); font-weight: 550; }
.community-table td small { display: block; color: var(--muted); margin-top: 5px; }
.community-table td .btn { margin: 3px; }
.community-chart { border: 1px solid var(--line); padding: 18px; border-radius: 7px; margin: 18px 0; }
.community-chart h3 { font-size: 14px; margin: 0 0 16px; }
.community-chart svg { width: 100%; display: block; height: auto; }
.community-chart small { display: block; color: var(--muted); font-size: 10px; }
.community-chart small span { float: right; }
.community-template-view { max-width: 700px; margin: 0 auto; padding: 20px; }
.community-template-view form { margin-top: 22px; }
.community-template-preview { max-height: 300px; overflow-y: auto; padding: 12px 0; }
.community-template-preview > div { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; }
.community-template-preview small { margin-left: auto; color: var(--muted); }
.community-role { display: inline-block; border: 1px solid var(--line); border-radius: 5px; padding: 4px 8px; margin: 3px; font-size: 11px; }
.community-language { color: var(--muted); font-size: 11px; padding: 0 16px 12px; }
.sc-body .community-language { padding: 0 0 12px; }
.community-note-form,.community-template-form { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.community-note-form .btn,.community-template-form .btn { margin-top: 10px; }

.voice-message { width: min(340px,100%); border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg-2); }
.voice-message-label { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.voice-message-label > span { margin-left: auto; color: var(--muted); font-size: 11px; }
.voice-waveform { display: flex; align-items: center; gap: 3px; height: 32px; margin: 12px 0; }
.voice-waveform i { display: block; flex: 1; min-width: 2px; border-radius: 3px; background: var(--blue,#60a5fa); opacity: .75; }
.voice-message audio { display: block; width: 100%; height: 36px; }
.voice-recorder-modal [hidden] { display: none !important; }
.voice-recorder-modal .modal-foot { flex-wrap: wrap; }
.voice-recorder { text-align: center; }
.voice-record-status { color: var(--text-2); font-size: 13px; }
.voice-record-clock { font-variant-numeric: tabular-nums; font-size: 36px; font-weight: 550; margin: 16px 0; }
.voice-record-meter { display: flex; align-items: center; justify-content: center; height: 70px; gap: 5px; padding: 10px; margin-bottom: 18px; }
.voice-record-meter i { display: block; width: 5px; min-height: 4px; border-radius: 3px; background: var(--blue,#60a5fa); height: 4px; transition: height .1s ease; }
.voice-recorder audio { max-width: 100%; }
@media(max-width:760px) { .voice-record-button { display: none !important; } .community-template-view { padding: 10px 0; } .community-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } .community-row .btn { white-space: normal; } }
