:root{--ink:#17201e;--muted:#69716f;--paper:#f4f2ec;--card:#fff;--accent:#ff5f3b;--line:#deddd7;--green:#284e46}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"DM Sans",sans-serif}.shell{width:min(1180px,calc(100% - 40px));margin:auto}header{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-family:Manrope,sans-serif;font-weight:800;letter-spacing:.12em;display:flex;align-items:center;gap:11px;font-size:14px}.brand-mark{display:grid;place-items:center;width:31px;height:31px;background:var(--ink);color:#fff;border-radius:50%;letter-spacing:0}.privacy{font-size:13px;color:var(--muted);display:flex;gap:8px;align-items:center}.privacy span{width:8px;height:8px;background:#44a57f;border-radius:50%;box-shadow:0 0 0 4px #dcebe5}.hero{padding:74px 0 58px;display:grid;grid-template-columns:1.15fr .85fr;align-items:end}.eyebrow,.label{font-size:11px;font-weight:700;letter-spacing:.17em;color:var(--accent);margin:0 0 18px}.hero h1{font-family:Manrope,sans-serif;font-size:clamp(52px,7vw,92px);line-height:.92;letter-spacing:-.06em;margin:0;grid-row:2}.lede{font-size:18px;line-height:1.65;color:var(--muted);max-width:500px;margin:0 0 4px}.workspace{padding-bottom:72px}.drop-card,.editor,.progress-card,.result-card{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 35px rgba(27,34,32,.04)}.drop-card{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px;outline:2px dashed transparent;outline-offset:-12px;transition:.2s}.drop-card.dragging{outline-color:var(--accent);background:#fffaf8}.drop-icon{width:58px;height:58px;border-radius:16px;background:#f1eee6;display:grid;place-items:center;margin-bottom:20px}.drop-icon svg{width:30px;fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.drop-card h2,.sequence-head h2,.result-card h2,.progress-card h2{font-family:Manrope,sans-serif;margin:0 0 8px;font-size:24px}.drop-card>p{color:var(--muted);margin:0 0 26px}.pick-actions{display:flex;gap:10px}.button{border:0;border-radius:9px;padding:13px 21px;font:600 14px "DM Sans";cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.primary,.generate{background:var(--ink);color:#fff}.secondary{background:#eeece6;color:var(--ink)}.hidden{display:none!important}.editor{padding:32px}.sequence-head{display:flex;justify-content:space-between;align-items:center}.sequence-head .label{margin-bottom:7px}.text-button{border:0;background:none;color:var(--muted);font:600 13px "DM Sans";cursor:pointer;text-decoration:underline;text-underline-offset:4px}.filmstrip{display:flex;gap:10px;overflow:auto;padding:22px 0 28px}.thumb{flex:0 0 112px;position:relative;cursor:pointer}.thumb img{width:112px;height:82px;object-fit:cover;border-radius:8px;background:#eee}.thumb span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:var(--muted);margin-top:6px}.thumb.selected img{outline:2px solid var(--accent);outline-offset:2px}.settings-grid{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:28px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:28px}.setting label{font-size:13px;font-weight:600;display:flex;justify-content:space-between;margin-bottom:12px}.setting output{color:var(--accent)}select{width:100%;height:43px;border:1px solid var(--line);border-radius:8px;background:#faf9f6;padding:0 11px;color:var(--ink);font:500 13px "DM Sans"}input[type=range]{width:100%;accent-color:var(--accent)}.range-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.segmented{height:43px;display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}.segmented button{flex:1;border:0;border-right:1px solid var(--line);background:#faf9f6;cursor:pointer;color:var(--muted)}.segmented button:last-child{border:0}.segmented button.active{background:var(--green);color:#fff}.summary{display:flex;align-items:center;gap:50px;padding-top:28px}.summary div{display:flex;flex-direction:column;gap:5px}.summary span{font-size:11px;color:var(--muted)}.summary strong{font-size:14px}.generate{margin-left:auto;background:var(--accent);min-width:178px}.generate svg{width:18px;fill:none;stroke:currentColor;stroke-width:2;margin-left:8px}.progress-card,.result-card{padding:36px;display:flex;align-items:center;gap:24px}.progress-copy{flex:1}.progress-copy p,.result-card p{color:var(--muted);margin:6px 0}.progress-track{height:7px;background:#ebe9e3;border-radius:10px;overflow:hidden;margin-top:18px}.progress-track span{display:block;height:100%;width:0;background:var(--accent);transition:width .2s}.spinner{width:42px;height:42px;border:3px solid #ebe9e3;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}.success-icon{width:48px;height:48px;border-radius:50%;background:#dcebe5;color:var(--green);display:grid;place-items:center;font-size:24px}.result-card .label{margin:0}.result-card .text-button{margin-left:0}@keyframes spin{to{transform:rotate(360deg)}}footer{border-top:1px solid var(--line);height:90px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}@media(max-width:800px){.shell{width:min(100% - 24px,1180px)}.hero{padding:52px 0 38px;display:block}.lede{margin-top:28px}.settings-grid{grid-template-columns:1fr 1fr}.summary{flex-wrap:wrap;gap:22px}.generate{width:100%;margin-left:0}.progress-card,.result-card{flex-wrap:wrap}.result-card .generate{width:auto;margin-left:auto}}@media(max-width:520px){header{height:70px}.privacy{font-size:0}.hero h1{font-size:50px}.lede{font-size:16px}.drop-card,.editor{padding:24px 16px}.pick-actions{flex-direction:column;width:100%}.settings-grid{grid-template-columns:1fr}.filmstrip{margin-right:-16px}.summary div{width:calc(50% - 12px)}}

.crop-setting{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--line);padding:24px 0}.crop-setting .label{margin:0 0 6px}.crop-setting h3{font:700 17px Manrope,sans-serif;margin:0 0 5px}.crop-setting p:last-child{font-size:12px;color:var(--muted);margin:0}.crop-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}.crop-modal{position:fixed;inset:0;z-index:20;background:rgba(17,25,23,.76);backdrop-filter:blur(5px);display:grid;place-items:center;padding:24px}.crop-dialog{width:min(1060px,100%);max-height:calc(100vh - 48px);overflow:auto;background:var(--card);border-radius:18px;padding:26px;box-shadow:0 30px 80px rgba(0,0,0,.3)}.crop-head{display:flex;justify-content:space-between;gap:20px}.crop-head .label{margin-bottom:7px}.crop-head h2{font:700 22px Manrope,sans-serif;margin:0}.crop-head p:last-child{color:var(--muted);font-size:13px;margin:7px 0 20px}.close-button{border:0;background:#eeece6;width:36px;height:36px;border-radius:50%;font-size:24px;cursor:pointer}.crop-stage{background:#242b29;border-radius:12px;min-height:300px;display:grid;place-items:center;overflow:hidden}.crop-stage canvas{display:block;max-width:100%;max-height:60vh;cursor:crosshair;touch-action:none}.crop-footer{display:flex;align-items:center;gap:12px;padding-top:20px}.crop-footer>div{display:flex;flex-direction:column;margin-right:auto;font-size:11px;color:var(--muted)}.crop-footer strong{font-size:13px;color:var(--ink);max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){.crop-setting,.crop-footer{align-items:stretch;flex-direction:column}.crop-actions{justify-content:space-between}.crop-dialog{padding:18px}.crop-stage{min-height:180px}.crop-footer .button{width:100%}}

.header-controls{display:flex;align-items:center;gap:20px}.privacy b{font-weight:400}.language-picker select{width:auto;height:36px;padding:0 30px 0 10px;background:#fff;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:520px){.header-controls{gap:8px}.language-picker select{padding-left:7px;padding-right:24px}}
