:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111111;
  color: #ececec;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #111111; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .46; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #aeaeae; outline-offset: 3px; }
svg { width: 16px; height: 16px; flex: 0 0 auto; }
#app { min-height: 100vh; }
.studio { display: grid; grid-template-columns: 264px minmax(480px, 1fr) 320px; grid-template-rows: 64px minmax(450px, 1fr) 228px; min-height: 100vh; background: radial-gradient(ellipse at 45% 18%, #202020 0%, #151515 40%, #111111 75%); }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding: 0 20px 0 24px; background: rgba(22,22,22,.9); border-bottom: 1px solid rgba(255,255,255,.07); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 220px; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(175,175,175,.58); border-radius: 10px; color: #b6b6b6; background: linear-gradient(140deg, #282828, #191919); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 5px 20px rgba(0,0,0,.2); }
.crumb { color: #9f9f9f; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.connection { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #a7a7a7; font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #717171; box-shadow: 0 0 0 3px rgba(113,113,113,.12); }
.dot.ok { background: #aaaaaa; box-shadow: 0 0 0 3px rgba(170,170,170,.12); }
.dot.error { background: #959595; box-shadow: 0 0 0 3px rgba(149,149,149,.12); }
.pane { background: rgba(21,21,21,.82); min-height: 0; overflow: auto; }
.library { grid-column: 1; grid-row: 2 / 4; border-right: 1px solid rgba(255,255,255,.07); padding: 17px 12px; }
.workbench { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 14px; gap: 12px; }
.inspector { grid-column: 3; grid-row: 2 / 4; border-left: 1px solid rgba(255,255,255,.07); padding: 17px 14px 28px; }
.timeline { grid-column: 2; grid-row: 3; border-top: 1px solid rgba(255,255,255,.07); padding: 13px 16px; background: rgba(18,18,18,.92); min-height: 0; overflow: auto; }
.pane-title, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.pane-title h2, .section-heading h3 { margin: 0; font-size: 11px; font-weight: 650; letter-spacing: .06em; color: #a2a2a2; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #c6c6c6; transition: background-color 150ms ease, color 150ms ease, transform 150ms ease; }
.icon-button:hover { background: rgba(255,255,255,.07); color: #ffffff; }.icon-button:active { transform: scale(.96); }
.character-list, .asset-list { display: grid; gap: 4px; }
.character-card { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px; border: 0; border-radius: 12px; text-align: left; background: transparent; color: inherit; transition: background-color 150ms ease, transform 150ms ease; }
.character-card:hover { background: rgba(255,255,255,.05); }.character-card:active { transform: scale(.96); }.character-card.selected { background: linear-gradient(110deg, rgba(156,156,156,.17), rgba(156,156,156,.05)); box-shadow: inset 2px 0 #a4a4a4; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; color: #b7b7b7; background: #252525; border: 1px solid rgba(255,255,255,.08); }.avatar svg { width: 18px; height: 18px; }
.card-copy { min-width: 0; }.card-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 580; }.card-meta { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #909090; }
.empty-list { padding: 20px 10px; color: #858585; font-size: 12px; line-height: 1.55; text-wrap: pretty; }
.new-character { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); }.new-character[hidden] { display: none; }
.field { display: grid; gap: 6px; margin: 0 0 12px; }.field-label { color: #b2b2b2; font-size: 11px; font-weight: 650; letter-spacing: .04em; }.field-hint { color: #747474; font-size: 11px; line-height: 1.4; }
input, textarea, select { width: 100%; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; padding: 9px 10px; color: #e9e9e9; background: #1c1c1c; box-shadow: inset 0 1px rgba(255,255,255,.025); transition: border-color 150ms ease, background-color 150ms ease; } input:not([type='range']), select { min-height: 40px; } textarea { min-height: 82px; resize: vertical; line-height: 1.45; } input::placeholder, textarea::placeholder { color: #626262; } input:hover, textarea:hover, select:hover { border-color: rgba(255,255,255,.2); } select option { background: #1c1c1c; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: #d9d9d9; background: #282828; font-size: 12px; font-weight: 600; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease; }.button:hover:not(:disabled) { color: #ffffff; background: #333333; border-color: rgba(255,255,255,.21); }.button:active:not(:disabled) { transform: scale(.96); }.button.primary { color: #191919; background: #ababab; border-color: #bdbdbd; box-shadow: inset 0 1px rgba(255,255,255,.3), 0 5px 16px rgba(129,129,129,.16); }.button.primary:hover:not(:disabled) { background: #bababa; }.button.ghost { background: transparent; }.button.danger { color: #adadad; }
.viewport-shell { position: relative; flex: 1; min-height: 300px; overflow: hidden; border-radius: 17px; background: radial-gradient(circle at 50% 42%, #272727, #191919 56%, #151515); box-shadow: 0 18px 40px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.08); }.viewport-shell::before { content: ''; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255,255,255,.09); border-radius: 17px; z-index: 3; }.viewer { position: absolute; inset: 0; }.viewport-hud { position: absolute; z-index: 4; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }.viewport-hud > * { pointer-events: auto; }.hud-title { padding: 7px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(19,19,19,.74); color: #bfbfbf; font-size: 11px; backdrop-filter: blur(12px); }.hud-controls { display: flex; gap: 5px; }.hud-controls .icon-button { width: 40px; height: 40px; background: rgba(19,19,19,.74); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px); }.hud-controls .icon-button.active { color: #bbbbbb; background: rgba(65,65,65,.72); }
.viewport-empty { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; max-width: 390px; margin: auto; padding: 32px; text-align: center; }.empty-orb { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; color: #acacac; border-radius: 19px; background: linear-gradient(145deg, #2a2a2a, #1d1d1d); border: 1px solid rgba(196,196,196,.24); box-shadow: 0 14px 32px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.13); }.empty-orb svg { width: 28px; height: 28px; }.viewport-empty h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(23px, 3vw, 31px); font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }.viewport-empty p { max-width: 340px; margin: 10px 0 19px; color: #a6a6a6; font-size: 13px; line-height: 1.55; text-wrap: pretty; }.viewport-empty .button { width: auto; }
.workspace-tabs { display: flex; gap: 4px; }.tab { min-height: 40px; padding: 7px 11px; border: 0; border-radius: 8px; color: #949494; background: transparent; font-size: 12px; }.tab.active { color: #e8e8e8; background: rgba(170,170,170,.14); }
.concept-panel { flex: 1; min-height: 300px; overflow: auto; border-radius: 17px; padding: clamp(18px, 4vw, 38px); background: radial-gradient(circle at 30% 5%, rgba(137,137,137,.14), transparent 34%), #1a1a1a; box-shadow: 0 18px 40px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.08); }.concept-panel h1 { max-width: 620px; margin: 5px 0 7px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(25px, 3.2vw, 38px); font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }.concept-panel > p { max-width: 650px; color: #a6a6a6; line-height: 1.55; font-size: 13px; text-wrap: pretty; }.prompt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; margin-top: 26px; }.prompt-grid .field:first-child { grid-row: span 2; }.prompt-fixed { padding: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; color: #979797; background: rgba(0,0,0,.16); font-size: 11px; line-height: 1.45; }.prompt-fixed b { display: block; margin-bottom: 3px; color: #bebebe; font-size: 10px; letter-spacing: .06em; }.generation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 2px; }.generation-note { color: #838383; font-size: 11px; line-height: 1.4; }.model-warning { margin-top: 8px; color: #a8a8a8; font-size: 11px; line-height: 1.4; }
.concept-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 24px; }.concept-card { overflow: hidden; padding: 0; text-align: left; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: #212121; color: inherit; }.concept-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; outline: 1px solid rgba(255,255,255,.1); outline-offset: -1px; }.concept-card span { display: block; padding: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }.concept-card.selected { border-color: #ababab; box-shadow: 0 0 0 1px rgba(171,171,171,.22); }
.concept-preview { display: grid; justify-items: center; gap: 10px; margin-top: 14px; padding: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(0,0,0,.14); }.concept-preview > img { display: block; width: 100%; max-height: 440px; object-fit: contain; border-radius: 9px; outline: 1px solid rgba(255,255,255,.1); }.concept-preview-actions, .handoff-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.workbench-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 28px; padding: 0 3px; color: #888888; font-size: 11px; }.status-message { min-height: 1.2em; color: #bfbfbf; }.status-message.error { color: #a6a6a6; }
.inspector-section { padding: 0 0 17px; margin-bottom: 17px; border-bottom: 1px solid rgba(255,255,255,.07); }.inspector-section:last-child { border-bottom: 0; }.character-summary { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.035); }.character-summary strong { display: block; font-size: 14px; }.character-summary p { margin: 5px 0 0; color: #979797; font-size: 12px; line-height: 1.45; text-wrap: pretty; }.asset-choices { display: grid; gap: 5px; }.asset-choice { display: flex; min-height: 40px; align-items: center; gap: 8px; padding: 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #b7b7b7; text-align: left; font-size: 12px; }.asset-choice:hover { background: rgba(255,255,255,.045); }.asset-choice.selected { border-color: rgba(170,170,170,.32); background: rgba(170,170,170,.08); color: #e6e6e6; }.asset-choice svg { color: #a3a3a3; }.asset-choice small { margin-left: auto; color: #7c7c7c; font-size: 10px; }.dropzone { display: grid; place-items: center; padding: 16px 12px; border: 1px dashed rgba(255,255,255,.18); border-radius: 10px; color: #a6a6a6; background: rgba(255,255,255,.018); text-align: center; font-size: 12px; line-height: 1.5; }.dropzone:hover { border-color: rgba(175,175,175,.55); background: rgba(175,175,175,.04); }.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }.dropzone b { display: block; color: #cdcdcd; font-weight: 600; }.upload-choice { display: flex; gap: 6px; margin-bottom: 8px; }.choice-chip { flex: 1; min-height: 40px; padding: 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: transparent; color: #a5a5a5; font-size: 11px; }.choice-chip.active { color: #d5d5d5; border-color: rgba(170,170,170,.38); background: rgba(170,170,170,.12); }
.mapping-list { display: grid; gap: 7px; }.mapping-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 7px; }.mapping-row span { overflow: hidden; color: #929292; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.mapping-row select { padding: 7px 8px; font-size: 11px; }.rig-note { margin: 0; color: #8d8d8d; font-size: 12px; line-height: 1.5; text-wrap: pretty; }.rig-note b { color: #cecece; font-weight: 600; }.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.info-cell { padding: 8px; border-radius: 8px; background: rgba(255,255,255,.035); }.info-cell span { display: block; color: #7d7d7d; font-size: 10px; }.info-cell b { display: block; margin-top: 3px; font-size: 12px; font-variant-numeric: tabular-nums; }
.hand-readiness { margin-top: 14px; }.hand-list { display: grid; gap: 7px; }.hand-card { display: grid; gap: 4px; padding: 10px; border-radius: 9px; background: rgba(255,255,255,.035); color: #969696; font-size: 11px; line-height: 1.4; }.hand-card strong { color: #d1d1d1; font-size: 12px; }.hand-card .button { justify-self: start; margin-top: 3px; }.hand-warning { margin: 2px 0 0; color: #aeaeae; font-size: 11px; line-height: 1.4; }
.transport { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 10px; }.transport .icon-button { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.1); background: #282828; }.time { min-width: 74px; color: #a6a6a6; font-size: 11px; font-variant-numeric: tabular-nums; }.scrubber { width: 100%; accent-color: #a7a7a7; }.speed { width: 72px; min-height: 40px; padding: 7px; font-size: 11px; }.timeline-help { margin: 9px 0 0; color: #858585; font-size: 11px; line-height: 1.45; text-wrap: pretty; }.clip-library { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 220px); gap: 7px; margin-top: 13px; overflow-x: auto; padding-bottom: 4px; }.clip-card { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.028); color: #bebebe; text-align: left; }.clip-card:hover { background: rgba(255,255,255,.06); }.clip-card.active { border-color: rgba(170,170,170,.45); background: rgba(170,170,170,.1); }.clip-card .clip-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #aaaaaa; background: rgba(170,170,170,.13); }.clip-card strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }.clip-card small { display: block; margin-top: 3px; color: #818181; font-size: 10px; }
.locomotion-status { margin: 7px 0 0; color: #8d8d8d; font-size: 11px; font-variant-numeric: tabular-nums; }
.clip-picker { min-width: 120px; padding: 7px 9px; font-size: 11px; }
.jobs { display: grid; gap: 6px; margin-top: 12px; }.job { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; border-radius: 8px; background: rgba(255,255,255,.04); color: #a5a5a5; font-size: 11px; line-height: 1.35; }.job.failed { color: #ababab; }.job.complete { color: #b7b7b7; }.job .button { min-height: 40px; }
.hidden { display: none !important; }
@media (max-width: 1100px) { .studio { grid-template-columns: 228px minmax(420px, 1fr); grid-template-rows: 64px minmax(430px, 1fr) auto auto; }.inspector { grid-column: 1 / -1; grid-row: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid rgba(255,255,255,.07); border-left: 0; }.inspector-section { border-bottom: 0; margin: 0; }.timeline { grid-row: 3; }.library { grid-row: 2 / 4; } }
@media (max-width: 760px) { .studio { display: block; }.topbar { position: sticky; top: 0; z-index: 10; min-height: 60px; padding: 0 13px; }.brand { min-width: 0; }.crumb { display: none; }.connection { font-size: 10px; }.library, .inspector, .timeline { border: 0; }.library { padding: 15px; }.character-list { grid-auto-flow: column; grid-auto-columns: 184px; grid-template-columns: none; overflow-x: auto; }.new-character { display: block; }.workbench { min-height: 510px; padding: 12px; }.inspector { display: block; padding: 18px 15px; }.inspector-section { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.07); }.timeline { padding: 13px; }.prompt-grid { grid-template-columns: 1fr; }.prompt-grid .field:first-child { grid-row: auto; }.transport { grid-template-columns: auto auto 1fr auto; }.transport .time { display: none; } }

/* Keep the drawing buffer inside the visible workspace, including Retina displays. */
.viewer canvas { display: block; width: 100%; height: 100%; }
@media (min-width: 1101px) { .studio { height: 100dvh; min-height: 742px; grid-template-rows: 64px minmax(0, 1fr) 228px; } }

/* Studio navigation and focused workspaces. */
:root, body { background: #000; color: #eee; }
.studio { background: #080808; grid-template-columns: 224px minmax(0, 1fr) 280px; grid-template-rows: 56px minmax(0, 1fr); height: 100dvh; min-height: 640px; }
.topbar { background: #080808; padding: 0 20px; }
.brand { min-width: 184px; font-family: inherit; font-size: 14px; font-weight: 600; }
.brand-mark { background: #161616; border-color: #343434; color: #eee; box-shadow: none; }
.library { grid-row: 2; padding: 20px 12px; background: #0b0b0b; }
.primary-nav { display: grid; gap: 4px; padding-bottom: 28px; }
.nav-entry { display: flex; gap: 12px; align-items: center; min-height: 44px; border: 0; border-radius: 8px; padding: 0 12px; text-align: left; background: transparent; color: #999; font-size: 14px; }
.nav-entry:hover { background: #171717; color: #fff; }
.nav-entry.active { color: #fff; background: #242424; }
.library .pane-title { padding: 0 10px; margin-bottom: 6px; }
.character-card { border-radius: 7px; padding: 10px; background: transparent; box-shadow: none; }
.character-card.selected { border-color: transparent; background: #202020; box-shadow: none; }
.avatar { width: 26px; height: 26px; background: transparent; border: 0; color: #aaa; }
.card-meta { display: none; }
.workbench { grid-row: 2; padding: 20px; gap: 0; overflow: hidden; }
.workspace-heading { display: flex; align-items: center; flex: 0 0 auto; min-height: 36px; margin-bottom: 14px; }
.workspace-heading h1 { font: 600 18px/1.3 ui-sans-serif, system-ui, sans-serif; margin: 0; letter-spacing: -.025em; }
.viewport-shell { border-radius: 12px 12px 0 0; min-height: 240px; box-shadow: none; background: #171717; }
.viewport-shell::before { border-radius: inherit; }
.timeline { flex: 0 0 auto; padding: 10px 14px; overflow: visible; border: 1px solid #292929; border-radius: 0 0 12px 12px; background: #111; }
.transport { display: grid; grid-template-columns: 40px 40px minmax(60px,1fr) minmax(74px,auto) 70px minmax(120px,220px) 40px; gap: 10px; margin: 0; align-items: center; }
.workbench-footer { min-height: 28px; margin-top: 8px; }
.workbench-footer > span:last-child { display: none; }
.inspector { grid-row: 2; padding: 24px 16px; background: #0c0c0c; }
.inspector > .pane-title { display: none; }
.inspector-section { padding-bottom: 20px; }
.dropzone { min-height: 66px; margin-top: 16px; border-color: #383838; }
.advanced, .import-options { border-top: 1px solid #292929; margin-top: 18px; padding-top: 10px; }
.advanced > summary, .import-options > summary { cursor: pointer; color: #aaa; font-size: 12px; padding: 12px 0; min-height: 40px; }
.advanced[open] > summary { color: #fff; margin-bottom: 16px; }
.advanced .section-heading h3 { letter-spacing: 0; }
.button.primary { background: #eee; color: #111; border-color: #eee; box-shadow: none; }
.button.primary:hover:not(:disabled) { background: #fff; }
.button, .icon-button { border-radius: 7px; }
.icon-button.active, .choice-chip.active, .asset-choice.selected { background: #282828; color: #fff; border-color: #555; }
.mode-concept { grid-template-columns: 224px minmax(0,1fr); }
.mode-concept .workbench { padding: 24px 40px; }
.concept-panel { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0; background: none; border: 0; }
.concept-panel > .pane-title, .concept-panel > h1, .concept-panel > p { display: none; }
.prompt-grid { grid-template-columns: minmax(0, 1fr) 180px; padding: 0; }
.prompt-grid textarea { min-height: 112px; }
.pose-note { color: #888; font-size: 12px; align-self: end; padding-bottom: 12px; }
.generation-actions { margin: 16px 0 24px; }
.upload-icon { border: 1px solid #333; position: relative; cursor: pointer; }
.generation-note { margin-left: auto; font-size: 11px; color: #888; }
.concept-gallery { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); }
.concept-card { border-radius: 10px; }
.concept-card span { display: none; }
.concept-card img { height: 210px; object-fit: contain; background: #151515; }
.clip-library { grid-template-columns: 1fr; margin-top: 16px; }
.clip-card { min-height: 64px; }
.generating { padding: 20px; min-height: 72px; border: 1px solid #555; background: #222; font-size: 14px; gap: 16px; }
.generating > span:nth-child(2) { flex: 1; }
.generation-spinner { width: 22px; height: 22px; border: 2px solid #555; border-top-color: #fff; border-radius: 50%; animation: generation-spin 1s linear infinite; }
@keyframes generation-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .generation-spinner { animation: none; border-color: #fff; } }
@media (max-width: 1100px) and (min-width: 761px) { .studio { grid-template-columns: 180px minmax(0,1fr); height: auto; min-height: 100dvh; grid-template-rows: 56px minmax(520px, calc(100dvh - 56px)) auto; } .inspector { grid-column: 2; grid-row: 3; display: block; } .library { grid-row: 2 / 4; } .mode-concept .workbench { padding: 20px; } }
@media (max-width: 760px) { .studio { display: block; height: auto; } .primary-nav { grid-template-columns: repeat(3,1fr); padding-bottom: 12px; } .nav-entry { justify-content: center; padding: 0 6px; gap: 6px; } .workbench { height: 620px; padding: 12px; } .mode-concept .workbench { height: auto; padding: 16px; } .concept-panel { overflow: visible; } .transport { grid-template-columns: 40px 40px minmax(40px,1fr) 64px 40px; gap: 5px; } .transport .time { display: none; } .prompt-grid { grid-template-columns: 1fr; } .generation-note { flex-basis: 100%; margin: 0; } .mode-concept .workbench-footer { display: block; } }
/* Asset browser: horizontal modes, thumbnail rail, full preview. */
.studio, .studio.mode-concept { grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr); position: relative; }
.topbar { gap: 32px; }
.primary-nav { display: flex; align-items: center; gap: 6px; padding: 0; height: 100%; }
.nav-entry { min-width: 116px; justify-content: center; height: 40px; }
.library { grid-column: 1; grid-row: 2; padding: 16px 12px; }
.image-library { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.image-library .concept-card { padding: 0; border: 1px solid #333; aspect-ratio: 3 / 4; width: 100%; min-width: 0; }
.image-library .concept-card.selected { border-color: #eee; outline: 1px solid #eee; }
.image-library .concept-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.character-card { gap: 12px; min-height: 64px; }
.card-copy small { display: block; font-size: 10px; color: #999; overflow: hidden; text-overflow: ellipsis; }
.workbench, .mode-concept .workbench { grid-column: 2; grid-row: 2; padding: 16px; position: relative; min-height: 0; }
.workspace-heading { min-height: 28px; margin-bottom: 12px; }
.inspector { display: none; position: absolute; z-index: 8; right: 24px; top: 124px; bottom: 110px; width: 300px; border: 1px solid #333; border-radius: 12px; box-shadow: 0 20px 60px #000a; }
.inspector.visible { display: block; }
.inspector > .button:first-child { float: right; margin-bottom: 16px; }
.full-concept { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #141414; border: 1px solid #292929; border-radius: 12px; overflow: hidden; }
.full-concept > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.concept-view-toolbar { position: absolute; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 20px; padding: 4px 8px 4px 16px; border-radius: 8px; background: #111e; color: #ddd; font-size: 12px; }
.concept-composer { position: absolute; right: 28px; top: 16px; z-index: 6; }
.concept-composer > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 40px; color: #ddd; font-size: 12px; }
.concept-composer[open] { width: min(700px, calc(100% - 56px)); background: #101010; border: 1px solid #444; padding: 16px; border-radius: 12px; box-shadow: 0 20px 60px #000a; max-height: calc(100% - 40px); overflow: auto; }
.concept-composer:not([open]) > :not(summary) { display: none; }
.concept-composer > select { margin: 12px 0 20px; }
.concept-composer .concept-panel { overflow: visible; }
@media (max-width: 760px) { .studio, .studio.mode-concept { display: grid; grid-template-columns: 140px minmax(0,1fr); height: 100dvh; min-height: 560px; grid-template-rows: 104px minmax(0,1fr); } .topbar { flex-wrap: wrap; gap: 6px; align-content: center; } .topbar .connection { display: none; } .primary-nav { height: 44px; width: 100%; } .nav-entry { min-width: 0; flex: 1; } .library { padding: 8px; } .workbench, .mode-concept .workbench { height: auto; padding: 8px; } .character-list { display: grid; grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; } .image-library { gap: 4px; } .concept-composer { top: 10px; right: 12px; } .workspace-heading h1 { font-size: 14px; } .inspector { top: 150px; right: 8px; width: min(300px,calc(100% - 16px)); } .concept-view-toolbar span { display: none; } }

/* Wider asset rail with the prompt beside, never over, the preview. */
.studio, .studio.mode-concept { grid-template-columns: 380px minmax(0, 1fr); }
.sidebar-composer { margin-top: 24px; padding-top: 20px; border-top: 1px solid #303030; }
.sidebar-composer > select { margin-bottom: 18px; }
.sidebar-composer .concept-panel { overflow: visible; }
.sidebar-composer .prompt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sidebar-composer .prompt-grid > .field:first-child { grid-column: 1 / -1; grid-row: auto; }
.sidebar-composer textarea { min-height: 170px; }
.sidebar-composer .pose-note { display: none; }
.sidebar-composer .generation-actions { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sidebar-composer .generation-note { flex-basis: 100%; margin: 6px 0 0; }
.sidebar-composer .generating { flex-wrap: wrap; padding: 12px; }
@media (max-width: 1000px) and (min-width: 761px) { .studio, .studio.mode-concept { grid-template-columns: 310px minmax(0,1fr); } }
@media (max-width: 760px) { .studio, .studio.mode-concept { grid-template-columns: 220px minmax(0,1fr); } .sidebar-composer .prompt-grid { grid-template-columns: 1fr; } }

.motion-browser { display: grid; gap: 10px; margin-top: 16px; }
.motion-browser .clip-card[hidden] { display: none; }
.library > .button { margin-top: 12px; }
.motion-browser { min-width: 0; }
.motion-browser .clip-library { display: grid; grid-template-columns: minmax(0,1fr); grid-auto-flow: row; gap: 8px; overflow: visible; width: 100%; }
.motion-browser .clip-card { width: 100%; min-width: 0; display: flex; gap: 12px; text-align: left; }
.motion-browser .clip-card > span:last-child { min-width: 0; flex: 1; }
.motion-browser .clip-card strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }

.equipment-panel { margin: 12px 0; padding: 10px 12px; border: 1px solid #333; border-radius: 8px; max-height: 240px; overflow: auto; flex-shrink: 0; }
.equipment-panel > .field { display: inline-flex; width: 220px; margin: 12px 16px 8px 0; vertical-align: top; }
.equipment-panel details .field { display: inline-flex; width: 115px; margin: 10px 12px 8px 0; }
