/* Vibe Accounts product page */
.p-hero { padding: 40px 0 24px; }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: start; }
.p-intro .crumbs { margin-bottom: 26px; }
.p-title { display: flex; gap: 18px; align-items: center; }
.p-mark { flex: none; filter: drop-shadow(0 14px 24px rgba(0,0,0,.5)); }
.p-mark svg { width: 76px; height: 76px; }
.p-pills { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.p-title h1 { letter-spacing: -.035em; }
.p-intro .lead { margin-top: 22px; max-width: 600px; }
.p-install { margin-top: 26px; }
.p-bullets { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.p-bullets li { position: relative; padding-left: 18px; }
.p-bullets li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 0; height: 0; border-left: 6px solid var(--lime-ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.p-bullets b { color: var(--text); font-weight: 600; }

.demo { position: sticky; top: calc(var(--header-h) + 20px); }
.demo-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 11px; gap: 10px; }
.demo-app { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(198,255,61,.04), 0 0 60px -30px var(--lime-glow); }
.demo-bar { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); background: var(--raised); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); }
.demo-app-name { font: 700 14px/1 var(--f-display); letter-spacing: -.01em; }
.demo-url { font-size: 11px; color: var(--dim); padding: 5px 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-bar vibe-id-chip, .demo-bar vibe-accounts-chip { margin-left: auto; flex: none; }
.demo-body { padding: 16px; display: grid; gap: 16px; }
.demo-identity { min-height: 120px; }
.demo-identity.picking { min-height: 0; }
.demo-loading { color: var(--dim); font-size: 12px; padding: 40px 0; text-align: center; }
.demo-user { display: flex; gap: 14px; align-items: center; }
.du-av { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line-2), 0 0 30px -10px var(--lime-glow); }
.du-av svg { width: 100%; height: 100%; }
.du-name { font: 600 22px/1.1 var(--f-display); letter-spacing: -.02em; word-break: break-word; }
.du-meta { margin-top: 8px; }
.du-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.du-actions .danger { color: var(--danger); }
.du-hint { font-size: 12.5px; margin-top: 10px; }
.demo-fallback { display: flex; gap: 12px; padding: 16px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--text-2); font-size: 13.5px; }
.demo-fallback svg { width: 18px; height: 18px; flex: none; color: var(--amber-ink); }
.demo-fallback b { display: block; color: var(--text); margin-bottom: 4px; }

.demo-thread { border-top: 1px solid var(--line); padding-top: 14px; }
.demo-thread-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; gap: 8px; }
.demo-note { color: var(--amber-ink); letter-spacing: .04em; text-transform: none; }
.demo-compose { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: start; }
.demo-compose .textarea { min-height: 40px; font-size: 13.5px; }
.demo-compose .btn { height: 40px; }
.demo-me, .dc-av { width: 32px; height: 32px; border-radius: 9px; overflow: hidden; background: var(--raised); flex: none; }
.demo-me svg, .dc-av svg { width: 100%; height: 100%; }
.demo-me-empty { display: grid; place-items: center; width: 100%; height: 100%; color: var(--dim); }
.demo-me-empty svg { width: 16px; height: 16px; }
.demo-comments { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; max-height: 300px; overflow-y: auto; }
.demo-comment { display: flex; gap: 10px; padding: 10px; border-radius: 10px; animation: card-in .4s var(--ease); }
.demo-comment.mine { background: var(--lime-soft); }
.dc-body { min-width: 0; }
.dc-meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; flex-wrap: wrap; }
.dc-meta b { font-weight: 600; }
.dc-you, .dc-sample { font: 600 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 5px; border-radius: 4px; background: var(--lime); color: var(--on-lime); }
.dc-sample { background: var(--raised-2); color: var(--muted); }
.dc-body p { font-size: 13.5px; color: var(--text-2); margin-top: 3px; word-wrap: break-word; }
.demo-foot .link-arrow { white-space: nowrap; }
.demo-foot { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 12px; font-size: 12.5px; }

.tab-notes { margin-top: 14px; gap: 12px; }
.tab-notes > div { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.tab-notes b { display: block; font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.tab-panel > .code-block + .code-block { margin-top: 12px; }
.prompt-mode { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; font-size: 13px; }
.tab-panel .code-block pre { max-height: 460px; }

.everywhere { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; padding: 32px; align-items: center; }
.priv-h { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }

.teaser { display: flex; flex-direction: column; gap: 10px; padding: 28px; transition: border-color .3s, transform .3s var(--ease); background: radial-gradient(500px 220px at 100% 0%, rgba(46,230,255,.08), transparent 60%), var(--surface); }
.teaser:hover { border-color: var(--line-3); transform: translateY(-2px); }
.teaser .link-arrow { margin-top: auto; padding-top: 8px; }
.teaser-avatars { display: flex; margin-bottom: 8px; }
.teaser-avatars span { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; margin-right: -8px; box-shadow: 0 0 0 3px var(--surface); }
.teaser-avatars svg { width: 100%; height: 100%; }
.p-pricing { display: flex; flex-direction: column; gap: 14px; }
.p-price-rows { display: grid; }
.p-price-rows div { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; font-size: 13.5px; }
.p-price-rows b { font: 600 15px/1 var(--f-display); }
.p-price-rows span { color: var(--muted); }
.p-price-rows em { font: 600 14px/1 var(--f-mono); font-style: normal; color: var(--lime-ink); }
.p-docs { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.p-source { flex-basis: 100%; font-size: 11.5px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 1080px) {
  .p-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .demo { position: static; }
  .everywhere { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .p-hero { padding: 24px 0 8px; }
  .p-mark svg { width: 60px; height: 60px; }
  .demo-body { padding: 12px; }
  .demo-url { display: none; }
  .demo-compose { grid-template-columns: 1fr auto; }
  .demo-compose .demo-me { display: none; }
  .everywhere { padding: 20px; }
  .tab-notes { grid-template-columns: 1fr; }
  .demo-foot { flex-direction: column; gap: 6px; }
  .p-price-rows div { grid-template-columns: 56px 1fr; }
  .p-price-rows em { grid-column: 2; }
}

/* ---------- live tool product pages (tools/doctor|pulse|bug.html) ---------- */
[data-tool] .p-hero-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 44px; }
[data-tool="bug"] .p-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.tp-cmds { display: grid; gap: 8px; margin-top: 26px; max-width: 620px; }
.tp-cmds .code-line { height: 46px; padding: 0 8px 0 12px; font-size: 14px; border-radius: 11px; }
.tp-cmds .code-line.term .cl-text { direction: rtl; } /* keep the end ("… doctor") visible; copy is always the full command */
.tp-cmds .code-line.term .cl-text { color: color-mix(in srgb, var(--lime-ink) 62%, var(--text)); font-weight: 400; }
.tp-cmds .code-line.prompt .cl-text { color: color-mix(in srgb, var(--cyan-ink) 55%, var(--text)); }
.tp-cmds .code-line .cl-icon { width: 32px; height: 32px; }
.p-bullets code { font-size: 12px; }

.tp-visual { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.tp-visual-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 11px; }
.tp-visual-note { font-size: 12.5px; margin-top: 10px; }
.term { border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.1); background: var(--code-bg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 60px -30px color-mix(in srgb, var(--accent, var(--lime)) 60%, transparent); }
.term-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); }
.term-bar .demo-dots i { background: rgba(255,255,255,.14); }
.term-title { font: 500 11.5px/1 var(--f-mono); color: #8a919a; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.term-body { margin: 0; padding: 16px 16px 18px; overflow-x: auto; font: 400 11.2px/1.7 var(--f-mono); color: #dfe5dc; tab-size: 2; scrollbar-width: thin; }
.term-body b { color: #fff; font-weight: 600; }
.t-dim { color: #6c757e; } .t-lime { color: #c6ff3d; } .t-cyan { color: #2ee6ff; } .t-amber { color: #ffb547; }
.term-body.json { font-size: 12.5px; }

.tp-h { margin: 12px 0 18px; }
.tp-dos .panel { height: 100%; }
.tp-dos .list-check li, .tp-dos .list-x li { font-size: 14px; }
.tp-fine { font-size: 12.5px; margin-top: 14px; line-height: 1.55; }
.tp-p { font-size: 14px; margin: 12px 0 16px; }
.tp-cta { margin-top: 4px; }
.tp-callout { margin-top: 14px; }
.tp-callout svg { width: 18px; height: 18px; flex: none; color: var(--lime-ink); margin-top: 1px; }

/* 4-step flow diagram */
.tp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.tp-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); min-width: 0; transition: border-color .25s, transform .25s var(--ease); }
.tp-steps li:hover { border-color: var(--line-3); transform: translateY(-2px); }
.tp-steps li:not(:last-child)::after { content: ''; position: absolute; right: -12px; top: 30px; width: 10px; height: 10px; border-top: 1.5px solid var(--lime-ink); border-right: 1.5px solid var(--lime-ink); transform: rotate(45deg); opacity: .8; z-index: 1; }
.tp-steps i { font: 600 10.5px/1 var(--f-mono); font-style: normal; letter-spacing: .14em; color: var(--lime-ink); }
.tp-steps b { font: 600 18px/1.2 var(--f-display); letter-spacing: -.01em; color: var(--text); }
.tp-steps span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.tp-steps span code { font-size: 12px; }
.tp-steps > li > code { margin-top: auto; display: block; padding: 10px 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.08); background: var(--code-bg); color: #dfe5dc; font: 400 12px/1.55 var(--f-mono); overflow-wrap: anywhere; }
.tp-steps > li > code em { font-style: normal; }
.tp-steps > li > span { margin-bottom: 8px; }

/* Pulse on / off / delete */
.tp-ctrl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tp-ctrl .panel { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.tp-ctrl .panel p { font-size: 13.5px; margin-bottom: 6px; }
.tp-ctrl [data-cmd] { margin-top: auto; }
.tp-ctrl-h { display: flex; align-items: center; gap: 9px; font: 600 17px/1.2 var(--f-display); }
.tp-ctrl .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.tp-ctrl .dot.on { background: var(--lime); box-shadow: 0 0 10px var(--lime-glow); }
.tp-ctrl .dot.del { background: var(--danger); }

/* Vibe Bug demo */
.bug-demo { gap: 14px; }
.bug-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.bug-step b { font: 600 15px/1.3 var(--f-display); }
.bug-step p { font-size: 12.5px; margin-top: 2px; }
.bug-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 600 12px/1 var(--f-mono); color: var(--amber-ink); background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber-ink) 35%, transparent); }
.bug-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bug-actions .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.bug-log { border-top: 1px solid var(--line); padding-top: 12px; }
.bug-log-head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bug-log-head .dim { letter-spacing: .04em; text-transform: none; }
.bug-log ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; min-height: 44px; }
.bug-empty { font-size: 12.5px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 10px; }
.bug-item { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 9px; background: var(--code-bg); border: 1px solid rgba(255,255,255,.07); font: 400 11.5px/1.45 var(--f-mono); color: #dfe5dc; animation: card-in .35s var(--ease); min-width: 0; }
.bug-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.bug-tag { flex: none; font: 600 9px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px; color: #ff8a7a; background: rgba(255,107,90,.12); }
.bug-item.net .bug-tag { color: #ffb547; background: rgba(255,181,71,.12); }

@media (max-width: 1080px) {
  [data-tool] .p-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-visual { position: static; }
  .tp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 720px) {
  .tp-steps, .tp-ctrl { grid-template-columns: minmax(0, 1fr); }
  .tp-steps li::after { display: none; }
  .term-body { font-size: 11px; padding: 14px; }
  .tp-cmds .code-line { height: auto; min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .bug-item { animation: none; } .tp-steps li:hover { transform: none; } }
[data-tool] .p-title h1 { font-size: clamp(38px, 5.2vw, 68px); white-space: nowrap; }
[data-tool] .grid-2 { align-items: start; }
[data-tool] .tp-dos { align-items: stretch; }
@media (max-width: 400px) { [data-tool] .p-title h1 { font-size: 34px; } }

/* ---------- Vibe Accounts product page: setup link ---------- */
.p-setup-link { margin-top: 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; }
.p-setup-link .link-arrow { color: var(--lime-ink); }

/* ---------- Vibe Accounts setup preview (tools/id-setup.html) ---------- */
.vs-hero { padding: 40px 0 20px; }
.vs-hero .crumbs { margin-bottom: 26px; }
.vs-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.vs-h1 { margin-top: 14px; letter-spacing: -.035em; }
.vs-lead { margin-top: 14px; max-width: 640px; }
.vs-hero-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.vs-progress { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-size: 11.5px; }
.vs-body { padding: 8px 0 24px; }
.vs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 28px; align-items: start; }
.vs-questions { display: grid; gap: 18px; min-width: 0; }

.vs-q { padding: 22px; scroll-margin-top: calc(var(--header-h) + 16px); min-width: 0; }
.vs-q-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; margin-bottom: 16px; }
.vs-num { font: 600 11px/1 var(--f-mono); letter-spacing: .1em; color: var(--lime-ink); padding: 7px 8px; border-radius: 8px; background: var(--lime-soft); border: 1px solid color-mix(in srgb, var(--lime-ink) 30%, transparent); }
.vs-q-title { font: 600 20px/1.2 var(--f-display); letter-spacing: -.015em; }
.vs-q-help { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.vs-key { font: 700 11.5px/1 var(--f-code); color: var(--cyan-ink); background: var(--cyan-soft); border: 1px solid color-mix(in srgb, var(--cyan-ink) 22%, transparent); padding: 6px 8px; border-radius: 7px; white-space: nowrap; }

.vs-opts { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vs-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vs-opt { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px 14px 13px 40px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; font: inherit; transition: border-color .2s, background .2s, box-shadow .25s; min-width: 0; }
.vs-opt::before { content: ''; position: absolute; left: 14px; top: 15px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-3); transition: border-color .2s, box-shadow .2s; }
.vs-opt:hover { border-color: var(--line-3); }
.vs-opt[aria-pressed="true"] { border-color: color-mix(in srgb, var(--lime-ink) 60%, transparent); background: color-mix(in srgb, var(--lime) 6%, var(--bg-2)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lime-ink) 25%, transparent), 0 10px 30px -18px var(--lime-glow); }
.vs-opt[aria-pressed="true"]::before { border-color: var(--lime-ink); box-shadow: inset 0 0 0 3px var(--bg-2), inset 0 0 0 8px var(--lime); }
.vs-opt-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vs-opt-top b { font: 600 15px/1.2 var(--f-display); }
.vs-opt-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.vs-def { font: 500 9.5px/1 var(--f-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 3px 5px; border-radius: 4px; border: 1px solid var(--line-2); }

.vs-pv { margin-top: 16px; padding: 14px; border-radius: var(--r); border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--bg) 55%, transparent); min-width: 0; }
.vs-pv-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vs-pv-label .dim { letter-spacing: .03em; text-transform: none; }
.vs-mini-seg button { height: 24px; font-size: 11px; padding: 0 9px; letter-spacing: 0; text-transform: none; }
.vs-loading { font-size: 12px; color: var(--dim); padding: 36px 0; text-align: center; }
.vs-fallback { display: flex; gap: 12px; padding: 16px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--text-2); font-size: 13px; }
.vs-fallback svg { width: 18px; height: 18px; flex: none; color: var(--amber-ink); }
.vs-fallback b { display: block; color: var(--text); margin-bottom: 4px; }

/* mock site + chip (mirrors the real chip CSS in packages/id/src/client/styles.js) */
.vs-site { position: relative; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
.vs-site-bar { display: flex; align-items: center; gap: 18px; height: 54px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); background: var(--raised); }
.vs-site-logo { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.vs-site-logo i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--lime), var(--cyan)); }
.vs-site-nav { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.vs-site-right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.vs-site-burger { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); }
.vs-site-burger svg { width: 20px; height: 20px; }
.vs-site-body { padding: 16px; display: grid; gap: 9px; }
.vs-skel { height: 9px; border-radius: 5px; background: var(--raised-2); }
.vs-skel.w60 { width: 60%; height: 14px; } .vs-skel.w90 { width: 90%; } .vs-skel.w75 { width: 75%; }
.vs-skel-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.vs-skel-card { height: 54px; border-radius: 9px; background: var(--raised); border: 1px solid var(--line); }
.vs-site-w { position: absolute; right: 10px; bottom: 8px; font-size: 10px; color: var(--dim); }
.vs-site.phone .vs-site-bar { gap: 10px; padding: 0 8px 0 14px; }

.vs-chip { display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: 240px; flex: none; }
.vs-chip-face { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; }
.vs-chip-face svg { width: 100%; height: 100%; display: block; }
.vs-chip-name { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-chip-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.vs-chip.compact { padding: 4px; gap: 0; }
.vs-chip.compact .vs-chip-name, .vs-chip.compact .vs-chip-dot, .vs-chip.compact.vs-chip-key span { display: none; }
.vs-chip-key { padding: 8px 14px; font-weight: 650; font-size: 13.5px; gap: 8px; white-space: nowrap; }
.vs-chip-key svg { width: 18px; height: 18px; flex: none; color: var(--lime-ink); }
.vs-chip-key.compact { padding: 7px; }

.vs-frames { display: grid; grid-template-columns: minmax(0, 1.92fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.vs-frame-fig { margin: 0; min-width: 0; }
.vs-scale { position: relative; overflow: hidden; width: 100%; }
.vs-scale-inner { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.vs-frame-fig figcaption { margin-top: 8px; font: 400 11.5px/1.4 var(--f-mono); color: var(--muted); }
.vs-frame-fig figcaption b { color: var(--text); font-weight: 600; }

/* passkey sheet mock (mirrors continueWithPasskey) */
.vs-exp-pass { display: grid; gap: 0; justify-items: center; }
.vs-exp-header { width: 100%; }
.vs-exp-header .vs-site-body { display: none; }
.vs-exp-header .vs-site { border-radius: 12px; }
.vs-exp-arrow { position: relative; height: 34px; width: 100%; font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.vs-exp-arrow::before { content: ''; position: absolute; right: 90px; top: 0; bottom: 0; border-left: 1px dashed var(--line-3); }
.vs-exp-arrow span { position: absolute; right: 100px; top: 12px; }
.vs-sheet { width: 100%; max-width: 400px; padding: 20px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 50px -30px var(--lime-glow); justify-self: end; }
.vs-sheet-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.vs-sheet-kicker { font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.vs-sheet-title { font: 600 20px/1.2 var(--f-display); letter-spacing: -.015em; }
.vs-sheet-x { color: var(--dim); width: 18px; height: 18px; }
.vs-sheet-x svg { width: 18px; height: 18px; }
.vs-sheet-p { font-size: 13px; color: var(--text-2); margin-top: 10px; line-height: 1.5; }
.vs-sheet-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; height: 44px; border-radius: 12px; background: var(--lime); color: var(--on-lime); font-weight: 650; font-size: 14px; box-shadow: 0 8px 30px -10px var(--lime-glow); }
.vs-sheet-cta svg { width: 18px; height: 18px; }
.vs-sheet-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.vs-sheet-note { margin-top: 12px; font-size: 11.5px; color: var(--dim); line-height: 1.45; }
.vs-sheet.sm { padding: 16px; max-width: none; justify-self: stretch; }
.vs-sheet.sm .vs-sheet-title { font-size: 16px; }
.vs-sheet-field { display: block; margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--lime-ink) 45%, transparent); background: var(--bg-2); font-size: 13px; letter-spacing: .08em; color: var(--text); }

/* style tiles */
.vs-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vs-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; font: inherit; text-align: left; transition: border-color .2s, background .2s, opacity .2s, box-shadow .25s; min-width: 0; }
.vs-tile:hover { border-color: var(--line-3); }
.vs-tile[aria-pressed="false"] { opacity: .62; }
.vs-tile[aria-pressed="false"]:hover { opacity: .9; }
.vs-tile[aria-pressed="true"] { border-color: color-mix(in srgb, var(--lime-ink) 60%, transparent); background: color-mix(in srgb, var(--lime) 5%, var(--bg-2)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lime-ink) 22%, transparent); }
.vs-check { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-3); display: grid; place-items: center; color: transparent; transition: background .2s, border-color .2s; }
.vs-check svg { width: 12px; height: 12px; stroke-width: 3; }
.vs-tile[aria-pressed="true"] .vs-check { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.vs-avs { display: flex; margin-bottom: 8px; }
.vs-avs span { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; margin-right: -6px; box-shadow: 0 0 0 3px var(--bg-2); }
.vs-avs svg { width: 100%; height: 100%; display: block; }
.vs-tile-name { font: 600 14px/1.2 var(--f-display); text-transform: capitalize; }
.vs-tile-sub { font-size: 11.5px; color: var(--muted); }
.vs-names { display: grid; gap: 5px; margin-top: 8px; width: 100%; }
.vs-names span { font: 700 12.5px/1.2 var(--f-code); color: var(--text); padding: 6px 8px; border-radius: 7px; background: var(--code-bg); border: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme="light"] .vs-names span { color: #dfe5dc; }
.vs-tiles-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font: 400 11.5px/1 var(--f-mono); }
.vs-tiles-foot .btn svg { width: 14px; height: 14px; }

.vs-mix { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.vs-mix-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); min-width: 0; animation: card-in .35s var(--ease); }
.vs-mix-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; }
.vs-mix-av svg { width: 100%; height: 100%; display: block; }
.vs-mix-text { display: grid; min-width: 0; }
.vs-mix-text b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-mix-text small { font: 400 10.5px/1.4 var(--f-mono); color: var(--dim); }

/* editable number */
.vs-numdemo { display: flex; gap: 14px; align-items: center; }
.vs-numdemo-av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line-2), 0 0 30px -10px var(--lime-glow); }
.vs-numdemo-av svg { width: 100%; height: 100%; display: block; }
.vs-numdemo-body { display: grid; gap: 6px; min-width: 0; }
.vs-numdemo-k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vs-numname { display: flex; align-items: center; font: 600 24px/1 var(--f-display); letter-spacing: -.02em; flex-wrap: wrap; gap: 2px; }
.vs-numbox { position: relative; display: inline-flex; align-items: center; border-radius: 9px; border: 1.5px solid var(--line-2); background: var(--bg-2); padding: 0 6px 0 8px; height: 38px; margin-left: 4px; transition: border-color .2s, box-shadow .2s; }
.vs-numbox input { width: 4.2ch; border: 0; background: transparent; color: var(--muted); font: 700 22px/1 var(--f-code); padding: 0; outline: none; }
.vs-numbox.on { border-color: color-mix(in srgb, var(--lime-ink) 65%, transparent); box-shadow: 0 0 0 3px var(--lime-soft); cursor: text; }
.vs-numbox.on input { color: var(--lime-ink); }
.vs-numbox.on:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 25%, transparent), 0 0 24px -6px var(--lime-glow); }
.vs-numbox:not(.on) input { cursor: default; }
.vs-numicon { display: grid; place-items: center; width: 16px; height: 16px; color: var(--lime-ink); }
.vs-numicon.lock { color: var(--dim); }
.vs-numicon svg { width: 15px; height: 15px; }
.vs-numhint { font-size: 12.5px; color: var(--muted); }

/* signups */
.vs-su { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.vs-su-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.vs-su-who { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vs-su-res { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 9px 11px; border-radius: 10px; }
.vs-su-res svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.vs-su-res.ok { color: var(--lime-ink); background: var(--lime-soft); }
.vs-su-res.no { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }

/* output panel */
.vs-out { position: sticky; top: calc(var(--header-h) + 20px); min-width: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.vs-out-inner { padding: 22px; display: grid; gap: 18px; box-shadow: var(--shadow), 0 0 60px -36px var(--lime-glow); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.vs-out-title { font: 600 20px/1.2 var(--f-display); letter-spacing: -.015em; margin-top: 10px; }
.vs-out-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vs-step { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--raised-2); color: var(--text); font-size: 10px; letter-spacing: 0; }
.vs-out .code-block pre { font-size: 12px; padding: 14px; }
.vs-say { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 8px 12px 14px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--cyan-ink) 30%, transparent); background: var(--cyan-soft); }
.vs-say::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 20%, rgba(46,230,255,.22) 50%, transparent 80%); transform: translateX(-110%); }
.vs-say.flash::after { animation: sweep .75s var(--ease); }
.vs-say-text { font-size: 13.5px; line-height: 1.55; color: var(--text); }
.vs-say .copy-btn { margin: 0; height: 28px; min-width: 74px; }
.vs-out-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vs-out-actions .btn svg { width: 14px; height: 14px; }
.vs-out-actions .btn.copied { border-color: color-mix(in srgb, var(--lime-ink) 55%, transparent); color: var(--lime-ink); }
.vs-out-hint { font-size: 12px; }
.vs-note { font-size: 13px; }
.vs-note code { font-size: 12px; }

.vs-jump { display: none; }

@media (max-width: 1080px) {
  .vs-grid { grid-template-columns: minmax(0, 1fr); }
  .vs-out { position: static; }
  .vs-out-inner { max-height: none; overflow: visible; }
  .vs-jump { position: fixed; left: 50%; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 600 13px/1 var(--f-ui); text-decoration: none; box-shadow: 0 10px 30px -8px var(--lime-glow), 0 0 0 1px rgba(0,0,0,.2); transform: translateX(-50%); transition: opacity .25s, transform .25s var(--ease); }
  .vs-jump svg { width: 15px; height: 15px; transform: rotate(90deg); }
  .vs-jump.hide { opacity: 0; pointer-events: none; transform: translate(-50%, 12px); }
}
@media (max-width: 720px) {
  .vs-hero { padding: 24px 0 12px; }
  .vs-hero-meta { align-items: flex-start; }
  .vs-progress { justify-content: flex-start; }
  .vs-q { padding: 16px; }
  .vs-q-head { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .vs-key { grid-column: 1 / -1; justify-self: start; }
  .vs-opts, .vs-opts-3 { grid-template-columns: minmax(0, 1fr); }
  .vs-frames { grid-template-columns: minmax(0, 1fr); }
  .vs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-pv { padding: 12px; }
  .vs-exp-arrow::before { right: 70px; } .vs-exp-arrow span { right: 80px; }
  .vs-numname { font-size: 20px; }
  .vs-out-inner { padding: 16px; }
  .vs-say { grid-template-columns: minmax(0, 1fr); }
  .vs-say .copy-btn { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .vs-mix-item { animation: none; } }
.vs-exp-pass { grid-template-columns: minmax(0, 1fr); }
.vs-exp-header, .vs-site, .vs-site-bar { min-width: 0; }
@media (max-width: 720px) { .vs-exp-header .vs-site-nav { display: none; } }
@media (max-width: 400px) { .vs-exp-header .vs-chip-key { padding: 7px 10px; font-size: 12.5px; } }
.vs-out-inner { grid-template-columns: minmax(0, 1fr); } .vs-out-inner > * { min-width: 0; }
.vs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
.vs-out .code-block pre { font-size: 11.8px; }
.vs-tiles { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.vs-tiles-ns .vs-names span { font-size: 11.8px; }
.vs-exp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px; align-items: start; width: 100%; }
.vs-exp-side { display: grid; gap: 8px; align-content: start; padding-top: 8px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.vs-exp-side b { font: 600 15px/1.3 var(--f-display); color: var(--text); }
.vs-exp-side .dim { font-size: 12px; }
@media (max-width: 1080px) { .vs-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .vs-exp-row { grid-template-columns: minmax(0, 1fr); } .vs-exp-side { order: 2; } }
@media (max-width: 720px) { .vs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .vs-out .code-block pre { font-size: 11px; padding: 12px; } }
@media (min-width: 1181px) {
  .vs-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .vs-tile { padding: 12px; }
  .vs-avs span { width: 34px; height: 34px; border-radius: 10px; }
  .vs-tiles-ns .vs-names span { font-size: 10.8px; padding: 6px; }
}
@media (min-width: 721px) and (max-width: 1180px) { .vs-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vs-out-inner { gap: 16px; }
@media (min-width: 1181px) { .vs-avs span { width: 30px; height: 30px; border-radius: 9px; } .vs-check { top: 8px; right: 8px; width: 16px; height: 16px; } }
.vs-exp-header .vs-chip-key { min-width: 0; flex: 0 1 auto; }
.vs-exp-header .vs-chip-key span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .vs-exp-header .vs-site-logo span { display: none; } }

/* ---------- setup preview v2: presets, welcome, start-with, own words, clean ---------- */
.vs-hero-meta { gap: 12px; }
.vs-meta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.vs-presets { display: flex; align-items: stretch; gap: 6px; padding: 5px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); }
.vs-presets-k { align-self: center; padding: 0 8px 0 6px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.vs-preset { display: grid; gap: 3px; text-align: left; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .25s; min-width: 0; }
.vs-preset b { font: 600 13.5px/1.15 var(--f-display); white-space: nowrap; }
.vs-preset small { font: 400 10.5px/1.2 var(--f-mono); color: var(--muted); white-space: nowrap; }
.vs-preset:hover { background: var(--raised); }
.vs-preset[aria-pressed="true"] { background: color-mix(in srgb, var(--lime) 8%, var(--raised)); border-color: color-mix(in srgb, var(--lime-ink) 55%, transparent); box-shadow: 0 8px 26px -16px var(--lime-glow); }
.vs-preset[aria-pressed="true"] b { color: var(--lime-ink); }
.vs-preset:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 2px; }

.vs-tag { font: 600 9px/1 var(--f-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-ink); padding: 3px 5px; border-radius: 4px; background: var(--cyan-soft); border: 1px solid color-mix(in srgb, var(--cyan-ink) 22%, transparent); margin-left: 6px; vertical-align: 2px; }
.vs-tag.cy { color: var(--lime-ink); background: var(--lime-soft); border-color: color-mix(in srgb, var(--lime-ink) 25%, transparent); }
.vs-opt-top .vs-tag { margin-left: 0; }

/* 5 welcome options: compact cards, radio dot on top */
.vs-opts-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vs-opts-5 .vs-opt { padding: 36px 12px 12px; gap: 5px; }
.vs-opts-5 .vs-opt::before { left: 12px; top: 13px; }
.vs-opts-5 .vs-opt-top { gap: 6px; }
.vs-opts-5 .vs-opt-sub { font-size: 11.8px; }
.vs-opts-5 .vs-def { position: absolute; top: 12px; right: 10px; }
.vs-opts-5 .vs-opt-top .vs-tag { position: absolute; top: 12px; right: 10px; }

/* tiles: 3 per row everywhere above phone width (6 avatar styles, 6-7 name styles) */
@media (min-width: 721px) { .vs-tiles, .vs-tiles-av, .vs-tiles-ns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
@media (min-width: 1181px) {
  .vs-avs span { width: 36px; height: 36px; border-radius: 10px; }
  .vs-tiles-ns .vs-names span { font-size: 11.6px; padding: 6px 8px; }
}
.vs-tile.is-start::after { content: 'start'; position: absolute; top: 10px; right: 32px; font: 600 9px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lime-ink); padding: 3px 5px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--lime-ink) 35%, transparent); }
@media (min-width: 1181px) { .vs-tile.is-start::after { top: 8px; right: 30px; } }
.vs-tile-pro .vs-avs span { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 4px var(--line-2); }

.vs-foot-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.vs-start { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vs-start select { appearance: none; -webkit-appearance: none; height: 24px; padding: 0 24px 0 9px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--lime-ink) 40%, transparent); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa39a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 6px center / 12px; color: var(--text); font: 600 12px/1 var(--f-code); letter-spacing: 0; text-transform: none; cursor: pointer; max-width: 150px; text-overflow: ellipsis; }
.vs-start select:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 1px; }
.vs-start.single { opacity: .55; }
.vs-start.single select { cursor: default; border-color: var(--line-2); background-image: none; padding-right: 9px; }

/* own words */
.vs-words { margin-top: 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; }
.vs-words[open] { border-color: color-mix(in srgb, var(--lime-ink) 35%, var(--line-2)); }
.vs-words summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.vs-words summary::-webkit-details-marker { display: none; }
.vs-words summary::before { content: ''; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .2s; margin: 0 2px 0 2px; }
.vs-words[open] summary::before { transform: rotate(45deg); }
.vs-words-sum { flex: 1; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.vs-words-sum b { font: 600 14px/1.2 var(--f-display); }
.vs-words-sum .dim { font-size: 12px; }
.vs-words-state { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.vs-words-state .ok { display: inline-flex; align-items: center; gap: 5px; color: var(--lime-ink); text-transform: uppercase; letter-spacing: .1em; }
.vs-words-state svg { width: 12px; height: 12px; }
.vs-words-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 2px 14px 14px; }
.vs-field { display: grid; gap: 6px; min-width: 0; font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vs-field i { font-style: normal; letter-spacing: .02em; text-transform: none; color: var(--dim); margin-left: 4px; }
.vs-field input { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 13.5px/1 var(--f-ui, inherit); letter-spacing: 0; text-transform: none; min-width: 0; width: 100%; transition: border-color .2s, box-shadow .2s; }
.vs-field input:focus { outline: none; border-color: color-mix(in srgb, var(--lime-ink) 60%, transparent); box-shadow: 0 0 0 3px var(--lime-soft); }
.vs-field-label { grid-column: 1 / -1; max-width: 260px; }
.vs-words-out { grid-column: 1 / -1; display: grid; gap: 8px; }
.vs-words-samples { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }
.vs-words-samples span:not(.vs-words-empty) { font: 700 12.5px/1.2 var(--f-code); color: var(--lime-ink); padding: 7px 10px; border-radius: 8px; background: var(--code-bg); border: 1px solid color-mix(in srgb, var(--lime-ink) 25%, var(--line)); animation: card-in .35s var(--ease); }
.vs-words-empty { font-size: 12.5px; color: var(--muted); }
.vs-words-note { font-size: 12px; }

/* welcome */
.vs-wel { display: grid; gap: 12px; }
.vs-wel-site .vs-site-body { display: none; }
.vs-wel-site .vs-chip-face, .vs-wel-av { transition: opacity .15s; }
.vs-wel-site .vs-chip-face.away, .vs-wel-av.away { opacity: 0; }
.vs-wel-stage { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--lime) 7%, transparent), transparent 60%), var(--surface); min-width: 0; }
.vs-wel-av { width: 64px; height: 64px; border-radius: 30%; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line-2), 0 0 34px -10px var(--lime-glow); }
.vs-wel-av svg { width: 100%; height: 100%; display: block; }
.vs-wel-text { display: grid; gap: 4px; min-width: 0; flex: 1; }
.vs-wel-k { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.vs-wel-text b { font: 600 18px/1.2 var(--f-display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-wel-text .dim { font: 400 11.5px/1.3 var(--f-mono); }
.vs-wel-play { flex: none; gap: 8px; padding: 11px 20px; font-weight: 700; background: var(--lime); color: var(--on-lime); border-color: transparent; box-shadow: 0 0 0 1px var(--lime-glow), 0 8px 24px var(--lime-glow); }
.vs-wel-play:hover { filter: brightness(1.08); transform: translateY(-1px); }
.vs-wel-play svg { width: 14px; height: 14px; }
.vs-wel-play.playing { opacity: .6; }

@media (max-width: 1180px) and (min-width: 721px) { .vs-opts-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .vs-hero-meta { width: 100%; }
  .vs-presets { width: 100%; flex-wrap: wrap; }
  .vs-presets-k { width: 100%; padding: 4px 6px 2px; }
  .vs-preset { flex: 1 1 0; }
  .vs-preset small { white-space: normal; }
  .vs-meta-row { justify-content: flex-start; }
  .vs-opts-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-opts-5 .vs-opt:last-child { grid-column: 1 / -1; }
  .vs-tiles-foot { flex-wrap: wrap; align-items: flex-start; }
  .vs-foot-r { justify-content: flex-start; }
  .vs-words-body { grid-template-columns: minmax(0, 1fr); }
  .vs-field-label { max-width: none; }
  .vs-wel-stage { flex-wrap: wrap; }
  .vs-wel-play { width: 100%; justify-content: center; }
  .vs-tile.is-start::after { display: none; }
}
.vs-wel { grid-template-columns: minmax(0, 1fr); }
.vs-wel-site, .vs-wel-site .vs-site, .vs-wel-site .vs-site-bar, .vs-wel-site .vs-site-right { min-width: 0; }
.vs-wel-site .vs-chip { flex: 0 1 auto; min-width: 0; }
@media (max-width: 720px) { .vs-wel-site .vs-site-nav { display: none; } }
@media (max-width: 420px) { .vs-wel-site .vs-site-logo span { display: none; } }
.vs-opts-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 720px) { .vs-opts-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- customizer v3: welcome colors, one-line output, inline "Make it yours" on id.html ---------- */
/* welcome colors */
.vs-wc { margin-top: 14px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); display: grid; gap: 10px; min-width: 0; }
.vs-wc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vs-wc-k { font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vs-wc-head .dim { font: 400 11.5px/1.3 var(--f-mono); }
.vs-wc-pals { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.vs-pal { display: grid; justify-items: center; gap: 7px; padding: 10px 4px 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; min-width: 0; transition: border-color .2s, background .2s, box-shadow .25s; }
.vs-pal:hover { border-color: var(--line-3); }
.vs-pal[aria-pressed="true"] { border-color: color-mix(in srgb, var(--lime-ink) 60%, transparent); background: color-mix(in srgb, var(--lime) 6%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lime-ink) 22%, transparent); }
.vs-pal:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 2px; }
.vs-pal-sw { display: flex; }
.vs-pal-sw i { width: 20px; height: 20px; border-radius: 50%; background: var(--c1, var(--line-3)); box-shadow: 0 0 0 2px var(--surface), 0 0 14px -4px var(--c1, transparent); }
.vs-pal-sw i + i { margin-left: -6px; background: var(--c2, var(--line-3)); box-shadow: 0 0 0 2px var(--surface), 0 0 14px -4px var(--c2, transparent); }
.vs-pal-custom:not([style*="--c1: #"]) i { background: conic-gradient(from 0deg, #ffc247, #c6ff3d, #2ee6ff, #8a7dff, #ffc247); }
.vs-pal-custom:not([style*="--c1: #"]) i + i { background: var(--raised-2); }
.vs-pal-l { font: 500 10.5px/1.15 var(--f-mono); color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vs-pal[aria-pressed="true"] .vs-pal-l { color: var(--text); }
.vs-wc-custom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vs-wc-custom[hidden] { display: none; }
.vs-color { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); min-width: 0; cursor: pointer; }
.vs-color input[type="color"] { flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.vs-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.vs-color input[type="color"]::-webkit-color-swatch { border: 1px solid var(--line-3); border-radius: 8px; }
.vs-color input[type="color"]::-moz-color-swatch { border: 1px solid var(--line-3); border-radius: 8px; }
.vs-color > span { display: grid; gap: 4px; min-width: 0; }
.vs-color b { font: 600 12.5px/1 var(--f-display); }
.vs-color code { font: 500 11px/1 var(--f-code); color: var(--muted); }
.vs-color.off input[type="color"] { opacity: .45; }
.vs-tint-on { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--f-code); color: var(--muted); cursor: pointer; }
.vs-tint-on input { accent-color: var(--lime); margin: 0; }
.vs-wel-stage { background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--wc1, var(--lime)) 11%, transparent), transparent 60%), radial-gradient(90% 120% at 100% 50%, color-mix(in srgb, var(--wc2, var(--cyan)) 8%, transparent), transparent 60%), var(--surface); transition: background .3s; }
.vs-wel-av { box-shadow: 0 0 0 1px var(--line-2), 0 0 34px -8px var(--wc1, var(--lime-glow)); }

/* output: one line for your AI, terminal, setup file, by hand */
.vs-out-status { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cz-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime-glow); transform: translateY(-1px); }
.cz-dot.off { background: var(--line-3); box-shadow: none; }
.cz-ai { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--lime-ink) 45%, transparent); background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--lime) 9%, transparent), transparent 60%), var(--code-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 6%, transparent), 0 18px 50px -30px var(--lime-glow); }
.cz-ai.is-default { border-color: var(--line-2); box-shadow: none; background: var(--code-bg); }
.cz-ai::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 20%, rgba(198,255,61,.22) 50%, transparent 80%); transform: translateX(-110%); }
.cz-ai.flash::after { animation: sweep .75s var(--ease); }
.cz-ai-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cz-ai-k { display: inline-flex; align-items: center; gap: 7px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #c6ff3d; }
.cz-ai-k svg { width: 14px; height: 14px; }
.cz-ai-tools { font-size: 10.5px; color: #7d858e; }
.cz-ai-line { margin: 0; font: 500 13.5px/1.6 var(--f-mono); color: #dfe5dc; overflow-wrap: anywhere; }
.cz-url { color: #2ee6ff; }
.cz-url b { font-weight: 600; color: #c6ff3d; }
.cz-ai.is-default .cz-url { color: #dfe5dc; }
.cz-ai-copy { justify-self: start; gap: 8px; min-width: 132px; justify-content: center; }
.cz-ai-copy svg { width: 15px; height: 15px; }
.cz-ai-copy .i-check { display: none; }
.cz-ai-copy.copied .i-copy { display: none; }
.cz-ai-copy.copied .i-check { display: inline; }
.cz-row { grid-template-columns: 104px minmax(0, 1fr) auto; }
.cz-scroll { overflow-x: auto; text-overflow: clip; scrollbar-width: thin; }
.cz-scroll:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: -2px; }
.cz-file { display: grid; gap: 8px; }
.cz-file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cz-dl { gap: 8px; font-family: var(--f-code); font-weight: 600; }
.cz-dl svg { width: 15px; height: 15px; color: var(--lime-ink); }
.cz-dl:disabled { opacity: .45; cursor: not-allowed; }
.cz-file-note { font-size: 12.5px; color: var(--muted); min-width: 0; flex: 1 1 200px; }
.cz-json summary { cursor: pointer; font: 500 11px/1 var(--f-mono); color: var(--dim); letter-spacing: .04em; width: max-content; }
.cz-json summary:hover { color: var(--text); }
.cz-json pre { margin-top: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--code-bg); color: #dfe5dc; font-size: 11.5px; line-height: 1.5; overflow-x: auto; max-height: 220px; }
.cz-json[hidden] { display: none; }

/* inline on id.html */
.cz-sec { padding-top: 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.cz-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px; border-color: color-mix(in srgb, var(--lime-ink) 30%, var(--line-2)); background: radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--cyan) 7%, transparent), transparent 60%), radial-gradient(70% 120% at 0% 100%, color-mix(in srgb, var(--lime) 7%, transparent), transparent 60%), var(--surface); box-shadow: var(--shadow), 0 0 60px -40px var(--lime-glow); }
.cz-h { margin-top: 12px; }
.cz-lead { margin-top: 10px; max-width: 520px; }
.cz-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.cz-open { padding: 12px 22px; font-weight: 700; }
.cz-sub { font-size: 11px; }
.cz-teaser { display: grid; gap: 14px; justify-items: start; padding: 18px; border-radius: 14px; border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--bg) 55%, transparent); min-width: 0; }
.cz-t-avs { display: flex; gap: 10px; min-height: 44px; flex-wrap: wrap; }
.cz-t-avs span { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; box-shadow: 0 6px 16px -6px rgba(0,0,0,.6), 0 0 0 1px var(--line); }
.cz-t-avs svg { width: 100%; height: 100%; display: block; }
.cz-t-pals { display: flex; gap: 10px; }
.cz-t-pals i { display: block; width: 30px; height: 18px; border-radius: 999px; background: linear-gradient(90deg, var(--c1) 50%, var(--c2) 50%); box-shadow: 0 0 0 1px var(--line-2); }
.cz-t-line { max-width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--lime-ink) 35%, transparent); background: var(--code-bg); color: #dfe5dc; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-t-line b { color: #c6ff3d; font-weight: 600; }
.cz-body { margin-top: 18px; animation: card-in .35s var(--ease); }
.cz-body[hidden] { display: none; }
.cz-body-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12px; }
.vs-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.vs-toolbar .vs-meta-row { justify-content: flex-end; }

@media (max-width: 1180px) { .vs-wc-pals { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cz-card { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 20px; } }
@media (max-width: 720px) {
  .vs-wc-pals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vs-wc-custom { grid-template-columns: minmax(0, 1fr); }
  .vs-toolbar { flex-direction: column; align-items: stretch; }
  .vs-toolbar .vs-meta-row { justify-content: flex-start; }
  .cz-card { padding: 18px; }
  .cz-open { width: 100%; justify-content: center; }
  .cz-ai { padding: 14px; }
  .cz-ai-line { font-size: 12.5px; }
  .cz-ai-copy { justify-self: stretch; }
  .cz-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cz-row .copy-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cz-body { animation: none; } }
/* palettes as pills: full labels at every width */
.vs-wc-pals { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-pal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 999px; }
.vs-pal-sw i { width: 18px; height: 18px; }
.vs-pal-l { font-size: 11px; overflow: visible; max-width: none; }
@media (max-width: 1180px) { .vs-wc-pals { display: flex; } }
@media (max-width: 720px) { .vs-wc-pals { display: flex; } .vs-pal { padding: 5px 10px 5px 6px; } }
.cz-row .copy-value.cz-scroll { white-space: nowrap; overflow-x: auto; text-overflow: clip; word-break: normal; overflow-wrap: normal; }
.cz-body { scroll-margin-top: calc(var(--header-h) + 14px); }
@media (max-width: 480px) { .cz-t-avs { gap: 7px; flex-wrap: nowrap; } .cz-t-avs span { width: 36px; height: 36px; border-radius: 10px; } }
/* Terminal demo that wraps instead of overflowing: continuation lines hang under the finding text. */
.term-body.term-wrap { white-space: pre-wrap; overflow-x: hidden; }
.term-wrap .ln { display: block; padding-left: 6ch; text-indent: -6ch; overflow-wrap: anywhere; }
.term-wrap .t-cyan { white-space: nowrap; } /* commands wrap as a whole, never mid-word */

/* Vibe Analytics dashboard: its sticky filter bar sits under the site header */
[data-demo], [data-preview] { --va-top: calc(var(--header-h, 0px) + 8px); }
