/* ---------- tasks-specific ---------- */
.mic-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px 22px; text-align: center; }
.mic-hero .hint { font-size: 14px; opacity: .8; max-width: 280px; line-height: 1.7; }
.mic { position: relative; width: 104px; height: 104px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--on-primary); color: var(--primary); display: flex; align-items: center; justify-content: center; transition: transform .1s; }
.mic svg { width: 40px; height: 40px; }
.mic:active { transform: scale(.96); }
.mic.rec { background: var(--soft2); color: #191919; }
.mic.rec::before, .mic.rec::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--soft2); animation: ring 1.4s ease-out infinite; }
.mic.rec::after { animation-delay: .7s; }
.mic.busy { opacity: .7; pointer-events: none; }
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.rec-time { font-size: 22px; font-weight: 800; letter-spacing: 1px; min-height: 30px; }
.wave { display: flex; gap: 4px; align-items: center; height: 26px; }
.wave i { width: 4px; border-radius: 2px; background: var(--on-primary); opacity: .8; height: 6px; transition: height .08s; }

.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea.in { min-height: 52px; max-height: 160px; resize: none; }
.composer .icon-btn { width: 52px; height: 52px; border-radius: 14px; }

.transcript { font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.transcript::before { content: '«'; } .transcript::after { content: '»'; }

.task { display: flex; flex-direction: column; gap: 8px; }
.task .t-title { font-size: 15.5px; font-weight: 700; line-height: 1.6; }
.task .t-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.task .who { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
.avatar.me { background: var(--soft2); color: #191919; }
.avatar.lg { width: 44px; height: 44px; font-size: 17px; }
.task.late { border-color: var(--soft2); }
.task.draft { border-style: dashed; border-color: var(--field); }
.task .actions { display: flex; gap: 8px; margin-top: 4px; }
.task .actions .btn { height: 44px; font-size: 14px; border-radius: 12px; }

.badge.st-open::before { background: #9A9A9A; }
.badge.st-seen::before, .badge.st-doing::before { background: var(--primary); }
.badge.st-seen, .badge.st-doing { background: var(--ground); color: var(--ink); }
.badge.st-open { background: var(--ground); color: var(--ink-soft); }
.badge.st-canceled { background: var(--ground); color: var(--muted); }
.badge.st-canceled::before { background: var(--field); }
.badge.prio-high { background: var(--primary); color: var(--on-primary); }
.badge.prio-high::before { background: var(--soft2); }

.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; flex: none; }
.search { position: relative; }
.search input.in { padding-right: 44px; height: 48px; font-size: 15px; }
.search svg { position: absolute; right: 14px; top: 14px; width: 20px; height: 20px; color: var(--muted); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; align-items: center; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-weight: 500; }
.report { background: var(--green-bg); color: var(--green-ink); border-radius: 14px; padding: 12px 14px; line-height: 1.9; font-size: 14px; white-space: pre-wrap; }
.report b { color: inherit; }
audio { width: 100%; height: 40px; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.ev { display: flex; gap: 10px; position: relative; padding-bottom: 14px; }
.ev::before { content: ''; position: absolute; right: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.ev:last-child::before { display: none; }
.ev .d { width: 12px; height: 12px; border-radius: 50%; background: var(--field); flex: none; margin-top: 6px; }
.ev.k-done .d { background: var(--green); }
.ev.k-blocked .d, .ev.k-overdue .d, .ev.k-extended .d { background: #E8A317; }
.ev.k-comment .d, .ev.k-created .d, .ev.k-sent .d, .ev.k-seen .d { background: var(--primary); }
.ev .b { flex: 1; min-width: 0; }
.ev .h { font-size: 13.5px; font-weight: 700; }
.ev .h span { font-weight: 400; color: var(--muted); font-size: 12px; margin-right: 6px; }
.ev .x { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; white-space: pre-wrap; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 4px 0; }
.toggle input { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--field); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.toggle input::after { content: ''; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked { background: var(--primary); }
.toggle input:checked::after { transform: translateX(-20px); }
:root[data-palette="dark"] .toggle input:checked::after { background: #111214; }
.toggle .l { font-size: 14px; font-weight: 500; }
.toggle .l small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

.member { display: flex; gap: 12px; align-items: center; }
.member .n { font-size: 15px; font-weight: 700; }
.member .r { font-size: 12.5px; color: var(--muted); }
.member .s { display: flex; gap: 10px; font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.linkbox { background: var(--ground); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; direction: ltr; text-align: left; word-break: break-all; font-family: ui-monospace, monospace; }
.steps { margin: 0; padding: 0 18px 0 0; line-height: 2; font-size: 13.5px; color: var(--ink-soft); }
.set-sec { display: flex; flex-direction: column; gap: 12px; }
.set-sec h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.set-sec h3 .badge { font-size: 11px; }
.grid2 label.f input.in, .grid2 label.f select.in { height: 48px; font-size: 15px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-x { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--ground); font-size: 13px; }
.tag-x button { border: 0; background: none; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.tag-x button svg { width: 14px; height: 14px; }
pre.digest { white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.9; background: var(--ground); padding: 12px; border-radius: 12px; margin: 0; }
.sticky-actions { position: sticky; bottom: -20px; background: var(--surface); padding: 12px 0 4px; display: flex; gap: 8px; }
.sticky-actions .btn { height: 50px; font-size: 15px; }
.drafts-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drafts-head .btn { width: auto; padding: 0 16px; height: 40px; font-size: 14px; border-radius: 12px; }
.ic { width: 18px; height: 18px; flex: none; }
.btn .ic { width: 20px; height: 20px; }
.hidden { display: none !important; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.note { font-size: 13px; line-height: 1.8; }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-soft); }
.due.late { color: var(--warn-ink); font-weight: 700; }

bdi { unicode-bidi: isolate; }
.task .actions .btn.compact { width: 52px; flex: none; padding: 0; }
.mic-hero::after { left: auto; right: 26px; bottom: auto; top: 26px; }
dl.kv { margin: 0; }
