/* VideoByPrompt — shared studio shell, cards, grids and detail overlay.
   Loaded by every studio page, the search page, the showcase and the homepage.
   Everything is prefixed .vs- so it never collides with page styles. */

.vs-shell, .vs-shell *, .vs-ov, .vs-ov *, .vs-feed, .vs-feed * { box-sizing: border-box; }
.vs-shell, .vs-ov, .vs-feed { font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; color: #121416; }
.vs-shell button, .vs-ov button, .vs-feed button { font-family: inherit; }
.vs-shell h1, .vs-shell h2, .vs-shell h3, .vs-ov h2, .vs-feed h1, .vs-feed h2 { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.02em; }

/* ---------- two-pane studio shell ---------- */
.vs-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; max-width: 1600px; margin: 0 auto; padding: 14px 14px 28px; align-items: start; }
.vs-composer { position: sticky; top: 88px; max-height: calc(100vh - 102px); overflow-y: auto; overflow-x: visible; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 50px -24px rgba(18,20,22,.35); }
.vs-composer.vs-menu-open { overflow: visible; z-index: 80; }
.vs-main { min-width: 0; background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 22px; padding: 16px 18px 26px; min-height: calc(100vh - 102px); box-shadow: 0 18px 50px -24px rgba(18,20,22,.35); }
.vs-h1 { font-size: 13px; font-weight: 600; color: #5d5f63; margin: 0; letter-spacing: 0; font-family: inherit !important; }

/* choose a tool */
.vs-tool { position: relative; }
.vs-tool-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid rgba(0,0,0,.08); background: #f6f6f7; cursor: pointer; text-align: left; }
.vs-tool-btn:hover { background: #efeff1; }
.vs-tool-btn b { display: block; font-size: 14.5px; font-weight: 700; }
.vs-tool-btn small { display: block; font-size: 12px; color: #5d5f63; }
.vs-tool-btn .vs-chev { margin-left: auto; width: 8px; height: 8px; border-right: 1.6px solid #5d5f63; border-bottom: 1.6px solid #5d5f63; transform: rotate(45deg) translateY(-2px); flex: none; }
.vs-ico { width: 42px; height: 42px; border-radius: 24%; display: inline-flex; flex: none; overflow: hidden; box-shadow: 0 6px 14px -6px rgba(15,23,42,.45), 0 0 0 1px rgba(0,0,0,.06); }
.vs-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-tool-menu { display: none; position: absolute; left: 0; top: calc(100% + 6px); width: min(560px, calc(100vw - 28px)); z-index: 60; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 18px; padding: 10px; box-shadow: 0 28px 70px -20px rgba(15,23,42,.4); }
.vs-tool.open .vs-tool-menu { display: block; }
.vs-tool-menu p { margin: 2px 6px 8px; font-size: 12px; font-weight: 600; color: #5d5f63; text-transform: uppercase; letter-spacing: .05em; }
.vs-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.vs-tool-grid a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-decoration: none; color: #121416; }
.vs-tool-grid a:hover, .vs-tool-grid a.cur { background: rgba(124,58,237,.09); }
.vs-tool-grid b { display: block; font-size: 14px; font-weight: 600; }
.vs-tool-grid small { display: block; font-size: 12px; color: #5d5f63; line-height: 1.3; }

/* composer fields */
.vs-label { font-size: 12.5px; font-weight: 600; color: #3b3d41; margin: 2px 2px -4px; }
.vs-label i { font-style: normal; font-weight: 400; color: #8a8c90; }
.vs-box { border: 1px solid rgba(0,0,0,.09); border-radius: 16px; background: #fbfbfc; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.vs-box:focus-within { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.14); }
.vs-ta { width: 100%; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 14.5px; line-height: 1.5; color: #121416; min-height: 96px; }
.vs-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vs-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); background: #fff; font-size: 13px; font-weight: 500; color: #121416; cursor: pointer; white-space: nowrap; }
.vs-pill:hover { background: #f3f3f5; }
.vs-pill em { font-style: normal; color: #6d28d9; font-weight: 600; }
.vs-pill.on { background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.45); color: #5b21b6; }
.vs-popwrap { position: relative; display: inline-block; }
.vs-pop { display: none; position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 70; min-width: 190px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 8px; box-shadow: 0 22px 60px -18px rgba(15,23,42,.4); }
.vs-popwrap.open .vs-pop { display: block; }
.vs-pop.down { bottom: auto; top: calc(100% + 6px); }
.vs-pop h4 { margin: 2px 6px 6px; font-size: 12px; font-weight: 600; color: #5d5f63; font-family: inherit; letter-spacing: 0; }
.vs-pop button.opt { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 9px; font-size: 13.5px; cursor: pointer; text-align: left; color: #121416; }
.vs-pop button.opt:hover { background: #f3f3f5; }
.vs-pop button.opt.sel { background: rgba(124,58,237,.1); color: #5b21b6; font-weight: 600; }
.vs-pop button.opt small { color: #8a8c90; font-size: 12px; }
.vs-dur { display: flex; align-items: center; gap: 10px; padding: 4px 6px 6px; }
.vs-dur input[type=number] { width: 58px; height: 34px; border: 1px solid rgba(0,0,0,.12); border-radius: 9px; text-align: center; font: inherit; font-size: 14px; }
.vs-dur input[type=range] { flex: 1; accent-color: #7c3aed; min-width: 120px; }
.vs-toggle { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; color: #121416; }
.vs-toggle span { width: 26px; height: 15px; border-radius: 999px; background: #d4d4d8; position: relative; transition: background .15s; flex: none; }
.vs-toggle span:after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: left .15s; }
.vs-toggle.on span { background: #7c3aed; }
.vs-toggle.on span:after { left: 13px; }
.vs-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #efeff1; gap: 2px; }
.vs-seg button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: 13px; font-weight: 500; color: #5d5f63; cursor: pointer; }
.vs-seg button.on { background: #fff; color: #121416; box-shadow: 0 1px 3px rgba(0,0,0,.14); font-weight: 600; }
.vs-up { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px; padding: 12px; border: 1.5px dashed rgba(0,0,0,.18); border-radius: 16px; background: #fbfbfc; text-align: center; cursor: pointer; overflow: hidden; }
.vs-up:hover, .vs-up.drag { border-color: #8b5cf6; background: rgba(139,92,246,.05); }
.vs-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.vs-up b { font-size: 13.5px; font-weight: 600; }
.vs-up small { font-size: 12px; color: #6f7175; line-height: 1.35; }
.vs-up .plus { width: 28px; height: 28px; border-radius: 50%; background: rgba(124,58,237,.12); color: #6d28d9; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.vs-up.has { border-style: solid; padding: 0; min-height: 0; background: #000; }
.vs-up.has img { display: block; width: 100%; max-height: 190px; object-fit: contain; }
.vs-up .rm { position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 15px; cursor: pointer; line-height: 1; }
.vs-up .cap { position: absolute; left: 6px; bottom: 6px; z-index: 2; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: 11.5px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vs-two .vs-up { min-height: 150px; }
.vs-two .vs-up.has img { height: 150px; max-height: none; object-fit: cover; }
.vs-note { font-size: 12px; line-height: 1.45; color: #6f7175; margin: 0 2px; }
.vs-go { margin-top: auto; height: 46px; border-radius: 999px; border: 1px solid #7c3aed; background: linear-gradient(135deg, #8b5cf6, #c026d3); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 1px 2px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center; gap: 8px; }
.vs-go:hover { filter: brightness(1.05); }
.vs-go:disabled { opacity: .65; cursor: default; filter: none; }
.vs-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: vs-spin .8s linear infinite; }
@keyframes vs-spin { to { transform: rotate(360deg); } }
.vs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.vs-preset { border: 1px solid rgba(124,58,237,.28); background: #fff; color: #5b21b6; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.vs-preset:hover { background: rgba(124,58,237,.08); }
.vs-preset.on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.vs-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border-radius: 999px; background: rgba(124,58,237,.1); color: #5b21b6; font-size: 13px; font-weight: 500; }
.vs-chip button { width: 18px; height: 18px; border: 0; border-radius: 50%; background: rgba(91,33,182,.16); color: #5b21b6; cursor: pointer; font-size: 12px; line-height: 1; padding: 0; }
.vs-style-tile { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid rgba(0,0,0,.09); background: #fbfbfc; cursor: pointer; text-align: left; width: 100%; }
.vs-style-tile img { width: 64px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.vs-style-tile b { display: block; font-size: 13.5px; }
.vs-style-tile small { display: block; font-size: 12px; color: #6f7175; }

/* right pane */
.vs-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.vs-link { border: 0; background: none; font-size: 13px; font-weight: 500; color: #5d5f63; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.vs-link:hover { color: #121416; background: #f1f1f3; }
.vs-tut { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.vs-tut div { background: #f6f6f7; border-radius: 16px; padding: 14px; }
.vs-tut span { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: #121416; color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.vs-tut b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.vs-tut p { margin: 0; font-size: 13px; line-height: 1.5; color: #5d5f63; }
.vs-sec { margin: 0 0 22px; }
.vs-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.vs-sec-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.vs-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-fp { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); background: #fff; font-size: 13px; font-weight: 500; color: #3b3d41; cursor: pointer; white-space: nowrap; }
.vs-fp:hover { background: #f3f3f5; }
.vs-fp.on { background: #121416; border-color: #121416; color: #fff; }
.vs-empty { padding: 44px 16px; text-align: center; color: #6f7175; font-size: 14px; background: #f6f6f7; border-radius: 16px; }
.vs-result { margin-bottom: 20px; background: #f6f6f7; border-radius: 18px; padding: 14px; }
.vs-result:empty { display: none; }
.vs-status { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #3b3d41; }
.vs-status .vs-spin { border-color: rgba(124,58,237,.25); border-top-color: #7c3aed; }
.vs-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.vs-media { display: flex; justify-content: center; background: none; }
.vs-media video, .vs-media img { display: block; max-width: 100%; max-height: 62vh; border-radius: 14px; background: #000; }
.vs-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #7c3aed; background: linear-gradient(135deg, #8b5cf6, #c026d3); color: #fff !important; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.vs-btn.ghost { background: #fff; border-color: rgba(0,0,0,.12); color: #121416 !important; }
.vs-btn.ghost:hover { background: #f3f3f5; }

/* ---------- cards + grids ---------- */
.vs-grid { display: grid; gap: 10px; }
.vs-grid.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.vs-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vs-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vs-masonry { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: start; grid-auto-flow: dense; }
.vs-masonry.m5 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.vs-masonry.m5 .vs-card { grid-column: span 2; }
.vs-masonry.m5 .vs-card.wide { grid-column: span 5; }
.vs-masonry .vs-card.wide { grid-column: span 2; }
.vs-card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #e9e9ee; cursor: pointer; aspect-ratio: 9 / 16; text-align: left; }
.vs-card.wide { aspect-ratio: 16 / 9; }
.vs-card.sel { outline: 3px solid #8b5cf6; outline-offset: 2px; }
.vs-card img, .vs-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-card video { opacity: 0; }
.vs-card.playing video { opacity: 1; }
.vs-card .vs-hov { position: absolute; inset: auto 0 0 0; padding: 28px 10px 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .18s; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.vs-card:hover .vs-hov, .vs-card:focus-visible .vs-hov, .vs-card.sel .vs-hov { opacity: 1; }
@media (hover: none) {
  /* Touch devices have no hover — card titles stay visible (audit H13). */
  .vs-card .vs-hov { opacity: 1; background: linear-gradient(180deg, transparent 26%, rgba(0,0,0,.62)); }
}
.vs-card .vs-try { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: #fff; color: #121416; font-size: 12px; font-weight: 600; }
.vs-card .vs-ttl { color: #fff; font-size: 13px; font-weight: 600; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.vs-card .vs-badge { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 11.5px; font-weight: 600; }
.vs-cap { margin: 8px 2px 14px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.vs-cap small { display: block; font-weight: 400; color: #6f7175; font-size: 12.5px; margin-top: 2px; }
.vs-stylecard { border: 1px solid rgba(0,0,0,.08); border-radius: 16px; overflow: hidden; background: #fff; cursor: pointer; padding: 0; text-align: left; }
.vs-stylecard img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; }
.vs-stylecard div { padding: 10px 12px 12px; }
.vs-stylecard b { display: block; font-size: 14.5px; }
.vs-stylecard small { display: block; font-size: 12.5px; color: #6f7175; line-height: 1.4; margin-top: 2px; }
.vs-stylecard.sel { outline: 3px solid #8b5cf6; outline-offset: 1px; }
.vs-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); background: #fff; }
.vs-search:focus-within { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.14); }
.vs-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; min-width: 0; }
.vs-search svg { width: 18px; height: 18px; color: #6f7175; flex: none; }
.vs-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.vs-lang { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,.09); background: #fff; font-size: 13.5px; text-align: left; cursor: pointer; color: #121416; }
.vs-lang:hover { background: #f3f3f5; }
.vs-lang.on { background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.45); color: #5b21b6; font-weight: 600; }
.vs-capstyles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.vs-capstyle { height: 96px; border-radius: 14px; border: 1px solid rgba(0,0,0,.08); background: #23242a; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; }
.vs-capstyle.sel { outline: 3px solid #8b5cf6; outline-offset: 1px; }
.vs-capstyle span { font-size: 16px; line-height: 1.1; text-align: center; }
.vs-capstyle small { font-size: 11.5px; color: #b9bbc2; font-family: Inter, sans-serif; }
.vs-capstyles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.vs-capstyle small { text-align: center; line-height: 1.35; }
.vs-pop.scroll { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.vs-capedit { margin-top: 14px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 14px; }
.vs-capedit h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #121416; font-family: inherit; letter-spacing: 0; }
.vs-capedit p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: #55575c; }
.vs-capwords { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; padding: 3px; overscroll-behavior: contain; }
.vs-capline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vs-capline .t { flex: none; width: 36px; font-size: 11.5px; color: #8a8c90; font-variant-numeric: tabular-nums; }
.vs-capline input { height: 34px; padding: 0 9px; border-radius: 9px; border: 1px solid rgba(0,0,0,.14); background: #fafafb; color: #121416; font: inherit; font-size: 14px; min-width: 44px; max-width: 100%; box-sizing: border-box; }
.vs-capline input:focus { outline: 0; border-color: #8b5cf6; background: #fff; box-shadow: 0 0 0 3px rgba(139,92,246,.14); }
.vs-capline input.chg { border-color: #8b5cf6; background: #f5f0ff; }
.vs-capedit-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.vs-capedit-lab { font-size: 12.5px; font-weight: 600; color: #3b3d41; }
.vs-capedit-msg { font-size: 13px; color: #55575c; }
.vs-capedit-msg.err { color: #991b1b; }
@media (max-width: 900px) { .vs-capline input { font-size: 16px; } .vs-capedit-foot .vs-seg { flex-wrap: wrap; border-radius: 16px; } }

/* Caption Studio: pickers, look editor, preview */
.vs-cappick { display: flex; flex-direction: column; gap: 6px; }
.vs-cappick-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,.12); background: #fff; font: inherit; font-size: 13.5px; color: #121416; cursor: pointer; text-align: left; }
.vs-cappick-btn:hover { background: #f6f6f8; }
.vs-cappick-btn span { color: #6f7175; flex: none; }
.vs-cappick-btn em { flex: 1; min-width: 0; font-style: normal; font-weight: 600; color: #5b21b6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-cappick-btn i { flex: none; font-style: normal; color: #8a8c90; font-size: 11px; }
.vs-cappick-panel { border: 1px solid rgba(0,0,0,.1); border-radius: 12px; background: #fafafb; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.vs-cappick-panel[hidden] { display: none; }
.vs-cappick-panel input[type=search] { width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,.14); background: #fff; font: inherit; font-size: 16px; color: #121416; }
.vs-cappick-panel input[type=search]:focus { outline: 0; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.14); }
.vs-cappick-list { max-height: 232px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; }
.vs-cappick-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 36px; padding: 5px 10px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; color: #121416; text-align: left; cursor: pointer; }
.vs-cappick-opt:hover { background: #efeff2; }
.vs-cappick-opt.sel { background: rgba(124,58,237,.1); color: #5b21b6; font-weight: 600; }
.vs-cappick-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.6; }
.vs-cappick-opt small { flex: none; max-width: 55%; color: #8a8c90; font-size: 11.5px; font-weight: 400; text-align: right; line-height: 1.3; }
.vs-cappick-none { margin: 6px 4px; font-size: 13px; color: #6f7175; }
.vs-capfontup { position: relative; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 10px; border-radius: 10px; border: 1.5px dashed rgba(124,58,237,.45); background: #fff; color: #5b21b6; font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; }
.vs-capfontup input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.vs-capfontup:hover { background: #f5f0ff; }
.vs-capfontmsg:empty { display: none; }
.vs-capfontmsg.err { color: #991b1b; }
.vs-caped { display: flex; flex-direction: column; gap: 8px; }
.vs-capprev { display: flex; justify-content: center; align-items: flex-end; min-height: 112px; padding: 12px 10px; border-radius: 14px; background: linear-gradient(160deg, #2a2440 0%, #1c1d24 55%, #33203a 100%); overflow: hidden; text-align: center; }
.vs-capprev.pos-top { align-items: flex-start; }
.vs-capprev.pos-middle { align-items: center; }
.vs-capprev-t { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.vs-capmore { border: 1px solid rgba(0,0,0,.1); border-radius: 12px; background: #fff; }
.vs-capmore summary { cursor: pointer; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: #121416; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.vs-capmore summary::-webkit-details-marker { display: none; }
.vs-capmore summary:after { content: "+"; font-size: 17px; color: #6d28d9; font-weight: 500; }
.vs-capmore[open] summary:after { content: "\2212"; }
.vs-capmore-body { display: flex; flex-direction: column; gap: 10px; padding: 2px 12px 12px; }
.vs-caprow { display: flex; flex-direction: column; gap: 5px; }
.vs-caprow-l { font-size: 12px; font-weight: 600; color: #55575c; }
.vs-capseg { flex-wrap: wrap; border-radius: 14px; align-self: flex-start; max-width: 100%; }
.vs-capseg button { padding: 0 11px; }
.vs-capcolors { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.vs-capcolor { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #3b3d41; cursor: pointer; }
.vs-capcolor input { width: 30px; height: 30px; padding: 0; border: 1px solid rgba(0,0,0,.18); border-radius: 8px; background: #fff; cursor: pointer; }
.vs-caprange { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #3b3d41; }
.vs-caprange input { width: 120px; accent-color: #7c3aed; }
.vs-capstyle { height: auto; min-height: 112px; }
.vs-capstyle-p { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.vs-capstyle small b { color: #fff; font-weight: 600; }
.vs-capedit .vs-capedit-h2 { margin-top: 16px; }
.vs-capedit .vs-caped { max-width: 520px; }
.vs-acts .vs-btn.ghost { min-width: 0; }

/* ---------- detail overlay ---------- */
.vs-ov { position: fixed; inset: 0; z-index: 2000; background: #fff; display: flex; flex-direction: column; overflow: auto; }
.vs-ov-bar { display: flex; align-items: center; padding: 12px 16px; }
.vs-back { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; color: #121416; }
.vs-back:hover { background: #f3f3f5; }
.vs-ov-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; padding: 0 16px 20px; max-width: 1280px; width: 100%; margin: 0 auto; align-items: start; }
.vs-ov-player { display: flex; justify-content: center; align-items: center; background: #f1f1f4; border-radius: 22px; padding: 14px; min-height: 60vh; }
.vs-ov-player video, .vs-ov-player img { display: block; max-width: 100%; max-height: calc(100vh - 120px); border-radius: 16px; background: #000; }
.vs-ov-player.tall video { aspect-ratio: 9 / 16; height: calc(100vh - 120px); max-height: 820px; width: auto; }
.vs-ov-panel { border: 1px solid rgba(0,0,0,.08); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.vs-ov-panel h2 { margin: 0; font-size: 20px; font-weight: 800; }
.vs-ov-panel .vs-seg { align-self: flex-start; }
.vs-ov-prompt { font-size: 13.5px; line-height: 1.55; color: #3b3d41; background: #f6f6f7; border-radius: 12px; padding: 12px; margin: 0; max-height: 180px; overflow: auto; }
.vs-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vs-tbl td { padding: 8px 2px; border-bottom: 1px solid rgba(0,0,0,.07); }
.vs-tbl td:first-child { color: #6f7175; width: 40%; }
.vs-tbl td:last-child { font-weight: 600; text-align: right; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) { .vs-grid.c6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vs-masonry, .vs-masonry.m5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vs-masonry.m5 .vs-card { grid-column: span 1; } .vs-masonry.m5 .vs-card.wide { grid-column: span 2; } }
@media (max-width: 1100px) { .vs-grid.c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .vs-shell { grid-template-columns: 1fr; }
  .vs-composer { position: static; max-height: none; }
  .vs-main { min-height: 0; }
  .vs-ov-body { grid-template-columns: 1fr; }
  .vs-ov-player { min-height: 0; }
  .vs-ov-player.tall video { height: 60vh; }
  .vs-grid.c6, .vs-grid.c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vs-masonry, .vs-masonry.m5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vs-masonry.m5 .vs-card { grid-column: span 1; } .vs-masonry.m5 .vs-card.wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .vs-grid.c6, .vs-grid.c4, .vs-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-masonry, .vs-masonry.m5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vs-masonry.m5 .vs-card { grid-column: span 1; } .vs-masonry.m5 .vs-card.wide { grid-column: span 2; }
  .vs-tut { grid-template-columns: 1fr; }
  .vs-tool-grid { grid-template-columns: 1fr; }
  .vs-main { padding: 12px; }
}

/* ---- homepage written guide (static HTML below the app; scoped so it never touches the React styles) ---- */
.vs-prose { padding: 10px 16px 70px; font-family: Inter, system-ui, sans-serif; color: #2b2e35; }
.vs-prose-in { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid rgba(18,20,22,.06); border-radius: 24px; box-shadow: 0 24px 70px -24px rgba(18,20,22,.35); padding: 36px 40px; }
@media (max-width: 640px) { .vs-prose-in { padding: 26px 20px; } }
.vs-prose h2 { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 24px; font-weight: 800; margin: 34px 0 10px; line-height: 1.25; color: #121416; }
.vs-prose h3 { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 18px; font-weight: 700; margin: 26px 0 8px; color: #121416; }
.vs-prose p, .vs-prose li { font-size: 15.5px; line-height: 1.75; }
.vs-prose p { margin: 0 0 14px; }
.vs-prose ul, .vs-prose ol { margin: 0 0 16px; padding-left: 22px; list-style: revert; }
.vs-prose li { margin-bottom: 6px; }
.vs-prose a { color: #6d28d9; text-decoration: none; font-weight: 600; }
.vs-prose a:hover { text-decoration: underline; }
.vs-prose .vbp-tldr { background: linear-gradient(135deg, #f3efff, #fdf2f8); border: 1px solid #ddd0ff; border-left: 5px solid #8b5cf6; border-radius: 16px; padding: 22px 24px; margin: 0 0 8px; }
.vs-prose .vbp-tldr h2 { margin-top: 0; font-size: 20px; }
.vs-prose .vbp-tldr p.lead { font-size: 17px; line-height: 1.65; color: #1b1c22; }
.vs-prose .vbp-tldr ol { margin: 12px 0 0; }
.vs-prose .vbp-related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.vs-prose .vbp-related a { border: 1px solid rgba(18,20,22,.12); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; color: #121416; background: #fff; }
.vs-prose .vbp-related a:hover { border-color: #8b5cf6; color: #6d28d9; text-decoration: none; }

/* ---------- long content as full-width sections ---------- */
.vbp-page:has(.vx-secs-wrap) { max-width: 1240px; }
.vs-prose:has(.vx-secs-wrap) { padding: 10px 16px 70px; }
.vx-secs-wrap { max-width: 1240px; margin: 0 auto; font-family: Inter, system-ui, sans-serif; color: #2b2e35; }
.vx-secs-wrap > h1 { text-align: center; max-width: 900px; margin: 0 auto 26px !important; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: clamp(28px, 3.4vw, 42px) !important; color: #121416; }
.vx-secs { display: flex; flex-direction: column; gap: 22px; }
.vx-sec { background: #fff; border: 1px solid rgba(18,20,22,.06); border-radius: 28px; padding: 44px 48px; box-shadow: 0 24px 70px -34px rgba(18,20,22,.35); }
.vx-sec.vx-alt { background: linear-gradient(135deg, #f6f2ff 0%, #fdf4fa 100%); border-color: #e6dcff; }
.vx-sec-h { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.vx-kicker { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 10px; border-radius: 999px; background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; flex: none; }
.vx-sec h2 { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; line-height: 1.2; margin: 0; color: #121416; letter-spacing: -.01em; }
.vx-text { max-width: 860px; margin: 0 0 20px; }
.vx-text-2 { max-width: none; columns: 2; column-gap: 44px; }
.vx-text p { font-size: 16px; line-height: 1.75; margin: 0 0 14px; break-inside: avoid; }
.vx-sec > :last-child { margin-bottom: 0; }
.vx-grid { display: grid; gap: 16px; margin: 0 0 20px; padding: 0; list-style: none; }
.vx-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.vx-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.vx-grid.c5 { grid-template-columns: repeat(6, 1fr); }
.vx-grid.c5 > * { grid-column: span 2; }
.vx-grid.c5 > :nth-child(n+4) { grid-column: span 3; }
.vx-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.vx-card { position: relative; background: #fff; border: 1px solid rgba(18,20,22,.08); border-radius: 20px; padding: 22px 22px 20px; margin: 0; box-shadow: 0 10px 30px -22px rgba(18,20,22,.45); display: flex; flex-direction: column; gap: 8px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.vx-card:hover { transform: translateY(-3px); border-color: #c4b5fd; box-shadow: 0 18px 40px -22px rgba(124,58,237,.55); }
.vx-card-t { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.3; color: #121416; margin: 0; }
.vx-card-b { font-size: 14.5px; line-height: 1.65; color: #4a4d55; margin: 0; }
.vx-mini { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.65; color: #4a4d55; list-style: revert; }
.vx-num { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #fff; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-bottom: 4px; }
.vx-tick { width: 26px; height: 26px; border-radius: 50%; background: #ede9fe; flex: none; margin-bottom: 4px; position: relative; }
.vx-tick::after { content: ""; position: absolute; left: 9px; top: 6px; width: 6px; height: 11px; border: solid #7c3aed; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.vx-secs a { color: #6d28d9; font-weight: 600; text-decoration: none; }
.vx-secs a:hover { text-decoration: underline; }
.vx-hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; background: #fff; border: 1px solid rgba(18,20,22,.06); color: #121416; }
.vx-hero h2 { color: #121416; font-size: clamp(26px, 3vw, 38px); margin: 14px 0 14px; }
.vx-hero .vx-kicker { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.vx-lead { font-size: 17px; line-height: 1.7; color: #121416; margin: 0; }
.vx-lead strong { color: #121416; }
.vx-hero-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vx-hero-steps .vx-card { background: #fbfbfc; border: 1px solid rgba(0,0,0,.07); box-shadow: 0 18px 50px -24px rgba(18,20,22,.35); }
.vx-hero-steps .vx-card-t { color: #121416; }
.vx-hero-steps .vx-card-b { color: #4a4d55; }
.vx-hero-steps .vx-num { background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #fff; }
.vx-hero a { color: #6d28d9; }
.vx-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.vx-q { background: #fff; border: 1px solid rgba(18,20,22,.08); border-radius: 18px; padding: 0 22px; }
.vx-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; }
.vx-q summary::-webkit-details-marker { display: none; }
.vx-q summary h3 { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 16px; font-weight: 700; margin: 0; color: #121416; line-height: 1.35; }
.vx-q summary::after { content: "+"; font-size: 22px; font-weight: 500; color: #7c3aed; flex: none; line-height: 1; }
.vx-q[open] summary::after { content: "–"; }
.vx-q p { font-size: 14.5px; line-height: 1.7; color: #4a4d55; margin: 0 0 18px; }
.vx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vx-secs-wrap .vbp-related { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.vx-secs-wrap .vbp-related a { border: 1px solid rgba(18,20,22,.12); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; color: #121416; background: #fff; text-decoration: none; font-weight: 600; }
.vx-secs-wrap .vbp-related a:hover { border-color: #8b5cf6; color: #6d28d9; }
@media (max-width: 1000px) { .vx-grid.c5 { grid-template-columns: repeat(2, 1fr); } .vx-grid.c5 > *, .vx-grid.c5 > :nth-child(n+4) { grid-column: auto; } .vx-grid.c4 { grid-template-columns: repeat(2, 1fr); } .vx-grid.c3 { grid-template-columns: repeat(2, 1fr); } .vx-hero { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 700px) { .vx-sec { padding: 28px 20px; border-radius: 22px; } .vx-grid.c2, .vx-grid.c3, .vx-grid.c4, .vx-grid.c5, .vx-faq, .vx-hero-steps { grid-template-columns: 1fr; } .vx-text-2 { columns: 1; } }

/* ================= A14 studio component treatments (2026-11-22) ================= */

/* 1) Prompt Composer: clearer frame, stronger focus state, affordance pills */
.vs-box { background: #fff; border: 1.5px solid rgba(18,20,22,.13); border-radius: 20px; padding: 12px; box-shadow: 0 1px 2px rgba(18,20,22,.05), 0 14px 34px -20px rgba(76,29,149,.28); transition: border-color .2s, box-shadow .2s; }
.vs-box:focus-within { border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.16), 0 14px 34px -20px rgba(76,29,149,.32); }
.vs-ta { font-size: 15px; min-height: 104px; }
.vs-ta::placeholder { color: #9a9ca3; }
.vs-composer .vs-row { gap: 8px; }
.vs-pill { transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.vs-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 10px -6px rgba(18,20,22,.35); }
.vs-pill.on { border-color: rgba(124,58,237,.55); background: rgba(124,58,237,.07); color: #5b21b6; }

/* 2) Liquid Tabs: Discover / History switcher */
.vs-top .vs-seg { background: #ececf0; padding: 4px; border-radius: 999px; box-shadow: inset 0 1px 3px rgba(18,20,22,.1); }
.vs-top .vs-seg button { height: 34px; padding: 0 22px; border-radius: 999px; transition: background .25s cubic-bezier(.4,0,.2,1), color .25s, box-shadow .25s; }
.vs-top .vs-seg button.on { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #fff; font-weight: 600; box-shadow: 0 5px 16px -6px rgba(124,58,237,.65), inset 0 1px 0 rgba(255,255,255,.35); }

/* 3) Generation progress inside the result box (indeterminate bar + status) */
.vs-result:has(.vs-status) { position: relative; overflow: hidden; }
.vs-result:has(.vs-status)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 38%; border-radius: 99px; background: linear-gradient(90deg, #8b5cf6, #c026d3); animation: vs-prog-slide 1.25s ease-in-out infinite alternate; }
@keyframes vs-prog-slide { from { left: 0; } to { left: 62%; } }
.vs-status { padding: 6px 2px; }

/* 4) Dynamic Drop Zone for upload tiles */
.vs-up { border: 2px dashed rgba(124,58,237,.35); background: linear-gradient(180deg, rgba(139,92,246,.05), rgba(139,92,246,.015)); transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.vs-up:not(.has):hover { border-color: rgba(124,58,237,.65); background: rgba(139,92,246,.07); }
.vs-up.drag { border-color: #7c3aed; background: rgba(139,92,246,.11); box-shadow: 0 0 0 4px rgba(124,58,237,.16); transform: scale(1.012); }
.vs-up .plus { transition: transform .2s, background .2s, color .2s; }
.vs-up.drag .plus { transform: scale(1.18); background: #7c3aed; color: #fff; }
.vs-up:focus-within { border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.16); }

/* 5) History Task Cards with a status line (history entries are finished generations) */
.vs-grid > div:has(> .vs-cap > small) { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 16px; padding: 10px; box-shadow: 0 12px 28px -22px rgba(18,20,22,.45); transition: transform .18s, box-shadow .18s; }
.vs-grid > div:has(> .vs-cap > small):hover { transform: translateY(-2px); box-shadow: 0 18px 34px -22px rgba(76,29,149,.4); }
.vs-grid > div:has(> .vs-cap > small) .vs-media { border-radius: 10px; overflow: hidden; }
.vs-grid > div:has(> .vs-cap > small) > .vs-cap { margin: 10px 2px 2px; }
.vs-grid > div:has(> .vs-cap > small) > .vs-cap::before { content: "\25CF  Done"; display: block; margin-bottom: 5px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #15803d; }

/* 7) Stepper: slim 4-step indicator on generator pages */
.vs-steps { display: flex; align-items: center; flex-wrap: wrap; max-width: 1600px; margin: 0 auto; padding: 18px 18px 2px; font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; }
.vs-step { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #8a8c90; white-space: nowrap; }
.vs-step i { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #ececf0; color: #5d5f63; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12.5px; font-weight: 700; }
.vs-step.on { color: #121416; }
.vs-step.on i { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #fff; box-shadow: 0 5px 14px -6px rgba(124,58,237,.7); }
.vs-step:not(:first-child)::before { content: ""; width: 30px; height: 2px; border-radius: 2px; background: rgba(18,20,22,.12); margin: 0 12px; }
@media (max-width: 560px) { .vs-steps { padding: 14px 14px 0; } .vs-step { font-size: 12px; } .vs-step:not(:first-child)::before { width: 14px; margin: 0 7px; } }

@media (prefers-reduced-motion: reduce) {
  .vs-result:has(.vs-status)::after { animation: none; left: 0; width: 100%; opacity: .55; }
  .vs-pill, .vs-up, .vs-top .vs-seg button { transition: none; }
}
