/* Kalima Montaj: video page v2 (.v-*). Tokens come from app.css.
   Layout follows the container width (JS adds .vm-desk / .vm-tab / .vm-phone to .v-page). */
.v-page {
  --v-card: #FFFFFF; --v-card2: #FDF3DC; --v-blue: #C8860A; --v-blueweak: #FDF3DC; --v-line: #ECEAE4; --v-soft: #F6F4EF; --v-dark: #1C1C1C;
  --v-gold: #85550A;
  --pw: clamp(240px, calc((100vh - 300px) * .5625), 420px);
  display: flex; flex-direction: column; gap: 10px; margin: 0 auto; min-width: 0; color: var(--fg);
}
@supports (height: 100dvh) { .v-page { --pw: clamp(240px, calc((100dvh - 300px) * .5625), 420px); } }
.v-page * { min-width: 0; }
.v-page [hidden] { display: none !important; }
.v-skel { height: 200px; margin-bottom: 10px; border-radius: 16px; }
.v-card { background: var(--v-card); border: 1px solid var(--v-line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.v-cardtitle { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.v-sub { font-size: 14px; font-weight: 700; margin: 4px 0 8px; }
.v-empty { padding: 22px 10px; text-align: center; color: var(--muted); list-style: none; }
.v-gbtn { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--v-line); background: #fff; color: var(--fg); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.v-gbtn:hover { background: var(--v-soft); }
.v-gbtn.ghost { background: transparent; }
.v-gchip { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: 99px; font: inherit; font-size: 12px; font-weight: 600; background: #FDF3DC; border: 1px solid #F3E2B6; color: var(--v-gold); white-space: nowrap; }
.v-gchip.okc { background: #E7F5EC; border-color: #BFE3CB; color: var(--ok); }
.v-gchip.warnc { background: #FCEBE9; border-color: #F2C4BF; color: var(--warn); }
.v-gchip.mutedc { background: transparent; border-color: var(--v-line); color: var(--muted); }
button.v-gchip { cursor: pointer; }
.v-segbtn:focus-visible, .v-tab:focus-visible, .v-optsel:focus-visible, .v-shotmain:focus-visible, .v-seekchip:focus-visible, .v-phrase:focus-visible,
.v-seg-s:focus-visible, .v-ctlbtn:focus-visible, .v-sendbtn:focus-visible, .v-chbtn:focus-visible, .v-approve:focus-visible, .v-notetog:focus-visible { outline: 2px solid var(--v-blue); outline-offset: 2px; }

/* ---- top bar ---- */
.v-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-height: 36px; }
.v-back { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--muted); text-decoration: none; font-size: 13px; flex: none; }
.v-back:hover { color: var(--fg); }
.v-title { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; min-width: 0; }
.v-code { flex: none; padding: 3px 10px; border-radius: 8px; background: var(--v-soft); border: 1px solid var(--v-line); color: var(--muted); font-size: 12px; font-weight: 600; }
.v-h1 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; letter-spacing: -.01em; }
.v-stepper { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.v-step { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.v-stepdot { width: 8px; height: 8px; border-radius: 50%; background: #CFCBC0; flex: none; }
.v-step.done .v-stepdot { background: #2E9E5B; }
.v-step.done { color: #3B3B38; }
.v-step.now { background: var(--v-blueweak); color: var(--v-gold); font-weight: 600; }
.v-step.now .v-stepdot { background: var(--v-blue); }
.v-approve { appearance: none; min-height: 34px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 700; border-radius: 99px; border: 1px solid #E3C88A; color: var(--v-gold); background: transparent; cursor: pointer; }
.v-approve:hover { background: #FDF3DC; }
.v-approve.primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.v-approve:disabled { opacity: .5; cursor: not-allowed; }
.v-apill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--v-soft); border: 1px solid var(--v-line); flex: none; }
.v-agentdot { width: 8px; height: 8px; border-radius: 50%; background: #B5B2A8; }
.v-apill.busy { background: var(--v-blueweak); color: var(--v-gold); }
.v-apill.busy .v-agentdot { background: var(--v-blue); animation: pulse 1.4s ease-in-out infinite; }
.v-apill.waiting { color: var(--ok); }
.v-apill.waiting .v-agentdot { background: var(--ok); }

/* ---- columns ---- */
.v-cols { min-width: 0; }
.vm-desk, .vm-tab { --pcol: calc(var(--pw) + 28px); }
.vm-desk { height: calc(100vh - 24px); }
.vm-tab { height: calc(100vh - 20px); }
@supports (height: 100dvh) { .vm-desk { height: calc(100dvh - 24px); } .vm-tab { height: calc(100dvh - 20px); } }
.vm-desk .v-cols { display: grid; grid-template-columns: var(--pcol) minmax(0, 1fr) clamp(340px, 26vw, 440px); gap: 12px; flex: 1; min-height: 0; }
.vm-tab .v-cols { display: grid; grid-template-columns: var(--pcol) minmax(0, 1fr); gap: 12px; flex: 1; min-height: 0; }
.vm-desk .v-cols > *, .vm-tab .v-cols > * { min-height: 0; }
.v-pcol { overflow-y: auto; overflow-x: hidden; }
.v-rightcol { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.v-rightcol > .v-mid, .v-rightcol > .v-side { flex: 1; min-height: 0; }
.v-onecol { display: flex; flex-direction: column; gap: 12px; }
.vm-phone { --pw: min(100%, calc((100vh - 250px) * .5625)); }
@supports (height: 100dvh) { .vm-phone { --pw: min(100%, calc((100dvh - 250px) * .5625)); } }
.vm-phone .v-card { padding: 12px; border-radius: 14px; }
.vm-phone .v-h1 { font-size: 17px; }
.vm-phone .v-apill { display: none; }
.vm-phone .v-stagewrap { order: 4; }
.vm-phone .v-head { gap: 4px 10px; }
.vm-phone .v-title { flex-basis: 100%; order: 3; }
.vm-phone .v-approve { order: 4; margin-left: auto; }

/* ---- tabs ---- */
.v-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--v-soft); border: 1px solid var(--v-line); flex: none; }
.v-midtabs .v-tabs { margin-bottom: 8px; }
.v-tab { flex: 1; appearance: none; min-height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.v-tab.on { background: #fff; color: var(--fg); box-shadow: 0 1px 3px rgba(26,26,26,.1), inset 0 -2px 0 var(--v-blue); }
.v-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 700; }

/* ---- player column ---- */
.v-pinner { display: flex; flex-direction: column; gap: 8px; align-items: stretch; width: var(--pw); max-width: 100%; margin: 0 auto; }
.v-meta { display: flex; flex-direction: column; gap: 8px; }
.v-pickers { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.v-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.v-segbtn { appearance: none; min-height: 28px; padding: 2px 12px; border-radius: 99px; border: 1px solid var(--v-line); background: #fff; color: var(--fg); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.v-segbtn.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.v-endwrap { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.v-endmore { appearance: none; min-height: 28px; min-width: 26px; padding: 0 6px; border-radius: 99px; border: 1px solid transparent; background: transparent; color: var(--muted, #6b6657); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.v-endmore:hover, .v-endmore:focus-visible { background: #fff; border-color: var(--v-line); }
.v-endpop { position: absolute; top: 100%; left: 0; z-index: 20; margin-top: 4px; min-width: 190px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--v-line); box-shadow: 0 6px 18px rgba(26,26,26,.14); display: flex; flex-direction: column; }
.v-endpop[hidden] { display: none; }
.v-endopt { appearance: none; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; color: var(--fg); cursor: pointer; }
.v-endopt:hover, .v-endopt:focus-visible { background: #F6F3EA; }
.v-endopt.danger { color: #b3382c; }
.v-stale { font-weight: 500; opacity: .75; }
.v-newver { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 7px 12px; border-radius: 12px; background: #FDF3DC; border: 1px solid #F0DAA6; color: var(--v-gold); font-weight: 600; font-size: 13px; }
.v-pbox { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #111; }
.v-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #111; }
.v-verr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(17, 17, 17, .88); color: #fff; text-align: center; padding: 16px; }
.v-strip { display: flex; gap: 3px; height: 24px; width: 100%; }
.v-seg-s { position: relative; flex: 1 1 0; min-width: 5px; padding: 0; border: 0; border-radius: 5px; background: #E4E1D8; cursor: pointer; overflow: hidden; }
.v-seg-s:hover { background: #D5D1C5; }
.v-seg-s.on { background: #F0DAA6; }
.v-seg-f { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--v-blue); }
.v-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.v-ctlbtn { appearance: none; min-height: 32px; min-width: 44px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--v-line); background: #fff; color: var(--fg); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.v-ctlbtn:hover { background: var(--v-soft); }
.v-time { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.v-check { font-size: 13px; font-weight: 600; }
.v-check.ok { color: var(--ok); }
.v-check.warn { color: var(--warn); }
.v-check.muted { color: var(--muted); font-weight: 500; }
.v-editslot { display: flex; flex-direction: column; gap: 8px; }
.v-editslot:empty { display: none; }
.v-noplayer { padding: 12px 4px; }

/* ---- shots column ---- */
.v-mid { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.v-shotsbody, .v-questbody { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.v-questbody { overflow-y: auto; }
.v-midhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 8px; color: var(--muted); font-size: 13px; }
.v-midtitle { font-weight: 500; }
.v-tnotes { display: flex; flex-direction: column; gap: 10px; padding: 0 0 10px; }
.v-tnotes:empty { display: none; }
.v-tn { padding: 10px; border-radius: 12px; background: var(--v-soft); display: flex; flex-direction: column; gap: 8px; }
.v-tnhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v-shots-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px; }
.v-shots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.v-shot { position: relative; border-radius: 12px; border-left: 3px solid transparent; transition: background .15s; }
.v-shot:hover { background: var(--v-soft); }
.v-shot.v-on { background: #FFF8E8; border-left-color: var(--v-blue); }
.v-shotmain { display: flex; gap: 10px; padding: 8px 64px 8px 8px; cursor: pointer; border-radius: 12px; }
.v-thumb { flex: none; width: 40px; height: 70px; border-radius: 7px; object-fit: cover; background: #111; }
.v-nothumb { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.v-shottxt { flex: 1; display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.v-shottop { font-size: 12px; color: var(--muted); }
.v-shottop strong { color: var(--fg); }
.v-shotlabel { font-size: 14px; font-weight: 700; line-height: 1.3; }
.v-words { font-size: 13px; color: #55554F; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-cut { font-size: 12px; }
.v-shotact { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 8px; }
.v-nbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 700; }
.v-notetog { appearance: none; min-height: 28px; padding: 0 8px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; opacity: 0; }
.v-shot:hover .v-notetog, .v-shot.v-on .v-notetog, .v-notetog:focus-visible, .v-notetog.on, .v-notetog[aria-expanded="true"] { opacity: 1; }
.v-notetog:hover { background: rgba(26, 26, 26, .06); color: var(--fg); }
@media (pointer: coarse) { .v-notetog { opacity: 1; min-height: 40px; } }
.v-prev { margin: 0 10px 10px 58px; font-size: 13px; color: var(--v-gold); line-height: 1.4; }
.v-notebox { display: flex; flex-direction: column; gap: 6px; margin: 0 10px 10px 10px; }
.v-phrases { display: flex; flex-wrap: wrap; gap: 6px; }
.v-phrase { appearance: none; min-height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--v-line); background: #fff; color: var(--fg); font: inherit; font-size: 12.5px; cursor: pointer; }
.v-phrase:hover { background: var(--v-soft); }
.v-input { width: 100%; resize: vertical; min-height: 56px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--v-line); background: #fff; color: var(--fg); font: inherit; font-size: 14px; line-height: 1.4; }
.v-input:focus { outline: none; border-color: var(--v-blue); box-shadow: 0 0 0 3px rgba(200, 134, 10, .2); }

/* ---- questions ---- */
.v-quest { display: flex; flex-direction: column; gap: 10px; }
.v-q { padding: 12px; border-radius: 12px; background: var(--v-soft); display: flex; flex-direction: column; gap: 8px; }
.v-qhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.v-qtitle { margin: 0; font-size: 14px; font-weight: 700; }
.v-qhelp { font-size: 13px; margin: 0; }
.v-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.v-opt { display: flex; flex-direction: column; gap: 6px; border-radius: 12px; border: 2px solid transparent; background: #fff; padding: 5px; }
.v-opt.on { border-color: var(--v-blue); }
.v-optsel { appearance: none; display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.v-optimg { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 9px; background: #111; }
.v-optletter { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 9px; background: var(--v-soft); font-size: 24px; font-weight: 700; color: var(--muted); }
.v-opttxt { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.v-opttitle { font-size: 13px; }
.v-optdesc { font-size: 12px; }
.v-optflags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 4px; }
.v-zoom { min-height: 28px; font-size: 12px; }
.v-qstate { display: flex; gap: 6px; }
.v-zoombody { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.v-zoomimg { max-width: 100%; max-height: 62vh; border-radius: 12px; }
.v-zoomcap { text-align: center; }

/* ---- right column ---- */
.v-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.v-maqsad { flex: none; max-height: 42%; overflow-y: auto; }
.v-status { font-size: 13px; line-height: 1.4; margin: 0 0 8px; padding: 7px 10px; border-radius: 10px; background: var(--v-soft); }
.v-status.gold { background: #FDF3DC; color: var(--v-gold); }
.v-status.ok { background: #E7F5EC; color: var(--ok); }
.v-status.busy { background: var(--v-blueweak); color: var(--v-gold); }
.v-goal { font-size: 14px; line-height: 1.45; margin: 0; }
.v-maqmeta { font-size: 12px; margin-top: 8px; }
.v-more { appearance: none; margin-top: 8px; padding: 4px 0; border: 0; background: transparent; color: var(--v-gold); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.v-sumbody { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.v-sumrow { display: grid; grid-template-columns: 100px 1fr; gap: 8px; font-size: 13px; }
.v-probs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.v-prob { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.v-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px 14px; }
.v-chat .v-cardtitle { color: var(--muted); font-weight: 600; font-size: 13px; padding: 0 4px; margin: 0; }
.v-chathead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.v-todobtn { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--v-line); background: #fff; color: var(--fg); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.v-todobtn:hover { background: var(--v-soft); }
.v-todobtn .v-badge[hidden] { display: none; }
.v-thwrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.v-newpill { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 5; appearance: none; border: 0; border-radius: 99px; padding: 7px 14px; background: var(--v-dark); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(26, 26, 26, .28); }
.v-newpill[hidden] { display: none; }
.v-old .v-bubble { padding: 5px 10px; font-size: 13px; line-height: 1.35; }
.v-old { gap: 4px; }
.v-old .v-who { font-size: 11px; margin-bottom: 0; }
.v-thread { flex: 1; min-height: 0; overflow-y: auto; overflow-anchor: auto; overscroll-behavior: contain; padding: 4px 2px 10px; display: flex; flex-direction: column; }
.v-msgs { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.v-msg { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.v-msg.v-user { align-items: flex-end; }
.v-msg.v-agent { align-items: flex-start; }
.v-bubble { max-width: 88%; padding: 8px 12px; border-radius: 14px; background: var(--v-soft); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.v-user .v-bubble { background: #FDF3DC; border-bottom-right-radius: 6px; }
.v-msg.v-agent .v-bubble { background: var(--v-soft); border: 1px solid var(--v-line); border-bottom-left-radius: 6px; }
.v-who { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.v-msgtxt { margin: 0; }
.v-msg.v-sys { align-items: center; text-align: center; font-size: 13px; color: var(--muted); display: block; }
.v-notechips { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.v-notechip { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.v-notetext { font-size: 13px; }
.v-changes { margin-top: 6px; font-size: 13px; }
.v-changes ul { margin: 4px 0 0; padding-left: 18px; }
.v-chtitle { font-size: 12.5px; }
.v-msg.v-wide { align-self: stretch; }

/* choices */
.v-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; width: 100%; padding: 8px; border-radius: 14px; background: var(--v-soft); }
.v-ch { display: flex; flex-direction: column; gap: 8px; transition: opacity .15s; }
.v-ch.dim { opacity: .45; }
.v-chimg { appearance: none; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #111; cursor: zoom-in; aspect-ratio: 4 / 5; display: block; width: 100%; }
.v-ch.on .v-chimg { border-color: var(--v-blue); }
.v-chimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v-chtxt { font-size: 13px; line-height: 1.35; }
.v-chtitle { font-size: 13.5px; }
.v-chsub { font-size: 12.5px; }
.v-chbtn { appearance: none; margin-top: auto; min-height: 30px; border-radius: 9px; border: 1px solid var(--v-line); background: #fff; color: var(--fg); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.v-chbtn:hover:not(:disabled) { background: var(--v-soft); }
.v-chbtn:disabled { cursor: default; opacity: .7; }
.v-chbtn.picked { background: #FDF3DC; border-color: #F0DAA6; color: var(--v-gold); opacity: 1; }

/* composer */
.v-comp { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; border: 1px solid var(--v-line); background: var(--v-soft); }
.v-sentinfo { font-size: 13px; color: var(--muted); }
.v-chiprow { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; font-size: 13px; }
.v-pin { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 4px; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--v-gold); }
button.v-pin { cursor: pointer; color: var(--muted); }
.v-pinx { appearance: none; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.v-pinx:hover { background: rgba(26, 26, 26, .07); color: var(--fg); }
.v-counter { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.v-ta { width: 100%; resize: none; min-height: 44px; max-height: 140px; padding: 6px 4px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 14px; line-height: 1.45; }
.v-ta:focus { outline: none; }
.v-ta::placeholder { color: #8A8A85; }
.v-voice { display: none; }
.v-voice.v-show { display: block; }
.v-att { display: flex; flex-wrap: wrap; gap: 6px; }
.v-attx { appearance: none; border: 0; background: transparent; color: inherit; font-size: 16px; cursor: pointer; }
.v-comprow { display: flex; gap: 10px; }
.v-voicetog { appearance: none; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--v-line); background: #fff; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; flex: none; }
.v-voicetog:hover { background: var(--v-soft); }
.v-sendbtn { appearance: none; flex: 1; min-height: 36px; border-radius: 10px; border: 0; background: var(--gold); color: var(--on-gold); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.v-sendbtn:hover:not(:disabled) { background: #8A5400; }
.v-sendbtn:disabled { opacity: .7; cursor: not-allowed; }
.v-comp.v-hide { display: none; }
.v-rawlist { margin: 10px 0 0; padding-left: 18px; }

/* ---- phone ---- */
.vm-phone .v-comp { position: sticky; z-index: 30; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); margin: 0 -4px; padding: 8px 10px; box-shadow: 0 -8px 24px rgba(26, 26, 26, .12); }
.vm-phone .v-comp:not(.v-open) .v-sentinfo, .vm-phone .v-comp:not(.v-open) .v-chiprow, .vm-phone .v-comp:not(.v-open) .v-voicetog { display: none; }
.vm-phone .v-comp:not(.v-open) { flex-direction: row; align-items: center; }
.vm-phone .v-comp:not(.v-open) .v-ta { min-height: 44px; flex: 1; padding: 10px 6px; }
.vm-phone .v-comp:not(.v-open) .v-comprow { flex: none; }
.vm-phone .v-comp:not(.v-open) .v-sendbtn { padding: 0 18px; flex: none; }
.vm-phone .v-chat { padding: 12px; flex: none; }
.vm-phone .v-side { flex: none; }
.vm-phone .v-thread { overflow-y: auto; flex: none; height: max(260px, calc(100dvh - var(--tab-h, 56px) - 330px)); }
.vm-phone .v-maqsad { max-height: none; }
.vm-phone .v-shots-scroll { overflow: visible; }
.vm-phone .v-mid { overflow: visible; }
.vm-phone .v-shotmain { padding-right: 12px; padding-bottom: 36px; }
.vm-phone .v-shotact { top: auto; bottom: 4px; right: 8px; }
.vm-phone .v-prev { margin-left: 12px; }
.vm-phone .v-pcol { overflow: visible; }
.vm-phone .v-bubble { max-width: 94%; }
.vm-phone .v-sumrow { grid-template-columns: 1fr; gap: 2px; }

/* the desktop shell bar is replaced by the page's own bar */
@media (min-width: 1000px) {
  body.vp .top { display: none; }
  body.vp #page { padding: 12px 16px 12px; max-width: none; }
}

/* live agent bubble in Suhbat */
.v-live { margin-top: 10px; }
.v-msg.v-live .v-bubble { background: #FFFBF0; border: 1px solid #F0DAA6; max-width: 94%; }
.v-livewho { display: flex; align-items: center; gap: 6px; color: var(--v-gold); font-weight: 600; }
.v-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #F0DAA6; border-top-color: var(--v-blue); animation: v-rot .8s linear infinite; flex: none; }
@keyframes v-rot { to { transform: rotate(360deg); } }
.v-livetime { font-variant-numeric: tabular-nums; }
.v-livestep { margin-top: 2px; font-size: 14px; }
.v-livemore { appearance: none; border: 0; background: none; padding: 4px 0 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--v-gold); cursor: pointer; text-decoration: underline; }
.v-livesteps { margin: 6px 0 0; padding: 6px 0 0; list-style: none; border-top: 1px solid #F3E2B6; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; max-height: 180px; overflow-y: auto; }
.v-livesteps[hidden] { display: none; }
.v-lt { font-variant-numeric: tabular-nums; display: inline-block; min-width: 34px; }
.v-msg.v-livequeued .v-bubble { background: var(--v-soft); border-color: var(--v-line); }
.v-livequeued .v-livewho { color: var(--muted); }
.v-msg.v-livefail .v-bubble { background: #FDECEA; border-color: #F3B9B2; color: #8A1F14; }
.v-livex { margin-top: 6px; min-height: 28px; }
@media (prefers-reduced-motion: reduce) { .v-spin { animation: none; } }
.v-rec { margin-left: 6px; min-height: 20px; font-size: 11px; padding: 0 7px; vertical-align: middle; }
.v-heldtag { margin-left: 6px; min-height: 18px; font-size: 11px; padding: 0 7px; background: #F3F1EC; border-color: var(--v-line); color: var(--muted); vertical-align: middle; }
.v-heldx { appearance: none; margin-left: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 12px; line-height: 1; cursor: pointer; vertical-align: middle; }
.v-heldx:hover { background: var(--v-soft); color: var(--fg); }
.v-msg.v-held .v-bubble { opacity: .9; border: 1px dashed #C9B98A; }
.v-msg.v-batch .v-bubble { background: #FFFBF0; border: 1px solid #F0DAA6; max-width: 94%; }
.v-batchbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.v-startbtn { background: var(--amber, #C8860A); color: #fff; border: 0; border-radius: 12px; min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 700; cursor: pointer; }
.v-startbtn:disabled { opacity: .6; cursor: default; }
.v-dl { margin-top: 8px; }
.v-dlbtn { min-height: 38px; width: 100%; gap: 8px; }
.v-dlbtn:disabled { opacity: .75; cursor: default; }
.v-dl[hidden] { display: none; }

.v-livestop { margin-top: 8px; min-height: 30px; color: #9A2A1E; border-color: #E3B4AD; }
.v-livestop:disabled { opacity: .6; cursor: default; }

/* ---- compact stage chip + popover, square approve button ---- */
.v-stagewrap { position: relative; flex: none; }
.v-stagechip { appearance: none; min-height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--v-line); background: var(--v-blueweak); color: var(--v-gold); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.v-stagechip.ok { background: #E3F4E9; border-color: #A9D8B9; color: #1F7A44; }
.v-stagechip:focus-visible { outline: 2px solid var(--v-blue); outline-offset: 2px; }
.v-steppop { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; margin: 0; padding: 6px; list-style: none; min-width: 190px; background: #fff; border: 1px solid var(--v-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.v-stagewrap.v-open .v-steppop, .v-stagewrap:hover .v-steppop { display: block; }
.v-steppop .v-step { display: flex; height: 28px; width: 100%; }
.v-steppop .v-stepok { color: #2E9E5B; margin-left: auto; font-weight: 700; }
.v-approve { width: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; border-radius: 10px; }
.v-approve.done { opacity: 1; background: #E3F4E9; border-color: #A9D8B9; cursor: default; }


/* ---- desktop: resizable columns, video size, hidden Kadrlar ---- */
.vm-desk .v-cols { gap: 0; }
.v-handle { position: relative; cursor: col-resize; touch-action: none; border-radius: 6px; }
.v-handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 36px; transform: translate(-50%, -50%); border-radius: 4px; background: var(--v-line); opacity: 0; transition: opacity .15s, background .15s; }
.v-handle:hover::after, .v-handle:focus-visible::after, .v-handle.drag::after { opacity: 1; }
.v-handle.drag::after { background: var(--v-blue); }
.v-handle:focus-visible { outline: 2px solid var(--v-blue); outline-offset: -2px; }
body.v-dragging { cursor: col-resize; user-select: none; }
body.v-dragging video { pointer-events: none; }
.v-zoombar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; width: var(--pw); max-width: 100%; margin-left: auto; margin-right: auto; }
.v-zoomtitle { font-size: 13px; color: var(--muted); font-weight: 500; }
.v-zoomctl { display: inline-flex; align-items: center; gap: 4px; }
.v-zoomlbl { font-size: 12px; min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
.v-zbtn { min-width: 32px; padding: 0 8px; font-size: 16px; }
.v-zfit { padding: 0 10px; font-size: 12px; }
.v-hidebtn { min-height: 28px; padding: 0 10px; font-size: 12px; gap: 6px; }
.v-showtab { appearance: none; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; padding: 14px 0; border: 1px solid var(--v-line); border-radius: 12px; background: var(--v-card); color: var(--v-gold); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); align-self: start; min-height: 110px; }
.v-showtab:hover { background: var(--v-card2); }
.v-showtab:focus-visible { outline: 2px solid var(--v-blue); outline-offset: 2px; }
.v-liverow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.v-liverow .v-livemore { padding: 0; }
.v-liverow .v-livestop { margin-top: 0; }
.vm-desk .v-cols > * { grid-row: 1; }

/* ---- version chip + popover ---- */
.v-verbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v-verchip .v-vercaret { opacity: .6; font-size: 11px; }
.v-verpop { display: none; position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; margin: 0; padding: 6px; list-style: none; width: 300px; max-width: calc(100vw - 24px); max-height: 340px; overflow-y: auto; background: #fff; border: 1px solid var(--v-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.v-verwrap.v-open .v-verpop { display: block; }
@media (hover: hover) { .v-verwrap:hover .v-verpop { display: block; } .v-verwrap::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 6px; } }
.v-verrow { appearance: none; display: block; width: 100%; text-align: left; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.v-verrow:hover, .v-verrow:focus-visible { background: var(--v-blueweak); outline: none; }
.v-verrow.on { background: #FBF3DC; }
.v-verhead { display: flex; align-items: center; gap: 8px; }
.v-verago { margin-left: auto; font-size: 12px; color: var(--muted, #7a766a); white-space: nowrap; }
.v-vernew { font-size: 11px; font-weight: 700; color: #1F7A44; background: #E3F4E9; border-radius: 99px; padding: 0 7px; }
.v-verok { width: 14px; color: #2E9E5B; font-weight: 700; text-align: center; }
.v-versum { display: block; margin-top: 1px; font-size: 12px; color: var(--muted, #7a766a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-verback { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--v-gold); text-decoration: underline; cursor: pointer; }

/* task bubbles: status mark + the agent's answer with a quote of the task */
.v-taskmark { margin-left: 6px; font-size: 11px; }
.v-tm-running { color: #a15c00; }
.v-tm-done { color: #1a7f4b; }
.v-tm-failed { color: #b3261e; }
.v-tm-cancelled { color: #6b6257; }
.v-quote { border-left: 3px solid #e0a63a; padding: 2px 8px; margin: 0 0 6px; font-size: 12px; color: #6b6257; background: rgba(224,166,58,.10); border-radius: 0 6px 6px 0; overflow-wrap: anywhere; }
.v-ans-failed .v-bubble { border-color: #e8b4b0; }
.v-ans .v-changes ul { margin: 2px 0 8px; padding-left: 16px; }
.v-ans .v-changes li { margin: 3px 0; }
.v-ans .v-seekchip { padding: 0 6px; font-size: 11px; }
.v-retry { margin-top: 6px; }

/* ---- Vazifalar (notes to self) ---- */
.td-panel { flex: 1; }
.td-note { margin: 0; font-size: 12.5px; line-height: 1.4; }
.td-addrow { display: flex; gap: 8px; }
.td-addrow .td-input { flex: 1; min-width: 0; }
.td-hint { font-size: 12px; min-height: 0; }
.td-hint:empty { display: none; }
.td-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.td-item { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--v-line); border-radius: 12px; background: #fff; }
.td-row { display: flex; align-items: flex-start; gap: 8px; }
.td-cb { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--v-blue); cursor: pointer; }
.td-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; cursor: text; }
.td-edit { flex: 1; min-width: 0; }
.td-item.done .td-text { text-decoration: line-through; color: var(--muted); }
.td-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; padding-left: 26px; }
.td-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-left: 26px; }
.td-acts .v-gbtn { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.td-acts .td-del { margin-left: auto; }
.td-empty { font-size: 13px; padding: 6px 2px; }
.td-done { margin-top: 4px; }
.td-done > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 0 8px; }
.td-done[hidden] { display: none; }
