*{box-sizing:border-box}body,html{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#0b0b0f;color:#ececec;min-height:100vh}main{max-width:960px;margin:0 auto;padding:2.5rem 1.5rem 4rem}h1{font-size:1.9rem;margin:0 0 .25rem}.subtitle{color:#9a9aa5;margin:0 0 2rem;font-size:.95rem}form{grid-gap:1.5rem;gap:1.5rem;background:#16161d;padding:1.75rem;border-radius:14px;border:1px solid #23232d}.field,form{display:grid}.field{grid-gap:.6rem;gap:.6rem}.field>label{font-weight:600;font-size:.9rem;letter-spacing:.02em}input[type=file]{padding:.6rem;background:#0f0f15;border:1px dashed #2e2e3a;border-radius:10px;color:#ccc;width:100%}input[type=email],input[type=password],input[type=text],select{padding:.75rem .85rem;background:#0f0f15;border:1px solid #2e2e3a;border-radius:10px;color:#ececec;font-size:16px;font-family:inherit;width:100%;outline:none;transition:border-color .15s ease,box-shadow .15s ease}input[type=email]:focus,input[type=password]:focus,input[type=text]:focus,select:focus{border-color:#7a5cff;box-shadow:0 0 0 3px rgba(122,92,255,.2)}input::placeholder{color:#5c5c6b}.tabs{display:inline-flex;background:#0f0f15;border:1px solid #2e2e3a;border-radius:10px;padding:3px;width:-moz-fit-content;width:fit-content}.tabs button{border:none;background:transparent;color:#9a9aa5;padding:.55rem .9rem;border-radius:7px;cursor:pointer;font-size:.9rem;min-height:40px}.tabs button.active{background:#2b2b38;color:#fff}.submit{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;padding:.9rem 1.1rem;border-radius:10px;background:linear-gradient(135deg,#7a5cff,#4fa3ff);color:white;font-weight:600;font-size:.95rem;cursor:pointer;transition:opacity .15s ease}.submit:disabled{opacity:.55;cursor:not-allowed}.error{margin-top:1rem;padding:.75rem 1rem;background:#3a1a1a;border:1px solid #5a2828;border-radius:10px;color:#ffb4b4}.result{margin-top:2rem;padding:1.25rem;background:#16161d;border:1px solid #23232d;border-radius:14px}.result-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}.result h2{margin:0;font-size:1.1rem}.download{display:inline-flex;align-items:center;padding:.5rem .9rem;border-radius:8px;background:#2b2b38;color:#fff;text-decoration:none;font-size:.85rem;font-weight:500;border:1px solid #3a3a48;transition:background .15s ease}.download:hover{background:#35354a}.result img,.result video{width:100%;max-width:640px;border-radius:10px;display:block;background:#0f0f15}.video-options{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:.75rem;gap:.75rem;margin-top:.25rem}.video-options .option{display:grid;grid-gap:.35rem;gap:.35rem}.video-options .option>label{font-size:.8rem;color:#9a9aa5;font-weight:500}.preview{margin-top:.5rem;max-height:180px;border-radius:8px;border:1px solid #2e2e3a;object-fit:contain;background:#0f0f15}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.logout{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #3a3a48;background:#1b1b24;color:#d0d0dc;padding:.45rem .85rem;border-radius:8px;font-size:.85rem;cursor:pointer;transition:background .15s ease}.logout:hover{background:#2b2b38}.login-main{max-width:420px;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1.5rem;margin:0 auto}.login-form{width:100%;gap:1.1rem;padding:2rem;box-shadow:0 10px 40px rgba(0,0,0,.35)}.login-form h1{margin:0 0 .25rem;font-size:1.5rem}.login-form .subtitle{margin:0 0 .75rem;font-size:.88rem}.login-form .error{margin-top:0}.login-form .submit{margin-top:.25rem}.spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.4);border-top-color:white;border-radius:50%;animation:spin .7s linear infinite;margin-right:.5rem;vertical-align:-2px}@keyframes spin{to{transform:rotate(1turn)}}@media (max-width:640px){main{padding:1.25rem 1rem 3rem}h1{font-size:1.5rem;line-height:1.25}.subtitle{font-size:.9rem;margin-bottom:1.25rem}form{padding:1.1rem;gap:1.1rem;border-radius:12px}.topbar{flex-direction:column;align-items:stretch;gap:.75rem}.topbar .logout{align-self:flex-end}.tabs{display:flex;width:100%}.tabs button{flex:1 1}.result{padding:1rem;margin-top:1.25rem}.result-header{flex-direction:column;align-items:stretch;gap:.6rem}.download{justify-content:center}.submit{padding:1rem 1.1rem;min-height:48px}.preview{max-height:220px}.login-main{padding:1rem}.login-form{padding:1.5rem}.video-options{grid-template-columns:1fr;gap:.6rem}}