/* ImClip editor: structural import screen and calm workbench. Never changes canvas pixels. */
body[data-depth-editor]{--ic-editor-ease:cubic-bezier(.16,1,.3,1)}
body[data-depth-editor] #home{background:var(--bg);padding:42px 28px 54px}
body[data-depth-editor] #home .hw{max-width:1120px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:26px 40px;text-align:left}
body[data-depth-editor] .ic-import-heading{grid-column:1/-1;padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:6px}
body[data-depth-editor] #home h1{font-size:clamp(34px,4.6vw,52px);line-height:1.06;letter-spacing:-.03em;margin:0 0 18px}
body[data-depth-editor] #home h1 br{display:initial}
body[data-depth-editor] #home .lead{font-size:18px;line-height:1.6;max-width:63ch;margin:0 0 12px}
body[data-depth-editor] .ic-import-source{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:28px;align-self:start}
body[data-depth-editor] #home .bigimp{max-width:none;width:100%;min-height:100px;border-radius:12px;box-shadow:none;margin:0;font-size:18px}
body[data-depth-editor] #home .bigimp small{font-size:13px;line-height:1.5}
body[data-depth-editor] #home .bigimp{display:flex;align-items:center;gap:14px;padding:18px;text-align:left}
body[data-depth-editor] #home .bigimp .ic{flex:0 0 44px;width:44px;height:44px;border-radius:10px;margin:0;padding:10px}
body[data-depth-editor] #home .bigimp .ic svg{width:24px;height:24px}
body[data-depth-editor] #home .bigimp>span:last-child{flex:1;min-width:0;text-align:left}
body[data-depth-editor] #home .bigimp b{display:block;font-size:18px;line-height:1.35;margin-bottom:6px}
body[data-depth-editor] #home .drop{margin:14px 0;border:1px dashed var(--line);border-radius:9px;background:var(--bg);min-height:58px;display:grid;place-items:center}
body[data-depth-editor] #hSample{font-size:13px;line-height:1.5;min-height:44px;width:100%;margin:0 0 18px!important;text-align:center}
body[data-depth-editor] #home .linkf{margin-top:22px;padding-top:20px;border-top:1px solid var(--line);display:flex;gap:8px}
body[data-depth-editor] #home .linkf input{min-width:0;min-height:48px;font-size:16px;border-radius:9px}
body[data-depth-editor] #home .linkhint{font-size:12px;line-height:1.65;text-align:left;margin:12px 0 20px}
body[data-depth-editor] #home .multibnr{border-radius:10px;font-size:14px}
body[data-depth-editor] #home .hsec{font-size:12px;text-align:left;margin-top:24px}
body[data-depth-editor] #home .plats{margin-top:12px;gap:12px}
body[data-depth-editor] #home .plats>div{border-radius:10px;background:var(--bg);padding:18px}
body[data-depth-editor] .ic-import-models{min-width:0;padding-top:0}
body[data-depth-editor] #hTplWrap{margin-top:0}
body[data-depth-editor] #hTplWrap h3,body[data-depth-editor] #hBuiltWrap h3{margin:0 0 12px;font-size:21px;line-height:1.2}
body[data-depth-editor] #hBuiltWrap{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
body[data-depth-editor] #hBuiltWrap>p{font-size:14px;line-height:1.65;color:var(--mut);max-width:50ch}
body[data-depth-editor] #home .how,body[data-depth-editor] #home .hlinks,body[data-depth-editor] #home .credit{grid-column:1/-1}
body[data-depth-editor] #home .how{justify-content:flex-start;padding-top:20px;border-top:1px solid var(--line);gap:12px 24px;margin-top:0}
body[data-depth-editor] #home .hlinks{display:flex;gap:8px 20px;flex-wrap:wrap;justify-content:flex-start}
body[data-depth-editor] #home .credit{text-align:left;margin:0;color:var(--mut);font-size:12px}
body[data-depth-editor] #app>header{border-bottom:1px solid var(--line);box-shadow:0 3px 12px #0001}
body[data-depth-editor] #nav{border-top:1px solid var(--line)}
body[data-depth-editor] #nav button{font-size:13px;font-weight:600;border-radius:10px;transition:background-color .18s,border-color .18s}
body[data-depth-editor] #nav button:is(.on,.sel,[aria-selected=true]){box-shadow:inset 0 0 0 1px var(--line)}
body[data-depth-editor] #panel{background:var(--panel)}
body[data-depth-editor] #panel #shRow{padding:14px 18px;border-bottom:1px solid var(--line);background:var(--panel);margin-bottom:0}
body[data-depth-editor] #pbody{padding:20px}
body[data-depth-editor] #panel h2{font:700 23px/1.15 var(--font-display);letter-spacing:-.02em;margin-bottom:12px}
body[data-depth-editor] #panel h3{font-size:16px;line-height:1.3;margin-block:24px 12px}
body[data-depth-editor] #panel .sub{font-size:13px;line-height:1.65;margin-bottom:20px}
body[data-depth-editor] #panel .pick{border:1px solid var(--line);padding:10px;background:var(--card);border-radius:10px;box-shadow:none;font-size:13px;line-height:1.4;transition:border-color .18s,background-color .18s}
body[data-depth-editor] #panel .pick.on{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc);color:var(--text)}
body[data-depth-editor] #panel .pick:hover{transform:none}
body[data-depth-editor] #panel .pick canvas{border-radius:6px}
body[data-depth-editor] #panel label{font-size:13px;line-height:1.5}
body[data-depth-editor] #panel input:not([type=range]):not([type=color]):not([type=checkbox]),body[data-depth-editor] #panel select{min-height:44px;background:var(--bg);border:1px solid var(--line);border-radius:8px;font-size:16px}
body[data-depth-editor] #panel textarea{border-radius:8px;font-size:16px;line-height:1.6;padding:12px;background:var(--bg)}
body[data-depth-editor] #panel .row{gap:10px}
body[data-depth-editor] #panel button{font-size:13px;line-height:1.4}
body[data-depth-editor] #transport{border-top:1px solid var(--line)}
body[data-depth-editor] #transport button{min-width:44px}
body[data-depth-editor] #tTime{font-size:12px;font-variant-numeric:tabular-nums}
body[data-depth-editor] #selBar{border-top:1px solid var(--line);font-size:12px}
body[data-depth-editor] #result .rs-top{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}
body[data-depth-editor] #result .rs-top h2{font-size:30px;letter-spacing:-.025em}
body[data-depth-editor] #result .rs-act{gap:10px}
body[data-depth-editor] #result .rs-act button{min-height:48px;border-radius:10px;font-size:15px}
body[data-depth-editor] #result .rs-chips{gap:8px;line-height:1.5}
body[data-depth-editor] :is(button,input,select,textarea):focus-visible{outline:3px solid var(--acc);outline-offset:3px}
body[data-depth-editor] :is(button,.pick){touch-action:manipulation}
@media(max-width:820px){body[data-depth-editor] #home{padding:28px 18px 40px}body[data-depth-editor] #home .hw{grid-template-columns:1fr;gap:24px}body[data-depth-editor] #home h1{font-size:36px}body[data-depth-editor] #home .lead{font-size:17px}body[data-depth-editor] .ic-import-source{padding:20px}body[data-depth-editor] .ic-import-heading{padding-bottom:10px}body[data-depth-editor] #pbody{padding:16px}body[data-depth-editor] #panel h2{font-size:21px}body[data-depth-editor] #nav button{font-size:12px}body[data-depth-editor] #home .how{gap:8px 16px;flex-wrap:wrap}body[data-depth-editor] #home .credit{font-size:11px}body[data-depth-editor] #panel #shRow{padding:10px 16px}}
@media(prefers-reduced-motion:reduce){body[data-depth-editor] #nav button,body[data-depth-editor] #panel .pick{transition:none}}
/* Desktop import: intrinsic label widths must not enlarge the portrait previews.
   Deliberately scoped above the existing mobile breakpoint. */
@media(min-width:821px){
 body[data-depth-editor] #hBuilt{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch}
 body[data-depth-editor] #hBuilt .ht{min-width:0;width:100%;max-width:none;align-items:center;justify-content:flex-start;padding:8px;gap:8px}
 body[data-depth-editor] #hBuilt .ht img,body[data-depth-editor] #hBuilt .ht.zero .zimg{flex:none;width:72px;height:128px;max-width:100%;aspect-ratio:9/16;object-fit:contain;align-self:center}
 body[data-depth-editor] #hBuilt .ht>span:last-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;white-space:normal;overflow:hidden;text-overflow:ellipsis;line-height:1.35;min-height:3.9em;width:100%;text-align:left;overflow-wrap:anywhere}
 body[data-depth-editor] #hBuilt .ht .mbadge{font-size:10px;top:5px;left:5px;padding:2px 6px}
 body[data-depth-editor] #hTpl{gap:10px;align-items:flex-start}
 body[data-depth-editor] #hTpl .ht{flex:0 0 86px;min-width:0;width:86px}
 body[data-depth-editor] #hTpl .ht img{flex:none;width:68px;height:121px;object-fit:contain;align-self:center}
 body[data-depth-editor] #hTpl .ht span{max-width:100%}
}
@media(min-width:1200px){body[data-depth-editor] #hBuilt{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Wider desktop workspace; the mobile source order and controls stay intact. */
@media(min-width:821px){
 body[data-depth-editor] #home{padding:32px clamp(24px,3vw,56px) 48px}
 body[data-depth-editor] #home .hw{max-width:1440px;grid-template-columns:minmax(0,1fr);gap:28px}
 body[data-depth-editor] #home h1{font-size:clamp(36px,3.4vw,50px);margin-bottom:12px}
 body[data-depth-editor] #home h1 br{display:none}
 body[data-depth-editor] #home .lead{max-width:80ch;font-size:17px;margin-bottom:0}
 body[data-depth-editor] .ic-import-heading{padding-bottom:24px;margin:0}
 body[data-depth-editor] .ic-import-source{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;padding:24px}
 body[data-depth-editor] .ic-import-upload,body[data-depth-editor] .ic-import-links{min-width:0}
 body[data-depth-editor] #home .linkf{margin-top:0;padding-top:0;border-top:0}
 body[data-depth-editor] #home .linkhint{margin-bottom:14px}
 body[data-depth-editor] #home .hsec{margin-top:16px}
 body[data-depth-editor] #home .plats{margin-top:8px}
 body[data-depth-editor] #home .plats>div{padding:14px}
 body[data-depth-editor] #home .plats .st{margin-block:8px;font-size:13px}
 body[data-depth-editor] #home .resume{margin-top:14px}
 body[data-depth-editor] #home #hProjs{margin-left:0!important;margin-right:0!important}
 body[data-depth-editor] #home #hWeek{text-align:left!important}
 body[data-depth-editor] .ic-import-models{width:100%}
 body[data-depth-editor] #hTplWrap h3{font-size:17px;text-transform:none;letter-spacing:0}
 body[data-depth-editor] #hTpl .ht{flex:0 0 196px;width:196px;display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:12px;padding:10px;text-align:left}
 body[data-depth-editor] #hTpl .ht img{width:54px;height:96px}
 body[data-depth-editor] #hTpl .ht span{white-space:normal;overflow-wrap:anywhere;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
 body[data-depth-editor] #hBuiltWrap>p{max-width:85ch;margin-bottom:16px!important}
 body[data-depth-editor] #hBuilt{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
 body[data-depth-editor] #hBuilt .ht{padding:12px;gap:10px;font-size:13px}
 body[data-depth-editor] #hBuilt .ht img,body[data-depth-editor] #hBuilt .ht.zero .zimg{width:90px;height:160px}
 body[data-depth-editor] #hBuilt .ht>span:last-child{min-height:3.9em;line-height:1.35;text-align:center}
 body[data-depth-editor] #hBuilt .ht .mbadge{top:8px;left:8px;font-size:10px}
}
@media(min-width:1200px){body[data-depth-editor] #hBuilt{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(min-width:1700px){body[data-depth-editor] #hBuilt{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:820px){body[data-depth-editor] .ic-import-upload,body[data-depth-editor] .ic-import-links{display:contents}}

/* One visible boundary; link, help and batch action share the same alignment. */
body[data-depth-editor] #home #hLinkF{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:6px;gap:8px;margin-top:0;box-shadow:none;align-items:center}
body[data-depth-editor] #home #hLinkF:focus-within{border-color:var(--acc);outline:2px solid var(--acc);outline-offset:2px}
body[data-depth-editor] #home #hLinkF input{width:0;flex:1 1 0;min-width:0;min-height:48px;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;padding:10px 12px;color:var(--text)}
body[data-depth-editor] #home #hLinkF input::placeholder{color:var(--mut);opacity:1}
body[data-depth-editor] #home #hLinkF button{min-height:48px;margin:0;border-radius:8px;flex:0 0 auto}
body[data-depth-editor] #home .ic-import-links .linkhint{display:block;text-align:left;justify-content:flex-start;max-width:none;margin:10px 0 14px}
body[data-depth-editor] #home .ic-import-links .multibnr{max-width:none;width:100%;margin:0;text-align:left}
