:root{color:#e5eefc;background:#0b1120;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.screen{min-height:100vh;min-height:100dvh;background:linear-gradient(145deg,rgba(14,165,233,.14),transparent 42%),linear-gradient(24deg,rgba(34,197,94,.12),transparent 48%),#0b1120;padding:max(18px,env(safe-area-inset-top)) 18px max(24px,env(safe-area-inset-bottom))}.loading-screen,.login-screen{display:grid;place-items:center}.login-panel{width:min(100%,420px)}.brand-mark{display:grid;width:62px;height:62px;place-items:center;margin-bottom:22px;border-radius:18px;color:#fff;background:linear-gradient(135deg,#0ea5e9,#22c55e);box-shadow:0 18px 50px #0ea5e947}h1,h2,p{margin:0}.login-panel h1,.app-header h1{font-size:clamp(2.2rem,12vw,4rem);line-height:.9;letter-spacing:0}.login-panel p{margin:12px 0 28px;color:#9fb0c6}.form-stack,.form-grid{display:grid;gap:14px}label{display:grid;gap:7px;color:#b7c6d9;font-size:.88rem;font-weight:700}input,select,textarea{width:100%;border:1px solid rgba(148,163,184,.22);border-radius:8px;color:#f8fafc;background:#0f172ad1;outline:none}input{min-height:48px;padding:0 14px}select{min-height:48px;padding:0 14px;-webkit-appearance:none;-moz-appearance:none;appearance:none}textarea{min-height:84px;padding:13px 14px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#38bdf8;box-shadow:0 0 0 3px #38bdf82e}.primary-button,.upload-button,.icon-button,.danger-button{border:0;color:#fff}.primary-button{display:inline-flex;align-items:center;justify-content:center;min-height:54px;border-radius:8px;padding:0 20px;background:linear-gradient(135deg,#0284c7,#16a34a);font-weight:900;box-shadow:0 16px 34px #0284c740}.app-screen{display:grid;align-content:start;gap:22px;max-width:720px;margin:0 auto}.app-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-top:8px}.header-actions{display:flex;flex:0 0 auto;gap:8px}.eyebrow{display:block;margin-bottom:8px;color:#76e4f7;font-size:.78rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.icon-button{display:grid;flex:0 0 auto;width:44px;height:44px;place-items:center;border-radius:8px;background:#0f172ae6}.settings-panel{display:grid;gap:14px;padding:16px;border:1px solid rgba(125,211,252,.26);border-radius:8px;background:#0f172ad1}.settings-head,.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-head h2{font-size:1.12rem}.settings-form{display:grid;gap:12px}.settings-actions{flex-wrap:wrap}.settings-actions .primary-button{flex:1 1 170px}.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:48px;flex:0 0 auto;border-radius:8px;padding:0 14px;background:#dc262642;font-weight:900}.upload-surface{display:grid;gap:16px;padding:18px;border:1px solid rgba(148,163,184,.2);border-radius:8px;background:#0f172ab8}.projects-section{display:grid;gap:12px}.small-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;border:0;border-radius:8px;padding:0 12px;color:#e0f2fe;background:#0ea5e938;font-weight:900}.small-button.ghost{color:#bae6fd;background:#0f172adb}.project-list{display:grid;gap:10px}.project-card{display:grid;gap:10px;width:100%;border:1px solid rgba(148,163,184,.16);border-radius:12px;padding:14px;color:inherit;text-align:left;background:#0f172a9e}.project-card.active,.subfolder-card.active{border-color:#67e8f9a6;background:#082f498f;box-shadow:0 18px 50px #0ea5e924}.project-card-head{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center}.project-card strong,.project-card span,.project-card small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-card strong{color:#f8fafc;font-size:1rem}.project-card span,.project-card small{color:#93a4b8;font-size:.8rem}.project-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;color:#67e8f9;background:#0ea5e92e}.project-stats,.upload-tags{display:flex;flex-wrap:wrap;gap:7px}.project-stats span,.upload-tags span{display:inline-flex;width:auto;min-height:26px;align-items:center;border-radius:999px;padding:0 9px;color:#bae6fd;background:#0ea5e924;font-size:.72rem;font-weight:900}.upload-context{display:grid;gap:6px}.upload-context h2{font-size:1.35rem}.upload-context p{color:#9fb0c6;font-size:.9rem;line-height:1.35}.upload-button{display:grid;min-height:178px;place-items:center;gap:12px;border:2px dashed rgba(125,211,252,.7);border-radius:8px;background:#082f4980;font-size:1.45rem;font-weight:950}.file-chip{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;min-width:0;padding:12px;border-radius:8px;background:#0284c738}.file-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notes-field{grid-column:1 / -1}.progress-wrap{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;color:#bae6fd;font-weight:800}.progress-track{height:10px;overflow:hidden;border-radius:999px;background:#94a3b833}.progress-bar{height:100%;border-radius:inherit;background:linear-gradient(90deg,#38bdf8,#22c55e)}.status{display:flex;gap:8px;align-items:center;padding:10px 12px;border-radius:8px;font-weight:800}.ok{color:#bbf7d0;background:#16a34a2e}.bad,.error{color:#fecaca;background:#dc26262e}.error{padding:10px 12px;border-radius:8px;font-weight:800}.history-section{display:grid;gap:12px}.project-folder{padding-bottom:20px}.project-nav-row,.folder-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.project-nav-row{position:sticky;top:max(10px,env(safe-area-inset-top));z-index:5;padding:8px;border:1px solid rgba(148,163,184,.14);border-radius:14px;background:#0b1120eb;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 16px 44px #0206174d}.back-button{display:inline-flex;min-height:44px;align-items:center;gap:8px;border:1px solid rgba(103,232,249,.3);border-radius:999px;padding:0 14px;color:#f8fafc;background:linear-gradient(135deg,#0ea5e957,#0f172ad1);font-size:.9rem;font-weight:950}.folder-title{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;padding:16px;border:1px solid rgba(103,232,249,.24);border-radius:12px;background:#082f495c}.folder-title h2{font-size:1.35rem}.project-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.project-title-row h2{min-width:0;overflow-wrap:anywhere}.rename-button{flex:0 0 auto}.project-rename-form{display:grid;gap:10px;width:100%}.project-rename-form input{min-height:46px;font-size:1.02rem;font-weight:900}.project-rename-actions,.project-name-save{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.project-name-save{grid-column:1 / -1;justify-content:space-between;padding:10px;border:1px solid rgba(103,232,249,.22);border-radius:10px;color:#bae6fd;background:#082f495c;font-size:.78rem;font-weight:800}.folder-title p{margin-top:4px;color:#93a4b8;font-size:.88rem}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading h2{font-size:1.15rem}.storage-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;color:#cbd5e1;background:#0f172acc;font-size:.8rem;font-weight:900}.storage-pill.cloud{color:#bbf7d0}.upload-list{display:grid;gap:10px}.video-tile-list{display:grid;gap:12px}.video-tile{display:grid;grid-template-columns:118px 1fr;gap:12px;align-items:stretch;width:100%;min-width:0;border:1px solid rgba(148,163,184,.16);border-radius:14px;padding:10px;color:inherit;text-align:left;background:#0f172a9e}.result-tile{border-color:#22c55e42}.video-thumb{display:grid;min-height:118px;place-items:center;align-content:center;gap:8px;border-radius:12px;color:#e0f2fe;background:radial-gradient(circle at 30% 25%,rgba(103,232,249,.28),transparent 42%),linear-gradient(135deg,#0ea5e957,#16a34a2e),#020617}.video-thumb span{color:#bae6fd;font-size:.72rem;font-weight:900}.result-thumb{color:#bbf7d0;background:radial-gradient(circle at 30% 25%,rgba(187,247,208,.24),transparent 42%),linear-gradient(135deg,#16a34a57,#0ea5e92e),#020617}.video-tile-copy{display:grid;align-content:center;gap:5px;min-width:0}.video-tile-copy strong,.video-tile-copy span,.video-tile-copy small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-tile-copy strong{color:#f8fafc;font-size:1.14rem}.video-tile-copy span{color:#bae6fd;font-size:.84rem;font-weight:850}.video-tile-copy small{color:#93a4b8;font-size:.78rem}.subfolder-section{display:grid;gap:12px;margin-top:10px;padding-top:16px;border-top:1px solid rgba(148,163,184,.16)}.subfolder-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.subfolder-card{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;min-width:0;border:1px solid rgba(148,163,184,.16);border-radius:12px;padding:12px;color:inherit;text-align:left;background:#0f172a9e}.subfolder-card strong,.subfolder-card span,.subfolder-card small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subfolder-card strong{color:#f8fafc;font-size:.92rem}.subfolder-card span{color:#bae6fd;font-size:.78rem;font-weight:900}.subfolder-card small{margin-top:2px;color:#93a4b8;font-size:.72rem}.upload-row{display:grid;gap:10px;padding:14px;border:1px solid rgba(148,163,184,.16);border-radius:8px;background:#0f172a9e}.upload-row div{min-width:0}.upload-row strong,.upload-row span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-row strong{color:#f8fafc}.upload-row span,.row-meta{color:#93a4b8;font-size:.84rem}.transcript-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.transcript-pill,.retry-button{display:inline-flex;align-items:center;gap:6px;min-height:30px;border-radius:999px;font-size:.76rem;font-weight:900}.transcript-pill{padding:0 10px;color:#cbd5e1;background:#94a3b81f}.transcript-pill.done{color:#bbf7d0;background:#16a34a33}.transcript-pill.working{color:#bae6fd;background:#0ea5e933}.transcript-pill.failed{color:#fecaca;background:#dc26262e}.retry-button{flex:0 0 auto;border:0;padding:0 10px;color:#f8fafc;background:#0f172ae6}.spin{animation:spin .9s linear infinite}.transcript-preview{display:-webkit-box;overflow:hidden;color:#dbeafe;font-size:.86rem;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:3}.codex-result{display:grid;gap:10px;padding:12px;border:1px solid rgba(103,232,249,.22);border-radius:14px;background:#082f4957}.codex-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.download-link{flex:0 0 auto;color:#67e8f9;font-size:.82rem;font-weight:900;text-decoration:none}.result-video{width:100%;max-height:460px;border-radius:12px;background:#020617}.copy-details{color:#dbeafe;font-size:.84rem;line-height:1.4}.copy-details summary{cursor:pointer;color:#67e8f9;font-weight:900}.copy-details p{margin:8px 0 0;white-space:pre-wrap}.row-meta{display:flex;justify-content:space-between;gap:12px}.empty{color:#93a4b8}.video-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;grid-template-rows:auto 1fr auto;gap:14px;padding:max(16px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom));background:linear-gradient(145deg,rgba(14,165,233,.16),transparent 40%),#020617}.video-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.video-modal-head h2{font-size:1.45rem}.full-video-player{width:100%;height:100%;min-height:0;object-fit:contain;border-radius:16px;background:#000}.video-loading{display:grid;place-items:center;align-content:center;gap:12px;min-height:0;border-radius:16px;color:#bae6fd;background:#000;font-weight:900}.video-modal-meta{display:grid;gap:4px;min-width:0;padding:12px;border:1px solid rgba(148,163,184,.16);border-radius:12px;background:#0f172acc}.video-modal-meta strong,.video-modal-meta span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-modal-meta strong{color:#f8fafc}.video-modal-meta span{color:#93a4b8;font-size:.82rem}@media(min-width:640px){.form-grid{grid-template-columns:1fr .45fr}}@media(max-width:420px){.subfolder-list{grid-template-columns:1fr}.video-tile{grid-template-columns:96px 1fr}.video-thumb{min-height:96px}}@keyframes spin{to{transform:rotate(360deg)}}.app-tabs{display:flex;gap:10px;margin:22px 0}.app-tabs .active,.effect-categories .active{background:#155e75;border-color:#67e8f9;color:#fff}.effects-library{max-width:1100px;margin:auto}.effects-library h2{font-size:2rem}.effects-intro{color:#9fb0c6;margin:12px 0 24px}.effects-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.effect-categories,.effect-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.effects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}.effect-card{border:1px solid #293b52;border-radius:16px;overflow:hidden;background:#101c2e}.effect-preview{height:240px;background:radial-gradient(ellipse at top,#283252,#0b1120);display:grid;place-items:center}.effect-preview video{width:100%;height:240px;object-fit:contain}.effect-preview img{height:180px;max-width:90%;object-fit:contain}.effect-card-copy{display:grid;gap:12px;padding:20px}.effect-card h3{margin:0;font-size:1.25rem}.effect-card p,.effect-detail p,.effect-plan-summary p{color:#b7c6d9;line-height:1.5}.effect-card small{color:#9fb0c6}.effect-detail,.effect-plan-summary{padding:20px;border:1px solid #36556b;border-radius:14px;margin:20px 0;background:#122239}.effect-detail h3{margin:0}.effect-plan-summary .small-button{margin:8px 8px 0 0}.effect-toggle{display:flex;align-items:center;margin:16px 0}.effect-toggle input{width:20px;min-height:20px;height:20px}.effect-detail audio,.audio-preview audio{width:100%;max-width:300px}.audio-preview{padding:16px;width:100%;text-align:center}.audio-preview span{display:block;font-size:70px;color:#67e8f9;margin-bottom:20px}.effect-detail details label{margin:12px 0}.effect-detail summary{cursor:pointer}button:focus-visible{outline:2px solid #67e8f9;outline-offset:3px}@media(max-width:600px){.effects-toolbar,.effects-grid{grid-template-columns:1fr}.effect-preview,.effect-preview video{height:260px}}
