:root{color-scheme:dark;--ground:#0b0b0b;--surface:#141414;--raised:#242424;--line:#303030;--text:#f4f4f0;--muted:#adadad;--accent:#c5e8df;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;font-size:14px;color:var(--text);background:var(--ground)}*{box-sizing:border-box}body{margin:0}header{height:72px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px}.brand svg{width:28px;height:28px;color:var(--accent)}h1{font-size:23px;font-weight:600;letter-spacing:-.7px;margin:0}.brand span{color:var(--muted);margin-left:8px}.privacy{font-size:12px;color:var(--accent)}main{display:grid;grid-template-columns:minmax(0,1fr) 320px;height:calc(100dvh - 72px)}.workspace{min-width:0;display:flex;flex-direction:column;padding:22px 24px 12px}.stagebar{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted);height:28px}#sourceName{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:60%}#stats{white-space:nowrap;font-variant-numeric:tabular-nums}#stage{position:relative;min-height:220px;flex:1;background:#080a0a;overflow:hidden}#view{width:100%;height:100%;display:block;cursor:grab;touch-action:none}#view:active{cursor:grabbing}#dropHint{display:none;position:absolute;inset:16px;border:2px dashed var(--accent);background:#111e;place-items:center;font-size:24px;pointer-events:none}#stage.dragging #dropHint{display:grid}.transport{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px}.transport>span{font-size:12px;color:var(--muted)}#status{font-size:12px;color:var(--muted);min-height:30px;line-height:1.5}#status.error{color:#ff9ca6}aside{background:var(--surface);overflow-y:auto;padding:6px 22px 24px;border-left:1px solid var(--line)}aside section{padding:20px 0;border-bottom:1px solid var(--line)}h2{font-size:14px;font-weight:600;margin:0 0 16px}p{font-size:11px;color:var(--muted);line-height:1.5;margin:8px 0}.note{font-size:12px;line-height:1.55;margin:12px 0 0}label{display:block;margin:14px 0 0;font-size:12px;color:#d7d7d7}output{float:right;color:var(--muted);font-variant-numeric:tabular-nums}input[type=range]{display:block;width:100%;margin:10px 0 0;accent-color:var(--accent);height:18px;cursor:pointer}select{display:block;width:100%;height:34px;padding:0 8px;margin-top:8px;background:var(--raised);border:1px solid #484848;border-radius:4px;color:var(--text);font:inherit}button{font:inherit;font-size:12px;line-height:1.2;min-height:34px;padding:8px 11px;background:var(--raised);border:1px solid #424242;border-radius:4px;color:var(--text);cursor:pointer;white-space:nowrap}button:hover{background:#353535;border-color:#777}button:active{transform:translateY(1px)}button:disabled{opacity:.65;cursor:default}button.primary{background:#e4ebe7;color:#111;border-color:#e4ebe7;font-weight:600}button[aria-pressed=true]{background:#d1e5dd;color:#111}.buttons{display:flex;flex-wrap:wrap;gap:6px}.source-row{display:flex;gap:12px;align-items:center}#thumbnail{width:58px;height:58px;object-fit:contain;background:#080a0a}.textbutton{border:0;background:none;padding-left:0;color:var(--muted);margin-top:5px}.check{display:flex;align-items:center;gap:8px;min-height:24px;margin-top:8px}input[type=checkbox]{accent-color:var(--accent);margin:0;width:15px;height:15px}.layers{display:grid;grid-template-columns:1fr 1fr;gap:4px}.colour-row{display:flex;gap:18px}.colour-row label{flex:1}input[type=color]{display:block;margin-top:8px;width:100%;height:30px;padding:2px;border:1px solid #484848;border-radius:4px;background:var(--raised)}footer{font-size:11px;line-height:1.8;color:var(--muted);padding-top:20px}a{color:var(--accent)}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}@media(max-width:1000px){.transport{align-items:flex-start;padding-top:12px;flex-direction:column;gap:8px;padding-bottom:12px}.workspace{padding:18px 16px 10px}}@media(max-width:700px){header{height:64px;padding:0 16px}.brand span{display:none}.privacy{font-size:11px}main{height:auto;display:flex;flex-direction:column}.workspace{height:65dvh;min-height:420px;padding:16px}aside{border-left:0;border-top:1px solid var(--line);overflow:visible;padding:0 20px 24px}.transport .buttons{gap:5px}.transport button{padding:8px 10px}.stagebar{font-size:11px}}

@media(max-width:700px){button,select{min-height:44px}label{font-size:14px}.check{min-height:36px}.transport button{font-size:12px}.note{font-size:13px}}
header>div:first-child{display:flex;align-items:center;gap:14px}header p{margin:0;font-size:12px}h1 span{font-weight:400;color:#adadad}header{height:66px}.header-actions{display:flex;align-items:center;gap:8px}.header-actions>span{font-size:12px;color:#adadad;margin-right:12px}main{height:calc(100dvh - 66px);grid-template-columns:minmax(0,1fr) 320px}.stage-head{height:28px;display:flex;justify-content:space-between;color:#adadad;font-size:12px}.stage-head>span:first-child{max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#sceneState{position:absolute;bottom:12px;left:16px;pointer-events:none;font-size:11px;color:#bbb}#stage{background:#080909}.imagebar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 4px}#images{display:flex;gap:8px;min-width:0}.image-slot{display:flex;flex-direction:column;position:relative;max-width:114px}.image-slot button.thumb{border:1px solid #444;background:#171717;padding:4px;display:flex;align-items:center;gap:7px;text-align:left}.image-slot button.thumb[aria-pressed=true]{border-color:#dbede8;background:#242c29;color:#fff}.image-slot canvas{width:36px;height:36px;object-fit:contain}.image-slot .slot-text{font-size:11px;max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remove-image{position:absolute;right:-5px;top:-7px;border-radius:50%;width:18px;min-height:18px;height:18px;font-size:12px;padding:0;background:#333}.transport{min-height:54px}kbd{font-family:inherit;font-size:10px;color:#999;margin-left:4px}details{padding:18px 0;border-bottom:1px solid #303030}summary{font-weight:600;font-size:14px;cursor:pointer;list-style:none}summary:after{content:'+';float:right;color:#aaa}details[open]>summary:after{content:'−'}details .buttons{margin-top:14px}#linePad{width:100%;height:128px;background:#202222;cursor:crosshair;touch-action:none}#flip{margin-top:12px}aside section{padding:18px 0}#status{min-height:27px}.note{font-size:12px}aside p{font-size:12px}#images:empty:before{content:'Add pictures to begin';color:#aaa;font-size:12px}#dropHint{z-index:3}.buttons button{white-space:normal}.transport .buttons button{white-space:nowrap}
@media(max-width:1150px){.transport{flex-direction:column;align-items:flex-start}.header-actions>span{display:none}.transport>span{margin-bottom:4px}.image-slot .slot-text{display:none}.image-slot{width:48px}}
@media(max-width:700px){header{height:62px;padding:0 14px}header p{display:none}h1{font-size:19px}.header-actions button{font-size:11px;padding:6px;min-height:32px}main{height:auto}.workspace{height:78dvh;min-height:510px;padding:14px}.transport .buttons{gap:5px}.transport button{font-size:11px;padding:8px;min-height:36px}kbd{display:none}.image-slot canvas{width:32px;height:32px}.image-slot{width:43px}#images{gap:6px}.remove-image{min-height:18px}#choose{min-height:38px;font-size:12px}.stage-head{font-size:11px}#stats{font-size:10px}aside{padding:0 20px 20px}.stage-head>span:first-child{max-width:65%}}

#videoExport{scroll-margin-top:16px}#videoProgress{width:100%;height:8px;margin-top:16px;accent-color:var(--accent)}#videoResult{width:100%;max-height:190px;margin:8px 0;background:#080909}.download-link{display:block;border:1px solid var(--accent);padding:12px;border-radius:4px;text-align:center;font-weight:600;margin-top:8px}.download-link[hidden],video[hidden]{display:none}.ai-controls{margin-top:14px}.ai-controls button{margin:4px 3px 0 0}#aiStatus,#videoStatus{min-height:36px}header>div:first-child{gap:12px}h1{font-size:20px}header p{display:none}@media(max-width:850px){.header-actions #paperButton,.header-actions #fullscreen{display:none}}@media(max-width:700px){h1{font-size:16px;max-width:180px}.header-actions #openVideo{min-height:40px;font-size:12px}header{gap:8px}.workspace{min-height:560px}}

.world-return{color:inherit;font-size:12px;text-decoration:underline;text-underline-offset:4px;padding:10px 4px;display:inline-block;min-height:44px}.world-return:focus-visible{outline:2px solid currentColor;outline-offset:3px}

#exportAuth{width:min(480px,calc(100% - 32px));max-height:90dvh;overflow:auto;padding:26px;border:1px solid #52665d;border-radius:12px;background:#111c18;color:#edf0e7}#exportAuth::backdrop{background:#000b}#exportAuth p{line-height:1.6}#exportAuth h2{font-size:1.4rem}.particle-sign-in main{display:block;max-width:620px;margin:12vh auto;padding:24px}.particle-sign-in #dreamers-account-dialog{color:#eee}
/* Dreamers Particle Motions lockup: identical proportions to the Threshold
   oval, so the arriving lockup can scale straight into this place. */
h1.pm-lockup{--w:132px;display:inline-flex;flex-direction:column;align-items:center;gap:calc(var(--w)*.045);width:var(--w);max-width:none;margin:0;font:600 calc(var(--w)*.064)/1 "Helvetica Neue",Arial,sans-serif;letter-spacing:.2em;color:#e9ecdf;white-space:nowrap}
h1.pm-lockup img{display:block;width:100%;height:auto}
h1.pm-lockup span{display:block;margin-right:-.2em;font-weight:500;color:#e9ecdf}
@media(max-width:700px){h1.pm-lockup{--w:112px;font-size:calc(var(--w)*.064);max-width:none}}
html.pm-arriving::after{content:"";position:fixed;inset:0;z-index:1000;background:#000;pointer-events:none;transition:opacity .95s cubic-bezier(.4,0,.2,1) .18s}
html.pm-arriving.pm-arrival-reveal::after{opacity:0}
html.pm-arriving header .pm-lockup{visibility:hidden}
.pm-flyer{position:fixed!important;left:0;top:0;z-index:1001;margin:0;pointer-events:none;transform-origin:50% 50%;will-change:transform,opacity;visibility:visible!important}
html.pm-returning::after{content:"";position:fixed;inset:0;z-index:1000;background:#080808;pointer-events:none;opacity:0;transition:opacity 1.05s cubic-bezier(.4,0,.2,1)}
html.pm-returning.pm-return-cover::after{opacity:1}
.pm-return-skip{position:fixed;right:20px;bottom:20px;z-index:1002;background:#111;color:#eee;border:1px solid #aaa;border-radius:24px;padding:12px 18px;min-height:44px}
