/* ================= Кружки, отложенные, опросы ================= */
/* Запись кружка */
#ox-note-overlay { z-index:650; background:rgba(5,4,12,.86); }
.ox-note-rec { display:flex; flex-direction:column; align-items:center; gap:14px; padding:20px; color:#fff; }
.ox-note-frame { position:relative; width:min(78vw, 340px); aspect-ratio:1; }
#ox-note-preview { width:100%; height:100%; border-radius:50%; object-fit:cover; transform:scaleX(-1); background:#000; }
#ox-note-preview.back { transform:none; }
.ox-note-ring { position:absolute; inset:-8px; width:calc(100% + 16px); height:calc(100% + 16px); transform:rotate(-90deg); pointer-events:none; }
.ox-note-ring circle { fill:none; stroke:#FF3B5C; stroke-width:2.2; stroke-dasharray:1; stroke-dashoffset:1; stroke-linecap:round; transition:stroke-dashoffset .2s linear; }
.ox-note-time { display:flex; align-items:center; gap:8px; font-weight:800; font-size:18px; font-variant-numeric:tabular-nums; }
.ox-note-dot { width:10px; height:10px; border-radius:50%; background:#FF3B5C; animation:vrLive 1.2s infinite; }
.ox-note-hint { font-size:13px; opacity:.7; text-align:center; }
.ox-note-btns { display:flex; gap:28px; align-items:center; margin-top:6px; }
.ox-note-btn { width:56px; height:56px; border-radius:50%; background:rgba(255,255,255,.16); color:#fff; font-size:22px; display:inline-flex; align-items:center; justify-content:center; }
.ox-note-btn.send { width:72px; height:72px; background:var(--grad); box-shadow:0 10px 30px rgba(123,92,255,.5); }
.ox-note-btn.send svg { width:30px; height:30px; }

/* Кружок в переписке */
.e2e-att.note { background:none !important; padding:0 !important; }
.msg:has(.e2e-att.note) { background:transparent !important; box-shadow:none !important; padding:0 !important; border:none !important; }
.ox-note { position:relative; width:min(62vw, 240px); aspect-ratio:1; border-radius:50%; overflow:hidden; cursor:pointer; background:#111; }
.ox-note video { width:100%; height:100%; object-fit:cover; display:block; }
.ox-note-prog { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); pointer-events:none; opacity:0; }
.ox-note.loud .ox-note-prog { opacity:1; }
.ox-note-prog circle { fill:none; stroke:#fff; stroke-width:3; stroke-dasharray:1; stroke-dashoffset:1; stroke-linecap:round; }
.ox-note-badge { position:absolute; left:50%; bottom:10px; transform:translateX(-50%); background:rgba(0,0,0,.5); color:#fff; font-size:12px; font-weight:700; padding:3px 9px; border-radius:10px; font-variant-numeric:tabular-nums; }

/* Отложенные */
.ox-sched-modal { width:400px; max-width:calc(100vw - 24px); max-height:86vh; overflow-y:auto; }
.ox-sched-preview { background:var(--panel2); border-radius:14px; padding:10px 12px; font-size:14.5px; max-height:110px; overflow:auto; white-space:pre-wrap; word-break:break-word; margin-bottom:12px; }
.ox-sched-chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.ox-sched-chips button { padding:8px 12px; border-radius:14px; background:var(--panel2); font-weight:700; font-size:13px; color:var(--text); border:1px solid transparent; }
.ox-sched-chips button.sel { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.ox-sched-label { display:block; font-size:12.5px; font-weight:800; color:var(--muted); margin:0 4px 6px; }
#ox-sched-at { color-scheme:light dark; }
.ox-sched-note { font-size:12px; color:var(--muted); margin:10px 2px 0; line-height:1.45; }
#ox-sched-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 10px 6px; padding:8px 14px; border-radius:14px; background:var(--accent-soft); color:var(--accent); font-weight:700; font-size:13.5px; cursor:pointer; }
:root[data-theme="dark"] #ox-sched-bar { color:#C9B8FF; }
.ox-sched-item { border:1px solid var(--border); border-radius:14px; padding:10px 12px; margin-bottom:8px; }
.ox-sched-when { font-size:12.5px; font-weight:800; color:var(--accent); margin-bottom:4px; }
.ox-sched-text { font-size:14px; white-space:pre-wrap; word-break:break-word; margin-bottom:8px; }
.ox-sched-actions { display:flex; gap:6px; }

/* Опросы: создание */
.ox-poll-modal { width:420px; max-width:calc(100vw - 24px); max-height:88vh; overflow-y:auto; }
.ox-poll-opt-row { display:flex; gap:6px; margin-bottom:6px; }
.ox-poll-opt-row input { flex:1; }
.ox-poll-opt-row button { width:36px; color:var(--muted); border-radius:10px; flex-shrink:0; }
.ox-poll-addbtn { color:var(--accent); font-weight:800; padding:8px 4px; font-size:14px; }
.ox-poll-toggle { display:flex; align-items:center; gap:10px; padding:8px 4px; font-size:14.5px; cursor:pointer; }
.ox-poll-toggle input { width:20px; height:20px; accent-color:var(--accent); }

/* Опросы: карточка */
.msg.has-poll { min-width:min(78vw, 300px); }
.ox-poll { display:flex; flex-direction:column; gap:6px; min-width:min(70vw, 270px); }
.ox-poll-q { font-weight:800; font-size:15.5px; line-height:1.3; word-break:break-word; }
.ox-poll-kind { font-size:12px; opacity:.7; margin-top:-2px; }
.ox-poll-list { display:flex; flex-direction:column; gap:6px; margin-top:2px; }
.ox-poll-opt { position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:8px; width:100%; padding:9px 11px; border-radius:12px; text-align:left; color:inherit;
  background:color-mix(in srgb, currentColor 9%, transparent); overflow:hidden; font-size:14px; }
.ox-poll-opt:not(.res):active { transform:scale(.98); }
.ox-poll-opt.sel { box-shadow:inset 0 0 0 2px currentColor; }
.ox-poll-bar { position:absolute; left:0; top:0; bottom:0; background:color-mix(in srgb, currentColor 16%, transparent); transition:width .45s cubic-bezier(.2,.8,.2,1); z-index:0; }
.ox-poll-opt.mine .ox-poll-bar { background:color-mix(in srgb, currentColor 26%, transparent); }
.ox-poll-opt > *:not(.ox-poll-bar) { position:relative; z-index:1; }
.ox-poll-mark { width:16px; text-align:center; font-weight:900; opacity:.85; }
.ox-poll-text { flex:1; min-width:0; word-break:break-word; font-weight:600; }
.ox-poll-pct { font-weight:800; font-variant-numeric:tabular-nums; }
.ox-poll-who { flex-basis:100%; font-size:11.5px; opacity:.7; padding-left:24px; }
.ox-poll-foot { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:2px; }
.ox-poll-total { font-size:12.5px; opacity:.75; flex:1 0 100%; }
.ox-poll-act { padding:6px 12px; border-radius:10px; font-size:13px; font-weight:800; background:color-mix(in srgb, currentColor 16%, transparent); color:inherit; }
.ox-poll-act.ghost { background:transparent; opacity:.8; }
.ox-poll-act:disabled { opacity:.4; }
/* Кружок со звуком становится крупнее, как в Telegram */
.ox-note { transition:width .22s ease; }
.ox-note.loud { width:min(78vw, 300px); }
.ox-note.paused::after { content:""; position:absolute; left:50%; top:50%; width:54px; height:54px; margin:-27px 0 0 -27px; border-radius:50%; background:rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l11-6.5a1 1 0 0 0 0-1.72l-11-6.5A1 1 0 0 0 8 5.5Z'/%3E%3C/svg%3E") center/26px no-repeat; }
