/* Web Velion (getvelionai.com/chat) - an app screen, not a page: a chat list on the left, one reading
   column in the middle, the composer pinned to the bottom. Same limestone / night palette and Cinzel
   wordmark as the site; the Velion ring is the one bold thing (greeting + the live state in the top bar). */
html.vc-html, html.vc-html body { height: 100%; }
body.vc { margin: 0; overflow: hidden; background: var(--bg); }
.vc {
  --side: color-mix(in srgb, var(--bg) 82%, var(--line));
  --bubble: var(--surface);
  --soft: color-mix(in srgb, var(--ink) 6%, transparent);
  --col: 46rem;
}
.vc [hidden] { display: none !important; }
.vc-danger-btn { background: #C0392B !important; border-color: #C0392B !important; color: #fff !important; }
.vc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vc-app { display: grid; grid-template-columns: 272px minmax(0, 1fr); height: 100vh; height: 100dvh; }

/* ---- sidebar */
.vc-side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 12px; min-height: 0; }
.vc-brand { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; }
.vc-brand .mark { font-size: 1.15rem; }
.vc-new { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font: 600 var(--s-1)/1.2 var(--f-body); }
.vc-new:hover { filter: brightness(1.15); }
.vc-new:focus-visible, .vc-tool:focus-visible, .vc-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vc-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.vc-search svg { width: 16px; height: 16px; }
.vc-search input { all: unset; flex: 1; min-width: 0; padding: 9px 0; font: 400 var(--s-1)/1.3 var(--f-body); color: var(--ink); }
.vc-list { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.vc-group { margin: 14px 8px 6px; font: 600 .7rem/1 var(--f-body); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.vc-row { position: relative; display: flex; align-items: center; border-radius: 9px; }
.vc-row:hover, .vc-row.on { background: var(--soft); }
.vc-row.on .vc-item { color: var(--ink); font-weight: 600; }
.vc-item { all: unset; cursor: pointer; flex: 1; min-width: 0; padding: 9px 10px; font: 500 var(--s-1)/1.35 var(--f-body); color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-row-act { display: none; gap: 2px; padding-right: 4px; }
.vc-row:hover .vc-row-act, .vc-row:focus-within .vc-row-act, .vc-row.on .vc-row-act { display: flex; }
.vc-row-act button { all: unset; cursor: pointer; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); }
.vc-row-act button:hover { color: var(--ink); background: var(--soft); }
.vc-row-act svg { width: 15px; height: 15px; }
.vc-rename { flex: 1; min-width: 0; margin: 4px; padding: 6px 8px; border: 1px solid var(--accent); border-radius: 7px; background: var(--surface); color: var(--ink); font: 500 var(--s-1)/1.3 var(--f-body); }
.vc-none { margin: 18px 10px; font-size: var(--s-1); color: var(--muted); }
.vc-tools { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.vc-tool { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font: 500 var(--s-1)/1.3 var(--f-body); color: var(--ink); }
.vc-tool:hover { background: var(--soft); }
.vc-tool svg { width: 18px; height: 18px; color: var(--muted); }
.vc-count { margin-left: auto; min-width: 20px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 .7rem/1.3 var(--f-body); text-align: center; }
.vc-usage { all: unset; cursor: pointer; box-sizing: border-box; padding: 10px; display: grid; gap: 8px; border-radius: 10px; }
.vc-usage:hover { background: var(--soft); }
.vc-usage:focus-visible { outline: 2px solid var(--accent); }
.vc-urow { display: grid; gap: 5px; font-size: .78rem; line-height: 1.35; color: var(--muted); }
.vc-usage .vc-sub { font-size: .74rem; color: var(--muted); }
.vc-meter.hi i { background: #C98A1B; } .vc-meter.full i { background: #C0392B; }
.vc-uhead { margin: 0; font: 600 var(--s1)/1.35 var(--f-body); }
.vc-ulist { display: grid; gap: 18px; }
.vc-uitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; }
.vc-uitem b { font: 600 var(--s-1)/1.3 var(--f-body); }
.vc-uitem small { color: var(--muted); font-size: .76rem; grid-column: 1; }
.vc-uitem .vc-pct { font-size: .8rem; color: var(--muted); grid-row: 1; grid-column: 2; }
.vc-uitem .vc-meter { grid-column: 1 / -1; height: 6px; }
.vc-usec { display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.vc-usage p { margin: 0; font-size: .78rem; line-height: 1.4; color: var(--muted); }
.vc-meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.vc-meter i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .4s ease; }
.vc-sub { font-size: .74rem !important; }
.vc-win { display: grid; gap: 2px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 12px; text-decoration: none; color: var(--ink); }
.vc-win b { font: 600 var(--s-1)/1.3 var(--f-body); }
.vc-win span { font-size: .76rem; line-height: 1.4; color: var(--muted); }
.vc-win:hover { border-style: solid; }
.vc-mewrap { position: relative; }
.vc-me { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; }
.vc-me:hover, .vc-me[aria-expanded="true"] { background: var(--soft); }
.vc-me:focus-visible { outline: 2px solid var(--accent); }
.vc-me > svg { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.vc-me-txt { display: grid; min-width: 0; }
.vc-me-txt small { font-size: .72rem; color: var(--muted); }
.vc-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 40; display: grid; gap: 1px; padding: 6px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: 0 18px 40px -18px color-mix(in srgb, #000 60%, transparent); }
.vc-menu .vc-mhead { padding: 6px 10px 8px; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.vc-mi { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font: 500 var(--s-1)/1.3 var(--f-body); color: var(--ink); position: relative; }
.vc-mi:hover, .vc-mi:focus-visible, .vc-mi[aria-expanded="true"] { background: var(--soft); outline: none; }
.vc-mi svg { width: 17px; height: 17px; color: var(--muted); }
.vc-mi kbd, .vc-mi .vc-mr { margin-left: auto; font: 500 .72rem/1 var(--f-body); color: var(--muted); border: 0; background: none; padding: 0; }
.vc-sub-menu { position: absolute; left: calc(100% + 8px); bottom: 0; min-width: 220px; display: grid; gap: 1px; padding: 6px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: 0 18px 40px -18px color-mix(in srgb, #000 60%, transparent); z-index: 41; }
.vc-sub-menu[hidden] { display: none; }
.vc-mi[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); font-weight: 700; }
@media (max-width: 900px) { .vc-sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 18px; min-width: 0; } }
.vc-keys { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vc-keys li { display: flex; justify-content: space-between; gap: 16px; font-size: var(--s-1); padding: 8px 0; border-bottom: 1px solid var(--line); }
.vc-keys kbd { font: 500 .78rem var(--f-mono); padding: 2px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--bg); }
.vc-links { display: grid; gap: 8px; }
.vc-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.vc-link:hover { border-color: var(--accent); }
.vc-link b { display: block; font-weight: 600; }
.vc-link small { color: var(--muted); font-size: .78rem; }
.vc-link .vc-tag2 { margin-left: auto; font: 600 .7rem/1 var(--f-body); padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.vc-ini { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 .78rem/1 var(--f-body); flex: none; }
.vc-me-name { font: 600 var(--s-1)/1.3 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- main column */
.vc-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.vc-top { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); min-height: 58px; }
.vc-mini { width: 34px; height: 34px; flex: none; }
.vc-title { margin: 0; flex: 1; min-width: 0; font: 600 var(--s0)/1.3 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-top-r { display: flex; align-items: center; gap: 6px; }
.vc-model { font: 600 .78rem/1 var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.vc-icon { all: unset; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); flex: none; }
.vc-icon:hover { color: var(--ink); background: var(--soft); }
.vc-icon:focus-visible, .vc-send:focus-visible, .vc-model:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#speakBtn .vc-wave { display: none; }
#speakBtn[aria-pressed="true"] { color: var(--accent); }
#speakBtn[aria-pressed="true"] .vc-wave { display: inline; }
#speakBtn[aria-pressed="true"] .vc-mute { display: none; }
.vc-only-narrow { display: none; }

.vc-scroll { overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; position: relative; }
.vc-thread { max-width: var(--col); margin: 0 auto; padding: 26px 22px 30px; display: grid; gap: 26px; }
.vc-thread:empty { display: none; }

/* empty state */
.vc-empty { min-height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 24px 22px 40px; }
.vc-ring { width: min(220px, 52vw); height: auto; aspect-ratio: 1; margin-bottom: 4px; }
.vc-greet { margin: 0; font: 600 clamp(1.6rem, 4vw, 2.4rem)/1.2 var(--f-display); letter-spacing: .03em; color: var(--ink); }
.vc-greet-sub { margin: 0 0 14px; color: var(--muted); font-size: var(--s1); }
.vc-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(640px, 100%); }
.vc-chip { all: unset; cursor: pointer; text-align: left; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  font: 500 var(--s-1)/1.45 var(--f-body); color: var(--ink); display: grid; gap: 3px; }
.vc-chip small { font: 600 .68rem/1 var(--f-body); letter-spacing: .06em; color: var(--accent); }
.vc-chip:hover { border-color: var(--accent); }
.vc-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* messages */
.vc-msg { display: grid; gap: 8px; min-width: 0; }
.vc-msg.me { justify-items: end; }
.vc-msg.me .vc-text { max-width: min(85%, 36rem); background: var(--bubble); border: 1px solid var(--line); padding: 11px 15px; border-radius: 18px 18px 6px 18px;
  white-space: pre-wrap; word-break: break-word; }
.vc-msg.vel { grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.vc-ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); margin-top: 1px; }
.vc-ava svg { width: 18px; height: 18px; }
.vc-body { min-width: 0; display: grid; gap: 12px; }
.vc-md { line-height: 1.7; word-break: break-word; }
.vc-md > :first-child { margin-top: 0; } .vc-md > :last-child { margin-bottom: 0; }
.vc-md p { margin: 0 0 .8em; }
.vc-md h1, .vc-md h2, .vc-md h3, .vc-md h4 { font: 700 1.05rem/1.4 var(--f-body); margin: 1.1em 0 .45em; letter-spacing: 0; }
.vc-md h1 { font-size: 1.25rem; } .vc-md h2 { font-size: 1.15rem; }
.vc-md ul, .vc-md ol { margin: 0 0 .8em; padding-left: 1.4em; } .vc-md li { margin: .25em 0; }
.vc-md code { font: .88em var(--f-mono); background: var(--soft); padding: .1em .35em; border-radius: 5px; }
.vc-md blockquote { margin: 0 0 .8em; padding: .2em 0 .2em 1em; border-left: 3px solid var(--accent); color: var(--muted); }
.vc-md a { color: var(--accent); }
.vc-md hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.vc-pre { position: relative; margin: 0 0 .9em; border-radius: 12px; background: #0E131B; color: #E8EAE5; border: 1px solid #263042; overflow: hidden; }
.vc-pre header { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 14px; font: 500 .72rem/1 var(--f-mono); color: #9AA3B1; background: #151C27; }
.vc-pre button { all: unset; cursor: pointer; padding: 5px 9px; border-radius: 6px; font: 600 .72rem/1 var(--f-body); color: #E8EAE5; }
.vc-pre button:hover { background: #263042; }
.vc-pre pre { margin: 0; padding: 14px; overflow-x: auto; font: .84rem/1.55 var(--f-mono); }
.vc-pre code { background: none; padding: 0; font: inherit; color: inherit; }
.vc-table { overflow-x: auto; margin: 0 0 .9em; border: 1px solid var(--line); border-radius: 10px; }
.vc-table table { border-collapse: collapse; width: 100%; font-size: .92em; }
.vc-table th, .vc-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vc-table th { background: var(--soft); font-weight: 600; }
.vc-table tr:last-child td { border-bottom: 0; }
.vc-acts { display: flex; gap: 2px; margin-left: -8px; }
.vc-acts button { all: unset; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.vc-acts button:hover { color: var(--ink); background: var(--soft); }
.vc-acts button:focus-visible { outline: 2px solid var(--accent); }
.vc-acts svg { width: 16px; height: 16px; }
.vc-thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.vc-thumbs img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

/* typing / working */
.vc-work { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--s-1); min-height: 30px; }
.vc-dots { display: inline-flex; gap: 4px; }
.vc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: vc-dot 1.2s ease-in-out infinite; }
.vc-dots i:nth-child(2) { animation-delay: .15s; } .vc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vc-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* cards: picture, video, weather, reminder, memory, error */
.vc-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; max-width: 34rem; }
.vc-media img, .vc-media video { display: block; width: 100%; height: auto; background: #0E131B; }
.vc-media figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; font-size: .78rem; color: var(--muted); }
.vc-media figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-dl { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font: 600 .76rem/1 var(--f-body); color: var(--ink); flex: none; }
.vc-dl:hover { background: var(--soft); }
.vc-dl svg { width: 15px; height: 15px; }
.vc-pending { padding: 18px; display: grid; gap: 10px; }
.vc-pending p { margin: 0; font-size: var(--s-1); color: var(--muted); }
.vc-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.vc-bar i { display: block; height: 100%; width: 35%; background: var(--accent); border-radius: 3px; animation: vc-slide 1.6s ease-in-out infinite; }
@keyframes vc-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.vc-wx { padding: 16px 18px; display: grid; gap: 12px; }
.vc-wx-now { display: flex; align-items: center; gap: 14px; }
.vc-wx-ic { font-size: 2.2rem; line-height: 1; }
.vc-wx-t { font: 600 2rem/1 var(--f-body); }
.vc-wx-place { font: 600 var(--s-1)/1.3 var(--f-body); }
.vc-wx-desc { font-size: .8rem; color: var(--muted); }
.vc-wx-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); }
.vc-wx-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.vc-wx-day { display: grid; gap: 2px; font-size: .78rem; text-align: center; }
.vc-wx-day b { font-weight: 600; }
.vc-wx-day > span:nth-child(2) { font-size: 1.35rem; line-height: 1.2; }
.vc-note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: var(--s-1); max-width: 34rem; }
.vc-note svg { color: var(--accent); width: 18px; height: 18px; }
.vc-err { border-color: color-mix(in srgb, #C0392B 45%, var(--line)); background: color-mix(in srgb, #C0392B 7%, var(--surface)); }
.vc-err svg { color: #C0392B; }
.vc-err .vc-dl { margin-left: auto; }

/* composer */
.vc-composer { position: relative; max-width: calc(var(--col) + 44px); width: 100%; margin: 0 auto; padding: 6px 22px calc(10px + env(safe-area-inset-bottom, 0px)); }
.vc-box { display: flex; align-items: flex-end; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
  box-shadow: 0 6px 24px -16px color-mix(in srgb, var(--ink) 40%, transparent); transition: border-color .2s ease; }
.vc-box:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.vc-box textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 var(--s0)/1.5 var(--f-body);
  padding: 8px 6px; max-height: 40vh; }
.vc-send { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); flex: none; }
.vc-send[disabled] { opacity: .3; cursor: default; }
.vc-send .vc-stop { display: none; }
.vc-busy .vc-send { opacity: 1; } .vc-busy .vc-send .vc-up { display: none; } .vc-busy .vc-send .vc-stop { display: block; }
.vc-mic.on { color: #fff; background: #C0392B; animation: vc-mic 1.4s ease-in-out infinite; }
@keyframes vc-mic { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, #C0392B 25%, transparent); } }
.vc-hint { margin: 7px 0 0; text-align: center; font-size: .72rem; color: var(--muted); }
.vc-attach-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 4px 8px; }
.vc-att { position: relative; }
.vc-att img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.vc-att button { all: unset; cursor: pointer; position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.vc-att button svg { width: 12px; height: 12px; stroke-width: 2.6; }
.vc-drop { position: absolute; inset: -6px 16px 0; border: 2px dashed var(--accent); border-radius: 22px; background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  display: grid; place-items: center; font-weight: 600; color: var(--accent); z-index: 2; pointer-events: none; }

/* sign-in / confirm screens */
.vc-gate { min-height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 30px 22px; }
.vc-gate .vc-ring { width: min(180px, 46vw); }
.vc-gate h2 { margin: 0; font: 600 clamp(1.5rem, 3.6vw, 2.1rem)/1.25 var(--f-display); letter-spacing: .03em; }
.vc-gate p { margin: 0; max-width: 34rem; color: var(--muted); }
.vc-gate .btns { justify-content: center; }
.vc-gated .vc-composer, .vc-gated .vc-empty, .vc-gated .vc-thread, .vc-gated .vc-top-r, .vc-gated .vc-tools, .vc-gated .vc-new, .vc-gated .vc-search, .vc-gated .vc-list { display: none; }

/* dialogs and toasts */
.vc-dialog { border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: min(80vh, 720px); background: var(--surface); color: var(--ink); }
.vc-dialog::backdrop { background: color-mix(in srgb, #0E131B 55%, transparent); }
.vc-dialog-in { display: grid; gap: 16px; padding: 22px; }
.vc-dialog h2 { margin: 0; font: 600 var(--s2)/1.2 var(--f-display); letter-spacing: .03em; }
.vc-dhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vc-dnote { margin: 0; font-size: var(--s-1); color: var(--muted); }
.vc-items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vc-items li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.vc-items li > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vc-items small { color: var(--muted); font-size: .76rem; }
.vc-set { display: grid; gap: 6px; }
.vc-set > label, .vc-set > span { font: 600 var(--s-1)/1.3 var(--f-body); }
.vc-set select, .vc-set input[type=text], .vc-addrow input { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.vc-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; flex-wrap: wrap; }
.vc-seg button { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 999px; font: 600 .8rem/1 var(--f-body); color: var(--muted); }
.vc-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.vc-seg button:focus-visible { outline: 2px solid var(--accent); }
.vc-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--s-1); }
.vc-switch input { width: 40px; height: 22px; accent-color: var(--accent); }
.vc-addrow { display: flex; gap: 8px; }
.vc-addrow .btn { flex: none; }
.vc-danger { color: #C0392B !important; border-color: color-mix(in srgb, #C0392B 50%, var(--line)) !important; }
.vc-toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 50; width: min(360px, calc(100vw - 32px)); }
.vc-toast { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: var(--s-1); line-height: 1.45;
  box-shadow: 0 12px 30px -14px #000; animation: vc-in .25s ease; }
.vc-toast b { display: block; }
.vc-toast button { all: unset; cursor: pointer; margin-left: auto; opacity: .7; }
@keyframes vc-in { from { opacity: 0; transform: translateY(8px); } }

/* narrow screens: the chat list slides in */
@media (max-width: 900px) {
  .vc-app { grid-template-columns: minmax(0, 1fr); }
  .vc-side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 30; transform: translateX(-102%); transition: transform .25s ease, visibility 0s .25s; visibility: hidden; }
  .vc-open .vc-side { transform: none; visibility: visible; transition: transform .25s ease; box-shadow: 0 0 40px -10px #000; }
  .vc-scrim { position: fixed; inset: 0; z-index: 29; background: color-mix(in srgb, #0E131B 50%, transparent); }
  .vc-only-narrow { display: grid; }
  .vc-top { padding: 8px 10px; }
  .vc-thread { padding: 20px 16px 24px; }
  .vc-composer { padding: 4px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .vc-chips { grid-template-columns: minmax(0, 1fr); }
  .vc-chip:nth-child(n+3) { display: none; }
  .vc-model { display: none; }
  .vc-msg.vel { grid-template-columns: minmax(0, 1fr); }
  .vc-ava { display: none; }
  .vc-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vc-side, .vc-meter i { transition: none; }
  .vc-dots i, .vc-bar i, .vc-mic.on, .vc-toast { animation: none; }
  .vc-scroll { scroll-behavior: auto; }
}

/* Sinhala and Tamil: same type rules as the rest of the site */
html:is([lang="si"], [lang="ta"]) .vc-greet { font-size: clamp(1.35rem, 3.4vw, 2rem); line-height: 1.45; letter-spacing: 0; }
html:is([lang="si"], [lang="ta"]) .vc-dialog h2, html:is([lang="si"], [lang="ta"]) .vc-gate h2 { letter-spacing: 0; line-height: 1.45; font-size: 1.35rem; }
html:is([lang="si"], [lang="ta"]) .vc-group { letter-spacing: 0; text-transform: none; font-size: .74rem; }
html:is([lang="si"], [lang="ta"]) .vc-md { line-height: 1.85; }
html:is([lang="si"], [lang="ta"]) .vc-new, html:is([lang="si"], [lang="ta"]) .vc-seg button { line-height: 1.35; }
.vc [lang="si"] { font-family: var(--f-body); }

/* sources under an answer, and the small numbered citations inside it */
.vc-cite { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; margin: 0 1px; padding: 0 4px; border-radius: 6px; vertical-align: .12em;
  font: 600 .68rem/1 var(--f-body); text-decoration: none; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.vc-cite:hover { background: var(--accent); color: var(--accent-ink); }
.vc-srcs { display: grid; gap: 8px; }
.vc-srcs-h { font: 600 .72rem/1 var(--f-body); color: var(--muted); letter-spacing: .04em; }
.vc-srcs-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.vc-src { flex: 0 0 200px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); text-decoration: none; color: var(--ink); }
.vc-src:hover { border-color: var(--accent); }
.vc-src-n { grid-row: 1 / 3; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--soft); font: 600 .7rem/1 var(--f-body); color: var(--muted); }
.vc-src-t { font: 500 .78rem/1.35 var(--f-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-src-s { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-typing > :last-child::after { content: ""; display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--accent); border-radius: 2px; animation: vc-blink 1s steps(2) infinite; }
@keyframes vc-blink { 50% { opacity: 0; } }

/* 2026-10-21: mode + thinking-level picker in the message box (Fast / Smart / Deep, Celer / Ratio / Altum) */
.vc-modewrap { position: relative; flex: none; align-self: flex-end; }
.vc-mode { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 999px; font: 600 .8rem/1 var(--f-body); color: var(--ink); white-space: nowrap; }
.vc-mode:hover, .vc-mode[aria-expanded="true"] { background: var(--soft); }
.vc-mode:focus-visible { outline: 2px solid var(--accent); }
.vc-mode-t { color: var(--muted); font-weight: 500; }
.vc-mode-t:empty { display: none; }
.vc-mode svg { width: 15px; height: 15px; color: var(--muted); }
.vc-pop { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 40; width: 272px; display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); box-shadow: 0 18px 44px -18px color-mix(in srgb, #000 60%, transparent); }
.vc-pop .vc-opt { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 1px 8px; align-items: center; padding: 9px 10px; border-radius: 10px; }
.vc-pop .vc-opt:hover, .vc-pop .vc-opt:focus-visible, .vc-pop .vc-opt[aria-expanded="true"] { background: var(--soft); outline: none; }
.vc-opt .vc-ck { grid-row: 1 / 3; color: var(--accent); font-weight: 700; text-align: center; }
.vc-opt b { font: 600 var(--s-1)/1.3 var(--f-body); color: var(--ink); }
.vc-opt small { grid-column: 2; font-size: .75rem; line-height: 1.35; color: var(--muted); }
.vc-opt .vc-oside { grid-row: 1 / 3; grid-column: 3; font: 600 .68rem/1 var(--f-body); color: var(--muted); }
.vc-opt[aria-disabled="true"] { cursor: default; opacity: .55; }
.vc-opt[aria-disabled="true"]:hover { background: none; }
.vc-opt .vc-lock svg { width: 15px; height: 15px; }
.vc-pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.vc-pop .vc-sub-pop { position: absolute; right: calc(100% + 8px); bottom: 0; width: 248px; display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); box-shadow: 0 18px 44px -18px color-mix(in srgb, #000 60%, transparent); }
.vc-pop .vc-sub-pop[hidden] { display: none; }
.vc-pop .vc-popnote { margin: 2px 10px 6px; font-size: .74rem; color: var(--muted); }
@media (max-width: 700px) {
  .vc-pop { position: fixed; left: 12px; right: 12px; bottom: 84px; width: auto; }
  .vc-pop .vc-sub-pop { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .vc-mode { padding: 0 9px; } .vc-mode-t { display: none; }
}
/* "Thought for 6 s" above a Deep / Altum answer */
.vc .vc-thought { border: 0; border-left: 2px solid var(--line); border-radius: 0; background: none; margin: 0; padding: 2px 0 2px 12px; font-size: var(--s-1); color: var(--muted); }
.vc .vc-thought summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 0; font: 600 var(--s-1)/1.4 var(--f-body); color: var(--muted); }
.vc .vc-thought summary::before { content: none; }
.vc-thought summary::-webkit-details-marker { display: none; }
.vc .vc-thought summary::after { content: "›"; font-size: 1rem; color: var(--muted); transition: transform .2s ease; }
.vc .vc-thought[open] summary::after { content: "›"; transform: rotate(90deg); }
.vc-thought div { margin-top: 8px; white-space: pre-wrap; line-height: 1.6; max-height: 320px; overflow: auto; }
.vc .vc-thought.plain summary { cursor: default; } .vc .vc-thought.plain summary::after { content: none; }

/* websites Velion builds: a card in the answer, preview in a sandboxed frame (2026-10-21) */
.vc-art { margin: 0 0 .9em; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px; display: grid; gap: 12px; }
.vc-art-h { display: flex; gap: 12px; align-items: center; min-width: 0; }
.vc-art-h > div { display: grid; gap: 2px; min-width: 0; }
.vc-art-h b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-art-h small { color: var(--muted); font-size: .8rem; }
.vc-art-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.vc-art-ic svg, .vc-art-b svg, .vc-pv-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vc-art-busy .vc-art-ic { animation: vc-art-pulse 1.4s ease-in-out infinite; }
@keyframes vc-art-pulse { 50% { opacity: .45; } }
.vc-art-b { display: flex; gap: 8px; flex-wrap: wrap; }
.vc-art-b button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font: 600 .82rem/1 var(--f-body); color: var(--ink); }
.vc-art-b button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.vc-art-b .vc-art-go { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vc-art-b .vc-art-go:hover { background: var(--ink); opacity: .9; }
.vc-art-b button:disabled { opacity: .45; cursor: default; }
.vc-art-b button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vc-art .vc-pre { margin: 0; }
.vc-art .vc-pre pre { max-height: 420px; }
.vc-pv { border: 0; padding: 0; margin: auto; width: min(1280px, calc(100vw - 32px)); height: calc(100vh - 32px); max-width: none; max-height: none; border-radius: 16px; background: var(--surface); color: var(--ink); overflow: hidden; }
.vc-pv[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.vc-pv::backdrop { background: color-mix(in srgb, #0E131B 65%, transparent); }
.vc-pv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.vc-pv-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-pv-dl, .vc-pv-x { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 999px; font: 600 .82rem/1 var(--f-body); }
.vc-pv-dl { border: 1px solid var(--line); }
.vc-pv-dl:hover, .vc-pv-x:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.vc-pv-dl:focus-visible, .vc-pv-x:focus-visible { outline: 2px solid var(--accent); }
.vc-pv-stage { background: color-mix(in srgb, var(--ink) 8%, var(--bg)); display: grid; justify-items: center; overflow: auto; }
.vc-pv-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .25s ease; }
.vc-pv-phone .vc-pv-stage { padding: 16px 0; }
.vc-pv-phone .vc-pv-stage iframe { width: 390px; max-width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 640px) {
  .vc-pv { width: 100vw; height: 100dvh; border-radius: 0; }
  .vc-pv-size, .vc-pv-dl span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vc-art-busy .vc-art-ic { animation: none; } .vc-pv-stage iframe { transition: none; } }

/* reply suggestions above the message box (2026-10-21) */
.vc-sugs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 0 4px 8px; }
.vc-sug { all: unset; cursor: pointer; max-width: 100%; box-sizing: border-box; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font: 500 .86rem/1.35 var(--f-body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-sug:hover { border-color: var(--accent); color: var(--accent); }
.vc-sug:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .vc-sugs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } .vc-sug { flex: none; max-width: 80vw; } }
.vc-body > * { min-width: 0; }   /* long tables and code scroll inside their box on phones */

/* live location (2026-10-22) */
.vc-locbtn.on { color: var(--accent); }
.vc-locrow { display: flex; padding: 0 4px 8px; }
.vc-loc { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 6px 5px 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font: 500 .84rem/1.3 var(--f-body); color: var(--ink); min-width: 0; }
.vc-loc svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.vc-loc-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vc-loc small { color: var(--accent); font-weight: 600; font-size: .72rem; white-space: nowrap; }
.vc-loc button { all: unset; cursor: pointer; flex: none; border-radius: 999px; font: 600 .76rem/1 var(--f-body); color: var(--muted); }
.vc-loc-re { padding: 6px 9px; }
.vc-loc-x { width: 24px; height: 24px; display: grid; place-items: center; }
.vc-loc-x svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; }
.vc-loc button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.vc-loc button:focus-visible { outline: 2px solid var(--accent); }
.vc-wx-live { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 600 .68rem/1.4 var(--f-body); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); vertical-align: middle; }
@media (max-width: 640px) { .vc-loc small { display: none; } }
@media (max-width: 480px) { .vc-box textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vc-box .vc-icon { width: 36px; } }

/* maths written as text (2026-10-22) */
.vc-math { font-variant-numeric: lining-nums; white-space: nowrap; }
.vc-math sup, .vc-math sub { font-size: .72em; line-height: 0; }
.vc-math-b, .vc-math-d { display: block; margin: .6em 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: 1.05em; white-space: normal; overflow-x: auto; }
/* tables: words never split letter by letter; a wide table scrolls sideways in its box (2026-10-22) */
.vc-table table { width: auto; min-width: 100%; word-break: normal; overflow-wrap: normal; }
.vc-table th, .vc-table td { min-width: 7em; }
.vc-table th { line-height: 1.45; }
.vc-table td { white-space: nowrap; }
.vc-table td.vc-long { white-space: normal; min-width: 14em; }
.vc-table { scrollbar-width: thin; }

/* ===== 2026-10-22: files, edit, versions, projects, voice conversation, rates, export ===== */
.vc-att-doc { display: flex; align-items: center; gap: 10px; padding: 8px 30px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); max-width: 260px; min-height: 48px; box-sizing: border-box; }
.vc-att-doc > svg, .vc-docchip > svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vc-att-doc span, .vc-docchip span { display: grid; min-width: 0; }
.vc-att-doc b, .vc-docchip b { font: 600 .84rem/1.3 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-att-doc small, .vc-docchip small { color: var(--muted); font-size: .74rem; }
.vc-att-doc.busy > svg { animation: vc-art-pulse 1.2s ease-in-out infinite; }
.vc-docchip { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); max-width: min(85%, 22rem); }

.vc-msg.me { position: relative; }
.vc-uacts { display: flex; gap: 2px; justify-content: flex-end; opacity: 0; transition: opacity .15s ease; }
.vc-msg.me:hover .vc-uacts, .vc-msg.me:focus-within .vc-uacts { opacity: 1; }
@media (hover: none) { .vc-uacts { opacity: .8; } }
.vc-uacts button { all: unset; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.vc-uacts button:hover { color: var(--ink); background: var(--soft); }
.vc-uacts button:focus-visible { outline: 2px solid var(--accent); }
.vc-uacts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vc-edit { width: min(100%, 40rem); display: grid; gap: 8px; }
.vc-edit textarea { width: 100%; box-sizing: border-box; resize: vertical; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 14px; background: var(--surface); color: var(--ink); font: 400 var(--s0)/1.55 var(--f-body); }
.vc-edit textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.vc-edit-b { display: flex; gap: 8px; justify-content: flex-end; }
.vc-vers { display: inline-flex; align-items: center; gap: 0; margin-left: 4px; color: var(--muted); font: 500 .8rem/1 var(--f-body); }
.vc-vers-n { min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
.vc-acts button:disabled { opacity: .35; cursor: default; }

.vc-projs { margin: 4px 0 2px; }
.vc-proj-sec > summary { list-style: none; cursor: pointer; margin: 8px 8px 4px; font: 600 .7rem/1 var(--f-body); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.vc-proj-sec > summary::-webkit-details-marker { display: none; }
.vc-proj-sec > summary::after { content: " ▾"; }
.vc-proj-sec:not([open]) > summary::after { content: " ▸"; }
.vc-proj { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border-radius: 9px; font: 500 .88rem/1.3 var(--f-body); color: var(--ink); }
.vc-proj:hover, .vc-proj.on { background: var(--soft); }
.vc-proj:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.vc-proj span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-proj small { color: var(--muted); font-size: .75rem; }
.vc-proj svg, .vc-proj-name svg, .vc-proj-back svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vc-proj-add { color: var(--muted); }
.vc-proj-head { display: grid; gap: 6px; padding: 4px 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.vc-proj-back { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; width: max-content; padding: 4px 6px; border-radius: 7px; font: 500 .8rem/1 var(--f-body); color: var(--muted); }
.vc-proj-back:hover { color: var(--ink); background: var(--soft); }
.vc-proj-name { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.vc-proj-name svg { color: var(--accent); }
.vc-proj-name b { flex: 1; min-width: 0; font: 600 1rem/1.3 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-proj-instr { margin: 0 6px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.vc-movelist { display: grid; gap: 2px; }
.vc-movelist .vc-proj.on { font-weight: 600; }
.vc-set textarea { width: 100%; box-sizing: border-box; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 .92rem/1.5 var(--f-body); }

.vc-vm { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); }
.vc-vm[hidden] { display: none; }
.vc-vm-orb { position: relative; width: 180px; height: 180px; cursor: pointer; margin-bottom: 10px; }
.vc-vm-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.vc-vm-orb i:nth-child(1) { inset: 46px; background: var(--accent); border: 0; }
.vc-vm-orb i:nth-child(2) { inset: 24px; }
.vc-vm-orb[data-st="listening"] i:nth-child(2), .vc-vm-orb[data-st="listening"] i:nth-child(3) { animation: vc-vm-ring 1.6s ease-out infinite; }
.vc-vm-orb[data-st="listening"] i:nth-child(3) { animation-delay: .8s; }
.vc-vm-orb[data-st="thinking"] i:nth-child(1) { animation: vc-art-pulse 1.1s ease-in-out infinite; }
.vc-vm-orb[data-st="speaking"] i:nth-child(1) { animation: vc-vm-talk .5s ease-in-out infinite alternate; }
.vc-vm-orb[data-st="idle"] i:nth-child(1) { background: var(--muted); }
@keyframes vc-vm-ring { from { transform: scale(.75); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
@keyframes vc-vm-talk { from { transform: scale(.92); } to { transform: scale(1.06); } }
.vc-vm-state { margin: 0; font: 600 1.2rem/1.3 var(--f-body); color: var(--ink); }
.vc-vm-heard { margin: 0; min-height: 1.5em; max-width: 34rem; font-size: 1.05rem; color: var(--ink); }
.vc-vm-said { margin: 0; max-width: 34rem; max-height: 30vh; overflow: auto; color: var(--muted); line-height: 1.6; }
.vc-vm-b { display: flex; gap: 10px; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .vc-vm-orb i { animation: none !important; } }

.vc-rate { display: grid; gap: 6px; padding: 14px 16px; }
.vc-rate-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.vc-rate-main span { color: var(--muted); font-size: 1rem; }
.vc-rate-main span::after { content: " ="; }
.vc-rate-main b { font: 700 1.7rem/1.2 var(--f-body); font-variant-numeric: tabular-nums; color: var(--ink); }
.vc-rate-sub { font-size: .86rem; color: var(--ink); }
.vc-rate small { color: var(--muted); font-size: .76rem; line-height: 1.45; }

/* printing a chat ("Export chat" -> PDF) */
@media print {
  body.vc, .vc-app { display: block !important; height: auto !important; overflow: visible !important; background: #fff !important; color: #000 !important; }
  .vc-side, .vc-scrim, .vc-top, .vc-composer, .vc-empty, .vc-acts, .vc-uacts, .vc-vm, .vc-sugs, .vc-locrow, dialog, .vc-toast, .vc-art-b, .vc-ava { display: none !important; }
  .vc-main, .vc-scroll { display: block !important; height: auto !important; overflow: visible !important; }
  .vc-thread { max-width: none !important; padding: 0 !important; }
  body.vc::before { content: attr(data-print-title); display: block; font: 700 18pt/1.3 var(--f-body); margin: 0 0 14pt; }
  .vc-msg { break-inside: avoid-page; }
  .vc-msg.me .vc-text { border: 1px solid #bbb !important; background: #f3f3f3 !important; }
  .vc-pre, .vc-pre pre { background: #f6f6f6 !important; color: #000 !important; white-space: pre-wrap !important; }
  .vc-pre header { background: #eee !important; color: #333 !important; }
  .vc-table { overflow: visible !important; } .vc-table td { white-space: normal !important; }
  a { color: #000 !important; }
}
/* reminders + memory moved into the account menu (2026-10-22) */
.vc-me .vc-count:not([hidden]) + svg { margin-left: 6px; }
.vc-usage { border-top: 1px solid var(--line); border-radius: 0; padding-top: 10px; }

/* + menu: camera, photos, files (2026-10-22) */
.vc-attwrap { position: relative; flex: none; align-self: flex-end; }
.vc-attmenu { left: 0; right: auto; width: 260px; }
.vc-attmenu .vc-ck svg { width: 20px; height: 20px; color: var(--ink); }
.vc-cam { border: 0; padding: 0; width: min(720px, calc(100vw - 24px)); max-width: none; border-radius: 18px; background: #000; color: #fff; overflow: hidden; }
.vc-cam[open] { display: grid; }
.vc-cam::backdrop { background: color-mix(in srgb, #000 75%, transparent); }
.vc-cam video { width: 100%; max-height: 70vh; background: #000; object-fit: contain; display: block; }
.vc-cam-msg { margin: 0; padding: 40px 20px; text-align: center; }
.vc-cam-b { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.vc-cam-b .btn { color: #fff; border-color: rgba(255,255,255,.35); }
.vc-cam-shot { all: unset; cursor: pointer; width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; }
.vc-cam-shot span { width: 50px; height: 50px; border-radius: 50%; background: #fff; transition: transform .1s ease; }
.vc-cam-shot:active span { transform: scale(.9); }
.vc-cam-shot:disabled { opacity: .4; cursor: default; }
.vc-cam-shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.vc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { .vc-attmenu { width: min(280px, calc(100vw - 48px)); } }
.vc-cam-b { display: grid; grid-template-columns: 1fr auto 1fr; }
.vc-cam-b #camCancel { justify-self: start; } .vc-cam-b #camFlip { justify-self: end; }
.vc-cam-b #camFlip[hidden] { display: inline-flex; visibility: hidden; }

/* 2026-10-23: backup block in Settings */
.vc-bk { margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.vc-bk > b { display: block; font: 600 1rem/1.4 var(--f-body); }
.vc-bk .btns { margin-top: 10px; flex-wrap: wrap; }
