/* Dochar 4.5 — private chat media, optional sound and passkeys. */
.passkey-entry{margin-top:9px}.auto-feedback-note{padding:12px 14px;border:1px solid var(--line);background:var(--green-light);color:var(--green);font-size:13px;border-radius:13px;margin:12px 0;line-height:1.9}
.game-volume{width:100%;accent-color:var(--green);height:38px;margin:4px 0 12px;cursor:pointer}.profile-passkeys{margin-top:15px}.passkey-list{margin:20px 0}.passkey-row{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.passkey-row>div{min-width:0}.passkey-row strong{font-size:14px;overflow-wrap:anywhere}.passkey-row small{display:block;color:var(--muted);font-size:11px;line-height:1.8;margin-top:5px}.passkey-dialog .account-input{margin-bottom:15px}
.media-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.media-action{display:flex;align-items:center;justify-content:center;gap:7px;min-width:90px;font-size:12px;padding:9px 13px}.media-action svg{color:var(--green)}.media-note{font-size:11px;color:var(--muted);line-height:1.9;margin:8px 0 0;overflow-wrap:anywhere}.media-draft,.voice-recording{margin-top:14px;border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--panel-quiet)}.media-draft h3{font-size:13px;color:var(--ink);margin:0 0 10px}.media-draft img{display:block;max-width:100%;max-height:210px;border-radius:10px;object-fit:contain;margin:auto}.media-draft audio{display:block;width:100%;height:44px}.media-draft .v4-actions,.voice-recording .v4-actions{margin-top:12px;gap:8px;flex-wrap:wrap}.media-draft button,.voice-recording button{font-size:12px}.media-draft progress{display:block;width:100%;height:6px;margin-top:13px;accent-color:var(--green)}
.recording-time{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}.recording-time output{margin-inline-start:auto;color:var(--gold);font-variant-numeric:tabular-nums}.recording-dot{display:block;width:8px;height:8px;border-radius:50%;background:#f18a7e}.voice-live-wave{display:flex;align-items:center;justify-content:center;gap:5px;height:48px;margin-block:8px}.voice-live-wave i{width:4px;height:12px;border-radius:4px;background:var(--green);animation:voice-live .8s ease-in-out infinite alternate}.voice-live-wave i:nth-child(2n){animation-delay:-.27s}.voice-live-wave i:nth-child(3n){animation-delay:-.51s}.voice-live-wave i:nth-child(4n){animation-delay:-.12s}@keyframes voice-live{to{transform:scaleY(2.7);opacity:.45}}
.chat-bubble.chat-media{padding:10px;max-width:100%;overflow:hidden}.chat-image{display:block;width:100%;min-width:140px;background:transparent;border:0;padding:0;color:var(--ink);cursor:pointer;text-align:center}.chat-image img{display:block;width:100%;max-height:260px;object-fit:contain;border-radius:9px;background:var(--panel-quiet)}.chat-image img:not([src]){height:90px;background:var(--panel-quiet)}.chat-image .media-note{display:block;margin-top:6px}.image-viewer{width:min(900px,94vw);max-height:92svh}.image-viewer>img{display:block;max-width:100%;max-height:70svh;object-fit:contain;border-radius:10px;margin:auto}.chat-bubble-wrap{min-width:0}.voice-player{display:flex;align-items:center;gap:10px;width:220px;max-width:100%;padding:5px 1px}.voice-play{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;border:1px solid var(--green);background:var(--green-light);color:var(--green);font-size:18px;cursor:pointer}.voice-player>div{min-width:0;flex:1}.voice-player input{display:block;accent-color:var(--green);width:100%;height:25px;margin:0}.voice-player output{display:block;font-size:10px;color:var(--muted);text-align:left;line-height:1.7}.voice-status{display:block;color:var(--muted);font-size:10px;line-height:1.8;overflow-wrap:anywhere}.voice-player audio{display:none}.media-actions button:disabled{opacity:.48}
.media-draft[hidden],.voice-recording[hidden],.media-draft img[hidden],.media-draft audio[hidden],.media-draft progress[hidden]{display:none!important}
html[data-motion=reduced] .voice-live-wave i{animation:none;transform:none}html[data-motion=reduced] .voice-live-wave i:nth-child(2n){height:25px}html[data-motion=reduced] .voice-live-wave i:nth-child(3n){height:36px}
@media(prefers-reduced-motion:reduce){.voice-live-wave i{animation:none}.voice-live-wave i:nth-child(2n){height:25px}.voice-live-wave i:nth-child(3n){height:36px}}
@media(max-width:460px){.media-actions{gap:8px}.media-action{flex:1}.voice-player{width:210px}.passkey-row{gap:9px}.image-viewer{padding:16px}.media-draft .v4-actions button{flex:1}}
