header{gap:14px}.brand{color:var(--text);background:none;border:0;font:inherit;font-weight:900;cursor:pointer;padding:0;white-space:nowrap}.nav{overflow-x:auto;min-width:0}.nav button{white-space:nowrap}.app:not(:has(#studioPage.active)) header>.actions{display:none}.tool-hub,.matchcut{max-width:1300px;margin:auto;padding:40px 26px}.hub-eyebrow,.cut-eyebrow{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--accent);margin-bottom:14px}.hub-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:30px}.hub-head h1{font-size:clamp(36px,5vw,66px);line-height:1.02;letter-spacing:-2.5px;margin:0;max-width:750px}.hub-head p{font-size:16px;color:var(--muted);max-width:280px;line-height:1.6;margin:0}.hub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.tool-card{border:1px solid #2c3829;border-radius:20px;overflow:hidden;background:#0e140d;display:flex;flex-direction:column;min-width:0}.tool-card.featured{grid-column:span 2;display:grid;grid-template-columns:1fr 1fr;background:#1a2913}.tool-card-art{height:170px;overflow:hidden;background:#182114;position:relative;display:grid;place-items:center}.tool-card-art img{width:100%;height:100%;object-fit:cover}.tool-card.featured .tool-card-art{height:100%;min-height:300px;order:2}.tool-card-content{padding:24px;display:flex;flex-direction:column;align-items:start;flex:1}.tool-card small{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:#a1b797}.tool-card h2{font-size:26px;margin:10px 0;letter-spacing:-.7px}.tool-card p{font-size:14px;line-height:1.6;color:#a7b3a2;margin:0 0 22px}.tool-card .btn{margin-top:auto;min-height:42px}.format-art{font-size:38px;font-weight:900;letter-spacing:-2px;color:var(--accent)}.hub-footer{color:var(--muted);font-size:13px;margin:24px 0}.matchcut h1{font-size:38px;letter-spacing:-1.5px;margin:0 0 10px}.cut-intro{font-size:15px;color:var(--muted);margin-bottom:26px}.cut-layout{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:28px}.cut-controls{align-self:start;min-width:0}.cut-controls .card{padding:20px}.cut-controls h2{font-size:16px;margin:0 0 16px}.cut-upload{width:100%;padding:20px;border:1px dashed #4f6148;border-radius:12px;background:#141e10;color:#eef6e9;cursor:pointer;text-align:center;line-height:1.7;font-size:14px}.cut-upload img{max-width:140px;max-height:70px;object-fit:contain;display:block;margin:0 auto 10px;background:#8a9286;border-radius:4px}.cut-field{display:flex;flex-direction:column;gap:7px;margin:13px 0;font-size:14px}.cut-field select,.cut-field input{width:100%;background:#080b08;color:#fff;border:1px solid var(--line);padding:9px;border-radius:8px}.cut-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cut-scenes{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cut-scene{display:flex;gap:8px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:8px;font-size:13px;cursor:pointer;min-width:0}.cut-scene:has(input:checked){border-color:#5e853e;background:#172310}.cut-scene input{accent-color:var(--accent)}.cut-summary{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--line);font-size:14px}.cut-summary strong{color:var(--accent)}.cut-preview{min-width:0;padding:20px;border:1px solid var(--line);border-radius:18px;background:#0a100a;align-self:start}.cut-screen{background:#131b12;display:grid;place-items:center;border-radius:12px;overflow:hidden;max-height:640px;min-height:280px}.cut-screen canvas{max-width:100%;max-height:620px;width:auto;height:auto;object-fit:contain}.cut-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.cut-actions .btn{flex:1;text-align:center;text-decoration:none;white-space:nowrap}.cut-status{font-size:14px;color:var(--accent);line-height:1.5;min-height:22px;margin:16px 0}.cut-timeline{display:flex;gap:6px;overflow-x:auto;padding:12px 0}.cut-timeline button{flex:none;width:60px;padding:0;border:2px solid transparent;background:#111;border-radius:6px;overflow:hidden;cursor:pointer}.cut-timeline button.active{border-color:var(--accent)}.cut-timeline img{display:block;width:56px;height:64px;object-fit:cover}.cut-note{font-size:13px;color:var(--muted);line-height:1.6}.matchcut progress{width:100%;accent-color:var(--accent)}.cut-preview video{width:100%;max-height:620px;background:#080b08;border-radius:12px}.cut-preview [hidden],.cut-controls [hidden]{display:none!important}.tool-hub button:focus-visible,.matchcut button:focus-visible{outline:2px solid white;outline-offset:3px}@media(max-width:1100px){header{flex-wrap:wrap;height:auto;padding:12px 16px}.nav{order:3;width:100%}.app{grid-template-rows:auto 1fr}.hub-grid{grid-template-columns:repeat(2,1fr)}.cut-layout{grid-template-columns:minmax(280px,.8fr) minmax(0,1fr)}}@media(max-width:760px){.tool-hub,.matchcut{padding:28px 14px}.hub-head{display:block}.hub-head p{max-width:none;margin-top:16px}.hub-head h1{letter-spacing:-1.5px}.hub-grid,.cut-layout{grid-template-columns:1fr}.tool-card.featured{grid-column:auto;grid-template-columns:1fr}.tool-card.featured .tool-card-art{height:190px;min-height:0;order:0}.cut-preview{padding:12px;order:-1}.cut-screen{max-height:440px;min-height:200px}.cut-screen canvas{max-height:430px}.cut-options{gap:8px}.matchcut h1{font-size:32px}.tool-card-content{padding:20px}}
/* Rounded, horizontally scrollable tool browser inspired by the reference app. */
.hub-folder-rail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 2px 18px;margin:8px 0 24px;scrollbar-width:none}
.hub-folder-rail::-webkit-scrollbar,.tool-folder .hub-grid::-webkit-scrollbar{display:none}
.hub-folder-card{flex:0 0 190px;min-height:178px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:7px;padding:16px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:#0d0d0d;color:#f5f5f5;text-align:left;cursor:pointer;transition:transform .22s,border-color .22s,background .22s}
.hub-folder-card:hover,.hub-folder-card:focus-visible{transform:translateY(-3px);border-color:#fff;background:#171717;outline:none}
.hub-folder-card-icon{display:grid;place-items:center;width:64px;height:64px;margin-bottom:auto;border-radius:18px;background:#f1eee6;color:#090909;font-size:30px;font-weight:700}
.hub-folder-card strong{font-size:15px;letter-spacing:.02em}.hub-folder-card small{height:30px;color:#999;font-size:11px;line-height:1.35}.hub-folder-card i{font-size:10px;color:#ccc;font-style:normal}
.tool-folder .hub-grid{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:3px 2px 18px;scrollbar-width:none}
.tool-folder .tool-card{flex:0 0 230px;min-height:300px;scroll-snap-align:start;border-radius:22px;background:#0b0b0b}
.tool-folder .tool-card-art{height:138px;flex:none;background:#111;border-bottom:1px solid #292929}
.tool-icon-art{display:grid!important;place-items:center!important}.tool-icon-art span{display:grid;place-items:center;width:76px;height:76px;border-radius:22px;background:#f1eee6;color:#090909;font-size:39px;font-weight:700;line-height:1}
.tool-folder .tool-card-content{padding:16px}.tool-folder .tool-card-content h2{font-size:20px;margin:8px 0 6px}.tool-folder .tool-card-content p{font-size:12px;line-height:1.45;margin-bottom:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tool-folder .tool-card .btn{width:100%;font-size:11px;min-height:36px}
.new-tools-grid{display:flex!important;overflow-x:auto;gap:12px;padding:3px 2px 18px;scroll-snap-type:x mandatory;scrollbar-width:none}.new-tool-link{flex:0 0 230px!important;min-height:220px;scroll-snap-align:start;border-radius:22px!important;display:grid!important;grid-template-columns:1fr!important;align-content:end!important;gap:8px!important;padding:16px!important;background:#0d0d0d!important}.new-tool-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#f1eee6;color:#090909;font-size:28px}.new-tool-mark{font-size:9px!important;letter-spacing:1px}.new-tool-link i{font-size:10px!important}
@media(max-width:760px){.hub-folder-card{flex-basis:170px;min-height:164px}.tool-folder .tool-card,.new-tool-link{flex-basis:208px!important}.tool-icon-art span{width:68px;height:68px}}
