/* 正式版新增：浮動麥克風、錄音筆記、儲存狀態 */
#yqMic{position:fixed;right:max(18px,env(safe-area-inset-right,0px));bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:18;width:58px;height:58px;border-radius:50%;border:0;background:var(--red);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 22px rgba(201,56,46,.35);transition:transform .15s}
#yqMic:hover{transform:translateY(-2px)}
#yqMic:active{transform:scale(.94)}
@media (max-width:720px){#yqMic{bottom:calc(78px + env(safe-area-inset-bottom,0px));width:54px;height:54px}}
body:has(#login:not([hidden])) #yqMic{display:none}
#yqVoice{z-index:25}
.yqv{max-width:640px;margin:0 auto;max-height:92dvh;overflow-y:auto;gap:12px}
@media (min-width:721px){#yqVoice{align-items:center;justify-content:center;padding:16px}.yqv{border-radius:16px}}
.yqv-h{display:flex;justify-content:space-between;align-items:center}
.yqv-h h2{margin:0}
.yqv-tip{margin:0;font-size:.85rem}
.yqv-rec{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.yqv-big{display:inline-flex;align-items:center;gap:10px;border:0;border-radius:999px;padding:12px 22px;background:var(--blue);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.yqv-big .dot{width:12px;height:12px;border-radius:50%;background:#fff}
.yqv-big.on{background:var(--red)}
.yqv-big.on .dot{animation:yqpulse 1s ease-in-out infinite}
@keyframes yqpulse{50%{transform:scale(.55);opacity:.6}}
@media (prefers-reduced-motion:reduce){.yqv-big.on .dot{animation:none}}
.yqv-l{display:flex;flex-direction:column;gap:6px;font-size:.85rem;color:var(--muted)}
.yqv-l textarea,.yqv-l input{color:var(--fg);font-size:1rem}
.yqv-cust{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:34px}
.yqv-res{display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:12px;background:var(--sunk)}
.yqv-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.yqv-row label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--muted)}
.yqv-todo{display:grid;grid-template-columns:auto minmax(0,1fr) 150px;gap:8px;align-items:center}
.yqv-todo input[type=checkbox]{width:18px;height:18px}
@media (max-width:480px){.yqv-todo{grid-template-columns:auto minmax(0,1fr)}.yqv-todo input[type=date]{grid-column:2}}
.yqv-btns{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.yqv-btns .btn{min-height:44px}
#yqSave{position:fixed;top:calc(8px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:45;background:var(--fg);color:var(--bg);font-size:.8rem;padding:4px 12px;border-radius:999px;opacity:.9}
#lgPk.primary{order:-1}
