:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#dcecf1;background:#081820;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,.button,.upload{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 15px;border:1px solid #3c626e;border-radius:10px;background:#17323e;color:#e2f4f8;cursor:pointer;text-decoration:none;gap:8px}button:hover,.button:hover{background:#234956}button:disabled{opacity:.45;cursor:wait}.primary{background:#62d4c8;color:#062e32;border-color:#62d4c8;font-weight:700}.primary:hover{background:#8ee5db}header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 4vw;border-bottom:1px solid #28414b;position:sticky;top:0;z-index:5;background:#081820f5}.brand{font-size:24px;font-weight:800;letter-spacing:2px;color:#7ce0d3;text-decoration:none}.brand span{font-size:15px;color:#c6d6dc;letter-spacing:0}nav{display:flex;gap:6px}nav button{border-color:transparent;background:transparent}nav button.active{background:#234653;border-color:#427983}#connection{font-size:12px;color:#83cebe}main{max-width:1440px;margin:auto;padding:28px 4vw}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:12px 0 30px}.eyebrow{font-size:11px;color:#7ce0d3;letter-spacing:2px}h1{font-size:clamp(26px,3.5vw,42px);font-weight:600;margin:10px 0}p{line-height:1.7;color:#9fb8c4}h2{font-size:17px;margin:0}small{color:#8be0d1}.workspace{display:grid;grid-template-columns:320px 1fr;gap:24px}.media-panel,.edit-panel{background:#102731;border:1px solid #25454f;border-radius:16px;padding:18px;min-width:0}.section-title{display:flex;align-items:center;gap:8px;justify-content:space-between}.section-title button,.section-title .button{font-size:12px;padding:6px 10px}.hint{font-size:12px}.clips{max-height:620px;overflow:auto;display:grid;gap:10px}.clip{border:1px solid #31505c;border-radius:10px;padding:12px;cursor:pointer;overflow:hidden}.clip.active{border-color:#6fddd0;background:#193c46}.clip strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.clip small{display:block;margin:6px 0;color:#a0bbc7}.clip button{min-height:38px;padding:4px 15px;margin-right:6px}.empty{padding:50px 5px;text-align:center;color:#b9cfd6;line-height:2}.empty span{font-size:12px;color:#71939e}#previewWrap{background:#061219;position:relative;border-radius:10px;overflow:hidden;aspect-ratio:16/9;display:grid;place-items:center}video,#photoPreview{max-width:100%;max-height:100%}#preview{width:100%;height:100%;object-fit:contain}#placeholder{color:#7896a3;position:absolute;pointer-events:none}form{margin-top:18px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:15px 0}label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#b5cbd3}label.check{flex-direction:row;align-items:center}input:not([type=checkbox]):not([type=range]),select{width:100%;border:1px solid #41606b;border-radius:7px;padding:10px;background:#091f29;color:#e7f3f6;min-height:44px}input[type=range]{min-height:36px;accent-color:#6bdfcb}input[type=checkbox]{width:20px;height:20px}input[type=file]{display:none!important}details{border-top:1px solid #294752;padding:14px 0}summary{cursor:pointer;min-height:30px;color:#bbdce3}#cuts button{margin:4px}.export-bar{border:1px solid #355a65;border-radius:14px;margin-top:24px;padding:20px;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center}.export-bar>div{display:flex;gap:14px;align-items:center}.export-bar p{flex-basis:100%;margin:0;font-size:13px;white-space:pre-line}progress{width:100%;accent-color:#76dacd}.actions{display:flex;gap:10px;flex-wrap:wrap}#result{padding:24px 0}#resultVideo{display:block;width:100%;max-height:450px;margin:15px 0}.module-bar{display:flex;gap:15px;align-items:center;flex-wrap:wrap}iframe{border:0;width:100%;height:calc(100dvh - 190px);min-height:480px}#packs{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:24px 0}.pack{border:1px solid #335461;border-radius:14px;padding:22px}.pack p{font-size:13px}.pack .ready{color:#85dbc4}a{color:#8dddcf}[hidden]{display:none!important}@media(max-width:800px){header{flex-wrap:wrap;padding:10px 14px;gap:8px}nav{order:3;flex-basis:100%;display:grid;grid-template-columns:1fr 1.4fr 1fr}nav button{font-size:12px;padding:8px}main{padding:20px 14px}.intro{display:block;margin-bottom:22px}.intro .upload{width:100%;margin-top:10px}.workspace{grid-template-columns:1fr;gap:16px}.clips{max-height:240px}.media-panel,.edit-panel{padding:14px}.export-bar{padding:14px}.export-bar>div{width:100%;justify-content:space-between;flex-wrap:wrap}.export-bar button{flex:1}.section-title h2{max-width:55%;overflow:hidden;text-overflow:ellipsis}.brand{font-size:21px}.hint{line-height:1.7}iframe{min-height:440px;height:70dvh}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

#welcome{min-height:calc(100dvh - 100px);display:grid;place-items:center}.welcome-card{max-width:620px;padding:clamp(24px,5vw,44px);border:1px solid #274c60;border-radius:20px;background:linear-gradient(140deg,#0d2c38,#10202a)}.welcome-card h1{font-size:clamp(28px,4vw,38px)}#explore{max-width:none;padding:0}#explore>.hint{margin:4px 16px}#explore .module-bar{padding:4px 16px}#explore iframe{display:block;height:calc(100dvh - 180px)}@media(max-width:800px){nav{grid-template-columns:1fr 1fr}}

#explore{padding:0;max-width:none}#explore iframe{display:block;width:100%;height:calc(100dvh - var(--app-header-height,80px));min-height:0}

/* Creation controls precede source upload, with wrapping on small screens. */
.media-upload{margin:16px 0 24px}.export-bar>div{flex-wrap:wrap}.export-bar{margin-top:12px}.intro{margin-bottom:12px}@media(max-width:800px){.media-upload .upload{width:100%}}

#processingDetail{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}#processingClip{color:#dcecf1}#processingPercent{color:#7ce0d3;font-variant-numeric:tabular-nums}

/* Mobile home supplies its own navigation; keep the video workbench navigation. */
html.mobile-explore body > header{display:none}
html.mobile-explore{--app-header-height:0px!important}
html.mobile-explore #unity{height:100dvh}
