/* 文字辅导 · 免提按钮（John 2026-10-12，2026-11-09 超薄内嵌改造）
   与「说完直接发」并排收纳在同一行 22px 轻薄功能条内，不再悬浮压住上方的对话消息区。 */
body[data-tutor-ui="2"] #main .chat-bar{position:relative}
body[data-tutor-ui="2"] #main #btn-handsfree{position:static;z-index:2;margin-left:auto;display:inline-flex;align-items:center;gap:5px;height:23px;min-height:23px;padding:0 9px 0 7px;border:1px solid #cad7c8;border-radius:999px;background:#fffefa;color:#315c43;box-shadow:none;font:600 11.5px/1 system-ui,-apple-system,"PingFang SC",sans-serif;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;width:auto;min-width:0;flex:none;grid-column:auto;grid-row:auto}
body[data-tutor-ui="2"] #main #btn-handsfree .hf-dot{position:relative;width:8px;height:8px;border-radius:50%;background:#9fb19c;flex:none}
body[data-tutor-ui="2"] #main #btn-handsfree .hf-dot::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1.5px solid currentColor;opacity:0;transform:scale(calc(.6 + var(--hf-level,0) * .75))}
body[data-tutor-ui="2"] #main #btn-handsfree[data-on="1"]{background:#e9f1e5;border-color:#547b59;color:#2f5538}
body[data-tutor-ui="2"] #main #btn-handsfree[data-phase="listen"] .hf-dot{background:#3f8f55}
body[data-tutor-ui="2"] #main #btn-handsfree[data-phase="listen"] .hf-dot::after{opacity:.55;color:#3f8f55}
body[data-tutor-ui="2"] #main #btn-handsfree:is([data-phase="capture"],[data-phase="finishing"]){background:#fdecea;border-color:#d0675d;color:#9b2f25}
body[data-tutor-ui="2"] #main #btn-handsfree:is([data-phase="capture"],[data-phase="finishing"]) .hf-dot{background:#d9473a}
body[data-tutor-ui="2"] #main #btn-handsfree:is([data-phase="capture"],[data-phase="finishing"]) .hf-dot::after{opacity:.7;color:#d9473a}
body[data-tutor-ui="2"] #main #btn-handsfree[data-phase="paused"] .hf-dot{background:#c9a24a}
body[data-tutor-ui="2"] #main #btn-handsfree.hf-resume[data-on="0"]{border-style:dashed;border-color:#547b59}
body[data-tutor-ui="2"] #main #btn-handsfree:focus-visible{outline:2px solid #b88235;outline-offset:2px}
/* 免提开着时，左上的状态提示别压到右边的按钮 */
body[data-tutor-ui="2"] #main .chat-bar .v2-mic-status{max-width:min(440px,calc(100% - 150px))}
/* 语音辅导里有自己的通话，不显示免提 */
body[data-tutor-ui="2"][data-tutor-mode="voice"] #main #btn-handsfree{display:none}
@media (max-width:700px){body[data-tutor-ui="2"] #main #btn-handsfree{height:23px;min-height:23px;padding:0 8px 0 6px;font-size:11.5px}}
@media (prefers-reduced-motion:reduce){body[data-tutor-ui="2"] #main #btn-handsfree .hf-dot::after{transform:none}}
/* 手机竖屏：若未挂入 .qm-voice-mode-bar，保持第二行右侧对齐 */
html.ui2-phone body[data-tutor-ui="2"].v2-phone-dock:not(.v2-split-compact) #main .chat-bar > #btn-handsfree{position:static!important;grid-row:2!important;grid-column:3 / -1!important;justify-self:end;align-self:center;height:24px;min-height:24px;margin-top:2px;box-shadow:none}
html.ui2-phone body[data-tutor-ui="2"].v2-phone-dock:not(.v2-split-compact) #main .chat-bar .v2-input-receipt{grid-column:1 / 3!important;grid-row:2!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;align-self:center}
/* 11-16 小屏（手机 / 竖屏平板）免提按钮放大：原 23px 高，手指很难点中。宽屏在顶栏，尺寸由 split-layout.css 定 */
body[data-tutor-ui="2"] #main .chat-bar > #btn-handsfree{height:36px;min-height:36px;padding:0 14px 0 11px;font-size:13.5px;gap:7px}
html.ui2-phone body[data-tutor-ui="2"].v2-phone-dock:not(.v2-split-compact) #main .chat-bar > #btn-handsfree{height:36px;min-height:36px}
