.vg-workspace{color:var(--foreground);background:var(--background);min-height:100%}.vg-workspace *,.vg-workspace :before,.vg-workspace :after{box-sizing:border-box}.vg-workspace h1,.vg-workspace h2,.vg-workspace h3{color:inherit;font-weight:600}.vg-workspace h2{letter-spacing:-.02em;margin:0 0 24px;font-size:20px}.vg-workspace p{line-height:1.6}.vg-muted,.vg-small{color:var(--muted-foreground)}.vg-small{margin:0;font-size:13px;line-height:1.5}.vg-modes{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:32px;display:grid}.vg-mode{text-align:left;background:var(--surface);min-width:0;color:var(--foreground);border:1px solid var(--border-strong);cursor:pointer;transition:border-color var(--duration-base);border-radius:16px;gap:8px;padding:20px;display:grid}.vg-mode strong{font-size:16px;line-height:1.4}.vg-mode>span:last-child{color:var(--muted-foreground);font-size:13px}.vg-mode-index{color:var(--muted-foreground);font-variant-numeric:tabular-nums;font-size:12px}.vg-mode.is-active{border-color:var(--foreground)}.vg-mode.is-active .vg-mode-index{background:var(--primary);color:var(--primary-foreground);border-radius:var(--radius-1);justify-self:start;padding:2px 6px}.vg-columns{grid-template-columns:minmax(320px,384px) minmax(0,1fr);align-items:start;gap:24px;display:grid}.vg-panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;min-width:0;padding:24px}.vg-form{flex-direction:column;gap:20px;display:flex}.vg-form h2{margin-bottom:0}.vg-field{flex-direction:column;gap:8px;font-size:14px;font-weight:500;display:flex}.vg-workspace input:not([type=checkbox]):not([type=radio]):not([type=file]),.vg-workspace select,.vg-workspace textarea{background:var(--input-background);color:var(--foreground);border:1px solid var(--input);border-radius:var(--radius-control);font:inherit;width:100%;min-height:var(--control-height);padding:12px;font-size:16px}.vg-workspace textarea{resize:vertical}.vg-workspace select{cursor:pointer}.vg-workspace summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px}.vg-scene-picker summary span{color:var(--muted-foreground);margin-top:4px;font-size:13px;display:block}.vg-scene-grid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;max-height:320px;padding:4px;display:grid;overflow-y:auto}.vg-scene{border:1px solid var(--border-strong);background:var(--surface-muted);min-width:0;color:var(--foreground);border-radius:var(--radius-control);text-align:left;cursor:pointer;grid-template-rows:96px 40px auto;align-content:start;padding:6px;display:grid}.vg-scene.is-active{border-color:var(--foreground);background:var(--primary)}.vg-scene img{object-fit:cover;border-radius:var(--radius-1);width:72px;max-width:100%;height:96px;margin-inline:auto;display:block}.vg-scene span{-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;padding-top:6px;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}.vg-scene small{color:var(--muted-foreground);padding-top:4px;font-size:12px;line-height:1.4;display:block}.vg-character{border:0;flex-wrap:wrap;gap:12px;padding:0;display:flex}.vg-character legend{margin-bottom:10px;font-size:14px}.vg-character label,.vg-consent{cursor:pointer;align-items:center;gap:8px;min-height:44px;font-size:14px;line-height:1.5;display:flex}.vg-workspace input[type=checkbox],.vg-workspace input[type=radio]{accent-color:var(--brand);flex-shrink:0;width:18px;height:18px;margin-top:2px}.vg-quote{border-top:1px solid var(--border);gap:8px;padding-top:16px;display:grid}.vg-quote strong{font-size:14px}.vg-quote span,.vg-quote small{color:var(--muted-foreground);font-size:13px;line-height:1.5}.vg-primary{background:var(--primary);color:var(--primary-foreground);border-radius:var(--radius-control);min-height:var(--control-height);font:inherit;font-weight:var(--weight-semibold);cursor:pointer;border:0;padding:12px 20px}.vg-primary:hover:not(:disabled){background:var(--primary-hover)}.vg-primary:disabled{opacity:.45;cursor:not-allowed}.vg-error{color:var(--destructive);font-size:13px;line-height:1.5}.vg-preview-actions{flex-wrap:wrap;gap:10px;margin-top:12px;display:flex}.vg-preview{background:var(--surface);border:1px solid var(--border);border-radius:16px;flex-direction:column;min-width:0;min-height:580px;padding:24px;display:flex;position:sticky;top:24px}.vg-preview video{object-fit:contain;background:var(--background);border-radius:16px;width:min(100%,360px);max-width:100%;max-height:640px;margin:auto}.vg-preview-empty{text-align:center;min-height:380px;color:var(--muted-foreground);flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px;display:flex}.vg-media-input{border:0;min-width:0;padding:0}.vg-label{margin-bottom:8px;font-size:14px;font-weight:500;display:block}.vg-help{color:var(--muted-foreground);font-size:13px;line-height:1.6}.vg-button{min-height:44px;font:inherit;cursor:pointer;border-radius:12px;justify-content:center;align-items:center;padding:10px 16px;font-size:14px;text-decoration:none;display:inline-flex}.vg-button-secondary{background:var(--surface-muted);color:var(--foreground);border:1px solid var(--input)}.vg-button-primary{background:var(--brand);color:var(--brand-foreground);border:0}.vg-preview-header h2{margin-bottom:8px}.vg-status{color:var(--muted-foreground);margin-bottom:16px;font-size:13px}.vg-preview-stage{flex:1;justify-content:center;min-height:320px;display:flex}.vg-preview[data-status=succeeded] .vg-status{color:var(--success)}.vg-preview[data-status=failed] .vg-status{color:var(--destructive)}@media (max-width:1023px){.vg-columns{grid-template-columns:minmax(0,1fr)}.vg-preview{min-height:400px;position:static}}@media (max-width:767px){.vg-modes{grid-template-columns:1fr;gap:8px;margin-top:24px}.vg-mode{grid-template-columns:24px 1fr;padding:16px}.vg-mode>span:last-child{grid-column:2}.vg-panel{padding:20px}.vg-preview video{max-height:480px}.vg-columns{gap:16px}}@media (prefers-reduced-motion:reduce){.vg-workspace *{transition:none;animation:none}}.vg-result-player{width:min(100%,360px);margin:auto}.vg-character-controls{gap:8px;display:grid}.vg-character-controls .vg-help{margin-block:4px}.vg-choices{border:0;min-width:0;margin:0;padding:0}.vg-choices legend{margin-bottom:8px;font-size:14px;font-weight:500}.vg-choice-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;display:grid}.vg-choice-grid--short{grid-template-columns:repeat(3,minmax(0,1fr))}.vg-choice-list{gap:8px;display:grid}.vg-choice{min-width:0;min-height:var(--control-height-small);border:1px solid var(--input);border-radius:var(--radius-control);background:var(--surface);cursor:pointer;align-items:center;gap:8px;padding:8px;font-size:14px;line-height:1.4;display:flex}.vg-choice>span{overflow-wrap:anywhere;min-width:0}.vg-choice small{color:var(--muted-foreground);margin-top:4px;font-size:12px;display:block}.vg-choice:has(input:checked){border-color:var(--foreground);background:var(--primary);color:var(--primary-foreground)}.vg-choice:has(input:focus-visible){outline:2px solid var(--ring);outline-offset:2px}.vg-choice:has(input:disabled){opacity:.5;cursor:not-allowed}.vg-scene-photo{gap:12px;min-width:0;display:grid}.vg-photo-examples{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:min(100%,280px);display:grid}.vg-photo-example{border-radius:var(--radius-control);min-width:0;color:var(--foreground);font:inherit;text-align:center;cursor:pointer;background:0 0;border:1px solid #0000;align-content:start;justify-items:center;gap:8px;padding:8px 4px;font-size:12px;line-height:1.4;display:grid}.vg-photo-example-image{object-fit:cover;border-radius:50%;width:56px;height:56px}.vg-photo-example.is-active{border-color:var(--foreground);background:var(--surface-muted)}.vg-photo-example:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.vg-photo-example:disabled{opacity:.5;cursor:not-allowed}.vg-image-row{border:1px dashed var(--input);border-radius:var(--radius-control);background:var(--surface-muted);height:96px;position:relative}.vg-image-row:focus-within{outline:2px solid var(--ring);outline-offset:2px}.vg-image-target{cursor:pointer;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:12px;height:100%;padding:12px 52px 12px 12px;display:grid}.vg-image-target.is-empty{text-align:center;grid-template-columns:minmax(0,1fr);padding:12px}.vg-image-thumbnail{border-radius:var(--radius-control);background:var(--surface);object-fit:contain;width:64px;height:64px;display:block}.vg-image-content{gap:4px;min-width:0;display:grid}.vg-image-row .vg-image-name{text-overflow:ellipsis;white-space:nowrap;color:var(--muted-foreground);margin:0;font-size:12px;overflow:hidden}.vg-image-prompt{font-size:14px;line-height:1.4}.vg-image-hint{color:var(--muted-foreground);font-size:12px;line-height:1.4}.vg-image-remove{border-radius:var(--radius-control);width:44px;height:44px;color:var(--foreground);cursor:pointer;background:0 0;border:0;font-size:24px;position:absolute;top:26px;right:4px}.vg-image-input:disabled .vg-image-target,.vg-image-remove:disabled{opacity:.5;cursor:not-allowed}.vg-image-input>.vg-image-status{min-height:20px;margin:0}.vg-character-library{flex-wrap:wrap;align-items:flex-start;gap:8px;display:flex}.vg-character-library>fieldset,.vg-character-library>div,.vg-character-presets,.vg-reference-upload{display:contents}.vg-reference-chip{border:1px solid var(--input);border-radius:var(--radius-control);background:var(--surface);width:88px;min-height:44px;color:var(--foreground);font:inherit;cursor:pointer;text-align:center;align-content:start;justify-items:center;gap:4px;padding:8px 4px;display:grid}.vg-reference-avatar{object-fit:cover;border-radius:50%;width:56px;height:56px}.vg-reference-name{-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;min-width:0;max-width:100%;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}.vg-reference-token{color:var(--muted-foreground);white-space:nowrap;font-size:12px}.vg-reference-chip:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.vg-reference-chip:disabled{opacity:.5;cursor:not-allowed}.vg-reference-add{border:1px dashed var(--input);border-radius:var(--radius-control);width:88px;height:104px;color:var(--foreground);background:var(--surface-muted);text-align:center;cursor:pointer;place-content:center;gap:8px;padding:8px;font-size:12px;line-height:1.4;display:grid}.vg-reference-add>span{font-size:28px}.vg-reference-upload:focus-within .vg-reference-add{outline:2px solid var(--ring);outline-offset:2px}.vg-reference-upload:disabled .vg-reference-add{opacity:.5;cursor:not-allowed}.vg-reference-upload .vg-image-status{flex-basis:100%;order:1;min-height:20px;margin:0}.vg-character-presets .vg-photo-example{width:88px}.vg-character-presets .vg-photo-example>span{overflow-wrap:anywhere;max-width:100%}
