:root{--ink:#252b37;--accent:#5264c8;--line:#dce0e9;font:16px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f5f6f8}*{box-sizing:border-box}body{margin:0}header{background:white;border-bottom:1px solid var(--line)}nav,footer,main{max-width:1200px;margin:auto;padding-inline:clamp(16px,4vw,60px)}nav,footer,.title,.bar,.transport,.ruler{display:flex;align-items:center;gap:16px}nav{height:66px;font-size:.9rem}a{color:var(--accent)}nav a,footer a,.cta{text-decoration:none}.brand{margin-right:auto;font-size:1.3rem;font-weight:700;letter-spacing:-.05em;color:var(--ink)}nav .brand{display:inline-flex;align-items:center;gap:12px}nav .brand img{display:block;flex:none}.login,.cta{font-weight:600}.cta{background:var(--accent);color:white;border-radius:7px;padding:11px 18px;white-space:nowrap}.title{justify-content:space-between;flex-wrap:wrap;margin-bottom:24px}section{padding-block:clamp(40px,6vw,84px);border-bottom:1px solid var(--line)}h1,h2{line-height:1.05;letter-spacing:-.055em;margin:0}h1{font-size:clamp(2.8rem,5.7vw,5rem)}h2{font-size:clamp(2rem,4vw,3.4rem)}.workspace,.card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 10px 35px #24375b0d}.workspace{display:grid;grid-template-columns:1fr 2fr}aside,article{min-width:0}aside{border-right:1px solid var(--line)}.bar{height:40px;padding:0 16px;font-size:.8rem;font-weight:650;border-bottom:1px solid var(--line);justify-content:space-between}.chat,.card{padding:20px}.chat small,.sequence small{font-weight:650;color:#687386}.prompt{background:#eff1fc;border-radius:10px;padding:12px;margin:6px 0}.chat small{display:block}kbd{display:block;text-align:right;color:#687386;margin-bottom:20px}.reply{margin-top:6px}button{cursor:pointer;border:0;background:transparent;color:var(--accent);font:inherit}.transport button{font-size:18px;border-radius:5px}.transport button:nth-child(2),button[aria-pressed=true]{background:#e9ecfb}.transport,.sequence{padding:8px 16px}.transport{border-bottom:1px solid var(--line)}output,.ruler{font:12px monospace;color:#687386}output{margin-left:auto}video{display:block;width:100%;aspect-ratio:16/9;background:#111524}.ruler{justify-content:space-between}.sequence input{width:100%;accent-color:var(--accent)}footer{justify-content:space-between;padding-block:36px}.copy{max-width:700px;min-height:72vh}.copy h2{font-size:1.65rem;margin:32px 0 12px}.copy h1{margin-bottom:30px}.card h2{margin-top:0}.card .cta{display:inline-block}details{padding:12px;border-bottom:1px solid var(--line)}summary{cursor:pointer;font-weight:600}pre{overflow:auto;max-height:340px;font-size:12px}em{color:#7245aa;font-style:normal}@media(max-width:720px){.workspace{grid-template-columns:1fr}aside{border-right:0}.chat{padding:14px}nav{gap:10px}.brand{font-size:1.1rem}.title{gap:12px}footer{flex-wrap:wrap}}
.track{display:grid;grid-template-columns:minmax(100px,28%) 1fr;align-items:center;gap:12px;padding:2px 16px;border-top:1px solid #edf0f5;font:11px/1.6 ui-monospace,monospace;color:#657087}.track div{position:relative;height:8px;background:#f4f5fa;overflow:hidden}.track i{position:absolute;height:100%;background:#b5bee9;border-radius:2px}
.previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.previews figure{margin:0}.previews img{width:100%;display:block;border-radius:4px}.previews figcaption{font-size:10px;color:#687386}
.transport{height:50px;padding:0 clamp(8px,2vw,24px);gap:6px}.transport button{min-width:32px;height:32px}.timecode{font:12px ui-monospace,monospace}.timecode b{font-weight:400}.timecode span{margin-left:8px;color:#687386}.transport output{font:10px system-ui;letter-spacing:1px;color:#687386}.sequence{--label:clamp(66px,15%,150px);padding:12px clamp(10px,2vw,24px)}.sequence small{font:600 10px system-ui;letter-spacing:1px;color:var(--ink)}.scrubber,.sequence .ruler{margin-left:calc(var(--label) + 7px);margin-right:7px}.scrubber{height:44px;display:flex;align-items:center}.scrubber input{margin:0}.sequence .ruler{font-size:10px;margin-bottom:8px}.track-row{display:grid;grid-template-columns:var(--label) 1fr;align-items:center;height:36px;border-top:1px solid #edf0f4;font-size:11px}.track-bar{position:relative;height:24px;margin:0 7px;background:#f4f5fa;border-radius:3px}.keyframe{position:absolute;top:0;width:12px;height:24px;transform:translateX(-50%);padding:0}.keyframe:after{content:"";position:absolute;left:3px;top:8px;width:7px;height:7px;transform:rotate(45deg);border-radius:1px;background:#7887ca}.keyframe:hover:after,.keyframe:focus-visible:after{background:#354bb1}.playhead{position:absolute;left:0;top:-4px;bottom:-4px;width:1px;background:#5264c890;pointer-events:none}

/* Compact conversation and asset docks use the editor's message geometry. */
aside:has(.chat){display:flex;flex-direction:column}
.chat{min-height:100px;height:280px;overflow:auto;overflow-anchor:none;flex:1 1 0;padding:20px 12px;scrollbar-width:thin}
.chat-message{margin-bottom:20px;font-size:13px;line-height:1.65}
.chat-message.user{margin-left:16px;padding:10px 12px;border-radius:10px;background:#f2f4f8}
.chat-message.assistant{padding:0 4px}
.chat-message span,.previews figure>span{font-size:10px;font-weight:650;color:#687386}
.chat-message .prompt,.chat-message .reply{padding:0;margin:5px 0 0;background:transparent;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-message kbd{margin:4px 0 0;font-size:10px}
.previews{display:block;margin:0}
.previews figure{margin:0 0 20px}
.previews figcaption{font-size:13px;color:inherit;margin:5px 0 8px}
.previews img{display:block;width:min(240px,100%);border:1px solid #dee2e6;border-radius:8px}
.reply.thinking{color:#687386;font-size:12px}
.reply.thinking::before{content:"";display:inline-block;width:11px;height:11px;vertical-align:-2px;margin-right:8px;border:2px solid #dce0e9;border-top-color:#5264c8;border-radius:50%;animation:chat-spin 1s linear infinite}
@keyframes chat-spin{to{transform:rotate(360deg)}}
.asset-panel{margin-top:auto;border-top:1px solid var(--line)}
.asset-file{display:flex;align-items:center;gap:10px;padding:10px 16px;font-size:12px;font-weight:500}
.asset-file b{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:#edf2ff;color:#5c7cfa;font-size:9px}
.asset-file small{display:block;font-size:10px;color:#687386}
@media(max-width:720px){.chat{flex:none;height:240px}}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .chat:not([data-chat-stage]) .chat-message,
  .chat[data-chat-stage="prompt"] .chat-message.assistant {
    display: none;
  }
}
@media(prefers-reduced-motion:reduce){.reply.thinking::before{animation:none}}

[data-name="code"] pre {
  max-height: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (min-width: 721px) {
  main:has(> section[data-name]) {
    max-width: 1480px;
    padding-inline: clamp(20px, 3vw, 42px);
  }
  main > section[data-name] {
    width: calc(100% - clamp(24px, 6vw, 84px));
    max-width: 1260px;
  }
  main > section[data-name]:nth-child(even) {
    margin-inline-start: auto;
  }
  [data-name="code"] .workspace {
    grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  }
}
