/* ===== Delegate console model (#demo) ===== */
.demo__head { max-width: 760px; }
.demo__note { margin-top: 18px; font-size: 14px; color: #a39d95; }
.vx { margin-top: 44px; --vx-bg: #F1EFEB; --vx-line: #E4E0DA; --vx-mute: #77716a; }
.vx__device { background: #1b1b1d; border-radius: 34px; padding: 16px; box-shadow: 0 40px 90px rgba(0,0,0,.45), inset 0 0 0 2px #2c2c2f; max-width: 1120px; margin: 0 auto; }
.vx__screen { position: relative; overflow: hidden; border-radius: 20px; background: var(--vx-bg); color: var(--ink); aspect-ratio: 1180 / 800; display: grid;
  grid-template-columns: 76px 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "top top" "rail main" "bar bar"; font-size: 14px; line-height: 1.4; }
.vx button { font: inherit; color: inherit; cursor: pointer; }
.vx button:disabled { cursor: default; }
.vx__top { grid-area: top; display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--vx-line); }
.vx__logo { width: 26px; height: 26px; border-radius: 50%; border: 5px solid var(--red); flex: none; }
.vx__title { display: grid; min-width: 0; margin-right: auto; }
.vx__title b { font-size: 16px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx__title span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--vx-mute); font-weight: 600; }
.vx__langchip { font-weight: 800; font-size: 12px; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: #fff; }
.vx__langchip[hidden] { display: none; }
.vx__who { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--vx-line); border-radius: 12px; font-weight: 700; font-size: 13px; }
.vx__who i { width: 8px; height: 8px; border-radius: 50%; background: #2E9D5B; }
.vx__who small { display: block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--vx-mute); font-weight: 600; line-height: 1.1; }
.vx__rail { grid-area: rail; display: flex; flex-direction: column; gap: 6px; padding: 12px 8px; background: #fff; border-right: 1px solid var(--vx-line); }
.vx__rail button { position: relative; border: 0; background: none; border-radius: 12px; padding: 9px 2px 7px; display: grid; justify-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--vx-mute); }
.vx__rail button span { display: block; max-width: 100%; text-align: center; line-height: 1.15; white-space: normal; hyphens: manual; -webkit-hyphens: manual; }
.vx__rail button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vx__rail button .a { stroke: var(--red); }
.vx__rail button[aria-current] { background: var(--ink); color: #fff; }
.vx__rail button[aria-current] .a { stroke: var(--red-dark); }
.vx__rail em { position: absolute; top: 6px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: vxPulse 1.4s infinite; }
@keyframes vxPulse { 0% { box-shadow: 0 0 0 0 rgba(229,50,45,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(229,50,45,0); } }
.vx__main { grid-area: main; overflow: auto; padding: 14px 16px; min-height: 0; }
.vx__panel[hidden] { display: none; }
.vx__now { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--vx-line); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.vx__now small { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.vx__now b { font-size: 15px; }
.vx__num { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }
.vx__confgrid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 12px; align-items: start; }
.vx__pgm { background: #111; border-radius: 14px; overflow: hidden; }
.vx__pgmbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; font-size: 11px; }
.vx__pgmbar span:first-child { font-weight: 800; letter-spacing: .08em; display: flex; align-items: center; gap: 7px; }
.vx__pgmbar span:first-child i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: vxBlink 1.6s infinite; }
.vx__pgmbar span:last-child { color: #c9c4bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes vxBlink { 50% { opacity: .35; } }
.vx__pgmview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vx__pgmview img { width: 100%; height: 100%; object-fit: cover; transform-origin: 55% 40%; }
.vx__pgmview img[hidden] { display: none; }
/* Seamless "live camera" loop: the first and last keyframes match, so there is no jump at the seam. */
.vx__live-img { animation: vxHand 13s cubic-bezier(.45, 0, .55, 1) infinite; will-change: transform; }
@keyframes vxHand {
  0%, 100% { transform: scale(1.055) translate(0, 0) rotate(0deg); }
  22% { transform: scale(1.065) translate(-.7%, .35%) rotate(-.12deg); }
  47% { transform: scale(1.08) translate(-1.2%, -.25%) rotate(.05deg); }
  71% { transform: scale(1.068) translate(-.45%, -.55%) rotate(.14deg); }
}
.vx__mv { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: #0a0a0a; }
.vx__mv[hidden] { display: none; }
.vx__tile { position: relative; overflow: hidden; background: #000; }
.vx__tile img { width: 100%; height: 100%; object-fit: cover; }
.vx__tile:nth-child(2) .vx__live-img { animation-duration: 11s; animation-delay: -4s; }
.vx__tile:nth-child(3) .vx__live-img { animation-duration: 15s; animation-delay: -9s; }
.vx__tile .vx__pgmlabel { left: 6px; bottom: 6px; font-size: 9.5px; padding: 3px 7px 3px 19px; }
.vx__tile .vx__pgmlabel::before { left: 7px; width: 7px; height: 7px; margin-top: -3.5px; border-width: 2px; }
.vx__pgmlabel { position: absolute; left: 10px; bottom: 10px; background: rgba(17,17,17,.78); color: #fff; font-weight: 700; font-size: 11.5px; padding: 5px 10px 5px 24px; border-radius: 8px; }
.vx__pgmlabel::before { content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 2.5px solid var(--red-dark); }
.vx__pgmlabel[hidden] { display: none; }
.vx__tc { position: absolute; right: 10px; top: 10px; font: 600 10.5px/1 ui-monospace, Consolas, monospace; color: #fff; background: rgba(0,0,0,.45); padding: 4px 7px; border-radius: 6px; }
.vx__vu { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.vx__vu[hidden] { display: none; }
.vx__vu i { width: 4px; border-radius: 2px; background: #3ddc84; height: 30%; animation: vxVu .9s ease-in-out infinite alternate; }
.vx__vu i:nth-child(2) { animation-delay: -.2s; }
.vx__vu i:nth-child(3) { animation-delay: -.5s; }
.vx__vu i:nth-child(4) { animation-delay: -.7s; }
.vx__vu i:nth-child(5) { animation-delay: -.35s; }
@keyframes vxVu { from { height: 18%; } to { height: 100%; } }
.vx__vu--sm { position: static; height: 18px; margin-left: auto; }
.vx__vu.is-orig i { background: #9a948c; }
.vx__card { background: #fff; border: 1px solid var(--vx-line); border-radius: 14px; padding: 12px 14px; }
.vx__card + .vx__card { margin-top: 10px; }
.vx__card h4 { margin: 0 0 8px; font-size: 13px; font-weight: 750; }
.vx__queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vx__queue li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.vx__queue li.is-me { color: var(--red); }
.vx__queue li.is-empty { color: var(--vx-mute); font-weight: 400; }
.vx__qn { width: 20px; height: 20px; border-radius: 50%; background: #fde8e7; color: var(--red); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.vx__spk { display: flex; align-items: center; gap: 10px; }
.vx__spk b { display: block; font-size: 13px; }
.vx__spk small { color: var(--vx-mute); font-size: 11.5px; }
.vx__av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e3f3ea; color: #24804b; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.vx__live { margin-left: auto; font-size: 9.5px; font-weight: 800; color: #24804b; background: #e3f3ea; padding: 3px 7px; border-radius: 6px; }
.vx__muted { color: var(--vx-mute); }
.vx__bar { grid-area: bar; display: flex; justify-content: center; padding: 10px 16px 12px; background: #fff; border-top: 1px solid var(--vx-line); }
.vx__mic { width: min(440px, 100%); border: 0; border-radius: 12px; padding: 10px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff !important; background: #B42232; transition: background .25s; }
.vx__mic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.vx__mic b { display: block; font-size: 15px; font-weight: 750; text-align: left; }
.vx__mic small { display: block; font-size: 11px; opacity: .85; text-align: left; }
.vx__mic.is-queued { background: #E6B532; color: var(--ink) !important; }
.vx__mic.is-live { background: #22764A; }
.vx__toast { position: absolute; left: 50%; top: 64px; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: .25s; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 13px; display: flex; gap: 12px; align-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); white-space: nowrap; z-index: 3; }
.vx__toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.vx__toast button { border: 0; background: var(--red); color: #fff !important; border-radius: 8px; padding: 5px 10px; font-weight: 700; font-size: 12px; }
.vx__h { font-size: 18px; margin-bottom: 6px; }
.vx__hint { color: var(--vx-mute); font-size: 12.5px; margin-top: 8px; }
.vx__agenda { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.vx__agenda li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--vx-line); border-radius: 14px; padding: 12px 14px; }
.vx__agenda li > div { flex: 1; min-width: 0; }
.vx__agenda li b { display: block; font-size: 14px; }
.vx__agenda li small { color: var(--vx-mute); font-size: 11.5px; }
.vx__agenda li.is-done .vx__num { background: #d9d5cf; color: #555; }
.vx__agenda li.is-next .vx__num { background: #fff; color: var(--ink); border: 1.5px solid var(--vx-line); }
.vx__agenda li.is-now { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.vx__agenda li.is-now > div > small { color: var(--red); font-weight: 700; }
.vx__docs { margin-top: 10px; display: grid; gap: 6px; }
.vx__docs > small { color: var(--vx-mute); font-weight: 600; }
.vx__docs button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--vx-line); background: var(--vx-bg); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; text-align: left; }
.vx__docs button em { margin-left: auto; font-style: normal; color: var(--red); font-weight: 700; }
.vx__pdf { font-size: 9px; font-weight: 800; color: #fff; background: var(--red); border-radius: 4px; padding: 3px 5px; }
.vx__empty { background: #fff; border: 1px dashed #cfc9c1; border-radius: 14px; padding: 22px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.vx__empty p { color: var(--vx-mute); font-size: 13px; max-width: 36em; }
.vx__btn { margin-top: 8px; border: 0; background: var(--ink); color: #fff !important; border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 13px; }
.vx__ballot { position: relative; background: #fff; border: 1px solid var(--vx-line); border-radius: 14px; padding: 14px 16px; }
.vx__ballot h3 { font-size: 18px; margin: 2px 0 4px; padding-right: 130px; }
.vx__ballot > p { font-size: 13.5px; }
.vx__ballot > small { color: var(--vx-mute); font-size: 11.5px; }
.vx__state { position: absolute; right: 14px; top: 14px; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: #ece9e4; }
.vx__state.is-open { background: #fde8e7; color: var(--red); }
.vx__opts { display: grid; gap: 8px; margin-top: 12px; }
.vx__opts button { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--vx-line); background: var(--vx-bg); border-radius: 12px; padding: 10px 12px; font-size: 15px; font-weight: 600; }
.vx__opts em { font-style: normal; font-size: 12.5px; font-weight: 800; color: #fff; padding: 7px 14px; border-radius: 9px; }
.vx__opts .o0 em { background: #2E7D4F; }
.vx__opts .o1 em { background: #D2302C; }
.vx__opts .o2 em { background: #D9A51F; color: var(--ink); }
.vx__opts button.is-me { border: 2.5px solid var(--ink); background: #fff; }
.vx__opts button.is-me em { background: var(--ink); color: #fff; }
.vx__verdict { display: inline-block; margin-top: 12px; font-weight: 800; color: #1f6f43; background: #e3f3ea; border-radius: 8px; padding: 5px 10px; font-size: 13px; }
.vx__verdict--sm { margin: 4px 0 0; font-size: 11px; }
.vx__res { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.vx__res li { display: grid; grid-template-columns: 110px 1fr 64px; align-items: center; gap: 10px; font-size: 13px; }
.vx__res li.is-me span { font-weight: 800; }
.vx__res i { height: 10px; border-radius: 5px; background: #ebe7e1; position: relative; overflow: hidden; }
.vx__res i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--w); border-radius: 5px; background: #2E7D4F; }
.vx__res.is-grow i::after { animation: vxGrow 1s cubic-bezier(.2, .7, .2, 1); }
.vx__res .o1 i::after { background: #D2302C; }
.vx__res .o2 i::after { background: #D9A51F; }
@keyframes vxGrow { from { width: 0; } }
.vx__res b { text-align: right; }
.vx__past { margin-top: 12px; background: #fff; border: 1px solid var(--vx-line); border-radius: 14px; padding: 12px 16px; opacity: .85; }
.vx__past > small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--vx-mute); font-weight: 700; }
.vx__past > b { display: block; font-size: 14px; }
.vx__langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.vx__langs button { display: flex; align-items: center; gap: 12px; border: 1px solid var(--vx-line); background: #fff; border-radius: 12px; padding: 10px 12px; text-align: left; }
.vx__langs button b { display: block; font-size: 14px; }
.vx__langs button small { color: var(--vx-mute); font-size: 11.5px; }
.vx__langs button.is-on { border: 2.5px solid var(--ink); }
.vx__code { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--vx-bg); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.vx__langs button.is-on .vx__code { background: var(--ink); color: #fff; }
.vx__vol { display: flex; align-items: center; gap: 12px; margin-top: 14px; background: #fff; border: 1px solid var(--vx-line); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.vx__vol input { flex: 1; accent-color: var(--red); }
.vx__vol b { width: 2.5em; text-align: right; }
.vx__svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.vx__svc button { border: 1px solid var(--vx-line); background: #fff; border-radius: 12px; padding: 18px 8px; font-weight: 700; font-size: 14px; }
.vx__svc button:disabled { opacity: .45; }
.vx__svc button.is-on { opacity: 1; border: 2.5px solid var(--ink); }
.vx__steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.vx__steps li { position: relative; padding-left: 26px; color: var(--vx-mute); font-size: 13.5px; }
.vx__steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cfc9c1; box-sizing: border-box; }
.vx__steps li.is-done { color: var(--ink); }
.vx__steps li.is-done::before { background: #2E7D4F; border-color: #2E7D4F; }
.vx__steps li.is-now { color: var(--ink); font-weight: 700; }
.vx__steps li.is-now::before { border: 4px solid var(--red); animation: vxBlink 1.2s infinite; }
.vx__viewer { grid-area: main; position: relative; min-height: 0; min-width: 0; overflow: hidden; background: #2a2927; display: flex; flex-direction: column; z-index: 2; }
.vx__viewer[hidden] { display: none; }
.vx__viewbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #fff; font-weight: 600; }
.vx__viewbar button { border: 0; background: #fff; color: var(--ink); border-radius: 9px; padding: 6px 12px; font-weight: 700; }
.vx__viewbody { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 14px 14px; overflow: auto; }
.vx__viewbody img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.vx__report { background: #fff; border-radius: 8px; padding: 28px 32px; width: min(520px, 100%); }
.vx__report h3 { font-size: 22px; margin-bottom: 14px; }
.vx__report dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; margin: 0; }
.vx__report dt { color: var(--vx-mute); }
.vx__report dd { margin: 0; font-weight: 800; }
.vx__chair { max-width: 1120px; margin: 0 auto 20px; padding: 14px 16px; border: 1px solid #3a3836; border-radius: 16px; background: #181716; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--bone); }
.vx__chairhead { flex: 1 1 100%; display: grid; gap: 2px; margin-bottom: 4px; }
.vx__chairhead b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-dark); }
.vx__chairhead span { font-size: 14px; color: #cfc9c1; }
.vx__chair button { border: 1px solid #3a3836; background: #1f1e1d; color: var(--bone) !important; border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 14px; }
.vx__chair button:hover:not(:disabled) { border-color: var(--red-dark); }
.vx__chair button:disabled { opacity: .4; }
.vx__seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #3a3836; border-radius: 12px; flex-wrap: wrap; }
.vx__seg small { padding: 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #a39d95; }
.vx__seg button { border: 0; padding: 6px 10px; font-size: 13px; }
.vx__seg button[aria-pressed="true"] { background: var(--red); }
.vx__seg button[data-v="multi"]:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 1px var(--red-dark); }
.vx__reset { margin-left: auto; }
@media (max-width: 860px) {
  .vx__device { padding: 8px; border-radius: 22px; }
  .vx__screen { aspect-ratio: auto; height: 660px; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; grid-template-areas: "top" "main" "rail" "bar"; border-radius: 16px; }
  .vx__rail { flex-direction: row; justify-content: space-around; border-right: 0; border-top: 1px solid var(--vx-line); padding: 6px; }
  .vx__rail button { flex: 1; }
  .vx__confgrid { grid-template-columns: 1fr; }
  .vx__who small, .vx__title span { display: none; }
  .vx__who { padding: 5px 9px; }
  .vx__langs { grid-template-columns: 1fr; }
  .vx__svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vx__ballot h3 { padding-right: 0; margin-top: 26px; }
  .vx__reset { margin-left: 0; }
  .vx__toast { white-space: normal; width: calc(100% - 32px); }
}
@media (max-width: 480px) {
  .vx__title b { font-size: 13.5px; }
  .vx__who > span { display: none; }
  .vx__res li { grid-template-columns: 90px 1fr 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .vx__live-img, .vx__vu i, .vx__rail em, .vx__pgmbar i { animation: none; }
}

/* ===== Collaborative document viewer (model of VOX-S 0.7) ===== */
.vx__viewer:has(.vxv__head) { background: #fff; color: var(--ink); }
.vxv__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--vx-line); }
.vxv__name { min-width: 0; display: grid; }
.vxv__name small { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--vx-mute); font-weight: 600; }
.vxv__name b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vxv__ctl { display: flex; align-items: center; gap: 5px; flex: none; }
.vxv__ctl span { font-size: 12px; min-width: 38px; text-align: center; }
.vxv__ctl button { border: 0; background: var(--ink); color: #fff !important; border-radius: 8px; min-width: 30px; height: 28px; padding: 0 8px; font-size: 13px; font-weight: 700; }
.vxv__ctl .vxv__follow { background: var(--red); }
.vxv__ctl .vxv__x { background: var(--ink); border-radius: 50%; width: 28px; min-width: 28px; padding: 0; font-size: 16px; }
.vxv__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 8px 14px; border-bottom: 1px solid var(--vx-line); }
.vxv__tools > button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--ink); color: #fff !important; display: grid; place-items: center; padding: 0; }
.vxv__tools > button svg { width: 18px; height: 18px; }
.vxv__tools > button.is-on { background: var(--red); }
.vxv__colors { display: inline-flex; flex-wrap: wrap; gap: 3px; margin-left: 4px; }
.vxv__sw { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: var(--sw); box-shadow: 0 0 0 1px #cfc9c1; padding: 0; }
.vxv__sw.is-on { box-shadow: 0 0 0 2px var(--ink); }
.vxv__sw:disabled { opacity: .25; cursor: not-allowed; }
.vxv__legend { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-left: 6px; font-size: 11.5px; color: var(--ink-2); }
.vxv__legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.vxv__legend i { width: 8px; height: 8px; border-radius: 50%; }
.vxv__away { background: #fde8e7; color: var(--red); font-size: 12px; font-weight: 700; padding: 6px 14px; }
.vxv__stage { flex: 1; min-height: 0; overflow: auto; background: #e9e6e1; padding: 12px; }
.vxv__paper { position: relative; margin: 0 auto; max-width: none; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.vxv__paper img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.vxv__svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.vxv__svg.tool-move { touch-action: auto; cursor: grab; }
.vxv__svg.tool-eraser, .vxv__svg.tool-move-annotation { cursor: pointer; }
.vxv__svg text { font-family: var(--font); }
.vxv__hint { margin: 0; padding: 6px 14px 8px; font-size: 11.5px; color: var(--vx-mute); background: #fff; border-top: 1px solid var(--vx-line); }
.vxv__textdlg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: min(360px, calc(100% - 32px)); background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.3); display: grid; gap: 10px; color: var(--ink); }
.vxv__textdlg label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.vxv__textdlg input { font: inherit; padding: 8px 10px; border: 1px solid var(--vx-line); border-radius: 8px; }
.vxv__textdlg div { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.vxv__textdlg div button { border: 0; border-radius: 9px; padding: 8px 12px; font-weight: 700; background: var(--vx-bg); }
.vxv__textdlg div button:last-child { background: var(--ink); color: #fff !important; }
.vxv__hall b { font-size: 16px; padding-right: 30px; }
.vxv__hall p { font-size: 13px; color: var(--vx-mute); }
.vxv__hall div button { flex: 1 1 140px; background: var(--ink) !important; color: #fff !important; }
.vxv__hall .vxv__x { position: absolute; right: 12px; top: 12px; border: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--vx-bg); font-size: 16px; }
.vx__ann { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vx__ann[hidden] { display: none; }
.vx__ann text { font-family: var(--font); }
.is-draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: vxDraw 1.1s ease-out forwards; }
@keyframes vxDraw { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .vxv__head { flex-wrap: wrap; }
  .vxv__ctl { flex-wrap: wrap; }
  .vxv__legend { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .is-draw { animation: none; stroke-dashoffset: 0; } }

/* Materials tab (as in VOX-S 0.7) */
.vx__matgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
.vx__docgroup { border-top: 1px solid var(--vx-line); padding-top: 8px; margin-top: 8px; }
.vx__docgroup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.vx__docgroup-head h5 { margin: 0; font-size: 12.5px; font-weight: 700; }
.vx__docgroup-head span { font-size: 11px; font-weight: 800; background: var(--vx-bg); border-radius: 999px; padding: 2px 8px; }
.vx__docrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--vx-line); }
.vx__docrow:first-of-type { border-top: 0; }
.vx__docrow > div { flex: 1; min-width: 0; display: grid; }
.vx__docrow b { font-size: 13px; overflow-wrap: anywhere; }
.vx__docrow small { font-size: 11px; color: var(--vx-mute); }
.vx__docrow small strong { color: var(--ink-2); }
.vx__docrow button { flex: none; border: 0; background: var(--ink); color: #fff !important; border-radius: 9px; padding: 7px 12px; font-weight: 700; font-size: 12.5px; }
.vx__docrow.is-hint button { background: var(--red); animation: vxPulse 1.4s infinite; }
.vx__pdf.is-live { background: #22764A; }
.vx__pad { padding: 6px 0; font-size: 12.5px; }
.vx__matcard p { font-size: 12.5px; color: var(--vx-mute); margin-bottom: 8px; }
.vx__matcard .vx__btn { margin-top: 0; width: 100%; }
.vx__tolink { display: block; margin-top: 8px; border: 0; background: none; padding: 0; color: var(--red) !important; font-weight: 700; font-size: 12.5px; text-align: left; }
/* guided steps in the document viewer */
.vxv__coach { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; background: #111; color: #fff; font-size: 13px; }
.vxv__coach span { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--red); border-radius: 999px; padding: 3px 9px; }
.vxv__coach b { flex: 1 1 220px; font-weight: 600; }
.vxv__coach button { flex: none; border: 0; background: var(--red); color: #fff !important; border-radius: 9px; padding: 7px 12px; font-weight: 700; font-size: 12.5px; animation: vxPulse 1.4s infinite; }
.vxv__stage.is-coach .vxv__paper { outline: 3px dashed var(--red); outline-offset: 4px; }
.vx__tag text { font-family: var(--font); }
@media (max-width: 860px) { .vx__matgrid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .vx__docrow.is-hint button, .vxv__coach button { animation: none; } }

/* host panel grouped by role */
.vx__role { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; border: 1px solid #3a3836; border-radius: 12px; }
.vx__role > small { padding: 0 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red-dark); }
.vx__role .vx__seg { border: 0; padding: 0; }
.vx__chair { align-items: stretch; }
.vx__chair .vx__reset { align-self: center; }
.vx .vx__tolink { font-size: 12.5px; font-weight: 700; }

/* caption above the delegate console; compact hosts' console below it */
.vx__devhead { max-width: 1120px; margin: 0 auto 12px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--bone); }
.vx__devhead b { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red-dark); }
.vx__devhead span { font-size: 13px; color: #a39d95; }
.vx__chair { margin: 16px auto 0; padding: 10px 12px; gap: 8px; border-radius: 14px; }
.vx__chairhead { gap: 0; margin-bottom: 2px; }
.vx__chairhead b { font-size: 11px; }
.vx__chairhead span { font-size: 12.5px; }
.vx__chair button { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.vx__role { gap: 4px; padding: 4px 6px 4px 4px; border-radius: 10px; }
.vx__role > small { font-size: 9.5px; padding: 0 4px; }
.vx__seg { padding: 0; gap: 3px; }
.vx__seg small { font-size: 9.5px; padding: 0 4px; }
.vx__seg button { padding: 5px 8px; font-size: 12px; }
.vx__chair .vx__reset { margin-left: auto; padding: 6px 10px; }
@media (max-width: 860px) { .vx__chair .vx__reset { margin-left: 0; } }

/* Pulsing hints. Several in a row pulse one after another (1 → 2 → 3 …) via --i */
.vx-nudge { animation: vxNudge 3.6s ease-out infinite; animation-delay: calc(var(--i, 0) * .45s); }
@keyframes vxNudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 50, 45, 0); }
  6% { box-shadow: 0 0 0 0 rgba(229, 50, 45, .85); }
  24% { box-shadow: 0 0 0 12px rgba(229, 50, 45, 0); }
}
.vx__chair button[data-n] { position: relative; margin-left: 8px; }
.vx__chair button[data-n]::before { content: attr(data-n); position: absolute; left: -9px; top: -8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #181716; }
.vx__chair button.is-done::before { background: #4a4744; color: #cfc9c1; }
.vx__chair button.vx-nudge { border-color: rgba(255, 74, 61, .55); }
.vx__rail button.vx-nudge { animation-name: vxNudgeSoft; }
@keyframes vxNudgeSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 50, 45, 0); background: transparent; }
  6% { box-shadow: 0 0 0 0 rgba(229, 50, 45, .6); background: #fde8e7; }
  24% { box-shadow: 0 0 0 9px rgba(229, 50, 45, 0); background: transparent; }
}
.vx__rail button[aria-current].vx-nudge { animation: none; }
@media (prefers-reduced-motion: reduce) { .vx-nudge { animation: none; } }
