.chd-workspace{--chd-accent:var(--primary);--chd-accent-ink:var(--primary-foreground);--chd-line:color-mix(in oklch, var(--foreground) 12%, transparent);--chd-line-strong:color-mix(in oklch, var(--foreground) 22%, transparent);--chd-muted:var(--muted-foreground);--chd-panel:color-mix(in oklch, var(--muted) 45%, var(--background));max-width:1200px;color:var(--foreground);margin:0 auto;padding:0 28px}.chd-hero{max-width:820px;padding:24px 0}.chd-hero nav{color:var(--chd-muted);flex-wrap:wrap;gap:10px;margin-bottom:26px;font-size:12px;display:flex}.chd-hero nav a:hover{color:var(--foreground)}.chd-eyebrow{letter-spacing:.16em;color:var(--chd-accent);margin-bottom:14px;font-size:11px;font-weight:650}.chd-hero h1{font-family:var(--font-display);letter-spacing:-.045em;margin-bottom:18px;font-size:clamp(34px,4.4vw,54px);font-weight:550;line-height:1.04}.chd-intro{color:var(--chd-muted);font-size:15px;line-height:1.7}.chd-facts{margin-top:10px;font-size:13px;line-height:1.6}.chd-updated{color:var(--chd-muted);margin-top:6px;font-size:12px}.chd-studio{border:1px solid var(--chd-line);background:var(--chd-panel);border-radius:22px;grid-template-columns:minmax(0,460px) minmax(0,1fr);gap:28px;padding:24px;display:grid}.chd-controls{flex-direction:column;gap:18px;min-width:0;display:flex}.chd-field{border:0;margin:0;padding:0}.chd-field legend{margin-bottom:8px;font-size:13px;font-weight:650}.chd-field>*+*{margin-top:10px}.chd-photos{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.chd-slot{min-width:0}.chd-slot figure,.chd-slot-add{aspect-ratio:3/4;border:1.5px dashed var(--chd-line-strong);background:var(--background);width:100%;color:var(--chd-muted);text-align:center;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:4px;margin:0;font-size:11px;display:flex;position:relative;overflow:hidden}.chd-slot[data-spot=middle] .chd-slot-add,.chd-slot-add:hover:not(:disabled){border-color:var(--chd-accent);color:var(--foreground)}.chd-slot-add svg{width:20px;height:20px}.chd-slot-add strong{font-size:12px}.chd-slot figure{border-style:solid}.chd-slot figure img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.chd-slot figcaption{color:#fff;background:oklch(0% none none/.6);border-radius:999px;padding:2px 6px;font-size:10px;position:absolute;bottom:6px;left:6px}.chd-slot-remove{color:#fff;background:oklch(0% none none/.6);border-radius:999px;place-items:center;width:24px;height:24px;display:grid;position:absolute;top:6px;right:6px}.chd-slot-remove svg{width:14px;height:14px}.chd-slot-note{color:var(--chd-muted);margin-top:6px;font-size:11px;line-height:1.4}.chd-model-trigger{background:var(--background);border-radius:10px;width:100%;min-height:52px;padding:8px 12px;height:auto!important}.chd-model-option{text-align:left;align-items:center;gap:10px;min-width:0;display:flex}.chd-model-option>span{flex-direction:column;min-width:0;display:flex}.chd-model-option strong{font-size:13px;font-weight:650}.chd-model-name{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.chd-model-name em{color:var(--primary-foreground);background:var(--primary);border-radius:999px;padding:1px 6px;font-size:10px;font-style:normal;font-weight:650}.chd-model-option small{color:var(--chd-muted);font-size:11px}.chd-chips{grid-template-columns:repeat(2,1fr);gap:6px;display:grid}.chd-chips[data-count="1"]{grid-template-columns:1fr}.chd-chips[data-count="3"]{grid-template-columns:repeat(3,1fr)}.chd-chips button{border:1px solid var(--chd-line-strong);background:var(--background);border-radius:10px;padding:8px 0;font-size:13px;font-weight:600;transition:border-color .15s,background .15s}.chd-chips button[aria-checked=true]{border-color:var(--primary);background:color-mix(in oklab, var(--primary) 12%, var(--background))}.chd-chips button:disabled{cursor:not-allowed;opacity:.45}.chd-help{color:var(--chd-muted);margin-top:6px;font-size:12px;line-height:1.5}.chd-sound{align-items:flex-start;gap:8px;display:flex}.chd-sound svg{flex:none;width:14px;height:14px;margin-top:2px}.chd-consent{align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;display:flex}.chd-consent input{margin-top:3px}.chd-specs{color:var(--chd-muted);font-size:12px}.chd-generate{width:100%}.chd-stage{justify-content:center;align-items:flex-start;min-width:0;display:flex}.chd-preview{width:100%;max-width:360px}.chd-stage-title{margin-bottom:10px;font-size:13px;font-weight:650}.chd-preview video,.chd-result video{aspect-ratio:9/16;object-fit:contain;background:#000;border-radius:16px;width:auto;max-width:100%;height:min(560px,75vh);margin:0 auto;display:block}.chd-result{width:100%;margin:0}.chd-result figcaption{color:var(--chd-muted);margin-top:10px;font-size:12px}.chd-result figcaption strong{color:var(--foreground);margin-bottom:10px;font-size:14px;display:block}.chd-result figcaption p{margin-top:10px;line-height:1.5}.chd-result-actions{flex-wrap:wrap;gap:8px;display:flex}.chd-error{color:var(--destructive);margin-bottom:1rem;line-height:1.5;display:block}.chd-error svg{vertical-align:-2px;width:14px;height:14px;margin-right:6px;display:inline}.chd-progress{text-align:center;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:420px;padding:40px 0;font-size:14px;line-height:1.6;display:flex}.chd-progress>svg{width:28px;height:28px;color:var(--chd-accent)}.chd-bar{background:var(--chd-line);border-radius:999px;width:100%;height:6px;overflow:hidden}.chd-bar span{background:var(--chd-accent);height:100%;transition:width 1s linear;display:block}.chd-percent{font-variant-numeric:tabular-nums;font-size:13px}.chd-recent{margin-top:20px}.chd-recent h2{margin-bottom:10px;font-size:14px;font-weight:650}.chd-recent ul{flex-wrap:wrap;gap:8px;padding:0;list-style:none;display:flex}.chd-recent button{border:1px solid var(--chd-line);border-radius:10px;flex-wrap:wrap;gap:10px;padding:8px 12px;font-size:12px;display:flex}.chd-recent li[data-active=true] button{border-color:var(--chd-accent)}.chd-recent [data-status=done]{color:oklch(60% .15 150)}.chd-recent [data-status=failed],.chd-recent time{color:var(--chd-muted)}@media (width<=900px){.chd-studio{grid-template-columns:1fr}}@media (width<=640px){.chd-workspace{padding:0 16px}.chd-hero{padding:4px 0 14px}.chd-hero nav{margin-bottom:10px}.chd-eyebrow{margin-bottom:6px}.chd-hero h1{margin-bottom:8px;font-size:28px}.chd-intro{font-size:13.5px;line-height:1.5}.chd-facts{display:none}.chd-studio{border-radius:18px;gap:22px;padding:14px}.chd-photos{gap:6px}.chd-slot figure,.chd-slot-add{aspect-ratio:1}.chd-preview video,.chd-result video{height:min(480px,70vh)}}
