Skip to content

Turn one illustration into an animated 2D mesh avatar with a coding agent and a local editor

26.0 KB
Raw Blame
:root {
  --ink: #243348; --muted: #64758a; --canvas: #edf1f5; --surface: #fff;
  --line: #d7dfe8; --accent: #2563eb; --accent-soft: #edf3ff;
  --radius: 12px; --space: 8px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px; color: var(--ink); background: var(--canvas); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { padding: 16px; }
h1 { font-size: 20px; letter-spacing: -.5px; margin: 0; }
h2 { font-size: 14px; margin: 0; }
h3 { font-size: 12px; margin: 0; }
p { line-height: 1.5; margin: 8px 0; }
button, input, select { font: inherit; }
button, .open-menu > summary, .archive-menu > summary {
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
button:hover:not(:disabled), .open-menu > summary:hover, .archive-menu > summary:hover { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { color: white; background: var(--accent); border-color: var(--accent); }
button.primary:hover { color: white; background: #1d4ed8; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; flex-shrink: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; margin-bottom: 16px; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.toolbar nav { display: flex; align-items: center; gap: 8px; }
.toolbar-divider { height: 24px; width: 1px; background: var(--line); }
.live-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: white; font-weight: 600; text-decoration: none; white-space: nowrap; }
.live-link:hover { filter: brightness(1.08); }
.live-link[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: default; filter: none; }
.language-toggle { display: flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--surface); }
.language-toggle button { border: 0; padding: 6px 10px; border-radius: 6px; font-size: 12px; }
.language-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.open-menu, .archive-menu { position: relative; }
.open-menu > summary, .archive-menu > summary { display: flex; align-items: center; gap: 12px; list-style: none; }
summary::-webkit-details-marker { display: none; }
.project-menu, .archive-options { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 100px); overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 24px #24334818; }
.project-menu button, .archive-options button { display: block; width: 100%; border: 0; text-align: left; }
.archive-options { padding: 16px; }
.archive-options p, .archive-import p { margin: 8px 0; color: var(--muted); line-height: 1.6; }
.archive-options label { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; }
.archive-options small { display: block; color: var(--muted); line-height: 1.6; }
.archive-options button { margin-top: 16px; text-align: center; }
.archive-import { border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.archive-import.dragging { outline: 2px solid var(--accent); }
.archive-import p { padding: 0 8px; font-size: 12px; }
.archive-feedback { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 12px 0; padding: 12px 16px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.archive-feedback span { white-space: pre-wrap; overflow-wrap: anywhere; }
.archive-feedback button { flex-shrink: 0; }
.workspace.playback-only { display: block; max-width: 640px; margin: 0 auto; }
.workspace.playback-only .right-column { display: block; }
.playback-notice { padding: 12px 16px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); }
.project-help { padding: 0 8px; font-size: 12px; color: var(--muted); }
.project-list { max-height: 320px; overflow: auto; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.project-list button { margin: 4px 0; background: #f5f7fb; }
.project-list small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.project-row { display: flex; align-items: stretch; gap: 4px; }
.project-row > button:first-child { flex: 1; min-width: 0; }
.project-menu .project-row .rename-button { flex: 0 0 32px; width: 32px; margin: 4px 0; padding: 0; display: grid; place-items: center; color: var(--muted); background: transparent; }
.project-menu .project-row .rename-button:hover:not(:disabled) { color: inherit; background: #f5f7fb; }
.rename-project { margin: 4px 0; padding: 8px; background: #f5f7fb; border-radius: 6px; text-align: left; }
.rename-project label { display: block; font-size: 12px; font-weight: 600; }
.rename-project input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 6px 8px; font-weight: 400; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.rename-project .rename-error { color: #b42318; }
.rename-actions { display: flex; gap: 6px; margin-top: 8px; }
.project-menu .rename-actions button { width: auto; flex: 1; margin: 0; text-align: center; border: 1px solid var(--line); }
.project-menu .rename-actions button:not(.primary) { background: var(--surface); }
/* .project-list button would otherwise give the primary button its pale row background */
.project-menu .rename-actions button.primary { color: white; background: var(--accent); border-color: var(--accent); }
.project-menu .rename-actions button.primary:hover:not(:disabled) { color: white; background: #1d4ed8; }
.project-menu button.unreadable-project:disabled { opacity: 1; color: var(--muted); cursor: not-allowed; }
.badge { display: inline-block; font-size: 10px; color: #395476; background: #edf3ff; border-radius: 4px; padding: 2px 4px; margin-left: 6px; }
.recent-projects { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.recent-heading { display: flex; align-items: center; justify-content: space-between; }
.recent-heading h3 { color: var(--ink); }
.recent-heading button { width: auto; padding: 4px 6px; color: var(--muted); font-size: 11px; }
.recent-list { max-height: 200px; overflow: auto; }
.recent-row { display: flex; align-items: center; }
.recent-row > button:first-child { flex: 1; min-width: 0; padding: 6px; text-align: left; }
.recent-row strong { font-size: 12px; }
.recent-row small { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; margin-top: 3px; }
.recent-row .remove-recent { flex: 0 0 28px; width: 28px; padding: 4px; text-align: center; font-size: 18px; color: var(--muted); }
.reopen-setting { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11px; }
.recent-empty { font-size: 12px; color: var(--muted); }
.empty-project .recent-projects { max-width: 460px; margin: 16px auto 0; }
.project-location { display: flex; align-items: center; gap: 8px; margin: -8px 0 12px; min-height: 32px; font-size: 12px; }
.project-location .icon-button { width: 28px; height: 28px; padding: 5px; }
.save-notice { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--ink); color: white; padding: 10px 16px; border-radius: 8px; font-size: 12px; }
main:has(.project-location) .editor-panel { height: calc(100dvh - 132px); }
main:has(.project-location) .parts-panel { max-height: calc(100dvh - 132px); }
main:has(.project-location):has(.stale) .editor-panel { height: calc(100dvh - 212px); }
.workspace { display: grid; grid-template-columns: 240px minmax(0, 1fr) 420px; gap: 12px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 8px; border-bottom: 1px solid var(--line); min-height: 44px; }
.panel-title span { font-size: 12px; color: var(--muted); }
.parts-panel { overflow-y: auto; padding-bottom: 8px; max-height: calc(100dvh - 96px); }
.parts-title { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.part-section { position: relative; padding-top: 8px; }
.part-section h3, .advanced-section > summary { padding: 0 16px 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.section-eye { position: absolute; right: 8px; top: 4px; border: 0; width: 32px; height: 32px; color: var(--muted); }
.part-row { display: flex; align-items: flex-start; margin: 0 8px 2px; border: 1px solid transparent; border-radius: 8px; }
.part-row.is-selected { border-color: #b3cdfa; background: var(--accent-soft); }
.part-row.is-absent { opacity: .55; }
.part-select { flex: 1; min-width: 0; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 8px; text-align: left; padding: 6px 8px; border: 0; background: transparent; }
.part-select strong { display: block; font-size: 13px; font-weight: 600; line-height: 18px; }
.part-select small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; color: var(--muted); line-height: 15px; margin-top: 2px; overflow: hidden; }
.part-swatch { width: 10px; height: 10px; border-radius: 3px; margin-top: 4px; }
.part-eye { border: 0; width: 28px; height: 32px; padding: 5px; background: transparent; color: var(--muted); margin-top: 2px; }
.advanced-section { margin-top: 8px; border-top: 1px solid var(--line); }
.advanced-section > summary { cursor: pointer; list-style-position: inside; padding-bottom: 4px; }
.advanced-section .section-eye { top: 32px; }
.advanced-section .part-rows { padding-top: 28px; }
.editor-panel { display: flex; flex-direction: column; overflow: hidden; height: calc(100dvh - 96px); min-height: 560px; }
.canvas-stage { flex: 1; min-height: 0; position: relative; }
.canvas-content { height: 100%; display: flex; flex-direction: column; }
.canvas-surface { flex: 1; position: relative; min-height: 0; }
.editor-canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.canvas-help { min-height: 56px; display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.context-hint { flex: 1; line-height: 1.5; }
.zoom-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; align-items: center; flex-shrink: 0; }
.zoom-tools button { padding: 5px 8px; font-size: 12px; }
.handle-tooltip { position: absolute; z-index: 2; pointer-events: none; max-width: 210px; background: var(--ink); color: white; padding: 6px 8px; border-radius: 6px; font-size: 12px; box-shadow: 0 2px 8px #0002; }
.right-column { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.preview-panel { overflow: hidden; flex-shrink: 0; }
.preview-canvas { display: block; height: 420px; width: auto; max-width: 100%; margin: 0 auto; }
.preview-tools { display: flex; align-items: center; gap: 8px; padding: 2px 16px; border-top: 1px solid var(--line); font-size: 12px; }
.preview-tools .icon-button { width: 28px; height: 28px; border: 0; color: var(--accent); }
.pose-test { position: relative; padding: 8px 16px; }
.pose-actions { display: flex; gap: 8px; }
.reset-pose { color: var(--accent); padding: 6px 8px; font-size: 12px; }
.pose-actions .sweep-button { flex: 1; width: auto; }
.sliders { display: grid; gap: 0; margin: 6px 0; }
.sliders label { display: grid; grid-template-columns: 120px minmax(0, 1fr) 32px; gap: 8px; align-items: center; min-height: 20px; font-size: 12px; }
.sliders input { min-width: 0; width: 100%; accent-color: var(--accent); margin: 0; }
.sliders output { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.sweep-button { width: 100%; font-size: 12px; padding: 6px 12px; }
.lip-sync { padding: 8px 16px; }
.preview-tabs { display: flex; padding: 4px 12px; gap: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; font-size: 12px; padding: 6px; }
.preview-tabs button svg { width: 16px; height: 16px; }
.preview-tabs button[aria-selected="true"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.vowel-buttons { display: flex; gap: 6px; margin: 10px 0 8px; }
.vowel-buttons button { padding: 5px 8px; flex: 1; }
.vowel-buttons button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: #b3cdfa; }
.lip-text-row { display: flex; gap: 6px; align-items: center; }
.lip-text-row input { min-width: 0; flex: 1; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.lip-text-row button { padding: 6px 10px; }
.lip-options { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 12px; }
.lip-speed { display: flex; align-items: center; gap: 6px; flex: 1; }
.lip-speed input { min-width: 0; width: 60px; flex: 1; accent-color: var(--accent); }
.lip-help { font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.lip-skipped { font-size: 11px; color: #7c4b05; margin: 4px 0 0; }
.inspector { min-height: 160px; max-height: 400px; overflow: auto; padding: 16px; }
.selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.part-description { font-size: 12px; color: var(--muted); }
.part-tip { font-size: 12px; background: #f3f6fa; padding: 8px; border-radius: 8px; line-height: 1.5; }
.part-tip strong { display: block; color: var(--ink); margin-bottom: 2px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.fields label { display: grid; gap: 4px; font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.fields label > span { color: var(--muted); }
.fields input { width: 100%; min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.fields details, .point-field { grid-column: 1 / -1; }
.fields details { border-top: 1px solid var(--line); padding-top: 8px; }
.fields summary { cursor: pointer; font-size: 12px; }
.point-field { display: grid; gap: 4px; font-size: 12px; }
.point-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-path, .point-field > small { font-size: 10px; color: var(--muted); font-family: ui-monospace, monospace; }
.point-inputs .field-path { display: none; }
.guide-steps { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; font-size: 12px; }
.guide-steps li { display: flex; align-items: center; gap: 8px; }
.guide-steps li > span { display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; }
.first-guide { position: absolute; top: 16px; left: 16px; right: 16px; max-width: 340px; z-index: 3; padding: 16px; border: 1px solid #b3cdfa; border-radius: var(--radius); background: #fffffff5; box-shadow: 0 8px 32px #24334820; }
.first-guide button { font-size: 12px; }
.help-panel { position: absolute; right: 16px; top: 80px; width: min(400px, calc(100% - 32px)); z-index: 10; box-shadow: 0 8px 32px #24334820; }
.help-body { padding: 16px; }
.help-body dl { margin: 12px 0 16px; font-size: 12px; }
.help-body dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.help-body dd { margin: 0; color: var(--muted); }
.selection-empty { color: var(--muted); }
.error { color: #a12828; background: #fff1f1; padding: 8px; font-size: 12px; white-space: pre-wrap; }
.stale { color: #7c4b05; background: #fff6dd; padding: 8px 16px; font-size: 12px; border: 1px solid #f0dcaa; border-radius: 8px; margin-bottom: 12px; }
.stale small { display: block; margin-top: 4px; font-size: 12px; }
main:has(.stale) .editor-panel, main:has(.stale) .parts-panel { height: calc(100dvh - 180px); }
.empty-project { padding: 48px 24px; text-align: center; }
.stale > p { margin: 0 0 4px; }
.stale > button { margin-top: 8px; }
.stale:has(> button) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; }
.stale:has(> button) > button { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
.stale:has(> button) > .job-feedback { grid-column: 1 / -1; }
.ask-agent { border: 1px solid #b3cdfa; border-radius: 8px; padding: 12px; background: #f5f8ff; margin: 12px 0; text-align: left; }
.empty-project .ask-agent { max-width: 620px; margin: 20px auto; }
.agent-instruction { margin: 0 0 8px; font-size: 12px; }
.agent-folder-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ask-agent textarea { display: block; resize: vertical; width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px; font: inherit; font-size: 12px; margin: 8px 0; }
.copy-button { flex-shrink: 0; white-space: nowrap; font-size: 12px; }
.mouth-fallback { margin: 4px 0; font-size: 10px; color: var(--muted); }
.mouth-fallback button { color: var(--accent); border: 0; background: none; font: inherit; padding: 0; cursor: pointer; }
.workflow-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.variants-panel { flex-shrink: 0; }
.variants-panel > summary, .new-illustration > summary { display: flex; align-items: center; justify-content: flex-start; cursor: pointer; padding: 12px 16px; font-weight: 600; }
.variants-panel > summary::before, .new-illustration > summary::before { content: '▸'; margin-right: 8px; }
.variants-panel[open] > summary::before, .new-illustration[open] > summary::before { content: '▾'; }
.variants-panel > summary svg { margin-right: 8px; }
.variants-panel > summary span { margin-left: auto; font-weight: 400; color: var(--muted); }
.variants-content { padding: 0 16px 12px; font-size: 12px; }
.variants-content > p { color: var(--muted); }
.variant-choices { display: grid; gap: 8px; margin: 12px 0; }
.variant-choices > label { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.variant-choices small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.variant-count { margin-left: auto; flex-shrink: 0; color: var(--muted); font-size: 11px; }
.manual-variants { margin-top: 14px; font-size: 11px; color: var(--muted); }
.manual-variants > summary { cursor: pointer; }
.manual-variants > p { line-height: 1.6; }
.variant-requests > details { padding: 8px 0; border-bottom: 1px solid var(--line); }
.variant-requests summary, .job-feedback summary { cursor: pointer; }
.variant-requests img { display: block; max-width: 100%; max-height: 220px; margin: 8px auto; background: repeating-conic-gradient(#e3e8ed 0% 25%, white 0% 50%) 50% / 12px 12px; }
.variant-requests pre, .job-feedback pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 200px; overflow: auto; font-size: 11px; background: #f5f7fb; padding: 8px; }
.variant-requests code, .workflow-note { overflow-wrap: anywhere; }
.variant-drop { border: 1px dashed #8ea9d4; border-radius: 8px; background: #f5f8ff; padding: 12px; margin-top: 12px; }
.variant-drop[aria-disabled="true"] { opacity: .6; }
.job-feedback [role="alert"] { color: #a12828; }.job-feedback [role="status"] { color: #166534; }
.job-feedback details { font-size: 11px; margin-top: 6px; }
.new-illustration { flex-shrink: 0; }.new-illustration > .ask-agent { margin: 0 12px 12px; }
@media (min-width: 1200px) {
  .right-column { max-height: calc(100dvh - 96px); overflow: auto; scrollbar-width: thin; }
  main:has(.project-location) .right-column { max-height: calc(100dvh - 132px); }
  .right-column .inspector { flex-shrink: 0; }
  main:has(.project-location):has(.stale) .right-column { max-height: calc(100dvh - 188px); }
  main:has(.project-location):has(.stale) .parts-panel { height: calc(100dvh - 212px); }
}
@media (min-width: 1200px) and (max-width: 1350px) {
  .workspace { grid-template-columns: 240px minmax(0, 1fr) 380px; }
  .preview-canvas { height: 300px; }
}
@media (max-width: 1199px) {
  .workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .editor-panel { height: 650px; }
  .parts-panel { max-height: 650px; }
  .parts-title { cursor: pointer; }
  .right-column { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .inspector { max-height: 650px; }
  .preview-canvas { height: 240px; }
  main:has(.stale) .editor-panel { height: 650px; }
  main:has(.project-location) .editor-panel { height: 650px; }
}
@media (max-width: 760px) {
  main { padding: 8px; }
  .toolbar { align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
  .toolbar nav { flex-wrap: wrap; gap: 4px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .parts-panel { max-height: 280px; }
  .editor-panel { height: 520px; }
  .right-column { grid-column: 1; grid-template-columns: 1fr; }
  .inspector { max-height: 500px; }
}

.zoom-value { min-width: 60px; }
.wheel-setting { display: flex; gap: 8px; align-items: center; justify-content: flex-end; font-size: 11px; color: var(--muted); padding: 4px 12px 8px; }
.wheel-setting select { border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: white; font-size: 11px; }
.canvas-help { flex-wrap: wrap; }
.agent-recipient { display: flex; gap: 4px; margin-top: 10px; }
.agent-recipient button { font-size: 12px; padding: 5px 8px; }
.agent-recipient button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: #b3cdfa; }
.agent-disclosure { font-size: 11px; color: var(--muted); margin: 6px 0; }

.audio-lip-settings { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.audio-lip-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.audio-lip-heading h3 { font-size: 13px; margin: 0; }
.audio-lip-custom { font-size: 11px; border: 1px solid var(--accent); color: var(--accent); border-radius: 12px; padding: 2px 8px; }
.audio-lip-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.audio-lip-presets button { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 8px 4px; font-size: 12px; }
.audio-lip-presets button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-weight: 600; }
.audio-lip-demo-hint { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.audio-lip-sliders { display: grid; gap: 20px; padding: 6px 0 12px; }
.audio-lip-sliders > label { display: grid; gap: 6px; align-items: center; font-size: 12px; }
.audio-lip-sliders > label > span { font-weight: 500; }
.audio-lip-sliders input { width: 100%; min-width: 0; margin: 3px 0; accent-color: var(--accent); }
.audio-lip-range { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.audio-lip-advanced { margin-top: 16px; }
.audio-lip-advanced > summary { color: var(--muted); font-size: 12px; cursor: pointer; }
.audio-lip-advanced > div { display: grid; gap: 10px; margin: 10px 0; }
.audio-lip-advanced label { display: grid; gap: 6px; font-size: 12px; }
.audio-lip-advanced audio, .audio-lip-advanced input[type="file"] { width: 100%; min-width: 0; }
.audio-lip-advanced small { color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (min-width: 1200px) {
  .preview-panel:has(#lip-tab[aria-selected="true"]) { display: flex; flex-direction: column; max-height: inherit; }
  .preview-panel:has(#lip-tab[aria-selected="true"]) > .panel-title,
  .preview-panel:has(#lip-tab[aria-selected="true"]) > .lighting-preview,
  .preview-panel:has(#lip-tab[aria-selected="true"]) > .preview-tools,
  .preview-panel:has(#lip-tab[aria-selected="true"]) > .overlay-tools,
  .preview-panel:has(#lip-tab[aria-selected="true"]) > .preview-tabs { flex-shrink: 0; }
  .preview-panel:has(#lip-tab[aria-selected="true"]) > .lip-sync,
  .preview-panel:has(#lip-tab[aria-selected="true"]) > .lighting-section { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .preview-panel:has(#lip-tab[aria-selected="true"]) > .lip-sync { flex: 1 1 auto; }
  .preview-panel:has(#lip-tab[aria-selected="true"]) > .lighting-section:not([open]) { flex-shrink: 0; }
}

.preview-tools[hidden] { display: none; }
.overlay-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.overlay-tools button { padding: 3px 10px; border-radius: 999px; font-size: 12px; color: var(--ink); }
.overlay-tools button[aria-pressed="true"] { color: white; background: var(--accent); border-color: var(--accent); }
.overlay-tools button[aria-pressed="true"]:hover:not(:disabled) { color: white; background: #1d4ed8; }
.preview-panel .lip-idle-toggle { width: 20px; height: 20px; padding: 2px; border: 0; color: var(--accent); }
#lip-panel .lip-live { margin: 0; }
.audio-file-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.audio-file-picker button { font-size: 12px; padding: 6px 10px; }
.audio-file-picker span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 11px; color: var(--muted); }

.full-body-support { margin: 0 16px 8px; padding: 8px; background: var(--canvas); border-radius: 6px; font-size: 11px; }
.full-body-support h4 { margin: 0 0 6px; font-size: inherit; font-weight: 600; }
.full-body-support dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; }
.full-body-support dt { color: var(--muted); }
.full-body-support dd { margin: 3px 0 0; font-weight: 500; }
.full-body-support [data-state="set"] dd { color: #187747; }
.full-body-support p { margin: 7px 0 0; line-height: 1.5; color: var(--muted); }