/* The import screen and code studio share one dark work surface. */
body{background:radial-gradient(ellipse at 78% 6%,#2a2349 0,transparent 42rem),radial-gradient(ellipse at 4% 60%,#172d30 0,transparent 37rem),#111219;color:#f1f0f6}
header{background:#13141bd9;border-bottom:1px solid #ffffff1a}
nav.shell,main.shell{max-width:1550px}nav.shell{min-height:58px}
#intake{max-width:1220px;margin:clamp(24px,6vh,85px) auto 25px}
.intro-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:clamp(30px,6vw,100px);align-items:center}
#intake h1{font-size:clamp(2.5rem,4.8vw,5rem);font-weight:720;letter-spacing:-.065em;line-height:1.13}
#intake .intro-text{max-width:39em;color:#c4c6d4}
#dropzone{padding:clamp(16px,2vw,26px);background:linear-gradient(125deg,#252933eb,#212129ee);border:1px solid #64777e;box-shadow:0 26px 60px #080a144d,inset 0 1px #c7fffb26}
#dropzone:focus-within,#dropzone.dragging{border-color:#a5ded9}
#dropzone>label{font-size:1.05rem}
#source-input{font: .94rem/1.6 ui-monospace,monospace;color:#d9eeeb;border-color:#4c5260;outline-offset:2px}
.pick.primary{background:#b1eadf;color:#113c37;border-color:#d1faee}
#entry-library{max-width:1220px}#intake .privacy{line-height:1.6}
#sample.demo-orbit{position:relative;display:grid;align-content:center;isolation:isolate;min-height:340px;width:100%;aspect-ratio:1.1;border:1px solid #585065;border-radius:25px;padding:12%;text-align:left;background:radial-gradient(ellipse at 55% 56%,#6a608466,transparent 62%),radial-gradient(ellipse at 0 100%,#365255 0,transparent 55%),linear-gradient(140deg,#292536,#1c1b29 70%);box-shadow:0 24px 70px #0004,inset 0 1px #ffffff20;overflow:hidden;perspective:900px}
.demo-orbit::before{content:"";position:absolute;z-index:-1;inset:0;background-image:radial-gradient(#d5ecf337 1px,transparent 1px);background-size:17px 17px;mask-image:linear-gradient(145deg,black,transparent 86%)}
.orbit-window{display:block;width:100%;max-width:320px;justify-self:center;border:1px solid #eee5ff7a;border-radius:13px;background:linear-gradient(130deg,#3b3a4a,#262632);box-shadow:8px 19px 0 -8px #4f4a62,14px 32px 0 -14px #22222b,4px 32px 36px #0007;transform:rotateY(-8deg) rotateX(5deg) rotateZ(-3deg);transition:transform .35s ease}
.demo-orbit:hover .orbit-window,.demo-orbit:focus-visible .orbit-window{transform:rotateY(-2deg) rotateX(1deg) rotateZ(-1deg)}
.window-bar{display:flex;align-items:center;gap:5px;padding:12px;border-bottom:1px solid #ffffff26;font:11px ui-monospace,monospace;color:#cfcbdc}
.window-bar i{width:5px;height:5px;border-radius:50%;background:#9793a4}.window-bar span{margin-left:auto}
.orbit-body{display:grid;padding:clamp(18px,2.3vw,32px);gap:9px}.orbit-app{font:600 .66rem ui-monospace,monospace;letter-spacing:.15em;color:#aee2c5}.orbit-body strong{font-size:clamp(1.45rem,2vw,2rem);letter-spacing:-.04em;color:white}
.demo-line{height:6px;width:65%;background:#85849757;border-radius:12px}
.orbit-key{justify-self:start;display:flex;align-items:center;gap:18px;padding:7px 14px;font-size:.86rem;color:#e9fff9;background:#24433b;border:1px solid #a3ebd3;border-radius:7px;box-shadow:0 0 0 3px #cba7ff40,0 0 22px #b38aec66;margin-top:12px}
.orbit-action{position:absolute;bottom:15px;left:18px;right:18px;display:flex;justify-content:space-between;color:#f0eafa;font-size:.91rem}
#button-studio{margin:16px 0 40px}
.bs-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px}
.bs-heading h2{font-size:clamp(1.25rem,2vw,1.85rem);letter-spacing:-.045em}
#bs-context,#bs-search,#bs-hint,.bs-play{font-size:.87rem;color:#c2becf}
#bs-context{margin-top:4px}
#bs-directions{display:flex;flex-wrap:wrap;gap:6px}
#bs-directions button,.bs-export button,#bs-replay{border:1px solid #5c5568;background:#24232f;color:#ded9e9;border-radius:8px;padding:7px 12px;font-size:.87rem;transition:background .15s}
#bs-directions button[aria-pressed=true]{background:#d4c2ff;border-color:#e1d4ff;color:#302342}
.bs-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(238px,.69fr) minmax(0,1fr);gap:14px;align-items:start}
.bs-pane{min-width:0;border:1px solid #514d5c;border-radius:17px;background:linear-gradient(145deg,#262532,#1a1b23);overflow:hidden;box-shadow:0 12px 35px #0003}
.bs-pane h3{margin:0;padding:14px 16px;display:flex;align-items:center;gap:9px;line-height:1.45;font-size:.97rem;border-bottom:1px solid #ffffff15}
.bs-pane h3::before{content:"";width:8px;height:8px;border-radius:50%;background:#b6ceca}
.bs-after h3::before{background:#cab2ff;box-shadow:0 0 10px #bf8cff88}.bs-middle h3::before{background:#d6c5a9}
.bs-stage{display:grid;align-items:center;min-height:clamp(275px,42vh,480px);padding:14px;background:radial-gradient(#a3b5bb25 1px,transparent 1px) 0 0/14px 14px,linear-gradient(135deg,#252832,#161820)}
.bs-after .bs-stage{background:radial-gradient(#c0a9d329 1px,transparent 1px) 0 0/14px 14px,linear-gradient(135deg,#30293e,#1a1924)}
.bs-screen{min-width:0;max-height:65vh;overflow:auto;border:1px solid #ffffff40;border-radius:8px;box-shadow:0 12px 30px #0005;background:white}
#bs-examples{display:grid;gap:8px;padding:10px;max-height:53vh;overflow:auto;scrollbar-width:thin;overflow-anchor:none}
.bs-card{padding:8px;border-radius:10px;background:#2f2d39;border:1px solid #494553}
.bs-card:has([aria-pressed=true]){border-color:#c3a6ff;box-shadow:inset 3px 0 #bea0fc;background:#353042}
.bs-choice{display:flex;align-items:center;gap:11px;border:0;background:transparent;color:inherit;width:100%;text-align:left;padding:2px 2px 6px}
.bs-choice strong,.bs-choice small{display:block}.bs-choice strong{font-size:.93rem}.bs-choice small{color:#c5bdca;font-size:.75rem}
.bs-card a{display:block;width:fit-content;font-size:.76rem;line-height:1.5;color:#d6c8ea;text-underline-offset:3px;overflow-wrap:anywhere}
.motion-icon{width:50px;height:36px;flex:none;border-radius:6px;background:#1b1a22;display:grid;place-items:center}
.motion-icon i{display:block;width:25px;height:13px;border-radius:4px;background:#534768;border:1px solid #b196ce}
.effect-glow i{box-shadow:0 0 0 2px #a999d6,0 0 10px #c09fff}.effect-ring i{outline:2px solid #c3b4f3;outline-offset:2px}
.effect-press i{transform:scale(.86);box-shadow:inset 0 2px 3px #090811}.effect-lift i{transform:translateY(-2px);box-shadow:0 4px 0 #8d799d}
.effect-focus i{outline:2px solid #ffbf47;outline-offset:2px}.effect-underline i{border-bottom:3px solid #ffe8a9}
.bs-card:hover .effect-press i{transform:scale(.98)}.bs-card:hover .effect-lift i{transform:translateY(0)}
.bs-play{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;gap:8px;min-height:38px}.bs-play span{overflow-wrap:anywhere}
#bs-search{padding:0 12px 12px;font-size:.78rem}#bs-hint{margin:12px 0;color:#d4e5df}
#bs-output{border:1px solid #52465f;border-radius:12px;background:#21202a;overflow:hidden}
#bs-output summary{padding:14px 16px;color:#e7dbf5;font-weight:600}#bs-patch-title{margin-left:9px;font: .79rem ui-monospace,monospace;color:#bdb2c9;overflow-wrap:anywhere}
.bs-export{padding:0 14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}#bs-copy-state{font-size:.8rem}
#bs-output pre{max-height:340px;overflow:auto;margin:12px;padding:14px;border-radius:8px;background:#15151c;color:#c7e4d9;font: .85rem/1.6 ui-monospace,monospace}
@media(max-width:900px){.intro-grid{grid-template-columns:minmax(0,1.2fr) minmax(235px,.8fr);gap:22px}#sample.demo-orbit{min-height:290px}.bs-grid{grid-template-columns:1fr 1fr}.bs-middle{grid-column:1/-1;grid-row:1}#bs-examples{grid-template-columns:repeat(2,minmax(0,1fr));max-height:32vh}}
@media(max-width:620px){.intro-grid,.bs-grid{grid-template-columns:minmax(0,1fr)}#sample.demo-orbit{min-height:0;aspect-ratio:auto;padding:15px 18px}.demo-orbit .orbit-window{display:none}.orbit-action{position:static;width:100%}.bs-stage{min-height:160px}.bs-heading{align-items:start}.bs-middle{grid-column:auto}#bs-examples{grid-template-columns:minmax(0,1fr)}#bs-directions{gap:4px}#bs-directions button{padding:7px 9px}.bs-pane h3{padding:9px 12px}#intake{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.orbit-window,#bs-directions button{transition:none}}
#bs-hint{display:flex;align-items:center;gap:9px;margin:4px 0 12px;color:#d8eae8}#bs-hint::before{content:"";flex:none;width:14px;height:2px;background:#9dd8d1}
[data-compatible]{cursor:crosshair}
#bs-popular{display:block;width:fit-content;margin:0 12px 12px;color:#dacbf5;font-size:.79rem}
#bs-pattern-catalog{margin-top:12px;padding:12px 16px;border:1px solid #52465f;border-radius:12px;background:#21202a}
#bs-pattern-catalog label{display:inline-flex;gap:10px;align-items:center;margin:12px 12px 0 0}
#bs-pattern-query{max-width:50vw;padding:4px 8px;border:1px solid #5c5568;border-radius:6px;background:#16161b}
#bs-pattern-count{font-size:.83rem;color:#c2becf}
#bs-patterns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:8px;max-height:420px;overflow:auto;padding:0;list-style:none}
#bs-patterns li{padding:8px 10px;background:#302d39;border-radius:7px;display:grid;gap:3px}
#bs-patterns a,#bs-patterns button{font-size:.8rem;color:#e2d4fc;justify-self:start}
#bs-patterns button{background:#2b2536;border:1px solid #756588;border-radius:6px}
.motion-icon:is(.effect-prism,.effect-spectrum,.effect-card-edge) i{box-shadow:-3px 0 7px #ea8ba6,3px 0 7px #74c9ee}
.bs-handoff{display:grid;gap:5px;padding:0 12px 12px}
#bs-copy-brief{justify-self:start;padding:7px 12px;font-size:.88rem;font-weight:680;color:#1c302e;background:#b1eadf;border:1px solid #d1faee;border-radius:8px}
#bs-brief-status:not(:empty){font-size:.79rem;color:#d4e5df}
#bs-source,#bs-reference-extra{padding:8px 12px 12px;margin:0;border-top:1px solid #ffffff15}
#bs-source-location{display:inline-block;color:#c2becf;overflow-wrap:anywhere;font: .78rem ui-monospace,monospace}
#bs-source pre{max-height:9rem;overflow:auto;margin:8px 0 0;padding:9px 10px;border-radius:7px;background:#13141a;color:#d3ede1;font: .8rem/1.5 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
#bs-reference-form{display:grid;gap:6px;margin:8px 0;font-size:.82rem}
#bs-reference-url{display:block;width:100%;padding:5px 7px;margin:3px 0 0;border:1px solid #625b71;border-radius:6px;background:#16161d}
#bs-reference-form button,#bs-reference-remove{justify-self:start;font-size:.81rem;padding:3px 7px}
#bs-reference-status,#bs-reference-saved{font-size:.79rem;overflow-wrap:anywhere;color:#dacbf5}
.import-instructions{margin:-8px 0 12px;color:#c2c8d6;font-size:.84rem}
.bs-view-reference{margin:0 2px 2px;padding:3px 7px;border:1px solid #736584;border-radius:6px;background:#292334;color:#eee2ff;font-size:.8rem}
#bs-reference-dialog{max-width:min(95vw,640px);width:100%;max-height:88vh;overflow:auto;padding:18px;border:1px solid #716984;border-radius:16px;background:#242231;color:#f3eff7;box-shadow:0 20px 65px #0009}
#bs-reference-dialog::backdrop{background:#0c0a15a8}
.reference-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
#bs-dialog-source{font-size:.83rem;color:#d7c7e7}
#bs-dialog-content{display:grid;gap:8px;font-size:.91rem}
.reference-demo{min-height:100px;display:grid;align-items:center;background:#191723;border:1px solid #514761;border-radius:9px}
#bs-dialog-content iframe{width:100%;height:min(460px,58vh);border:0;border-radius:8px;background:#15141c}
#bs-dialog-apply{margin-top:14px;background:#b1eadf;color:#1c302e;font-weight:680}
.reference-search-result{text-align:left}

#live-studio{margin:1rem 0 3rem}
.live-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,.37fr) minmax(0,1fr);align-items:start;gap:12px}
.live-grid section{min-width:0;padding:12px;border:1px solid #434656;border-radius:12px;background:#191c26}
.live-grid h3{margin:0 0 .7rem}
.live-grid p,#live-status,#live-resources{font-size:.88rem;color:#c3cbd3}
.live-grid iframe{display:block;width:100%;height:clamp(360px,66vh,860px);border:0;border-radius:6px;background:white}
#live-refs>div{display:grid;gap:2px;margin-bottom:9px}
#live-refs button{text-align:left;white-space:normal}
#live-refs [aria-pressed=true]{outline:2px solid #a0e6da}
#live-refs .live-reference{color:#b1e3d8;background:transparent;border:0;font-size:.78rem;text-decoration:underline;padding:.3rem}
#live-resources:empty,#live-status:empty{display:none}
#live-code pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:850px){.live-grid{grid-template-columns:1fr}.live-grid iframe{height:54vh}}
