/* Voice test calls (22 Nov 2026) */
.modesw { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--rule); border-radius: 11px; margin-bottom: 16px; }
.modesw button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.modesw button.on { background: #fff; color: var(--violet-ink); box-shadow: var(--sh-sm); }
.vlist { display: grid; gap: 8px; }
.vcard { text-align: left; display: grid; gap: 4px; border: 1px solid var(--rule-s); background: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--text); }
.vcard.on { border-color: var(--violet); box-shadow: var(--ring); }
.vcard.down { opacity: .6; cursor: not-allowed; background: var(--surface-2); }
.vcard .vtop, .vls .vtop { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vcard .vtop b { margin-right: auto; color: var(--heading); font-size: 13.5px; }
.vwarn { color: var(--warn) !important; }
.vcall .card-h h3 { display: flex; align-items: center; gap: 8px; }
.vlive { display: inline-flex; align-items: center; gap: 8px; color: var(--bad); }
.vlive i { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); animation: pulse 1.2s infinite; }
.vtimer { font: 600 20px/1 var(--mono); color: var(--teal-d); }
.vpills { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.vmeter { display: inline-block; width: 90px; height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-left: 4px; }
.vmeter i { display: block; height: 100%; background: var(--ok); transition: width .1s; }
.vstatus { margin: 8px 0 0; }
.vtrans { height: 430px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; background: #fbfcfc; margin-top: 10px; display: grid; align-content: start; gap: 6px; }
.vtrans.short { height: auto; max-height: 420px; }
.vline { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; font-size: 14px; line-height: 1.45; }
.vline .who { font-weight: 650; color: var(--teal); font-size: 12.5px; padding-top: 2px; }
.vline.caller .who { color: var(--violet-ink); }
.vline .t { color: var(--faint); font: 11px var(--mono); padding-top: 3px; }
.vline.interim .txt { color: var(--muted); font-style: italic; }
.vline.sys, .vline.mark { font-size: 12.5px; color: #5a4a00; }
.vline.mark .txt { color: var(--bad); font-weight: 600; }
.vact { margin-top: 10px; gap: 10px; align-items: center; display: flex; flex-wrap: wrap; }
.vp { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; }
.vsay { margin: 0 0 8px; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
.vexp summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--teal-d); margin: 4px 0; }
.vtools { display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.vtool { border: 1px solid var(--rule); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; }
.vtool b { font-family: var(--mono); font-size: 12px; }
.vtool pre { margin: 3px 0 0; white-space: pre-wrap; word-break: break-word; font: 11.5px/1.35 var(--mono); color: #14482c; }
.vflags { margin-top: 8px; }
.vcrit { display: grid; gap: 2px; }
.vcr { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.vcr .seg { flex: none; }
.vcr .seg button.on.pass { background: var(--ok); } .vcr .seg button.on.fail { background: var(--bad); } .vcr .seg button.on.na { background: var(--muted); }
.vcr.ro { font-size: 13px; }
.vstars { display: inline-flex; gap: 6px; }
.vstars button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--rule-s); background: #fff; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; }
.vstars button.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.vtags { display: flex; flex-wrap: wrap; gap: 4px; }
.vtags button.chip { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; padding: 4px 11px; }
.vfoot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.vfilters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vfilters .in { width: auto; min-width: 200px; }
.vscore { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; min-width: 0; }
.vsc h3 { margin: 0 0 10px; font: 600 15px var(--sans); color: var(--heading); }
.vsc.best { border-color: #d9ccfb; box-shadow: var(--ring); }
.vnums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.vnums div { display: grid; gap: 2px; }
.vnums b { font: 600 19px var(--sans); color: var(--teal-d); }
.vnums span { font-size: 11px; color: var(--muted); line-height: 1.25; }
.vnums div.bad b { color: var(--bad); }
.vst td { font-size: 12.5px; padding: 4px 6px; }
.vtable { overflow-x: auto; padding: 0 4px 6px; }
.vtable tr.click { cursor: pointer; } .vtable tr.click:hover { background: var(--surface-2); }
.vdlg { max-width: 1100px; width: min(1100px, 96vw); max-height: 90vh; overflow: auto; }
.vlib { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.voice, .voice .grid, .voice .card { min-width: 0; }
.vls p { margin: 6px 0; }
@media (max-width: 980px) {
  .vtrans { height: 46vh; }
  .vnums { grid-template-columns: repeat(3, 1fr); }
  .vcr { flex-direction: column; align-items: flex-start; gap: 6px; }
  .vstars button { width: 48px; height: 48px; }
  .vscore, .vlib { grid-template-columns: 1fr; }
  .vfilters .in { min-width: 0; width: 100%; }
  .vst td:first-child { word-break: break-word; }
  .vline { grid-template-columns: 62px 1fr auto; }
  .vgrid > :nth-child(2) { order: -1; }
  .vgrid > :first-child { order: -2; }
}
.vsticky { display: none; }
@media (max-width: 980px) {
  .vsticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px -14px rgba(13,79,92,.3); }
  .vsticky .callbtn { width: auto; flex: 1; }
  .vsticky .vlive { font: 600 16px var(--mono); }
  .voice { padding-bottom: 70px; }
}
/* Phones: the top bar (version picker, warnings chip, save state) wraps instead of widening the page past the screen,
   so fixed elements (the call bar) stay on screen. 22 Nov 2026. */
@media (max-width: 980px) {
  .top .ver { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  .top .ver select { max-width: 100%; }
  .app, .top, main { max-width: 100vw; }
  main { overflow-x: hidden; }
}
