.app-shell{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:2.5rem 1.5rem 4rem}.app-header{width:100%;max-width:960px;margin-bottom:1.5rem}.app-header h1{margin:0 0 .25rem;font-size:1.5rem;font-weight:600}.app-header p{margin:0;color:var(--text-dim);font-size:.95rem}.card{width:100%;max-width:960px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:2rem 2.25rem}.stepper{display:flex;gap:.5rem;margin-bottom:2rem;flex-wrap:wrap}.stepper .step{flex:1 1 140px;padding:.6rem .75rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);color:var(--text-dim);font-size:.85rem;display:flex;align-items:center;gap:.5rem}.stepper .step .num{width:22px;height:22px;border-radius:50%;background:#e2e6ef;color:var(--text-dim);display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:.8rem}.stepper .step.active{background:var(--accent-soft);border-color:#c5d9ff;color:var(--accent-hover)}.stepper .step.active .num{background:var(--accent);color:#fff}.stepper .step.done .num{background:var(--success);color:#fff}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem}.segmented{display:flex;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.segmented button{flex:1;border:none;border-radius:0;background:var(--surface);padding:.55rem .5rem;color:var(--text-dim)}.segmented button.active{background:var(--accent-soft);color:var(--accent-hover);font-weight:600}.segmented button+button{border-left:1px solid var(--border)}.toggle{display:inline-flex;align-items:center;gap:.6rem;cursor:pointer;-webkit-user-select:none;user-select:none}.toggle input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:36px;height:20px;background:#d5dae5;border-radius:999px;position:relative;transition:background .15s ease}.toggle input:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;background:#fff;border-radius:50%;transition:transform .15s ease}.toggle input:checked{background:var(--accent)}.toggle input:checked:after{transform:translate(16px)}.actions{display:flex;justify-content:space-between;margin-top:2rem}.dropzone{border:2px dashed #c8d0e0;border-radius:14px;padding:2.5rem 1rem;text-align:center;background:var(--surface-2);color:var(--text-dim);cursor:pointer;transition:background .15s ease,border-color .15s ease}.dropzone:hover,.dropzone.drag{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-hover)}.dropzone strong{color:var(--text)}.file-summary{margin-top:1rem;padding:.9rem 1rem;background:var(--surface-2);border-radius:var(--radius);display:flex;justify-content:space-between;font-size:.9rem;color:var(--text-dim)}.file-list{margin-top:1rem;max-height:240px;overflow:auto;border:1px solid var(--border);border-radius:var(--radius)}.file-list-item{display:flex;justify-content:space-between;padding:.5rem .75rem;font-size:.85rem;border-bottom:1px solid var(--border)}.file-list-item:last-child{border-bottom:0}.file-list-item button.ghost{padding:.15rem .5rem;font-size:.8rem}.progress{margin:1.5rem 0;height:8px;background:var(--surface-2);border-radius:999px;overflow:hidden}.progress-bar{height:100%;background:var(--accent);transition:width .2s ease}.rename-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:2rem;align-items:start}@media (max-width: 720px){.rename-layout{grid-template-columns:1fr}}.rename-preview{background:var(--surface-2);border:1px solid var(--border);border-radius:14px;padding:1rem;display:flex;flex-direction:column;align-items:center;gap:.5rem}.rename-preview img{max-width:100%;max-height:360px;border-radius:8px;display:block}.rename-preview .meta{font-size:.8rem;color:var(--text-dim)}.rename-panel h3{margin:0 0 .25rem}.rename-panel .counter{font-size:.85rem;color:var(--text-dim);margin-bottom:1rem}.rename-preview-name{padding:.55rem .75rem;background:var(--surface-2);border-radius:var(--radius);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85rem;color:var(--text);margin-top:.5rem;word-break:break-all}.rename-nav{display:flex;justify-content:space-between;margin-top:1.25rem;gap:.5rem}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem;margin-bottom:1.5rem}.summary-card{padding:1rem;background:var(--surface-2);border-radius:var(--radius)}.summary-card .label{font-size:.8rem;color:var(--text-dim)}.summary-card .value{font-size:1.2rem;font-weight:600;margin-top:.25rem}.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.75rem;margin-top:1.25rem}.thumb{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface-2)}.thumb img{width:100%;height:110px;object-fit:cover;display:block}.thumb .name{font-size:.75rem;color:var(--text-dim);padding:.4rem .5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabs{width:100%;max-width:960px;display:flex;gap:.25rem;margin-bottom:-1px;padding:0 .5rem}.tab{background:var(--surface-2);border:1px solid var(--border);border-bottom:none;border-radius:10px 10px 0 0;padding:.6rem 1.1rem;color:var(--text-dim);font-size:.9rem;font-weight:500;cursor:pointer;position:relative;top:1px}.tab:hover{color:var(--text)}.tab.active{background:var(--surface);color:var(--text);border-color:var(--border);z-index:1}.video-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;margin-top:1.25rem}.video-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface-2);display:flex;flex-direction:column}.video-card video{width:100%;aspect-ratio:16 / 9;object-fit:cover;background:#000;display:block}.video-meta{padding:.75rem .85rem;display:flex;flex-direction:column;gap:.5rem}.video-name{font-size:.85rem;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-stats{display:flex;justify-content:space-between;font-size:.75rem;color:var(--text-dim);gap:.5rem;flex-wrap:wrap}.video-meta a.button{text-decoration:none;text-align:center;padding:.45rem .75rem;border-radius:var(--radius);font-size:.85rem;font-weight:500;background:var(--surface);color:var(--text);border:1px solid var(--border);display:inline-block}.video-meta a.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.video-meta a.button.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.banner{padding:.8rem 1rem;border-radius:var(--radius);background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;margin-bottom:1rem;font-size:.9rem}.banner.success{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}.banner.error{background:#fef2f2;color:#991b1b;border-color:#fecaca}.app-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;color:var(--text-dim)}.app-header-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.logout-btn{flex:none;font-size:.85rem}.login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem}.login-card{width:100%;max-width:360px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:2rem 2rem 2.25rem}.login-card h1{margin:0 0 .25rem;font-size:1.35rem;font-weight:600}.login-sub{margin:0 0 1.5rem;color:var(--text-dim);font-size:.95rem}.login-card label{margin-top:.5rem}.login-card input{margin-bottom:.5rem}.login-error{margin:.5rem 0 0;padding:.55rem .75rem;border-radius:var(--radius);background:#fef2f2;border:1px solid #fecaca;color:var(--danger);font-size:.85rem}.login-submit{width:100%;margin-top:1.25rem}:root{--bg: #f7f8fb;--surface: #ffffff;--surface-2: #f1f3f8;--border: #e4e7ef;--text: #1f2937;--text-dim: #6b7280;--accent: #3b82f6;--accent-hover: #2563eb;--accent-soft: #e0ecff;--success: #10b981;--danger: #ef4444;--radius: 10px;--shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 16px rgba(17, 24, 39, .04);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}button{font-family:inherit;font-size:.95rem;padding:.6rem 1.1rem;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:var(--radius);cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}button:hover:not(:disabled){border-color:#cfd5e2;background:var(--surface-2)}button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}button.primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}button.ghost{background:transparent;border-color:transparent;color:var(--text-dim)}button:disabled{opacity:.55;cursor:not-allowed}input[type=text],input[type=number],input[type=password],select{font:inherit;padding:.55rem .75rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);width:100%}input[type=text]:focus,input[type=number]:focus,input[type=password]:focus,select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}label{display:block;font-size:.85rem;color:var(--text-dim);margin-bottom:.35rem}
