/* voice.css - the voice recorder and the "answering" sign (Danny 03/12/2026). Tokens come from kit.css / style.css. */

/* -- the microphone ---------------------------------------------------------------------------------------- */
.fx-mic::before{content:none!important}
.fx-mic{display:inline-flex;align-items:center;justify-content:center;color:var(--on-accent)!important;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:transform .18s var(--ease)}
.fx-mic.rec{transform:scale(1.22);box-shadow:none!important}
.fx-mic[hidden]{display:none}

/* -- the bar that covers the text box while she records ---------------------------------------------------- */
.fx-composer{position:sticky}
.fx-composer.vr-on textarea,.fx-composer.vr-on .fx-main{visibility:hidden}
.vr{position:absolute;left:0;right:64px;top:16px;bottom:0;display:flex;align-items:center;gap:10px;padding:0 6px 0 14px;background:var(--raised);border:1px solid var(--line);border-radius:26px;color:var(--ink);min-height:52px;z-index:2}
.vr.locked{right:0;padding-left:6px}
.vr[hidden],.vr [hidden],.vr-lock[hidden]{display:none!important}
.vr button{flex:none;width:44px;height:44px;min-height:44px!important;padding:0!important;margin:0!important;border-radius:50%!important;display:inline-flex;align-items:center;justify-content:center;border:0!important;background:transparent;color:var(--muted)}
.vr .vr-send{background:var(--accent)!important;color:var(--on-accent)!important}
.vr .vr-trash:hover{color:var(--ink)}
.vr-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--accent);animation:vr-pulse 1.2s ease-in-out infinite}
.vr-time{flex:none;font:600 16px/1 var(--f-body);font-variant-numeric:tabular-nums;min-width:38px}
.vr-wave{flex:1 1 40px;min-width:0;height:30px;color:var(--ink)}
.vr-slide{flex:none;display:inline-flex;align-items:center;gap:2px;color:var(--muted);font:500 14px/1 var(--f-body);white-space:nowrap}
.vr-slide svg{width:16px;height:16px}
.vr-lock{position:absolute;right:4px;bottom:calc(100% + 10px);width:44px;height:68px;border-radius:22px;border:1px solid var(--line);background:var(--raised);color:var(--muted);display:flex;align-items:flex-start;justify-content:center;padding-top:10px;overflow:hidden;transform:translateY(calc(var(--p,0) * -8px));z-index:2}
.vr-lock::after{content:"";position:absolute;left:0;right:0;bottom:0;height:calc(var(--p,0) * 100%);background:var(--accent);opacity:.9}
.vr-lock svg{position:relative;z-index:1;width:20px;height:20px;color:var(--ink)}
.vr-tip{position:absolute;right:0;bottom:calc(100% + 8px);padding:8px 12px;border-radius:12px;background:var(--ink);color:var(--bg);font:500 14px/1.3 var(--f-body);z-index:2}
.vr-tip[hidden]{display:none}
.vr-said,.wt-said{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@keyframes vr-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}

/* -- the note she sent: a still wave and its length --------------------------------------------------------- */
.fx-msg.me.fx-vnote{min-width:200px}
.vn{display:flex;align-items:center;gap:10px}
.vn svg{flex:none;width:18px;height:18px}
.vn-wave{flex:1 1 auto;display:flex;align-items:center;gap:2px;height:28px;min-width:0;overflow:hidden}
.vn-wave span{flex:0 0 3px;min-height:3px;border-radius:2px;background:currentColor;opacity:.85}
.vn-time{flex:none;font:600 14px/1 var(--f-body);font-variant-numeric:tabular-nums}
.vn-word{flex:1 1 auto}

/* -- "answering" ---------------------------------------------------------------------------------------------
   The resting drawing (what "reduce motion" keeps, the page's own rule switches every animation off) is the whole
   picture: the words written and struck, the bars at their heights. The movement only plays towards it. */
.wt{align-self:flex-start;display:inline-flex;align-items:center;padding:16px 18px;border:1px solid var(--line);background:var(--raised);border-radius:18px;border-bottom-left-radius:6px;min-height:48px}
.wt-art{position:relative;display:inline-flex;align-items:center;gap:6px;height:16px}
.wt-word{display:block;height:6px;border-radius:3px;background:var(--faint);transform-origin:left center}
.wt-word:nth-child(1){width:30px}.wt-word:nth-child(2){width:18px}.wt-word:nth-child(3){width:38px}
.wt-bar{position:absolute;left:-5px;right:-5px;top:50%;height:4px;margin-top:-2px;border-radius:1px;background:var(--accent);transform:rotate(-3deg);transform-origin:left center}
.wt-strike .wt-word{animation:wt-write 2.6s var(--ease) infinite}
.wt-strike .wt-word:nth-child(2){animation-delay:.22s}
.wt-strike .wt-word:nth-child(3){animation-delay:.44s}
.wt-strike .wt-bar{animation:wt-strike 2.6s var(--ease) infinite}
@keyframes wt-write{0%{transform:scaleX(0);opacity:0}14%,84%{transform:scaleX(1);opacity:1}100%{transform:scaleX(1);opacity:0}}
@keyframes wt-strike{0%,42%{transform:rotate(-3deg) scaleX(0);opacity:1}62%,84%{transform:rotate(-3deg) scaleX(1);opacity:1}100%{transform:rotate(-3deg) scaleX(1);opacity:0}}
.wt-wave .wt-art{gap:4px;height:22px}
.wt-beat{display:block;width:4px;border-radius:2px;background:var(--accent);height:10px;transform-origin:center}
.wt-beat:nth-child(2){height:18px}.wt-beat:nth-child(3){height:22px}.wt-beat:nth-child(4){height:14px}.wt-beat:nth-child(5){height:8px}
.wt-wave .wt-beat{animation:wt-beat 1.1s ease-in-out infinite}
.wt-wave .wt-beat:nth-child(2){animation-delay:.12s}.wt-wave .wt-beat:nth-child(3){animation-delay:.24s}
.wt-wave .wt-beat:nth-child(4){animation-delay:.36s}.wt-wave .wt-beat:nth-child(5){animation-delay:.48s}
@keyframes wt-beat{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
@media (prefers-reduced-motion:reduce){.vr-dot,.wt-word,.wt-bar,.wt-beat{animation:none!important}.fx-mic{transition:none}}
