/* Fixed 393 × 852 design coordinates; only the containing scene scales. */
.link-demo{scroll-margin-top:16px}
.linked-layout{display:grid;grid-template-columns:minmax(0,393px) minmax(210px,1fr);gap:40px;align-items:center;max-width:900px;margin:30px auto 10px}
.editor-preview{width:100%;max-width:393px;aspect-ratio:393/852;position:relative;justify-self:center}
.editor-screen{position:absolute;inset:0 auto auto 0;width:393px;height:852px;transform:scale(var(--editor-scale,1));transform-origin:top left;overflow:hidden;border-radius:40px;background:#141414;box-shadow:0 0 0 1px #ffffff14,0 18px 50px #0003;color:#fafbff;font-family:"PingFang SC",-apple-system,sans-serif;font-size:14px;line-height:1.4}
.editor-chrome{position:absolute;inset:0;pointer-events:none;user-select:none}
.editor-chrome img{display:block;max-width:none;flex:none}
.editor-header{position:absolute;top:54px;left:0;width:393px;height:44px;padding:0 16px 0 6px;display:flex;align-items:center;justify-content:space-between}
.editor-header-left,.editor-header-right{display:flex;align-items:center}
.editor-header-left>span{padding:10px;display:flex}
.editor-header-right{gap:10px}
.editor-resolution{display:flex;align-items:center;gap:4px;padding:7px 10px;border-radius:8px;background:rgba(229,236,255,.1);font-weight:500;line-height:18px}
.editor-export{display:flex;align-items:center;justify-content:center;min-width:64px;height:32px;padding:6px 10px;border-radius:8px;background:#fe2a54;font-weight:500}
.editor-video{position:absolute;top:102px;left:89px;width:214.3125px;height:381px;overflow:hidden}
.editor-video .editor-video-photo{width:214.3125px;height:381px}
.editor-playback{position:absolute;top:483px;left:0;width:393px;height:40px}
.editor-timecode{position:absolute;left:16px;top:12px;font-size:12px;line-height:15.6px;letter-spacing:.1608px}
.editor-timecode>span{color:rgba(229,233,250,.4)}
.editor-play{position:absolute;left:176.5px;top:0;padding:10px}
.editor-playback-actions{position:absolute;right:6px;top:0;display:flex}
.editor-playback-actions>span{position:relative;width:40px;height:40px;padding:10px}
.editor-playback-actions .editor-preview-mode img{position:absolute;left:11.5px;top:12.5px}
.editor-timeline{position:absolute;top:523px;left:0;width:393px;height:329px;background:#1c1c1c;overflow:hidden}
.editor-ruler{position:absolute;top:4px;left:0;width:393px;height:13px;color:rgba(237,240,253,.5);font-size:10px;line-height:13px;letter-spacing:.229px}
.editor-ruler>span{position:absolute;transform:translateX(-50%)}
.editor-ruler>span:nth-of-type(1){left:196px}.editor-ruler>span:nth-of-type(2){left:281px}.editor-ruler>span:nth-of-type(3){left:367.5px}
.editor-ruler>img{position:absolute;top:6px}.editor-ruler>img:nth-of-type(1){left:238px}.editor-ruler>img:nth-of-type(2){left:323px}
.editor-clip{position:absolute;left:198px;top:75px;display:flex;width:200px;height:50px;overflow:hidden}
.editor-clip>img{width:50px;height:50px;object-fit:cover}
.editor-audio{position:absolute;top:131px;left:198px;display:flex;align-items:center;gap:4px;width:206px;height:32px;padding:10px 8px;background:rgba(229,236,255,.1);font-size:10px;line-height:12px;color:rgba(255,255,255,.8);font-weight:500}
.editor-playhead{position:absolute;left:196px;top:37px;width:2px;height:164px;border-radius:2px;background:#fafbff;box-shadow:0 0 3px #0005}
.editor-add-clip{position:absolute;top:82px;left:346px}
.editor-clip-actions{position:absolute;top:78px;left:39px;display:flex;gap:20px}
.editor-clip-actions>div{display:flex;flex-direction:column;align-items:center;gap:3px;width:44px;font-size:10px;line-height:13px;letter-spacing:.229px;font-weight:500}
.editor-clip-action{position:relative;display:block;width:44px;height:44px;padding:12px;border-radius:8px;background:rgba(229,236,255,.1);overflow:hidden}
.editor-cover .editor-cover-photo{position:absolute;left:-72.17%;top:-14.81%;width:172.25%;height:229.51%}
.editor-cover-shade{position:absolute;inset:0;background:#0009}
.editor-cover-icon{position:relative}
.editor-toolbar{position:absolute;top:227px;left:0;display:flex;padding:0 4px;height:68px}
.editor-tool{display:flex;flex:none;flex-direction:column;align-items:center;gap:4px;width:58px;padding:15px 8px 12px}
.editor-tool>span{font-size:10px;font-weight:500;line-height:13px;color:rgba(255,255,255,.8);white-space:nowrap}
.editor-home-indicator{position:absolute;left:130px;bottom:8px;width:134px;height:5px;border-radius:100px;background:#fff}
.editor-agent{position:absolute;left:16px;top:395px;z-index:1}
/* The artwork stays in the same 24px slot while only the glass shell grows. */
.opening-pill{--analysis-glass:0;width:40px;overflow:visible}
.opening-pill::before,.opening-pill::after{opacity:var(--analysis-glass)}
.opening-pill .default-orb{position:absolute;left:-.5px;top:-.5px;max-width:none;pointer-events:none}
.opening-pill .orb-morph{position:absolute;inset:-.5px;border:20px solid transparent;border-image-source:url('editor-assets/default-analysis/orb-circle.svg');border-image-slice:20 fill;border-image-width:20px;border-image-repeat:stretch;pointer-events:none;opacity:0;visibility:hidden}
.opening-pill .default-logo{position:absolute;inset:0;overflow:hidden;mix-blend-mode:screen}
.opening-pill .default-logo>img{left:-1px;top:1px;width:24.709px;height:22px;object-fit:cover}
.opening-pill .color-blend{mix-blend-mode:color;opacity:.2}
.opening-pill .color-multiply{mix-blend-mode:multiply;opacity:.2}
.opening-pill .color-detail{position:absolute;left:.37px;top:1.95px;width:24.504px;height:20.091px;overflow:hidden}
.opening-pill .color-detail img{left:0;top:0;width:89.85%;height:100%}
.opening-pill .motion-logo{opacity:0;visibility:hidden;mix-blend-mode:screen}
.opening-pill .status,.opening-pill .arrow{opacity:0;visibility:hidden}
.linked-controls{min-width:0}
.linked-controls .flow-steps{display:flex;flex-direction:column;gap:20px;margin:0 0 36px}
.linked-controls .flow-steps li{border-top:0;border-left:2px solid #383f49;padding:2px 0 2px 16px}
.linked-controls .flow-steps li[aria-current=step]{border-color:#a4c6ff}
.linked-controls .flow-steps li:last-child[aria-current=step]{border-color:#9edbce}
.linked-controls .timeline{justify-content:flex-start;margin-top:24px}
.linked-controls .linked-progress{flex-direction:column;align-items:stretch;gap:10px;margin-top:16px}
.linked-controls .linked-progress input{margin:0;min-height:22px}
.linked-controls .linked-progress output{align-self:flex-end}
.linked-controls .phase-label{min-height:40px;line-height:1.7}
.editor-reference{font-size:12px;color:#8993a4;line-height:1.7;margin:24px 0 0}
.editor-reference a{color:inherit}
@media(max-width:900px){.linked-layout{gap:24px}}
@media(max-width:740px){.linked-layout{grid-template-columns:minmax(0,1fr);gap:28px}.linked-controls{width:100%;max-width:393px;justify-self:center}.linked-controls .flow-steps{flex-direction:row;gap:12px;margin-bottom:20px}.linked-controls .flow-steps li{border-left:0;border-top:2px solid #383f49;padding:10px 0 0}.linked-controls .flow-steps strong{font-size:13px}.linked-controls .flow-steps span{font-size:11px}.linked-controls .phase-label{min-height:22px}.editor-reference{margin-top:16px}}
@media(max-width:740px){
  .link-demo.card{padding:18px 16px}
  .link-demo .badge{margin-bottom:8px}
  .link-demo h2{font-size:18px}
  .link-demo .detail{font-size:12px;line-height:1.6;margin:0}
  .linked-layout{margin:16px auto 0;gap:16px}
  .linked-controls .flow-steps{display:none}
  .linked-controls .timeline{margin:0;gap:8px}
  .linked-controls .linked-progress{margin-top:4px;gap:4px}
  .linked-controls .phase-label{min-height:20px;margin:8px 0}
  .editor-reference{margin:8px 0 0}
}
