/* 文字辅导 · 免提按钮（John 2026-10-12）
   悬浮在输入区右上角，不占输入栏的格子——各种布局（电脑、左右分栏、手机竖屏/横屏、iPad）都不用重排。 */
body[data-tutor-ui="2"] #main .chat-bar{position:relative}
body[data-tutor-ui="2"] #main #btn-handsfree{position:absolute;z-index:9;right:8px;bottom:calc(100% + 7px);display:inline-flex;align-items:center;gap:7px;height:34px;min-height:34px;padding:0 13px 0 10px;border:1px solid #cad7c8;border-radius:999px;background:#fffefa;color:#315c43;box-shadow:0 4px 12px #203d301f;font:600 14px/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:12px;height:12px;border-radius:50%;background:#9fb19c;flex:none}
body[data-tutor-ui="2"] #main #btn-handsfree .hf-dot::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid currentColor;opacity:0;transform:scale(calc(.6 + var(--hf-level,0) * .8))}
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:3px 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:32px;min-height:32px;padding:0 11px 0 9px;font-size:13px}}
@media (prefers-reduced-motion:reduce){body[data-tutor-ui="2"] #main #btn-handsfree .hf-dot::after{transform:none}}
/* 手机竖屏：输入区上面紧贴着老师的话（右上角是「展开」），浮着会挡住它——改成放进输入区第二行右侧，
   和「你：……」回执并排（回执让出右边两格） */
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:30px;min-height:30px;margin-top:4px;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}
