/* Video call screen: used inside DataLink and inside the client portal. Same tokens as everything else (tokens.css); light only.
   Sizes are in rem so the portal's text-size buttons scale it; touch targets are at least 48px (3rem at the default size) and the client version is larger still. */
body.hv-open { overflow: hidden; }
.hv { position: fixed; inset: 0; z-index: 9800; background: var(--bg, #F6F7F9); color: var(--ink, #0E1116); display: flex; flex-direction: column; font-family: var(--font-ui, Inter, system-ui, sans-serif); }
.hv * { box-sizing: border-box; }
.hv-gate { margin: auto; width: min(36rem, 92vw); padding: 2rem 1.5rem; text-align: center; }
.hv-gate h2 { font: 300 1.7rem/1.2 var(--font-display, "Helvetica Neue", sans-serif); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .8rem; }
.hv-gate p { font-size: 1.05rem; line-height: 1.55; color: var(--ink-2, #3A4350); margin: 0 0 1.4rem; }
.hv-big { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 4rem; margin: 0 0 .8rem; padding: .8rem 1.2rem; border: 0; border-radius: 999px; background: var(--blue, #1B16FB); color: #fff; font: 600 1.25rem var(--font-ui, Inter, sans-serif); cursor: pointer; }
.hv-big:hover { background: #150FDB; }
.hv-big.hv-quiet { background: #fff; color: var(--ink, #0E1116); border: 1px solid var(--line-2, #D3D8DF); }
.hv-phone { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .4rem 1rem; color: var(--navy, #0B1F3A); font-size: 1.05rem; text-decoration: none; }
.hv-phone b { font-weight: 650; }
.hv :focus-visible { outline: 3px solid var(--blue, #1B16FB); outline-offset: 3px; }
.hv-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.1rem; background: #fff; border-bottom: 1px solid var(--line, #E3E6EB); }
.hv-title { font: 300 .95rem var(--font-display, "Helvetica Neue", sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.hv-count { font: 400 .8rem var(--font-ui, Inter, sans-serif); letter-spacing: 0; text-transform: none; color: var(--muted, #6B7480); margin-left: .6rem; }
.hv-rec { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .8rem; border-radius: 999px; background: var(--bad-bg, #F8E9E9); color: var(--bad, #9B2C2C); font-weight: 600; font-size: .85rem; }
.hv-rec svg { fill: currentColor; width: 14px; height: 14px; }
.hv-banner { padding: .65rem 1.1rem; background: var(--watch-bg, #FBF3E3); color: #6B4A10; font-size: .95rem; border-bottom: 1px solid var(--line, #E3E6EB); }
.hv-grid { flex: 1; min-height: 0; display: grid; gap: .6rem; padding: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); grid-auto-rows: min-content; align-content: center; overflow: auto; }
.hv-grid.hv-n1 { grid-template-columns: 1fr; }
.hv-tile { position: relative; background: #E9EDF2; border-radius: var(--radius, 14px); overflow: hidden; aspect-ratio: 16 / 10; max-height: 62vh; min-height: 9rem; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; }
.hv-tile.speaking { border-color: var(--blue, #1B16FB); }
.hv-tile video { width: 100%; height: 100%; object-fit: cover; background: #111; }
.hv-big-tile video { object-fit: contain; }
.hv-big-tile { grid-column: 1 / -1; min-height: 40vh; background: #111; }
.hv-avatar { width: 5rem; height: 5rem; border-radius: 50%; background: var(--navy, #0B1F3A); color: #fff; display: flex; align-items: center; justify-content: center; font: 300 2rem var(--font-display, sans-serif); }
.hv-name { position: absolute; left: .6rem; bottom: .5rem; padding: .15rem .6rem; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .85rem; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-wait { display: flex; align-items: center; justify-content: center; color: var(--muted, #6B7480); font: 300 1.2rem var(--font-display, sans-serif); text-align: center; padding: 1rem; }
.hv-bar { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; padding: .8rem; background: #fff; border-top: 1px solid var(--line, #E3E6EB); }
.hv-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 3rem; min-width: 3rem; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line-2, #D3D8DF); background: #fff; color: var(--ink, #0E1116); font: 550 .95rem var(--font-ui, Inter, sans-serif); cursor: pointer; }
.hv-btn:hover { border-color: var(--navy, #0B1F3A); }
.hv-btn.off { background: var(--bad-bg, #F8E9E9); color: var(--bad, #9B2C2C); border-color: transparent; }
.hv-btn.on { background: var(--blue-soft, #ECEBFF); color: var(--blue, #1B16FB); border-color: var(--blue, #1B16FB); }
.hv-btn.leave { background: var(--navy, #0B1F3A); color: #fff; border-color: var(--navy, #0B1F3A); }
.hv-plain .hv-btn { min-height: 3.6rem; padding: 0 1.4rem; font-size: 1.1rem; }
.hv-plain .hv-bar { gap: .8rem; }
.hv-help { text-align: center; padding: .2rem .5rem .8rem; background: #fff; }
@media (max-width: 640px) {
  .hv-grid { grid-template-columns: 1fr 1fr; padding: .4rem; gap: .4rem; }
  .hv-grid.hv-n1, .hv-grid.hv-n2 { grid-template-columns: 1fr; }
  .hv-btn span { display: none; }
  .hv-plain .hv-btn span { display: inline; }
  .hv-btn { padding: 0 .9rem; }
  .hv-top { padding: .5rem .8rem; }
}

/* ---- staff call overlay: small, floats bottom-left, stays while people click around DataLink ---- */
.hv.hv-dock { inset: auto; left: 16px; bottom: 16px; width: 312px; max-width: calc(100vw - 32px); height: auto; z-index: 1600; background: #fff; border: 1px solid var(--line-2, #D3D8DF); border-radius: 18px; box-shadow: var(--shadow-lg, 0 8px 30px rgba(14,17,22,.14)); padding: 10px 12px 12px; display: block; }
.hvd-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 8px; user-select: none; touch-action: none; }
.hvd-live { width: 9px; height: 9px; border-radius: 50%; background: var(--ok, #2E7D5B); flex: none; animation: hvpulse 2s infinite; }
.hvd-title { flex: 1; min-width: 0; font: 500 12px var(--font-ui, Inter, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2, #3A4350); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hvd-count { font-size: 12px; color: var(--muted, #6B7480); }
.hvd-people { display: flex; flex-wrap: wrap; gap: 8px 6px; padding: 4px 0 6px; max-height: 190px; overflow: auto; }
.hvd-p { position: relative; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hvd-av, .hv-avatar { position: relative; overflow: hidden; border-radius: 50%; background: var(--sky-soft, #EAF0F4); color: var(--navy, #0B1F3A); display: flex; align-items: center; justify-content: center; }
.hvd-av { width: 44px; height: 44px; font: 500 17px var(--font-ui, Inter, sans-serif); transition: box-shadow .12s; }
.hvd-av img, .hv-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hvd-p.speaking .hvd-av { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--ok, #2E7D5B); }          /* the green circle */
.hvd-p.muted .hvd-av { opacity: .7; }
.hvd-off { position: absolute; right: 2px; top: 30px; width: 18px; height: 18px; border-radius: 50%; background: var(--bad, #9B2C2C); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.hvd-n { max-width: 56px; font-size: 11.5px; color: var(--ink-2, #3A4350); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hvd-now { font-size: 12.5px; color: var(--muted, #6B7480); padding: 0 2px 8px; min-height: 22px; }
.hvd-bar { display: flex; gap: 6px; }
.hvd-bar .hv-btn { flex: 1; justify-content: center; min-height: 44px; padding: 0 8px; }
.hvd-bar .hv-btn span { display: none; }
.hvd-msg { padding: 14px 6px; font-size: 14px; color: var(--muted, #6B7480); }
@keyframes hvpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .hvd-live { animation: none; } }
/* the same green circle on the full video grid */
.hv-avatar { width: 5rem; height: 5rem; font: 300 2rem var(--font-display, sans-serif); background: var(--navy, #0B1F3A); color: #fff; }
.hv-tile.speaking { border-color: var(--ok, #2E7D5B); }
.hv-tile.speaking .hv-avatar { box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--ok, #2E7D5B); }
.hv-init { position: relative; z-index: 0; }
@media (max-width: 640px) { .hv.hv-dock { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; } }
