:root {
  --ink: #1C1C20; --ink2: #3A3D42; --graphite: #6C757D; --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; 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: 6px; }
.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([data-act="mode"]) { background: var(--soft); }
.tsp { flex: 1 1 0; min-width: 0; }

.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; gap: 12px; align-items: flex-start; }
.chtop > div:first-child { flex: 1; min-width: 0; }
.chtop h1 { font-size: 1.2rem; }
.chtop small { color: var(--graphite); font-size: .8rem; overflow-wrap: break-word; max-width: 100%; }
.chact { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cfacts { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.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: 10px 18px; background: var(--blue-soft); font-size: .88rem; }
.banner[hidden], .pickbar[hidden] { display: none; }
.banner span, .pickbar span { flex: 1; }
.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; }
.notecb { margin-left: auto; }
.crow { display: flex; gap: 8px; align-items: flex-end; }
.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 { 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; }
.tbl.small td { font-size: .8rem; padding: 8px 12px; }
.tbl td.detail { max-width: 360px; overflow-wrap: anywhere; color: var(--graphite); font-size: .74rem; }
.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; }
.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 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; }
.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; }
.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; }
.waiting { 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)); }
.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 { flex-direction: column; align-items: stretch; } .hacts { flex-wrap: wrap; } .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; } }
