#tga-studio,.tga-library{--tga-bg:#101018;--tga-panel:#191923;--tga-line:#30303d;--tga-text:#f6f4fb;--tga-muted:#aaa8b7;--tga-accent:#c7a4ff;color:var(--tga-text);font-family:inherit}#tga-studio{max-width:1000px;margin:0 auto;padding:clamp(18px,4vw,42px);background:var(--tga-bg);border:1px solid var(--tga-line);border-radius:24px}.tga-studio-hero{padding:10px 0 28px}.tga-studio-hero>span,.tga-library-head span{font-size:11px;letter-spacing:.18em;color:var(--tga-accent);font-weight:800}.tga-studio-hero h1,.tga-library-head h1{color:var(--tga-text);font-size:clamp(28px,4vw,42px);line-height:1.1;margin:12px 0}.tga-studio-hero p,.tga-library-head p{color:var(--tga-muted);margin:0}.tga-field{margin:0 0 22px}.tga-field>label{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--tga-text);font-weight:700;margin-bottom:9px}.tga-field label span,.tga-field small,.tga-form-note{color:var(--tga-muted);font-size:12px;font-weight:400}.tga-field input:not([type=file]),.tga-field textarea,.tga-field select{box-sizing:border-box;width:100%;background:#101018;color:var(--tga-text);border:1px solid var(--tga-line);border-radius:12px;padding:14px;font:inherit;min-height:50px}.tga-field textarea{min-height:155px;resize:vertical}.tga-field input[type=file]{box-sizing:border-box;width:100%;padding:13px;border:1px dashed #5d526e;background:#12121b;border-radius:12px;color:var(--tga-muted)}.tga-field small{display:block;margin-top:8px}.tga-studio-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tga-submit{width:100%;border:0;border-radius:12px;background:linear-gradient(100deg,#8e5be9,#c18bff);color:#160f20;padding:16px 20px;font-weight:800;font-size:16px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}.tga-submit:disabled{opacity:.7;cursor:wait}.tga-form-note{margin:12px 0 0}.tga-image-preview{display:flex;align-items:center;gap:14px;margin-top:12px}.tga-image-preview img{width:100px;height:85px;object-fit:cover;border-radius:8px}.tga-image-preview button{background:transparent;color:#e9d6ff;border:1px solid var(--tga-line);padding:8px 12px;border-radius:8px}.tga-progress,.tga-success,.tga-error{margin:18px 0;padding:16px;border-radius:12px;background:#1c1b28;border:1px solid var(--tga-line);display:flex;gap:12px;align-items:center}.tga-progress p{color:var(--tga-muted);margin:5px 0 0}.tga-success{color:#baf5d0}.tga-error{color:#ffc0c0}.tga-spinner{width:24px;height:24px;flex:0 0 24px;border:3px solid #50465f;border-top-color:#c7a4ff;border-radius:50%;animation:tga-spin .8s linear infinite}@keyframes tga-spin{to{transform:rotate(360deg)}}.tga-studio-library{margin-top:40px;padding-top:24px;border-top:1px solid var(--tga-line)}.tga-library-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.tga-library-head h2{color:var(--tga-text);margin:6px 0;font-size:25px}.tga-library-create{color:#21142d!important;background:#c7a4ff;padding:10px 14px;border-radius:9px;text-decoration:none!important;font-weight:800;white-space:nowrap}.tga-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tga-video-card,.tga-finished-video{overflow:hidden;border:1px solid var(--tga-line);border-radius:14px;background:var(--tga-panel);min-width:0}.tga-video-card video,.tga-finished-video video{display:block;width:100%;max-height:500px;aspect-ratio:16/9;background:#08080c;object-fit:contain}.tga-video-card-body,.tga-finished-body{padding:15px}.tga-video-card h3,.tga-finished-body h3{margin:0 0 8px;color:var(--tga-text);font-size:17px}.tga-video-card-body p{color:var(--tga-muted);font-size:12px}.tga-video-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.tga-video-actions a,.tga-video-actions button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;background:#292534;color:#f5eaff!important;border:1px solid #494057;border-radius:8px;padding:9px 11px;font-size:12px;font-weight:700;cursor:pointer}.tga-video-pending{aspect-ratio:16/9;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:15px;background:radial-gradient(ellipse at top,#332644,#111018)}.tga-video-pending span{font-weight:800}.tga-video-pending p,.tga-library-empty{color:var(--tga-muted)}.tga-library{max-width:1200px;margin:0 auto;padding:clamp(16px,3vw,32px)}.tga-library-head{margin-bottom:26px}.tga-library-head h1{margin-bottom:8px}.tga-library-empty{padding:28px;text-align:center;border:1px dashed var(--tga-line);border-radius:14px}.tga-library-empty a{color:#d7b7ff}.tga-finished-video{margin-top:16px}.tga-finished-video video{max-height:600px}.tga-studio-app .tga-library-empty{grid-column:1/-1}@media(max-width:640px){.tga-studio-options,.tga-library-grid{grid-template-columns:1fr}.tga-library-head{align-items:flex-start;flex-direction:column}.tga-video-actions a,.tga-video-actions button{flex:1}.tga-studio-hero h1{font-size:30px}}

.tga-compiler{margin:24px 0 30px;padding:22px;border:1px solid var(--tga-line);border-radius:16px;background:linear-gradient(145deg,#211a2c,#14131d);color:var(--tga-text)}.tga-compiler-kicker{font-size:11px;letter-spacing:.16em;color:var(--tga-accent);font-weight:800}.tga-compiler h2{font-size:23px;margin:8px 0;color:var(--tga-text)}.tga-compiler p{color:var(--tga-muted);margin:0 0 16px}.tga-compiler-title{display:block;font-size:13px;font-weight:700;margin:14px 0;color:var(--tga-text)}.tga-compiler-title input{display:block;box-sizing:border-box;width:100%;margin-top:7px;padding:12px;border:1px solid var(--tga-line);border-radius:9px;background:#101018;color:var(--tga-text);font:inherit}.tga-compiler-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.tga-compiler-footer span{font-size:13px;color:var(--tga-muted)}#tga-compile-button{border:0;border-radius:9px;padding:12px 16px;background:#c7a4ff;color:#1b1227;font-weight:800;cursor:pointer}#tga-compile-button:disabled{opacity:.45;cursor:not-allowed}.tga-clip-select{display:flex;align-items:center;gap:8px;padding:12px 14px;background:#211b2b;color:#f5eaff;font-size:12px;font-weight:700;border-bottom:1px solid var(--tga-line)}.tga-clip-select input{accent-color:#c7a4ff;width:17px;height:17px}.tga-compiler .tga-progress,.tga-compiler .tga-success,.tga-compiler .tga-error{margin-bottom:0}@media(max-width:640px){.tga-compiler{padding:16px}.tga-compiler h2{font-size:20px}#tga-compile-button{width:100%}}
