:root {
  --ink: #1C1C20; --ink2: #3A3D42; --graphite: #5E666E; --line: #E2E3E6; --concrete: #F5F5F7; --soft: #EAEAEA; --white: #FFFFFF;
  --blue: #007BFF; --blue-soft: #E7F1FF; --red: #D70C19; --green: #1F9D55; --amber: #A86200; --note: #FFF7DB;
  --font: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px; --pill: 30px; --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--concrete); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.02rem; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--graphite); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack { display: grid; gap: 14px; }
.stack.tight { gap: 8px; }
.spin { width: 30px; height: 30px; margin: 40px auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--pill); border: 2px solid var(--ink); background: var(--ink); color: var(--white); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s var(--ease), opacity .12s; }
.btn:active { transform: scale(.98); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 16px; font-size: .85rem; }
.btn.soft { background: var(--soft); border-color: var(--soft); color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); }
.btn.white { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink2); }
.btn.ghost:hover { background: var(--soft); }
.btn.ghost.danger, .btn.dangerbtn { color: var(--red); }
.btn.dangerbtn { background: transparent; border-color: var(--red); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.busy { opacity: .6; pointer-events: none; }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 1.3rem; font-weight: 700; line-height: 1; flex: none; }
.iconbtn:hover { background: var(--soft); }
.backlink { display: inline-block; margin-bottom: 8px; font-size: .85rem; font-weight: 600; color: var(--graphite); text-decoration: none; }
.backlink::before { content: "\2039  "; }

.field { display: grid; gap: 5px; }
.field > span { font-size: .8rem; font-weight: 600; }
.field > span small, .field > small { font-weight: 400; color: var(--graphite); font-size: .76rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); font-size: .95rem; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 123, 255, .2); }
.field.inline { grid-template-columns: 1fr 110px; align-items: center; column-gap: 14px; }
.field.inline > small { grid-column: 2; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); margin-bottom: 10px; padding: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.grid2 legend { grid-column: 1 / -1; }
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.langs legend { grid-column: 1 / -1; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: .9rem; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); z-index: 90; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #8F0A13; }
.toast.ok { background: #145C31; }

.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(90% 70% at 50% 0%, #FFFFFF 0%, var(--concrete) 70%); }
.sbox { width: min(100%, 400px); display: grid; gap: 16px; padding: 36px 32px; border-radius: 18px; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 20px 50px rgba(0, 0, 0, .06); }
.smark { width: 92px; color: var(--ink); }
.smark svg, .mark svg { width: 100%; height: auto; display: block; }
.sub { margin-top: -10px; color: var(--graphite); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
.codein { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }

.frame { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; background: var(--white); border-right: 1px solid var(--line); }
.mark { display: block; width: 70px; color: var(--ink); }
.appname { font-size: .78rem; color: var(--graphite); font-weight: 500; margin-top: -8px; }
.appname b { display: block; color: var(--ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.rail nav { display: grid; gap: 2px; }
.rail nav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink2); }
.rail nav a:hover { background: var(--concrete); }
.rail nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #fff; font-size: .74rem; display: grid; place-items: center; animation: pulse 1.6s infinite; }
.count:empty, .count[hidden] { display: none; }
.shift { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: 12px; background: var(--concrete); font-weight: 600; font-size: .88rem; cursor: pointer; }
.whoami b { display: block; font-size: .88rem; }
.whoami small { display: block; color: var(--graphite); font-size: .76rem; line-height: 1.35; }
.switch { position: relative; width: 42px; height: 24px; flex: none; display: inline-block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 24px; background: #C5C9CE; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s var(--ease); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
main { padding: 28px 32px 48px; min-width: 0; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ph .muted { margin-top: 6px; font-size: .88rem; }
.phr { display: flex; gap: 10px; }

.qbody { display: grid; gap: 26px; max-width: 980px; }
.qgroup h2 { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); margin-bottom: 10px; }
.qgroup h2 span { color: var(--ink); margin-left: 4px; }
.qlist { display: grid; gap: 10px; }
.q { display: flex; gap: 18px; align-items: center; padding: 16px 18px 16px 20px; border-radius: var(--r); background: var(--white); box-shadow: 0 1px 0 var(--line); border-left: 4px solid #C5C9CE; }
.q.waiting { border-left-color: var(--red); }
.q.waiting.forme { border-left-color: var(--blue); background: linear-gradient(90deg, var(--blue-soft), var(--white) 40%); }
.q.active { border-left-color: var(--green); }
.q.mine { box-shadow: 0 0 0 2px var(--green); }
.qmain { flex: 1; min-width: 0; display: grid; gap: 4px; }
.qtop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.qtop b { font-size: 1.02rem; }
.car { color: var(--graphite); font-size: .86rem; font-weight: 500; }
.tag { padding: 1px 9px; border-radius: 10px; background: var(--soft); font-size: .72rem; font-weight: 600; }
.tag.own { background: var(--blue-soft); color: #0B4FA0; }
.qtopic { font-weight: 600; font-size: .9rem; }
.qq { color: var(--ink2); font-size: .88rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qq::before { content: "\201C"; } .qq::after { content: "\201D"; }
.qmeta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--graphite); }
.held { font-weight: 600; color: var(--ink2); }
.held.me { color: #0B4FA0; }
.held.open { color: var(--green); }
.held b { font-variant-numeric: tabular-nums; }
.qact { display: flex; gap: 6px; flex: none; }
.empty { padding: 48px 20px; text-align: center; border: 2px dashed var(--line); border-radius: 16px; display: grid; gap: 14px; justify-items: center; color: var(--graphite); }
.empty h2 { color: var(--ink2); }

.conv { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr); gap: 18px; height: calc(100vh - 76px); }
.stagecol { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.stage { position: relative; flex: 1; min-height: 280px; border-radius: 16px; overflow: hidden; background: #0B0B0D; }
.stage video, .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.stage canvas.live { cursor: crosshair; }
.stage canvas.live[data-mode="draw"] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='5' fill='%23D70C19' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 11 11, crosshair; }
.stageempty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #C9CCD0; font-weight: 500; text-align: center; padding: 20px; }
.selfpip { position: absolute; right: 14px; bottom: 14px; width: 22%; max-width: 200px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .85); background: #222; z-index: 3; }
.selfpip video { object-fit: cover; }
.selfpip.mirror video, .selfpip.mirror canvas { transform: scaleX(-1); }
.chip { position: absolute; top: 14px; padding: 5px 12px; border-radius: var(--pill); font-size: .75rem; font-weight: 600; z-index: 3; }
.chip.rec { right: 14px; background: var(--red); color: #fff; }
.chip.rec b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.chip.still { left: 14px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tgroup { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--white); box-shadow: 0 1px 0 var(--line); }
.tool { min-height: 36px; padding: 0 13px; border-radius: var(--pill); border: 0; background: var(--white); color: var(--ink); font-weight: 600; font-size: .85rem; cursor: pointer; box-shadow: 0 1px 0 var(--line); }
.tgroup .tool { box-shadow: none; }
.tool.on { background: var(--ink); color: var(--white); }
.tool.rec { background: var(--red); color: #fff; }
.tool.live { background: var(--green); color: #fff; }
.tool.live.on { background: var(--red); }
.tool[disabled] { opacity: .4; cursor: default; }
.tool[aria-pressed="true"]:not(.on):not([data-act="mode"]) { background: var(--soft); }
.tmark, .tcall { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.tcall { order: -1; flex: 1 1 100%; }

.chatcol { display: flex; flex-direction: column; min-height: 0; border-radius: 16px; background: var(--white); box-shadow: 0 1px 0 var(--line); overflow: hidden; }
.chead { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.chtop { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-start; }
.chwho { flex: 1 1 180px; min-width: 0; }
.chwho small { display: block; }
.chwho .cmail { overflow-wrap: anywhere; }
.chtop h1 { font-size: 1.2rem; }
.chtop small { color: var(--graphite); font-size: .8rem; overflow-wrap: break-word; max-width: 100%; }
.chact { display: flex; flex: 1 1 100%; gap: 6px; flex-wrap: wrap; align-items: center; }
.chact .iconbtn { margin-left: auto; color: var(--graphite); }
.iconbtn.flag svg { width: 20px; height: 20px; }
.cfacts { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cfacts div { display: grid; }
.cfacts dt { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }
.cfacts dd { margin: 0; font-size: .84rem; font-weight: 500; }
.banner, .pickbar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--blue-soft); font-size: .88rem; }
.banner[hidden], .pickbar[hidden] { display: none; }
.banner, .pickbar { flex-wrap: wrap; }
.banner span, .pickbar span { flex: 1 1 220px; }
.banner > span { flex-basis: 100%; }
.pickbar { background: #FDECEE; }
.msgs { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; min-height: 120px; }
.m { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 86%; }
.m.us { align-self: flex-end; align-items: flex-end; }
.m.them { align-self: flex-start; }
.m .who { font-size: .7rem; font-weight: 600; color: var(--graphite); padding: 0 4px; }
.bubble { padding: 9px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.42; overflow-wrap: break-word; max-width: 100%; }
.m.us .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.m.them .bubble { background: var(--concrete); border-bottom-left-radius: 4px; }
.m time { font-size: .66rem; color: var(--graphite); padding: 0 4px; }
.m.sys { align-self: center; align-items: center; text-align: center; max-width: 94%; }
.m.sys span { font-size: .74rem; color: var(--graphite); }
.m.note { align-self: stretch; max-width: none; padding: 8px 12px; border-radius: 10px; background: var(--note); border: 1px solid #F0DE9A; }
.m.note p { font-size: .86rem; }
.cardnote { font-size: .76rem; font-style: italic; color: var(--graphite); padding: 0 4px; }
.typing { padding: 0 18px 6px; font-size: .78rem; color: var(--graphite); font-style: italic; }
.helpers { border-top: 1px solid var(--line); padding: 12px 16px; max-height: 42%; overflow-y: auto; display: grid; gap: 10px; background: #FBFBFC; }
.helpers[hidden] { display: none; }
.hhead { display: flex; align-items: center; justify-content: space-between; }
.askrow { display: flex; gap: 8px; }
.askrow input { flex: 1; min-width: 0; min-height: 38px; padding: 0 14px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--white); }
#sugs { display: grid; gap: 8px; }
.sug { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.sug p { font-size: .84rem; color: var(--ink2); }
.sug small { font-size: .72rem; color: var(--graphite); }
.sug .btn { justify-self: start; }
.cliprows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cliprows li { display: flex; gap: 10px; align-items: center; }
.cliprows img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; flex: none; }
.cliprows span { flex: 1; font-size: .84rem; font-weight: 600; line-height: 1.3; }
.cliprows small { display: block; font-weight: 400; color: var(--graphite); }
.compose { border-top: 1px solid var(--line); padding: 10px 12px 12px; display: grid; gap: 8px; }
.compose[hidden] { display: none; }
.compose.noting { background: var(--note); }
.cbar { display: flex; flex-wrap: wrap; gap: 6px; }
.cb { min-height: 30px; padding: 0 12px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--white); font-size: .78rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cb[disabled] { opacity: .4; cursor: default; }
.crow { display: flex; gap: 8px; align-items: stretch; }
.cside { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; flex: none; }
.cside .btn, .cside .cb { width: 100%; justify-content: center; }
.crow textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); resize: vertical; font-size: .92rem; background: var(--white); }
.crow textarea:focus { outline: none; border-color: var(--ink); }

.find { margin-bottom: 14px; max-width: 520px; }
.find input[type=search] { width: 100%; min-height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--white); }
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.tbl th { text-align: left; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .88rem; vertical-align: top; }
.tbl td small { display: block; color: var(--graphite); font-size: .76rem; }
.tbl td small.reason { color: var(--ink2); font-style: italic; margin-top: 4px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr[data-go] { cursor: pointer; }
.tbl tr[data-go]:hover td { background: var(--concrete); }
.tbl td.acts { text-align: right; white-space: nowrap; }
.row + .tbl { margin-top: 14px; }
.tbl.small td { font-size: .8rem; padding: 8px 12px; }
.tbl td.detail { max-width: 360px; overflow-wrap: anywhere; color: var(--graphite); font-size: .74rem; }
.tbl td small.show-s { display: none; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: .72rem; font-weight: 600; background: var(--soft); text-transform: capitalize; }
.pill.active, .pill.approved { background: #E3F4EA; color: #145C31; }
.pill.invited, .pill.requested { background: var(--blue-soft); color: #0B4FA0; }
.pill.suspended, .pill.denied, .pill.revoked, .pill.deleted { background: #FDECEE; color: #8F0A13; }
.pill.admin { background: var(--ink); color: #fff; }
.formcard { padding: 20px; border-radius: 14px; background: var(--white); box-shadow: 0 1px 0 var(--line); margin-bottom: 16px; display: grid; gap: 14px; }
.formcard.narrow, form.narrow { max-width: 620px; }
.formcard > .btn, .formcard .row .btn { justify-self: start; }
.formcard > .btn.sm { justify-self: start; }
.formcard > small:empty, .formcard > div:empty, .formcard > ul:empty { display: none; }
.formcard .find { margin-bottom: 0; }
.formcard .rows li.muted { font-size: .86rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.facts { margin: 0; display: grid; gap: 8px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--graphite); font-size: .84rem; }
.facts dd { margin: 0; font-weight: 500; font-size: .88rem; text-align: right; overflow-wrap: anywhere; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows li > a { flex: 1; text-decoration: none; display: block; }
.rows li > span:first-child { flex: 1; min-width: 0; }
.rows b { display: block; font-size: .9rem; }
.rows small { display: block; color: var(--graphite); font-size: .78rem; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.log li { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; font-size: .8rem; }
.log li:not(:has(time)) { grid-template-columns: minmax(0, 1fr) auto; }
.log time { color: var(--graphite); }
.log small { color: var(--graphite); }
.formcard video { width: 100%; border-radius: 10px; background: #000; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: var(--pill); text-decoration: none; font-weight: 600; font-size: .86rem; color: var(--ink2); }
.tabs a:hover { background: var(--white); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--white); }
.reports { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reports li { display: flex; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--white); box-shadow: 0 1px 0 var(--line); border-left: 4px solid var(--red); }
.reports li.closed { border-left-color: #C5C9CE; opacity: .75; }
.reports li > div:first-child { flex: 1; }
.reports p { font-size: .9rem; margin: 4px 0; }
.reports small { color: var(--graphite); font-size: .76rem; }
.reports .acts { display: flex; gap: 6px; align-items: flex-start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tiles div { padding: 18px; border-radius: 14px; background: var(--white); box-shadow: 0 1px 0 var(--line); display: grid; gap: 4px; }
.tiles b { font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; }
.tiles span { font-size: .8rem; color: var(--graphite); }

@media (max-width: 1100px) {
  .conv { grid-template-columns: 1fr; height: auto; }
  .stage { flex: none; height: 56vh; }
  .chatcol { min-height: 70vh; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .frame { grid-template-columns: 1fr; }
  .rail { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mark { width: 54px; }
  .appname, .whoami { display: none; }
  .rail nav { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 4px; }
  .rail nav a { padding: 7px 12px; gap: 8px; white-space: nowrap; }
  .shift { margin: 0 0 0 auto; padding: 6px 10px; }
  main { padding: 18px 14px 40px; }
  .q { flex-direction: column; align-items: stretch; }
  .qact { justify-content: flex-start; }
  .grid2 { grid-template-columns: 1fr; }
  .hide-s { display: none; }
  .ph { flex-wrap: wrap; }
}
.tool.endcall { background: var(--red); color: #fff; }
.chip.away { left: 50%; top: auto; bottom: 16px; transform: translateX(-50%); background: rgba(255, 255, 255, .94); color: var(--ink); white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.stageempty .row { justify-content: center; }
.tag.speak { background: #E3F4EA; color: #145C31; }
.q.langmatch { box-shadow: 0 1px 0 var(--line), inset 0 0 0 1px #BFE3CC; }
.find { display: flex; gap: 14px; align-items: center; }
.find input[type=search] { flex: 1 1 220px; min-width: 0; }
.find .check { flex: none; font-size: .88rem; }
.settings { display: grid; gap: 0; }
.field.inline { grid-template-columns: 1fr auto; }
.unit { display: inline-flex; align-items: center; gap: 8px; }
.unit input { width: 96px; }
.unit small { color: var(--graphite); font-size: .78rem; min-width: 48px; }
.field.inline input[type=time] { width: 130px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; font-size: .9rem; cursor: pointer; }
.who-row { display: flex; gap: 18px; align-items: center; }
.facepic { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 600; flex: none; }
.facepic img { width: 100%; height: 100%; object-fit: cover; }
.filebtn { cursor: pointer; }
.btn.dangerfill { background: var(--red); border-color: var(--red); color: #fff; }
.sheet-wrap { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(10, 10, 12, 0); transition: background .18s; }
.sheet-wrap.in { background: rgba(10, 10, 12, .45); }
.sheet { width: min(100%, 480px); max-height: 90vh; overflow-y: auto; padding: 22px 22px 18px; border-radius: 18px; background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); transform: translateY(12px); opacity: 0; transition: transform .2s var(--ease), opacity .18s; }
.sheet-wrap.in .sheet { transform: none; opacity: 1; }
.sheet h2 { font-size: 1.15rem; margin-bottom: 8px; }
.sheet-text { color: var(--ink2); font-size: .9rem; margin-bottom: 14px; }
.sheet-form { display: grid; gap: 14px; }
.sheet-field { display: grid; gap: 5px; }
.sheet-field span { font-size: .8rem; font-weight: 600; }
.sheet-field input, .sheet-field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .95rem; }
.sheet-field textarea { resize: vertical; }
.sheet-check { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.sheet-check input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.sheet-acts { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) { .find { flex-wrap: wrap; } .field.inline { grid-template-columns: 1fr; } }
.stack > .btn { justify-self: start; }
.sbox .btn.ghost { justify-self: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--graphite); font-size: .8rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.center { text-align: center; }
.center-row { justify-content: center; }
.small { font-size: .82rem; }
.phonepip { position: absolute; left: 14px; bottom: 14px; width: 22%; max-width: 180px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .85); background: #222; z-index: 3; }
.phonepip video { object-fit: cover; }
.phonepip span { position: absolute; left: 6px; bottom: 6px; padding: 1px 8px; border-radius: 9px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .68rem; font-weight: 600; }
.qrrow { display: flex; gap: 16px; align-items: center; }
.qr { width: 150px; flex: none; background: #fff; border-radius: 10px; padding: 4px; box-shadow: 0 1px 0 var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.qr.big { width: min(100%, 260px); margin: 0 auto; }
.qrwait { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--ink2); }
.pulsedot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); animation: pulse 1.2s infinite; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--graphite); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); }
.ticks li.yes { color: var(--ink); font-weight: 600; }
.ticks li.yes::before { background: var(--green); border-color: var(--green); }
.hhero { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.hhero img { width: 160px; height: 90px; object-fit: contain; flex: none; }
.hcols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.hside { position: sticky; top: 16px; display: grid; gap: 12px; }
.hprog { display: grid; gap: 6px; margin-bottom: 14px; }
.hprog small { color: var(--graphite); font-weight: 600; }
.bar { display: block; height: 8px; border-radius: 8px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--green); transition: width .3s var(--ease); }
.hlist { list-style: none; margin: 0; padding: 0; }
.hitem { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.hitem:first-child { border-top: 0; }
.hb { display: grid; gap: 2px; min-width: 0; }
.hb b { font-size: .95rem; }
.hb small { color: var(--graphite); font-size: .8rem; }
.hacts { display: flex; gap: 6px; align-items: center; flex: none; }
.hitem.covered .hb b { color: var(--green); }
.hitem.declined .hb b { color: var(--graphite); text-decoration: line-through; }
.hitem .tool.on[data-v="covered"] { background: var(--green); }
.hitem .tool.on[data-v="declined"] { background: var(--graphite); }
.campage { min-height: 100vh; min-height: 100dvh; background: #0B0B0D; color: #fff; display: flex; flex-direction: column; }
.camtop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 600; font-size: .92rem; }
.camtop .mark { width: 52px; color: #fff; }
.campage video { flex: 1; width: 100%; min-height: 0; object-fit: contain; background: #000; }
.camnote { text-align: center; padding: 8px 16px 0; font-size: .9rem; color: #D7DADF; min-height: 1.5em; }
.campage .camctl { display: flex; justify-content: center; gap: 10px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.campage .btn.primary { background: var(--white); border-color: var(--white); color: var(--ink); }
.campage .camcover[aria-pressed="false"] { background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--white); }
.player { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 12, .9); display: grid; place-items: center; padding: 16px; }
.pbox { width: min(100%, 960px); }
.pbar { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 8px; }
.pbar b { flex: 1; }
.iconbtn.light { color: #fff; }
.pframe { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.pframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.inshead { margin-bottom: 14px; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.cols2 .formcard { margin-bottom: 0; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(0, 40%) 1fr 34px; gap: 10px; align-items: center; font-size: .84rem; }
.bars .bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .bt { height: 10px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.bars .bt i { display: block; height: 100%; background: var(--ink); border-radius: 6px; }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.off td { opacity: .55; }
.dform { display: flex; gap: 6px; align-items: center; }
.dform input { flex: 1; min-width: 160px; min-height: 36px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 8px; }
@media (max-width: 1000px) { .hcols { grid-template-columns: 1fr; } .hside { position: static; } }
@media (max-width: 760px) { .hitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 8px; align-items: start; } .hacts { display: contents; } .hacts > .btn { grid-column: 2; grid-row: 1; margin-top: -4px; } .hacts > .tgroup { grid-column: 1 / -1; } .hhero img { width: 110px; height: 62px; } .qrrow { flex-direction: column; } }
@media (max-width: 1000px) { .hcols { display: flex; flex-direction: column; } .hside { order: -1; } .hmain { min-width: 0; } }
@media (max-width: 760px) { .frame { grid-template-columns: minmax(0, 1fr); } .rail, .rail nav, main { min-width: 0; } .hhero > div { min-width: 0; } }
.hfinish-m { display: none; }
@media (max-width: 1000px) { .hside { width: 100%; } .hside > .btn { display: none; } .hfinish-m { display: flex; margin-bottom: 16px; } }
@media (max-width: 760px) {
  .tools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
  .tcall { order: -1; flex: none; margin-left: 0; justify-content: stretch; }
  .tcall .tool { flex: 1 1 0; min-width: max-content; min-height: 44px; padding: 0 8px; font-size: .84rem; }
  .tmark .tgroup { flex: 1 1 100%; }
  .tmark .tgroup .tool, .tmark > .tool { flex: 1 1 0; min-width: max-content; padding: 0 8px; min-height: 38px; font-size: .82rem; }
  .chead { padding: 14px 14px 12px; }
  .chtop h1 { font-size: 1.1rem; }
  .frame { grid-template-rows: auto 1fr; }
  .rail { align-content: flex-start; }
  .tbl th, .tbl td { padding: 10px 8px; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 12px; }
  .tbl th:last-child, .tbl td:last-child { padding-right: 12px; }
  .tbl th { letter-spacing: .04em; }
  .formcard { padding: 16px; }
  .qact .btn.ghost { margin-left: auto; }
  .rail nav, .tabs { scrollbar-width: none; }
  .rail nav::-webkit-scrollbar { display: none; }
  .rail nav.fr, .tabs.fr { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .rail nav.fl, .tabs.fl { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
  .rail nav.fl.fr, .tabs.fl.fr { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 32px), transparent); }
  .phr { flex-wrap: wrap; }
  .ph:has(.phr > :nth-child(2)) .phr { flex: 1 1 100%; }
  .ph:has(.phr > :nth-child(2)) .phr .btn { flex: 1 1 auto; }
  .ph { row-gap: 12px; }
  .dform { flex-wrap: wrap; }
  .dform input { flex: 1 1 140px; min-width: 0; }
  .log li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .log li > span { grid-row: 1; grid-column: 1; }
  .log li > small { grid-row: 1; grid-column: 2; }
  .log time { grid-row: 2; grid-column: 1 / -1; font-size: .74rem; }
  .tbl td { overflow-wrap: anywhere; }
  .tbl td .pill, .tbl td .btn, .tbl td b { overflow-wrap: normal; }
  .tbl td .pill, .tbl td .btn { white-space: nowrap; }
  .tbl td.acts { white-space: normal; }
  .tbl td small.show-s { display: block; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 16px; padding: 0 14px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; white-space: nowrap; }
  .hacts .tgroup { flex: 1 1 auto; }
  .hacts .tgroup .tool { flex: 1 1 0; min-width: max-content; padding: 0 10px; white-space: nowrap; }
}
#loadbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .2s; }
#loadbar.on { opacity: 1; }
#loadbar::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: var(--red); animation: loadslide 1s ease-in-out infinite; }
@keyframes loadslide { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { #loadbar::after { left: 0; width: 100%; opacity: .6; } }
.btn.busy, .tool.busy, .cb.busy { position: relative; opacity: 1; color: transparent !important; pointer-events: none; }
.btn.busy::after, .tool.busy::after, .cb.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid var(--ink); border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.primary.busy::after, .btn.danger.busy::after, .tool.live.busy::after, .tool.endcall.busy::after, .tool.on.busy::after { border-color: #fff; border-right-color: transparent; }
.vwait { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(11, 11, 13, .55); color: #fff; font-weight: 600; font-size: .92rem; text-align: center; padding: 20px; }
.vwait .spin { margin: 0; border-color: rgba(255, 255, 255, .25); border-top-color: #fff; }
.vwait[hidden], .swapbtn[hidden], .chip[hidden] { display: none; }
.chip.conn { left: 50%; top: 54px; transform: translateX(-50%); background: rgba(255, 255, 255, .94); color: var(--ink); white-space: nowrap; }
.chip.conn::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--amber, #A86200); animation: pulse 1s infinite; vertical-align: 1px; }
.swapbtn { position: absolute; left: 14px; top: 14px; z-index: 5; min-height: 32px; padding: 0 14px; border: 0; border-radius: var(--pill); background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 600; font-size: .78rem; cursor: pointer; }
.selfpip { cursor: pointer; }
.stage.swapped .selfpip { inset: 0; right: 0; bottom: 0; width: auto; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; z-index: 1; cursor: default; }
.stage.swapped .selfpip video { object-fit: contain; background: #0B0B0D; }
.stage.swapped #theirv { inset: auto; right: 14px; bottom: 70px; width: 22%; max-width: 200px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .85); background: #222; z-index: 3; }
.stage.swapped > canvas, .stage.swapped #still { display: none; }
.q.waiting.msg { border-left-color: #8A9097; }
.tag.msg { background: #FFF1DB; color: #8A5200; }
@media (max-width: 760px) {
  .signin { place-items: start center; padding: 28px 16px; min-height: auto; }
  .sbox { padding: 28px 22px; }
}
.toast { width: max-content; text-align: center; line-height: 1.4; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tiles div { padding: 14px; } .tiles b { font-size: 1.5rem; } .tiles span { font-size: .76rem; line-height: 1.35; } }
.tbl th.num, .tbl td.num { width: 1%; white-space: nowrap; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.cardhead h2 { margin: 0; }
.sendrow { display: flex; align-items: center; gap: 6px; }
.sendrow span { flex: 1; font-size: .84rem; font-weight: 600; color: var(--ink2); }
.invform { max-width: 640px; }
.invcard { max-width: 420px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.invcard .qr.big { width: min(100%, 300px); }
.joined { display: grid; gap: 2px; }
.joined b { font-size: 1.05rem; }
.joined small { color: var(--graphite); }
.center { text-align: center; }
.invcard .row { justify-content: center; }
.invcard .joined + .row { margin-top: 16px; }
.invcard p + .btn { margin-top: 12px; }
.invcard.done .qr, .invcard.done > .muted { display: none; }
.invcard.done .joined { padding-top: 6px; }
.colside .stack.tight > .btn { width: 100%; justify-content: center; }
.tabbar, .meav { display: none; }
.actionbar .btn.ghost { padding: 0 14px; }
.actionbar { position: sticky; bottom: 0; z-index: 6; margin: 4px -20px -20px; padding: 18px 20px 20px; border-radius: 0 0 14px 14px; background: linear-gradient(rgba(255, 255, 255, 0), var(--white) 18px); }
.savebar { position: sticky; bottom: 12px; z-index: 6; box-shadow: 0 1px 0 var(--line), 0 10px 28px rgba(0, 0, 0, .08); }
main > * { animation: screenin .22s var(--ease) backwards; }
#app.quiet main > * { animation: none; }
@keyframes screenin { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 760px) {
  .rail nav { display: none; }
  .chact .btn.sm { padding: 0 13px; }
  .meav { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
  .meav[aria-current="page"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--red); }
  .frame { grid-template-rows: auto 1fr auto; }
  main { padding-bottom: 28px; }
  .tabbar { position: sticky; bottom: 0; z-index: 25; display: flex; padding: 0 2px env(safe-area-inset-bottom, 0px); background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; flex: 1 1 0; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px 2px 6px; color: var(--graphite); text-decoration: none; font-size: .7rem; font-weight: 600; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 50%; width: 28px; margin-left: -14px; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
  .tabbar a:active svg { transform: scale(.92); }
  .tabbar a:focus-visible { outline-offset: -4px; border-radius: 12px; }
  .tabbar .count { position: absolute; top: 5px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: .64rem; box-shadow: 0 0 0 2px var(--white); }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .actionbar { bottom: calc(57px + env(safe-area-inset-bottom, 0px)); margin: 4px -16px -16px; padding: 16px; }
  .savebar { bottom: calc(65px + env(safe-area-inset-bottom, 0px)); }
  .hfinish-m { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 6; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
}
.callstate { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 16px; border-radius: var(--pill); background: var(--white); box-shadow: 0 1px 0 var(--line); font-size: .84rem; font-weight: 600; color: var(--ink2); }
.callstate .cdot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.callstate.live { background: #E3F4EA; color: #145C31; box-shadow: none; }
.callstate.live .cdot { animation: pulse 1.4s infinite; }
.mutes { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; pointer-events: none; }
.mchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px 5px 9px; border-radius: var(--pill); background: rgba(143, 10, 19, .92); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.mchip svg { width: 16px; height: 16px; flex: none; }
.mchip[hidden] { display: none; }
.tend { order: -1; display: flex; margin-left: auto; }
.tool.endconv { background: var(--red); color: #fff; padding: 0 18px; }
.tool.endcall { background: var(--ink); color: #fff; }
.recap .facts dd { max-width: 70%; }
.savednote { white-space: pre-wrap; color: var(--ink2); font-size: .9rem; }
@media (min-width: 761px) { .tcall { flex: 0 1 auto; } .tmark { flex-basis: 100%; } }
@media (max-width: 760px) {
  .tend { order: -1; margin-left: 0; }
  .tend .tool { flex: 1 1 auto; min-height: 44px; font-size: .88rem; }
  .callstate { font-size: .8rem; padding: 7px 14px; }
  .mutes { left: 8px; right: 8px; top: 10px; gap: 4px; }
  .mchip { font-size: .72rem; padding: 4px 10px 4px 7px; gap: 4px; }
  .mchip svg { width: 14px; height: 14px; }
}
.conv { grid-template-rows: auto minmax(0, 1fr); row-gap: 0; }
.stagecol, .chatcol { grid-row: 2; }
.pickhero { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 18px; margin-bottom: 16px; padding: 16px 18px 16px 22px; border-radius: 16px; background: var(--ink); color: var(--white); box-shadow: 0 12px 30px rgba(0, 0, 0, .14); }
.pickhero[hidden] { display: none; }
.phtext { flex: 1; min-width: 0; display: grid; gap: 3px; }
.phtext > b { font-size: 1.12rem; font-weight: 600; }
.phtext span { font-size: .84rem; color: #C9CCD0; }
.phtext span b { color: var(--white); font-variant-numeric: tabular-nums; }
.pickhero .btn { flex: none; min-height: 54px; padding: 0 36px; font-size: 1.05rem; background: var(--green); border-color: var(--green); color: var(--white); }
.pickhero .btn[disabled] { background: #5A5F66; border-color: #5A5F66; opacity: 1; }
.stage .callstate { position: absolute; left: 12px; top: 12px; z-index: 6; max-width: calc(100% - 24px); min-height: 32px; padding: 5px 13px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); font-size: .78rem; }
.stage .callstate.live { background: rgba(227, 244, 234, .96); }
.stage .tools { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 6; flex-wrap: nowrap; gap: 8px; }
.stage .tcall { order: 0; flex: 0 1 auto; flex-wrap: nowrap; }
.stage .tend { order: 1; margin-left: auto; }
.stage .tool { box-shadow: 0 4px 14px rgba(0, 0, 0, .25); white-space: nowrap; }
.stage .tool[disabled] { opacity: .55; }
.stage .tmark { position: absolute; left: 0; bottom: calc(100% + 10px); flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
.stage .tmark .tgroup { flex-direction: column; border-radius: 18px; }
.stage .tools.nomark .tmark { display: none; }
.conv:not(.novideo) .stage .tools { align-items: flex-end; }
.conv:not(.novideo) .stage .tcall { flex-wrap: wrap; }
.mchip.fxnote { background: rgba(11, 11, 13, .8); }
.sml { display: none; }
.selfpip { bottom: 70px; }
.phonepip { left: auto; right: 14px; top: 52px; bottom: auto; }
.chip.still { top: 52px; }
.chip.away { bottom: 72px; }
.mutes { top: 52px; }
.selfpip canvas { pointer-events: none; }
.selfpip canvas.live { pointer-events: auto; cursor: crosshair; }
.conv.novideo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
.conv.novideo .chatcol { grid-row: 3; }
.conv.novideo .stagecol { grid-row: 2; margin-bottom: 14px; }
.conv.novideo .stage { position: static; flex: none; height: auto; min-height: 0; overflow: visible; border-radius: 0; background: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.conv.novideo .stage > :not(.callstate):not(.tools):not(.tend) { display: none !important; }
.conv.novideo .callstate, .conv.novideo .tools { position: static; }
.conv.novideo .callstate { flex: 0 1 auto; }
.conv.novideo .tools { flex: 1 1 auto; flex-wrap: wrap; }
.conv.novideo .tmark { display: none; }
.conv.novideo .tend { margin-left: auto; }
.conv.novideo .tool { box-shadow: 0 1px 0 var(--line); }
@media (max-width: 1100px) {
  .conv { grid-template-rows: auto auto auto; }
  .stagecol { grid-row: 2; }
  .chatcol, .conv.novideo .chatcol { grid-row: 3; }
}
@media (max-width: 760px) {
  .pickhero { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .pickhero .btn { width: 100%; }
  .conv:not(.novideo) .stage .tools { flex-direction: row; align-items: center; left: 8px; right: 8px; bottom: 8px; gap: 6px; }
  .conv:not(.novideo) .stage .tcall { order: 0; flex: 0 1 auto; gap: 6px; }
  .conv:not(.novideo) .stage .tcall .tool, .conv:not(.novideo) .stage .tend .tool { flex: 0 1 auto; min-width: 0; min-height: 40px; padding: 0 11px; font-size: .78rem; }
  .conv:not(.novideo) .stage .tend { order: 1; margin-left: auto; }
  .conv:not(.novideo) .stage .tmark .tgroup { flex: none; }
  .conv:not(.novideo) .stage .tmark .tgroup .tool, .conv:not(.novideo) .stage .tmark > .tool { flex: none; min-width: 0; min-height: 34px; padding: 0 11px; font-size: .74rem; }
  .conv:not(.novideo) .stage .lgl, .conv:not(.novideo) #swapbtn { display: none; }
  .conv:not(.novideo) .stage .sml { display: inline; }
  .stage .callstate { left: 8px; top: 8px; max-width: calc(100% - 16px); font-size: .74rem; }
  .conv:not(.novideo) .stage .callstate { white-space: nowrap; }
  .conv:not(.novideo) .stage .callstate #callstatetext { overflow: hidden; text-overflow: ellipsis; }
  .selfpip, .stage.swapped #theirv { bottom: 60px; }
  .mutes { top: 46px; }
  .conv.novideo .callstate { flex: 1 1 100%; }
  .conv.novideo .tools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; flex-basis: 100%; }
  .conv.novideo .tend { margin-left: 0; }
}
html, body { overscroll-behavior-y: none; }
.zoomtool { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: var(--pill); background: var(--white); font-size: .8rem; font-weight: 600; box-shadow: 0 1px 0 var(--line); }
.stage .zoomtool { box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.zoomtool input { width: 110px; accent-color: var(--ink); }
.zoomtool[hidden] { display: none; }
#mylightbtn[aria-pressed="true"] { background: #FFF3C4; }
@media (max-width: 760px) {
  .conv:not(.novideo) .stage .tcall { flex-wrap: wrap; }
  .conv:not(.novideo) .stage .tools { align-items: flex-end; }
  .zoomtool { padding: 0 10px; gap: 0; }
  .conv:not(.novideo) .stage { height: min(70vh, 600px); min-height: 420px; }
  .zoomtool span { display: none; }
  .zoomtool input { width: 86px; }
}
.sheet-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink2); font-size: .92rem; line-height: 1.45; }
.sendrow.stackrow { flex-wrap: wrap; }
.sendrow.stackrow span { flex-basis: 100%; }
.mrb { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 17, 20, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mrb svg { width: 21px; height: 21px; }
.mrb.on, .mrb[aria-pressed="true"] { background: #fff; color: var(--ink); }
.mrb.rec { background: var(--red); box-shadow: none; color: #fff; }
.mrb[hidden] { display: none; }
.mrb[disabled] { opacity: .45; cursor: default; }
.stage .tmark .tgroup, .conv:not(.novideo) .stage .tmark .tgroup { display: flex; flex-direction: column; gap: 8px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.stage .tmark { gap: 8px; }
.vbtn { display: grid; justify-items: center; gap: 5px; min-width: 58px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: .74rem; font-weight: 600; cursor: pointer; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); -webkit-tap-highlight-color: transparent; }
.vbtn[hidden] { display: none; }
.vbtn[disabled] { opacity: .5; cursor: default; }
.vcirc { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 17, 20, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vcirc svg { width: 24px; height: 24px; }
.vbtn[aria-pressed="true"] .vcirc { background: #fff; color: var(--ink); }
#mutebtn[aria-pressed="true"] .vcirc { background: #fff; color: var(--red); }
.vbtn.go .vcirc { background: var(--green); box-shadow: none; }
.vbtn.stop .vcirc { background: var(--red); box-shadow: none; }
.vlab, .fxl { white-space: nowrap; }
.vbtn.busy, .mrb.busy { opacity: .6; pointer-events: none; }
.conv:not(.novideo) .stage .tcall { order: 0; flex: 1 1 auto; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 6px 12px; }
.conv:not(.novideo) .stage .tools { left: 8px; right: 8px; bottom: 10px; align-items: flex-end; }
.conv:not(.novideo) .stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 5; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .64), rgba(0, 0, 0, 0)); }
.fxtray { display: flex; justify-content: center; gap: 16px; }
.fxtray[hidden] { display: none; }
.stage .fxtray { position: absolute; left: 0; right: 0; bottom: calc(100% + 12px); z-index: 7; }
.fxt { display: grid; justify-items: center; gap: 5px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: .74rem; font-weight: 600; cursor: pointer; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); -webkit-tap-highlight-color: transparent; }
.fxc { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 17, 20, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fxc svg { width: 25px; height: 25px; }
.fxt[aria-pressed="true"] .fxc { background: #fff; color: var(--ink); box-shadow: 0 0 0 3px var(--red); }
.fxt:disabled { cursor: default; }
.conv:not(.novideo) .stage:has(.fxtray:not([hidden]))::after { height: 270px; }
.crail { position: absolute; right: 12px; top: 38%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.stage > .tend { position: absolute; right: 12px; top: 12px; z-index: 6; margin: 0; }
.stage > .tend .tool.endconv { min-height: 34px; padding: 0 14px; font-size: .8rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.conv:not(.novideo) .stage .callstate { max-width: calc(100% - 210px); }
.pipfx { position: absolute; right: 6px; top: 6px; z-index: 2; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 17, 20, .72); color: #fff; cursor: pointer; }
.pipfx svg { width: 17px; height: 17px; }
.pipfx[hidden], .stage.swapped .pipfx { display: none; }
.mchip.fxnote.bad { background: rgba(143, 10, 19, .92); }
.conv:not(.novideo) .selfpip, .conv:not(.novideo) .stage.swapped #theirv { bottom: 104px; }
.conv:not(.novideo) .chip.away { bottom: 106px; }
.conv:not(.novideo) .chip.rec { top: 56px; }
.conv:not(.novideo) .phonepip { top: 92px; }
.conv.novideo .stage > .tend { position: static; order: 3; margin-left: auto; }
.conv.novideo .vbtn { color: var(--ink); text-shadow: none; }
.conv.novideo .vcirc { width: 44px; height: 44px; background: var(--ink); color: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.conv.novideo .vcirc svg { width: 21px; height: 21px; }
.conv.novideo .vbtn.go .vcirc { background: var(--green); }
.conv.novideo .vbtn.stop .vcirc { background: var(--red); }
.conv.novideo .vbtn[aria-pressed="true"] .vcirc { background: var(--soft); color: var(--ink); }
.conv.novideo .tcall { justify-content: flex-start; gap: 6px 12px; }
@media (max-width: 760px) {
  .conv:not(.novideo) .stage .callstate { max-width: calc(100% - 96px); }
  .vcirc { width: 46px; height: 46px; }
  .vbtn { min-width: 50px; font-size: .7rem; }
  .conv:not(.novideo) .stage .tcall { gap: 6px 8px; }
  .fxc { width: 50px; height: 50px; }
  .fxtray { gap: 12px; }
}
@media (max-width: 380px) {
  .conv:not(.novideo) .stage .tcall { gap: 6px 4px; }
  .vbtn { min-width: 48px; }
}
.teambody { display: grid; gap: 16px; }
.tiles div.warn b { color: var(--red); }
.teamtbl td b.late { color: var(--red); }
.teamtbl td .pill { margin-bottom: 4px; }
.teamtbl .pill { text-transform: none; }
.capbar { margin: 8px 0 0; padding: 10px 14px; border-radius: 14px; background: #0B0B0D; color: #fff; display: grid; gap: 6px; font-size: .95rem; line-height: 1.45; }
.capbar[hidden] { display: none; }
.capline { margin: 0; overflow-wrap: anywhere; }
.capwho { font-weight: 700; color: #FFD666; margin-inline-end: 4px; }
.caphead { display: flex; justify-content: flex-end; }
.caphead[hidden] { display: none; }
.capmode, .capshow { min-height: 32px; padding: 3px 12px; border-radius: 999px; border: 1px solid #A3A8AE; background: transparent; color: #fff; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.capmode[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0B0B0D; }
.capmode:focus-visible, .capshow:focus-visible { outline: 2px solid #FFD666; outline-offset: 2px; }
.capshow { display: block; margin-top: 6px; }
.captr { display: inline; }
.capnote { display: block; margin-top: 2px; font-size: .72rem; font-style: italic; color: #D2D5D9; }
.capline.hastr:not(.unsure) .caporig { display: block; margin-top: 2px; font-size: .82rem; color: #D2D5D9; }
.capline.unsure .captr, .capline.unsure .capnote { display: none; }
.capline.unsure.open .captr { display: block; margin-top: 6px; font-size: .9rem; color: #D2D5D9; }
.capline.unsure.open .capnote { display: block; }
.origonly .capline.hastr .captr, .origonly .capline.hastr .capnote, .origonly .capline.hastr .capshow { display: none; }
.origonly .capline.hastr .caporig { display: inline; margin: 0; font-size: inherit; color: inherit; }
.capwait { margin: 0; font-size: .88rem; color: #D2D5D9; }
.kbcross { position: absolute; z-index: 4; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 3px #D70C19; pointer-events: none; }
.kbcross[hidden] { display: none; }
.camwho { margin: 0; font-size: .92rem; font-weight: 600; }
#capsbtn[aria-pressed="true"] .vcirc { background: #fff; color: #1C1C20; }
.mark { display: flex; align-items: center; min-height: 24px; }
.trbar { margin-bottom: 12px; }
.trlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 10px; }
.trhead small { color: var(--graphite); font-size: .78rem; }
.trcols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tren h3 { margin: 0 0 4px; font-size: .95rem; }
.tren p { margin: 0; font-size: .9rem; color: var(--graphite); }
.trmachine { font-size: .85rem; color: var(--graphite); }
.trmachine summary { cursor: pointer; min-height: 24px; }
.trbtns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .trcols { grid-template-columns: 1fr; } }
