.ad-studio-root,.ad-studio-root{--bg:#fff;--bg-soft:#fafafa;--bg-muted:#f4f4f5;--bg-hover:#f1f1f3;--bg-elevated:#fff;--bg-overlay:#18181b52;--border:#ececef;--border-strong:#dedee3;--text:#18181b;--text-2:#52525b;--text-3:#8b8b94;--primary:#18181b;--primary-hover:#2e2e33;--on-primary:#fff;--accent:#4f46e5;--accent-soft:#eef0ff;--accent-text:#4338ca;--focus-ring:#4f46e52e;--success:#16a34a;--success-soft:#ecfdf3;--warning:#d97706;--warning-soft:#fffaeb;--danger:#dc2626;--danger-soft:#fef2f2;--shadow-xs:0 1px 2px #1010140a;--shadow-sm:0 1px 2px #1010140a, 0 1px 3px #1010140a;--shadow-md:0 4px 16px -4px #10101414, 0 2px 4px #10101408;--shadow-lg:0 24px 48px -12px #1010142e, 0 4px 12px #1010140a;--scrollbar:#dcdce1;--scrollbar-hover:#c4c4cb;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[data-theme=dark] .ad-studio-root{--bg:#111113;--bg-soft:#161618;--bg-muted:#1d1d20;--bg-hover:#232327;--bg-elevated:#19191c;--bg-overlay:#0009;--border:#26262b;--border-strong:#323238;--text:#ededef;--text-2:#a1a1aa;--text-3:#6f6f78;--primary:#ededef;--primary-hover:#fff;--on-primary:#111113;--accent:#818cf8;--accent-soft:#818cf81f;--accent-text:#a5b4fc;--focus-ring:#818cf840;--success:#4ade80;--success-soft:#4ade801a;--warning:#fbbf24;--warning-soft:#fbbf241a;--danger:#f87171;--danger-soft:#f871711a;--shadow-xs:0 1px 2px #0000004d;--shadow-sm:0 1px 3px #00000059;--shadow-md:0 6px 20px -6px #00000080;--shadow-lg:0 24px 60px -12px #000000b3;--scrollbar:#2e2e34;--scrollbar-hover:#3d3d44;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.ad-studio-root{--font-sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;--radius-xs:6px;--radius-sm:8px;--radius-md:10px;--radius-lg:14px;--radius-xl:20px;--radius-full:999px;--ease:cubic-bezier(.2, 0, 0, 1);--ease-out:cubic-bezier(.16, 1, .3, 1);--dur-fast:.12s;--dur:.18s;--dur-slow:.2s;--nav-h:56px;--sidebar-w:264px;--sidebar-w-collapsed:60px;--content-w:768px}.ad-studio-root *,.ad-studio-root :before,.ad-studio-root :after{box-sizing:border-box;margin:0;padding:0}.ad-studio-root,.ad-studio-root,.ad-studio-root{height:100%}.ad-studio-root{background:var(--bg);color:var(--text);font-family:var(--font-sans);font-feature-settings:"cv11", "ss01";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;font-size:14px;line-height:1.5;overflow:hidden}.ad-studio-root button,.ad-studio-root input,.ad-studio-root textarea,.ad-studio-root select{font:inherit;color:inherit}.ad-studio-root button{cursor:pointer;background:0 0;border:none}.ad-studio-root button:disabled{cursor:not-allowed}.ad-studio-root a{color:inherit;text-decoration:none}.ad-studio-root img,.ad-studio-root video{max-width:100%;display:block}.ad-studio-root ::selection{background:var(--accent-soft);color:var(--accent-text)}.ad-studio-root :focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-xs)}.ad-studio-root ::-webkit-scrollbar{width:10px;height:10px}.ad-studio-root ::-webkit-scrollbar-track{background:0 0}.ad-studio-root ::-webkit-scrollbar-thumb{background:var(--scrollbar);background-clip:content-box;border:3px solid #0000;border-radius:999px}.ad-studio-root ::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-hover);background-clip:content-box;border:3px solid #0000}.ad-studio-root .text-cyan{color:var(--accent)}.ad-studio-root .text-red{color:#dc2626}.ad-studio-root .text-emerald{color:var(--accent)}.ad-studio-root .text-amber{color:var(--warning)}.ad-studio-root .text-blue{color:#2563eb}.ad-studio-root .text-violet{color:var(--accent)}@keyframes adstudio-fadeUp{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes adstudio-fadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes adstudio-scaleIn{0%{opacity:0;transform:scale(.99)}to{opacity:1;transform:scale(1)}}@keyframes adstudio-spin{to{transform:rotate(360deg)}}@keyframes adstudio-pulse{0%,to{opacity:1}50%{opacity:.45}}@keyframes adstudio-ping{0%{opacity:.6;transform:scale(1)}to{opacity:0;transform:scale(2.4)}}@keyframes adstudio-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes adstudio-toastIn{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.ad-studio-root .page-enter{height:100%}@keyframes adstudio-pageOut{to{opacity:0}}@keyframes adstudio-pageIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@supports not (view-transition-name:none){.ad-studio-root .page-enter{animation:adstudio-pageIn .18s var(--ease-out) both}}.ad-studio-root img.fade-media{opacity:0;transition:opacity .4s var(--ease), transform .6s var(--ease-out)}.ad-studio-root img.fade-media.is-loaded{opacity:1}@media (prefers-reduced-motion:reduce){.ad-studio-root *,.ad-studio-root :before,.ad-studio-root :after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.ad-studio-root .app-layout{background:var(--bg);flex-direction:column;height:100dvh;display:flex}.ad-studio-root .studio-workspace-frame{flex:1;min-height:0;display:flex;position:relative}.ad-studio-root .main-viewport{background:var(--bg);flex:1;min-width:0;position:relative;overflow-y:auto}.ad-studio-root .studio-nav{height:var(--nav-h);background:var(--bg);border-bottom:1px solid var(--border);z-index:30;flex-shrink:0;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:0 16px;display:grid;position:relative}.ad-studio-root .nav-left-group{align-items:center;gap:8px;min-width:0;display:flex}.ad-studio-root .nav-brand{border-radius:var(--radius-sm);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background var(--dur) var(--ease);align-items:center;gap:8px;padding:6px 8px;display:flex}.ad-studio-root .nav-brand:hover{background:var(--bg-hover)}.ad-studio-root .brand-dot-wrapper{place-items:center;width:8px;height:8px;display:grid;position:relative}.ad-studio-root .brand-dot{background:var(--success);width:8px;height:8px;transition:background var(--dur) var(--ease);border-radius:50%}.ad-studio-root .brand-dot.generating{background:var(--accent)}.ad-studio-root .brand-dot-pulse{background:var(--accent);animation:adstudio-ping 1.4s var(--ease) infinite;border-radius:50%;position:absolute;inset:0}.ad-studio-root .brand-title{letter-spacing:-.01em;color:var(--text);font-size:15px;font-weight:600}.ad-studio-root .brand-subtitle{color:var(--text-3);letter-spacing:-.01em;font-size:15px;font-weight:400}.ad-studio-root .brand-badge-pill{display:none}.ad-studio-root .nav-tabs{background:var(--bg-muted);border-radius:var(--radius-md);align-items:center;gap:2px;padding:3px;display:flex;position:relative}.ad-studio-root .nav-tab-indicator{background:var(--bg-elevated);box-shadow:var(--shadow-sm);pointer-events:none;border-radius:7px;position:absolute;top:3px;bottom:3px;left:0}.ad-studio-root .nav-tabs.is-ready .nav-tab-indicator{transition:transform .2s var(--ease-out), width .2s var(--ease-out), opacity var(--dur) var(--ease)}.ad-studio-root .nav-tab-btn{z-index:1;height:30px;color:var(--text-2);transition:color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);border-radius:7px;align-items:center;gap:6px;padding:0 14px;font-size:13px;font-weight:500;display:inline-flex;position:relative}.ad-studio-root .nav-tab-btn:hover,.ad-studio-root .nav-tab-btn.active{color:var(--text)}.ad-studio-root .nav-counter{border-radius:var(--radius-full);background:var(--bg-hover);min-width:18px;height:18px;color:var(--text-2);font-variant-numeric:tabular-nums;place-items:center;padding:0 5px;font-size:11px;font-weight:600;display:inline-grid}.ad-studio-root .nav-tab-btn.active .nav-counter{background:var(--accent-soft);color:var(--accent-text)}.ad-studio-root .nav-actions{justify-content:flex-end;align-items:center;gap:4px;display:flex}.ad-studio-root .btn-nav-icon{border-radius:var(--radius-sm);width:32px;height:32px;color:var(--text-2);transition:background var(--dur) var(--ease), color var(--dur) var(--ease);place-items:center;display:grid}.ad-studio-root .btn-nav-icon:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .nav-link-docs,.ad-studio-root .btn-settings-minimal{border-radius:var(--radius-sm);height:32px;color:var(--text-2);transition:background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:500;display:inline-flex}.ad-studio-root .nav-link-docs:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .btn-settings-minimal{border:1px solid var(--border);color:var(--text);background:var(--bg);box-shadow:var(--shadow-xs)}.ad-studio-root .btn-settings-minimal:hover{border-color:var(--border-strong);background:var(--bg-soft)}.ad-studio-root .model-selector-container{display:inline-flex;position:relative}.ad-studio-root .model-selector-btn{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg);height:32px;color:var(--text);box-shadow:var(--shadow-xs);transition:all var(--dur) var(--ease);cursor:pointer;align-items:center;gap:8px;padding:0 10px 0 8px;font-size:13px;font-weight:500;display:inline-flex}.ad-studio-root .model-selector-btn:hover{background:var(--bg-soft);border-color:var(--border-strong)}.ad-studio-root .model-selector-btn.is-open{background:var(--bg-soft);border-color:var(--accent);box-shadow:0 0 0 1px var(--accent-soft)}.ad-studio-root .model-selector-icon-wrap{background:var(--bg-subtle);width:20px;height:20px;color:var(--accent);border-radius:4px;justify-content:center;align-items:center;display:flex}.ad-studio-root .model-selector-name{letter-spacing:-.01em;font-weight:500}.ad-studio-root .model-selector-chevron{color:var(--text-3);transition:transform var(--dur) var(--ease)}.ad-studio-root .model-selector-chevron.rotate{transform:rotate(180deg)}.ad-studio-root .model-selector-dropdown{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-md);width:280px;box-shadow:var(--shadow-md);z-index:100;flex-direction:column;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);right:0}.ad-studio-root .model-dropdown-header{border-bottom:1px solid var(--border-subtle);margin-bottom:4px;padding:6px 10px 8px}.ad-studio-root .model-dropdown-title{text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);font-size:11px;font-weight:600}.ad-studio-root .model-dropdown-list{flex-direction:column;gap:2px;display:flex}.ad-studio-root .model-option-item{border-radius:var(--radius-sm);text-align:left;width:100%;transition:background var(--dur) var(--ease);cursor:pointer;background:0 0;border:1px solid #0000;justify-content:space-between;align-items:center;padding:8px 10px;display:flex}.ad-studio-root .model-option-item:hover{background:var(--bg-hover)}.ad-studio-root .model-option-item.is-selected{background:var(--bg-soft);border-color:var(--border-subtle)}.ad-studio-root .model-option-left{align-items:flex-start;gap:10px;min-width:0;display:flex}.ad-studio-root .model-option-icon-box{background:var(--bg-subtle);border:1px solid var(--border-subtle);width:28px;height:28px;color:var(--text-2);border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;margin-top:1px;display:flex}.ad-studio-root .model-option-item.is-selected .model-option-icon-box{background:var(--accent-soft);color:var(--accent);border-color:#0000}.ad-studio-root .model-option-details{flex-direction:column;min-width:0;display:flex}.ad-studio-root .model-option-title-row{align-items:center;gap:6px;display:flex}.ad-studio-root .model-option-title{color:var(--text);font-size:13px;font-weight:500}.ad-studio-root .model-option-badge{background:var(--bg-hover);color:var(--text-3);text-transform:uppercase;letter-spacing:.02em;border-radius:4px;padding:1px 5px;font-size:10px;font-weight:600}.ad-studio-root .model-option-badge.xai{background:var(--accent-soft);color:var(--accent-text)}.ad-studio-root .model-option-desc{color:var(--text-3);margin-top:2px;font-size:11px;line-height:1.3}.ad-studio-root .model-option-check{color:var(--accent);flex-shrink:0;justify-content:center;align-items:center;margin-left:8px;display:flex}.ad-studio-root .model-dropdown-footer{border-top:1px solid var(--border-subtle);margin-top:4px;padding-top:4px}.ad-studio-root .model-settings-link-btn{border-radius:var(--radius-xs);width:100%;color:var(--text-3);transition:all var(--dur) var(--ease);cursor:pointer;background:0 0;align-items:center;gap:6px;padding:6px 10px;font-size:11px;font-weight:500;display:flex}.ad-studio-root .model-settings-link-btn:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .studio-sidebar{width:var(--sidebar-w);background:var(--bg-soft);border-right:1px solid var(--border);transition:width var(--dur-slow) var(--ease-out);z-index:20;flex-direction:column;flex-shrink:0;display:flex;overflow:hidden}.ad-studio-root .studio-sidebar.collapsed{width:var(--sidebar-w-collapsed)}.ad-studio-root .sidebar-text{white-space:nowrap;text-overflow:ellipsis;transition:opacity var(--dur) var(--ease);overflow:hidden}.ad-studio-root .studio-sidebar.collapsed .sidebar-text{opacity:0;pointer-events:none;width:0}.ad-studio-root .sidebar-header{align-items:center;gap:6px;padding:12px 12px 8px;display:flex}.ad-studio-root .studio-sidebar.collapsed .sidebar-header{flex-direction:column;padding:12px 10px 8px}.ad-studio-root .btn-gemini-new-chat{border-radius:var(--radius-sm);background:var(--bg);border:1px solid var(--border);height:36px;box-shadow:var(--shadow-xs);color:var(--text);transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);flex:1;align-items:center;gap:8px;padding:0 12px;font-size:13px;font-weight:500;display:flex}.ad-studio-root .btn-gemini-new-chat svg{color:var(--text-2);flex-shrink:0}.ad-studio-root .btn-gemini-new-chat:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}.ad-studio-root .studio-sidebar.collapsed .btn-gemini-new-chat{flex:none;justify-content:center;gap:0;width:38px;height:38px;padding:0}.ad-studio-root .sidebar-collapse-toggle{border-radius:var(--radius-sm);width:32px;height:32px;color:var(--text-3);transition:background var(--dur) var(--ease), color var(--dur) var(--ease);flex-shrink:0;place-items:center;display:grid}.ad-studio-root .sidebar-collapse-toggle:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .sidebar-body{flex:1;padding:8px;overflow:hidden auto}.ad-studio-root .sidebar-quick-nav{padding:0 4px 10px}.ad-studio-root .btn-sidebar-brand-kits{border-radius:var(--radius-sm);background:var(--accent-soft);border:1px solid color-mix(in srgb, var(--accent) 25%, transparent);width:100%;height:34px;color:var(--accent);cursor:pointer;transition:all var(--dur-fast) var(--ease);align-items:center;gap:8px;padding:0 10px;font-size:12.5px;font-weight:500;display:flex}.ad-studio-root .btn-sidebar-brand-kits svg{flex-shrink:0}.ad-studio-root .btn-sidebar-brand-kits:hover{background:color-mix(in srgb, var(--accent) 18%, transparent);border-color:color-mix(in srgb, var(--accent) 45%, transparent)}.ad-studio-root .studio-sidebar.collapsed .sidebar-quick-nav{padding:0 0 8px}.ad-studio-root .studio-sidebar.collapsed .btn-sidebar-brand-kits{justify-content:center;gap:0;width:38px;height:38px;margin:0 auto;padding:0}.ad-studio-root .studio-sidebar.collapsed .sidebar-body{visibility:hidden}.ad-studio-root .sidebar-section-title{letter-spacing:.02em;color:var(--text-3);align-items:center;gap:6px;padding:8px 8px 6px;font-size:11px;font-weight:500;display:flex}.ad-studio-root .sidebar-section-title svg{display:none}.ad-studio-root .sidebar-sessions-list{flex-direction:column;gap:1px;display:flex}.ad-studio-root .sidebar-empty-state{color:var(--text-3);white-space:normal;padding:12px 8px;font-size:12.5px}.ad-studio-root .sidebar-session-item{border-radius:var(--radius-sm);cursor:pointer;transition:background var(--dur-fast) var(--ease);align-items:center;gap:4px;padding:8px 8px 8px 10px;display:flex;position:relative}.ad-studio-root .sidebar-session-item:hover{background:var(--bg-hover)}.ad-studio-root .sidebar-session-item.active{background:var(--bg);box-shadow:var(--shadow-sm), inset 0 0 0 1px var(--border)}.ad-studio-root .session-item-content{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ad-studio-root .session-title-row{align-items:center;gap:6px;min-width:0;display:flex}.ad-studio-root .session-item-title{color:var(--text-2);min-width:0;font-size:13px;font-weight:450}.ad-studio-root .sidebar-session-item:hover .session-item-title,.ad-studio-root .sidebar-session-item.active .session-item-title{color:var(--text)}.ad-studio-root .sidebar-session-item.active .session-item-title{font-weight:500}.ad-studio-root .session-item-time{color:var(--text-3);font-size:11.5px}.ad-studio-root .session-delete-btn{border-radius:var(--radius-xs);width:26px;height:26px;color:var(--text-3);opacity:0;transition:opacity var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);flex-shrink:0;place-items:center;display:grid}.ad-studio-root .sidebar-session-item:hover .session-delete-btn,.ad-studio-root .session-delete-btn:focus-visible{opacity:1}.ad-studio-root .session-delete-btn:hover{background:var(--danger-soft);color:var(--danger)}.ad-studio-root .sidebar-footer{border-top:1px solid var(--border);flex-direction:column;gap:1px;padding:8px;display:flex}.ad-studio-root .sidebar-footer-btn{border-radius:var(--radius-sm);height:34px;color:var(--text-2);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);align-items:center;gap:10px;padding:0 10px;font-size:13px;display:flex}.ad-studio-root .sidebar-footer-btn svg{flex-shrink:0}.ad-studio-root .sidebar-footer-btn:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .studio-sidebar.collapsed .sidebar-footer-btn{justify-content:center;gap:0;padding:0}.ad-studio-root .sidebar-mobile-backdrop{display:none}.ad-studio-root .gemini-chat-container{flex-direction:column;height:100%;min-height:0;display:flex}.ad-studio-root .gemini-messages-viewport{scroll-behavior:smooth;flex-direction:column;flex:1;gap:28px;padding:32px 24px 24px;display:flex;overflow-y:auto}.ad-studio-root .gemini-messages-viewport.is-empty{justify-content:flex-end;padding-bottom:8px}.ad-studio-root .gemini-welcome-container{width:100%;max-width:var(--content-w);text-align:left;animation:adstudio-fadeUp var(--dur-slow) var(--ease-out);margin:0 auto;padding:0 4px}.ad-studio-root .gemini-sparkle-pill,.ad-studio-root .welcome-badge{border-radius:var(--radius-full);border:1px solid var(--border);background:var(--bg);height:26px;color:var(--text-2);align-items:center;gap:6px;margin-bottom:16px;padding:0 10px;font-size:12px;font-weight:500;display:inline-flex}.ad-studio-root .gemini-sparkle-icon,.ad-studio-root .sparkle-icon{color:var(--accent)}.ad-studio-root .gemini-welcome-heading{letter-spacing:-.025em;color:var(--text);margin-bottom:10px;font-size:clamp(26px,3.2vw,34px);font-weight:600;line-height:1.15}.ad-studio-root .gemini-welcome-description{max-width:560px;color:var(--text-2);font-size:15px;line-height:1.6}.ad-studio-root .gemini-message-item{width:100%;max-width:var(--content-w);animation:adstudio-fadeUp var(--dur-slow) var(--ease-out);margin:0 auto}.ad-studio-root .message-inner-container{flex-direction:column;gap:10px;min-width:0;display:flex}.ad-studio-root .message-header-row{align-items:center;gap:8px;min-height:24px;display:flex}.ad-studio-root .gemini-avatar{border-radius:7px;flex-shrink:0;place-items:center;width:24px;height:24px;display:grid}.ad-studio-root .gemini-avatar.assistant{background:var(--primary);color:var(--on-primary)}.ad-studio-root .gemini-avatar.user{background:var(--bg-muted);color:var(--text-2)}.ad-studio-root .gemini-avatar svg{width:13px;height:13px}.ad-studio-root .gemini-avatar.is-generating svg{animation:adstudio-pulse 1.6s var(--ease) infinite}.ad-studio-root .gemini-sender-name{color:var(--text);font-size:13px;font-weight:600}.ad-studio-root .gemini-msg-time{color:var(--text-3);font-variant-numeric:tabular-nums;opacity:0;transition:opacity var(--dur) var(--ease);align-items:center;gap:4px;font-size:11.5px;display:inline-flex}.ad-studio-root .gemini-msg-time svg{display:none}.ad-studio-root .gemini-message-item:hover .gemini-msg-time{opacity:1}.ad-studio-root .msg-brand-pill{border-radius:var(--radius-full);background:var(--accent-soft);height:20px;color:var(--accent-text);align-items:center;gap:4px;padding:0 8px;font-size:11px;font-weight:500;display:inline-flex}.ad-studio-root .gemini-message-item.user .message-inner-container{align-items:flex-end}.ad-studio-root .gemini-message-item.user .message-header-row{flex-direction:row-reverse}.ad-studio-root .gemini-message-item.user .gemini-avatar,.ad-studio-root .gemini-message-item.user .gemini-sender-name{display:none}.ad-studio-root .gemini-message-item.user .gemini-message-body{background:var(--bg-muted);max-width:85%;color:var(--text);border-radius:18px 18px 4px;padding:8px 14px;font-size:13.5px;line-height:1.6}.ad-studio-root .gemini-message-item.user .message-header-row{min-height:0;margin-bottom:-6px}.ad-studio-root .gemini-message-item.assistant .gemini-message-body{padding-left:32px}.ad-studio-root .gemini-message-item.assistant .gemini-reasoning-drawer,.ad-studio-root .gemini-message-item.assistant .api-key-notice-card,.ad-studio-root .gemini-message-item.assistant .safety-refusal-card,.ad-studio-root .gemini-message-item.assistant .gemini-copy-actions-bar,.ad-studio-root .gemini-message-item.assistant .gemini-media-grid,.ad-studio-root .gemini-message-item.assistant .gemini-loading-card{margin-left:32px}.ad-studio-root .user-attached-preview-card{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg);max-width:380px;box-shadow:var(--shadow-xs);transition:border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);align-items:center;gap:10px;padding:6px 12px 6px 6px;display:inline-flex}.ad-studio-root .user-attached-preview-card.clickable{cursor:pointer;-webkit-user-select:none;user-select:none}.ad-studio-root .user-attached-preview-card.clickable:hover{border-color:var(--accent);box-shadow:var(--shadow-sm);transform:translateY(-1px)}.ad-studio-root .user-attached-thumb-container{border-radius:var(--radius-sm);flex-shrink:0;width:44px;height:44px;position:relative;overflow:hidden}.ad-studio-root .user-attached-thumb{-o-object-fit:cover;object-fit:cover;border-radius:var(--radius-sm);cursor:zoom-in;width:100%;height:100%;transition:transform .2s}.ad-studio-root .user-attached-preview-card:hover .user-attached-thumb{transform:scale(1.05)}.ad-studio-root .user-attached-overlay{color:#fff;opacity:0;background:#00000061;justify-content:center;align-items:center;transition:opacity .15s;display:flex;position:absolute;inset:0}.ad-studio-root .user-attached-preview-card:hover .user-attached-overlay{opacity:1}.ad-studio-root .user-attached-file-badge{border-radius:var(--radius-sm);background:var(--bg-muted);place-items:center;width:40px;height:40px;display:grid}.ad-studio-root .user-attached-meta{flex-direction:column;min-width:0;display:flex}.ad-studio-root .user-attached-label{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:500;overflow:hidden}.ad-studio-root .user-attached-size{color:var(--text-3);font-size:11.5px}.ad-studio-root .user-attached-expand-tag{background:var(--bg-muted);border:1px solid var(--border);color:var(--text-2);border-radius:999px;flex-shrink:0;align-items:center;gap:4px;margin-left:auto;padding:3px 8px;font-size:11px;font-weight:500;transition:all .15s;display:inline-flex}.ad-studio-root .user-attached-preview-card:hover .user-attached-expand-tag{background:var(--accent);color:#fff;border-color:var(--accent)}.ad-studio-root .gemini-reasoning-drawer{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg);overflow:hidden}.ad-studio-root .gemini-reasoning-trigger{width:100%;color:var(--text-2);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);justify-content:space-between;align-items:center;gap:8px;padding:9px 12px;font-size:12.5px;font-weight:500;display:flex}.ad-studio-root .gemini-reasoning-trigger:hover{background:var(--bg-soft);color:var(--text)}.ad-studio-root .reasoning-label-group{align-items:center;gap:8px;display:flex}.ad-studio-root .layers-icon{color:var(--text-3)}.ad-studio-root .gemini-reasoning-content{border-top:1px solid var(--border);background:var(--bg-soft);animation:adstudio-fadeIn var(--dur) var(--ease);flex-direction:column;gap:10px;padding:12px 14px 14px;display:flex}.ad-studio-root .gemini-step-row{gap:10px;font-size:13px;line-height:1.55;display:flex}.ad-studio-root .step-bullet{color:var(--success);flex-shrink:0;margin-top:3px}.ad-studio-root .step-title{color:var(--text);font-weight:600}.ad-studio-root .step-detail{color:var(--text-2)}.ad-studio-root .api-key-notice-card{border:1px solid color-mix(in srgb, var(--warning) 25%, transparent);border-radius:var(--radius-md);background:var(--warning-soft);padding:12px 14px}.ad-studio-root .notice-header{color:var(--text);align-items:center;gap:8px;margin-bottom:4px;font-size:13px;font-weight:600;display:flex}.ad-studio-root .notice-body{color:var(--text-2);font-size:13px;line-height:1.55}.ad-studio-root .notice-sub{color:var(--text-3);margin-top:6px;font-size:12px;display:block}.ad-studio-root .safety-refusal-card{border:1px solid color-mix(in srgb, var(--warning) 25%, transparent);border-radius:var(--radius-md);background:var(--warning-soft);color:var(--text);align-items:center;gap:10px;padding:10px 14px;font-size:13px;display:flex}.ad-studio-root .gemini-expansion-banner{border-radius:var(--radius-full);background:var(--accent-soft);color:var(--accent-text);align-items:center;gap:6px;margin-bottom:10px;padding:3px 10px;font-size:11.5px;font-weight:500;display:inline-flex}.ad-studio-root .gemini-message-body{color:var(--text);overflow-wrap:anywhere;min-width:0;font-size:13.5px;line-height:1.58}.ad-studio-root .gemini-markdown-body{color:var(--text);font-size:13.5px;line-height:1.58}.ad-studio-root .markdown-h1{color:var(--text);letter-spacing:-.015em;margin:12px 0 5px;font-size:16.5px;font-weight:700;line-height:1.3}.ad-studio-root .markdown-h2{color:var(--text);letter-spacing:-.01em;margin:10px 0 4px;font-size:15px;font-weight:650;line-height:1.35}.ad-studio-root .markdown-h3{color:var(--text);margin:8px 0 4px;font-size:13.5px;font-weight:600;line-height:1.4}.ad-studio-root .markdown-paragraph{margin:0 0 7px;line-height:1.58}.ad-studio-root .markdown-paragraph:last-child{margin-bottom:0}.ad-studio-root .markdown-list-item{align-items:baseline;gap:7px;margin:2.5px 0;line-height:1.52;display:flex}.ad-studio-root .markdown-list-item.numbered{gap:8px}.ad-studio-root .bullet-dot{color:var(--accent);-webkit-user-select:none;user-select:none;flex-shrink:0;font-size:14px;font-weight:700;line-height:1}.ad-studio-root .bullet-num{color:var(--text-2);-webkit-user-select:none;user-select:none;flex-shrink:0;min-width:14px;font-size:12px;font-weight:600}.ad-studio-root .list-text{flex:1}.ad-studio-root .markdown-blockquote{border-left:3px solid var(--accent);background:var(--bg-muted);border-radius:0 var(--radius-sm) var(--radius-sm) 0;color:var(--text-2);margin:8px 0;padding:6px 12px;font-style:italic}.ad-studio-root .inline-code{font-family:var(--font-mono,monospace);border-radius:var(--radius-xs);background:var(--bg-muted);border:1px solid var(--border);color:var(--accent-text,#e2e8f0);padding:1.5px 5px;font-size:12px}.ad-studio-root .markdown-pre{border:1px solid var(--border);border-radius:var(--radius-md);font-family:var(--font-mono,monospace);color:#e2e8f0;background:#0d0e12;margin:8px 0;padding:10px 14px;font-size:12px;line-height:1.5;overflow-x:auto}.ad-studio-root .markdown-table-block{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg);box-shadow:var(--shadow-xs);margin:10px 0;overflow:hidden}.ad-studio-root .markdown-table-scroll{max-width:100%;overflow-x:auto}.ad-studio-root .markdown-table{border-collapse:collapse;text-align:left;width:100%;font-size:12.5px}.ad-studio-root .markdown-table th{background:var(--bg-muted);color:var(--text);border-bottom:1px solid var(--border);white-space:nowrap;padding:8px 12px;font-weight:600}.ad-studio-root .markdown-table td{border-bottom:1px solid var(--border);color:var(--text);padding:7px 12px;line-height:1.45}.ad-studio-root .markdown-table tr:last-child td{border-bottom:none}.ad-studio-root .markdown-table tr:hover td{background:var(--bg-hover)}.ad-studio-root .markdown-table-section td{background:var(--bg-muted);color:var(--accent);padding:6px 12px;font-weight:600}.ad-studio-root .markdown-table-actions{background:var(--bg-muted);border-top:1px solid var(--border);justify-content:flex-end;align-items:center;gap:8px;padding:4px 10px;display:flex}.ad-studio-root .markdown-table-actions button{border-radius:var(--radius-xs);color:var(--text-2);cursor:pointer;transition:all var(--dur-fast) var(--ease);background:0 0;border:1px solid #0000;align-items:center;gap:4px;padding:3px 8px;font-size:11.5px;font-weight:500;display:inline-flex}.ad-studio-root .markdown-table-actions button:hover{background:var(--bg);color:var(--text);border-color:var(--border)}.ad-studio-root .gemini-copy-actions-bar{flex-wrap:wrap;gap:4px;margin-top:-2px;display:flex}.ad-studio-root .btn-copy-marketing-copy,.ad-studio-root .btn-append-copy,.ad-studio-root .btn-copy-merged-copy{border-radius:var(--radius-sm);height:28px;color:var(--text-2);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);align-items:center;gap:6px;padding:0 10px;font-size:12.5px;font-weight:500;display:inline-flex}.ad-studio-root .btn-copy-marketing-copy:hover,.ad-studio-root .btn-append-copy:hover:not(:disabled),.ad-studio-root .btn-copy-merged-copy:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .btn-copy-marketing-copy.copied,.ad-studio-root .btn-copy-merged-copy.copied,.ad-studio-root .btn-append-copy.merged{color:var(--success)}.ad-studio-root .btn-append-copy:disabled{opacity:.8}.ad-studio-root .btn-generate-video-action{border-radius:var(--radius-sm);letter-spacing:-.01em;height:28px;color:var(--text);background:var(--bg-elevated);border:1px solid var(--border-strong);transition:background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;padding:0 12px;font-size:12px;font-weight:500;display:inline-flex}.ad-studio-root .btn-generate-video-action:hover:not(:disabled){background:var(--bg-hover);border-color:var(--text-3);color:var(--text)}.ad-studio-root .btn-generate-video-action:active:not(:disabled){transform:translateY(1px)}.ad-studio-root .btn-generate-video-action:disabled{opacity:.4;cursor:not-allowed}.ad-studio-root .gemini-media-grid{flex-wrap:wrap;gap:12px;margin:8px 0 12px;display:flex}.ad-studio-root .gemini-media-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg);width:100%;max-width:340px;transition:box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);overflow:hidden;box-shadow:0 4px 18px #00000026}.ad-studio-root .gemini-media-card:hover{border-color:var(--border-strong);box-shadow:0 8px 26px #00000038}.ad-studio-root .gemini-media-card.is-director{border-radius:var(--radius-lg);background:var(--card,var(--bg));max-width:560px;box-shadow:none}.ad-studio-root .gemini-media-card.is-director .media-visual-wrapper{background:0 0;min-height:0;max-height:none;display:block;overflow:visible}.ad-studio-root .is-director .video-project-card,.ad-studio-root .is-director .video-project-panel{color:var(--text);max-height:none}.ad-studio-root .is-director .video-project-panel .vp-title,.ad-studio-root .is-director .video-project-panel .vp-goal,.ad-studio-root .is-director .video-project-panel .vp-question,.ad-studio-root .is-director .video-project-panel .vp-details{color:var(--text)}.ad-studio-root .is-director .video-project-panel .vp-badge,.ad-studio-root .is-director .video-project-panel .vp-shots li{background:var(--bg);border-color:var(--border)}.ad-studio-root .is-director .video-project-panel .vp-shot-head{color:var(--accent)}.ad-studio-root .is-director .video-project-panel .vp-shot-meta{color:var(--text-muted,var(--text));opacity:.7}.ad-studio-root .is-director .video-project-panel .vp-input{border-color:var(--border);background:var(--bg);color:var(--text)}.ad-studio-root .is-director .video-project-panel .vp-primary{border-color:var(--accent);background:var(--accent);color:#fff}.ad-studio-root .is-director .video-project-panel .vp-secondary,.ad-studio-root .is-director .video-project-cancel{border-color:var(--border);background:var(--bg);color:var(--text)}.ad-studio-root .is-director .video-project-card.is-error{color:#dc2626}.ad-studio-root .media-visual-wrapper{background:#08080a;justify-content:center;align-items:center;min-height:180px;max-height:260px;display:flex;position:relative;overflow:hidden}.ad-studio-root .gemini-rendered-image,.ad-studio-root .gemini-rendered-video{-o-object-fit:contain;object-fit:contain;width:auto;max-width:100%;height:auto;max-height:260px;display:block}.ad-studio-root .gemini-rendered-image{cursor:zoom-in;transition:transform var(--dur-slow) var(--ease-out)}.ad-studio-root .gemini-rendered-image:hover{transform:scale(1.015)}.ad-studio-root .video-project-card{color:#ffffffdb;flex-wrap:wrap;align-items:center;gap:10px;max-width:100%;margin:auto;padding:16px 18px;font-size:13px;line-height:1.4;display:flex}.ad-studio-root .video-project-card.is-error{color:#fca5a5}.ad-studio-root .video-project-spin{color:#a5b4fc;flex-shrink:0;animation:.8s linear infinite adstudio-spin}.ad-studio-root .video-project-cancel{border-radius:var(--radius-sm);color:#fff;cursor:pointer;background:#ffffff14;border:1px solid #ffffff47;margin-left:auto;padding:4px 10px;font-size:12px}.ad-studio-root .video-project-cancel:hover:not(:disabled){background:#ffffff29}.ad-studio-root .video-project-cancel:disabled{opacity:.6;cursor:default}.ad-studio-root .video-project-panel{color:#ffffffe0;text-align:left;width:100%;max-height:470px;padding:16px 18px;font-size:13px;line-height:1.45;overflow-y:auto}.ad-studio-root .video-project-panel .vp-title{color:#fff;align-items:center;gap:8px;margin-bottom:6px;font-size:14px;font-weight:600;display:flex}.ad-studio-root .video-project-panel .vp-badge{border-radius:var(--radius-full);background:#ffffff1f;padding:1px 8px;font-size:11px;font-weight:500}.ad-studio-root .video-project-panel .vp-goal,.ad-studio-root .video-project-panel .vp-question{color:#fffc;margin:0 0 10px}.ad-studio-root .video-project-panel .vp-shots{gap:8px;margin:0 0 10px;padding:0;list-style:none;display:grid}.ad-studio-root .video-project-panel .vp-shots li{border-radius:var(--radius-sm);background:#ffffff0f;border:1px solid #ffffff1a;padding:8px 10px}.ad-studio-root .video-project-panel .vp-shot-head{color:#a5b4fc;justify-content:space-between;gap:8px;margin-bottom:3px;font-size:11px;display:flex}.ad-studio-root .video-project-panel .vp-shot-meta{color:#ffffff8c;margin-top:2px;font-size:11px}.ad-studio-root .video-project-panel .vp-routing{margin:0 0 8px}.ad-studio-root .video-project-panel .vp-segments{margin:0 0 10px;padding:0;font-size:12px;list-style:none}.ad-studio-root .video-project-panel .vp-segments li{align-items:center;gap:10px;padding:3px 0;display:flex}.ad-studio-root .video-project-panel .vp-segments .vp-shot-meta{flex:1;margin-top:0}.ad-studio-root .video-project-panel .vp-details{color:#ffffffb3;margin:0 0 8px;font-size:12px}.ad-studio-root .video-project-panel .vp-details ul,.ad-studio-root .video-project-panel .vp-warnings{margin:4px 0 0;padding-left:18px}.ad-studio-root .video-project-panel .vp-warnings{color:#fcd34d;margin-bottom:8px;font-size:12px}.ad-studio-root .video-project-panel .vp-error{color:#fca5a5;margin:0 0 8px;font-size:12px}.ad-studio-root .video-project-panel .vp-actions,.ad-studio-root .video-project-panel .vp-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ad-studio-root .video-project-panel .vp-input{border-radius:var(--radius-sm);color:#fff;background:#ffffff14;border:1px solid #ffffff47;flex:180px;min-width:0;padding:6px 10px;font-size:13px}.ad-studio-root .video-project-panel .vp-primary,.ad-studio-root .video-project-panel .vp-secondary{border-radius:var(--radius-sm);cursor:pointer;align-items:center;gap:5px;padding:6px 12px;font-size:12px;font-weight:600;display:inline-flex}.ad-studio-root .video-project-panel .vp-primary{border:1px solid var(--border);background:var(--card);color:var(--text)}.ad-studio-root .video-project-panel .vp-secondary{color:#fff;background:#ffffff14;border:1px solid #ffffff47}.ad-studio-root .video-project-panel button:disabled{opacity:.55;cursor:default}.ad-studio-root .video-project-panel .video-project-cancel{margin-left:0}.ad-studio-root .media-video-expand-btn{border-radius:var(--radius-sm);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;cursor:pointer;z-index:4;width:28px;height:28px;transition:background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);background:#121216bf;border:1px solid #fff3;place-items:center;display:grid;position:absolute;top:10px;right:10px}.ad-studio-root .media-video-expand-btn:hover{background:#000000e6;transform:scale(1.06)}.ad-studio-root .media-aspect-badge,.ad-studio-root .media-corner-tag{border-radius:var(--radius-full);background:var(--card);-webkit-backdrop-filter:blur(8px);max-width:calc(100% - 20px);color:var(--text);letter-spacing:.02em;white-space:nowrap;text-overflow:ellipsis;opacity:0;transition:opacity var(--dur) var(--ease), transform var(--dur) var(--ease);align-items:center;gap:5px;padding:3px 8px;font-size:10.5px;font-weight:600;display:inline-flex;position:absolute;top:10px;left:10px;overflow:hidden;transform:translateY(-3px);box-shadow:0 1px 2px #00000014}.ad-studio-root .gemini-media-card:hover .media-aspect-badge,.ad-studio-root .gemini-media-card:focus-within .media-aspect-badge,.ad-studio-root .template-card:hover .media-corner-tag,.ad-studio-root .template-card:focus-within .media-corner-tag{opacity:1;transform:translateY(0)}@media (hover:none){.ad-studio-root .media-aspect-badge,.ad-studio-root .media-corner-tag{opacity:1;transform:none}}.ad-studio-root .gemini-media-footer{border-top:1px solid var(--border);justify-content:flex-end;align-items:center;gap:8px;padding:8px;display:flex}.ad-studio-root .media-meta-tags{gap:8px;min-width:0;display:flex;overflow:hidden}.ad-studio-root .media-meta-tag{color:var(--text-3);white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;font-size:11.5px;overflow:hidden}.ad-studio-root .media-footer-buttons{flex-shrink:0;align-items:center;gap:2px;display:flex}.ad-studio-root .gemini-media-btn{border-radius:var(--radius-sm);min-width:28px;height:28px;color:var(--text-2);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);justify-content:center;align-items:center;gap:5px;padding:0 8px;font-size:12px;font-weight:500;display:inline-flex}.ad-studio-root .gemini-media-btn:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .gemini-media-btn.animate-btn{background:var(--primary);color:var(--on-primary)}.ad-studio-root .gemini-media-btn.animate-btn:hover{background:var(--primary-hover);color:var(--on-primary)}.ad-studio-root .generating-status{color:var(--text-3);align-items:center;gap:6px;font-size:13px;display:inline-flex}.ad-studio-root .generating-label{animation:adstudio-fadeIn .2s var(--ease) both}.ad-studio-root .typing-dots{align-items:center;gap:3px;height:12px;display:inline-flex}.ad-studio-root .typing-dots i{width:4px;height:4px;animation:adstudio-dotFade 1.2s var(--ease) infinite;background:currentColor;border-radius:50%}.ad-studio-root .typing-dots i:nth-child(2){animation-delay:.2s}.ad-studio-root .typing-dots i:nth-child(3){animation-delay:.4s}@keyframes adstudio-dotFade{0%,80%,to{opacity:.25}40%{opacity:1}}.ad-studio-root .gemini-loading-card{flex-direction:column;gap:10px;max-width:520px;padding-top:4px;display:flex}.ad-studio-root .skeleton-line{border-radius:var(--radius-full);background:linear-gradient(90deg, var(--bg-muted) 0%, var(--bg-hover) 20%, var(--bg-muted) 40%, var(--bg-muted) 100%);height:10px;animation:adstudio-fadeIn .2s var(--ease) both, adstudio-skeletonShimmer 1.6s linear infinite;background-size:250% 100%;display:block}@keyframes adstudio-skeletonShimmer{0%{background-position:100% 0}to{background-position:-150% 0}}.ad-studio-root .swatch-palette-icon{color:var(--text-3)}.ad-studio-root .brand-color-dot{border-radius:50%;width:14px;height:14px;box-shadow:inset 0 0 0 1px #00000014}.ad-studio-root .brand-kit-logo{-o-object-fit:contain;object-fit:contain;border-radius:var(--radius-sm);background:var(--card);max-width:88px;height:22px;box-shadow:inset 0 0 0 1px var(--border);flex-shrink:0;padding:2px 4px}.ad-studio-root .brand-kit-products{flex-shrink:0;align-items:center;gap:3px;display:inline-flex}.ad-studio-root .brand-kit-products img{-o-object-fit:cover;object-fit:cover;width:22px;height:22px;box-shadow:inset 0 0 0 1px var(--border);border-radius:5px}.ad-studio-root .brand-kit-more{color:var(--text-3);font-size:11px}.ad-studio-root .brand-kit-modal-backdrop{z-index:1000;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:adstudio-fadeIn var(--dur-fast) var(--ease);background:#000000a6;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.ad-studio-root .brand-kit-modal-container{background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-xl);width:100%;max-width:680px;max-height:calc(100vh - 60px);box-shadow:var(--shadow-xl);animation:adstudio-scaleIn var(--dur-slow) var(--ease-out);flex-direction:column;display:flex;overflow:hidden}.ad-studio-root .brand-kit-modal-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:20px 24px 16px;display:flex}.ad-studio-root .brand-kit-header-title-row{align-items:center;gap:12px;display:flex}.ad-studio-root .brand-kit-header-icon{border-radius:var(--radius-md);background:var(--accent-soft);width:32px;height:32px;color:var(--accent);place-items:center;display:grid}.ad-studio-root .brand-kit-modal-header h3{color:var(--text);margin:0;font-size:16px;font-weight:600}.ad-studio-root .brand-kit-modal-header p{color:var(--text-2);margin:2px 0 0;font-size:12.5px}.ad-studio-root .brand-kit-close-btn{border-radius:var(--radius-sm);width:32px;height:32px;color:var(--text-3);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);place-items:center;display:grid}.ad-studio-root .brand-kit-close-btn:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .brand-kit-modal-body{flex-direction:column;gap:14px;max-height:520px;padding:20px 24px;display:flex;overflow-y:auto}.ad-studio-root .brand-kit-loading-state,.ad-studio-root .brand-kit-empty-state{text-align:center;color:var(--text-2);flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:48px 20px;display:flex}.ad-studio-root .brand-kit-empty-state svg{color:var(--accent);opacity:.8}.ad-studio-root .brand-kit-empty-state h4{color:var(--text);margin:0;font-size:15px}.ad-studio-root .brand-kit-empty-state code{font-family:var(--font-mono,monospace);background:var(--bg-muted);border:1px solid var(--border);color:var(--accent);border-radius:4px;margin-top:6px;padding:4px 8px;font-size:12px;display:inline-block}.ad-studio-root .brand-kit-grid{grid-template-columns:1fr;gap:12px;display:grid}.ad-studio-root .brand-kit-card{border-radius:var(--radius-lg);border:1px solid var(--border);background:var(--bg);transition:all var(--dur-fast) var(--ease);flex-direction:column;gap:12px;padding:16px;display:flex}.ad-studio-root .brand-kit-card:hover{border-color:color-mix(in srgb, var(--accent) 40%, var(--border));box-shadow:var(--shadow-sm)}.ad-studio-root .brand-kit-card.is-active-brand{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 4%, var(--bg))}.ad-studio-root .brand-kit-card-top{align-items:flex-start;gap:12px;display:flex}.ad-studio-root .brand-kit-card-logo-wrap{border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface-2,#ffffff0d);flex-shrink:0;place-items:center;width:44px;height:44px;display:grid;position:relative}.ad-studio-root .brand-kit-card-logo{-o-object-fit:contain;object-fit:contain;max-width:100%;max-height:100%;padding:4px}.ad-studio-root .brand-kit-logo-upload-btn{background:var(--surface-1,#1e1e24);border:1px solid var(--border);width:20px;height:20px;color:var(--text-2,#aaa);cursor:pointer;z-index:2;border-radius:50%;justify-content:center;align-items:center;transition:all .15s;display:flex;position:absolute;bottom:-4px;right:-4px;box-shadow:0 2px 5px #00000080}.ad-studio-root .brand-kit-logo-upload-btn:hover{background:var(--accent,#6366f1);color:#fff;border-color:var(--accent,#6366f1);transform:scale(1.1)}.ad-studio-root .brand-kit-card-avatar{color:var(--text-2);font-size:18px;font-weight:700}.ad-studio-root .brand-kit-card-info{flex:1;min-width:0}.ad-studio-root .brand-kit-card-name-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ad-studio-root .brand-kit-card-name{color:var(--text);font-size:14px;font-weight:600}.ad-studio-root .brand-kit-active-tag{border-radius:var(--radius-full);background:var(--accent-soft);color:var(--accent);align-items:center;gap:4px;padding:2px 7px;font-size:11px;font-weight:500;display:inline-flex}.ad-studio-root .brand-kit-card-website{color:var(--text-3);transition:color var(--dur-fast) var(--ease);align-items:center;gap:4px;margin-top:4px;font-size:12px;text-decoration:none;display:inline-flex}.ad-studio-root .brand-kit-card-website:hover{color:var(--accent)}.ad-studio-root .brand-kit-card-meta{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ad-studio-root .brand-kit-card-pill{border-radius:var(--radius-full);background:var(--bg-muted);color:var(--text-2);align-items:center;gap:4px;padding:2px 8px;font-size:11.5px;display:inline-flex}.ad-studio-root .brand-kit-card-actions{align-items:center;gap:8px;margin-top:2px;display:flex}.ad-studio-root .brand-kit-action-btn{border-radius:var(--radius-sm);cursor:pointer;height:30px;transition:all var(--dur-fast) var(--ease);align-items:center;gap:5px;padding:0 12px;font-size:12px;font-weight:500;display:inline-flex}.ad-studio-root .brand-kit-action-btn.primary{background:var(--accent);color:#fff}.ad-studio-root .brand-kit-action-btn.primary:hover{filter:brightness(1.1)}.ad-studio-root .brand-kit-action-btn.secondary{background:var(--bg-muted);color:var(--text-2);border:1px solid var(--border)}.ad-studio-root .brand-kit-action-btn.secondary:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .brand-kit-modal-footer{border-top:1px solid var(--border);background:var(--bg-muted);justify-content:flex-end;align-items:center;gap:10px;padding:14px 24px;display:flex}.ad-studio-root .brand-kit-footer-btn{border-radius:var(--radius-sm);cursor:pointer;height:32px;transition:all var(--dur-fast) var(--ease);align-items:center;gap:6px;padding:0 14px;font-size:12.5px;font-weight:500;display:inline-flex}.ad-studio-root .brand-kit-footer-btn.close{background:var(--bg-elevated);border:1px solid var(--border);color:var(--text)}.ad-studio-root .brand-kit-footer-btn.close:hover{background:var(--bg-hover)}.ad-studio-root .brand-kit-footer-btn.clear{color:var(--error,#e53e3e);border:1px solid color-mix(in srgb, var(--error,#e53e3e) 30%, transparent);background:0 0;margin-right:auto}.ad-studio-root .brand-kit-footer-btn.clear:hover{background:color-mix(in srgb, var(--error,#e53e3e) 10%, transparent)}.ad-studio-root .gemini-prompt-wrapper{width:100%;max-width:calc(var(--content-w) + 48px);flex-shrink:0;margin:0 auto;padding:8px 24px 20px;position:relative}.ad-studio-root .gemini-prompt-wrapper:before{content:"";background:linear-gradient(to bottom, transparent, var(--bg));pointer-events:none;height:24px;position:absolute;top:-24px;left:0;right:0}.ad-studio-root .gemini-starters-grid{animation:adstudio-fadeUp var(--dur-slow) var(--ease-out) 60ms both;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.ad-studio-root .gemini-starter-card{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg);text-align:left;transition:border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);flex-direction:column;gap:4px;padding:12px 14px;display:flex}.ad-studio-root .gemini-starter-card:hover{border-color:var(--border-strong);background:var(--bg-soft)}.ad-studio-root .starter-header{align-items:center;gap:8px;display:flex}.ad-studio-root .starter-icon-capsule{background:var(--bg-muted);width:22px;height:22px;color:var(--text-2);transition:background var(--dur) var(--ease), color var(--dur) var(--ease);border-radius:6px;place-items:center;display:grid}.ad-studio-root .gemini-starter-card:hover .starter-icon-capsule{background:var(--accent-soft);color:var(--accent)}.ad-studio-root .starter-title{color:var(--text);font-size:13px;font-weight:500}.ad-studio-root .starter-preview{color:var(--text-3);-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;font-size:12.5px;line-height:1.5;display:-webkit-box;overflow:hidden}.ad-studio-root .gemini-input-capsule{border:1px solid var(--border-strong);border-radius:var(--radius-xl);background:var(--bg);box-shadow:var(--shadow-md);transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);position:relative}.ad-studio-root .gemini-input-capsule:focus-within{border-color:color-mix(in srgb, var(--accent) 45%, var(--border-strong));box-shadow:var(--shadow-md), 0 0 0 4px var(--focus-ring)}.ad-studio-root .gemini-input-capsule.drag-active{border-color:var(--accent);background:var(--accent-soft);border-style:dashed}.ad-studio-root .user-attached-grid{flex-wrap:wrap;gap:8px;max-width:100%;margin-bottom:8px;display:flex}.ad-studio-root .user-attached-grid .user-attached-preview-card{flex:200px;max-width:240px}.ad-studio-root .gemini-attachments-wrap{animation:adstudio-fadeUp var(--dur) var(--ease-out);flex-direction:column;gap:6px;margin:10px 10px 0;display:flex}.ad-studio-root .gemini-attachments-header{justify-content:space-between;align-items:center;padding:0 4px;display:flex}.ad-studio-root .gemini-attachments-count{color:var(--text-2);align-items:center;gap:5px;font-size:11.5px;font-weight:500;display:inline-flex}.ad-studio-root .gemini-attachments-clear-all{color:var(--text-3);cursor:pointer;background:0 0;border:none;border-radius:4px;padding:2px 6px;font-size:11px;transition:color .15s,background-color .15s}.ad-studio-root .gemini-attachments-clear-all:hover{color:#ef4444;background:#ef44441a}.ad-studio-root .gemini-attachments-grid{flex-wrap:wrap;gap:8px;max-height:140px;padding:2px;display:flex;overflow-y:auto}.ad-studio-root .gemini-attachments-grid .gemini-attachment-pill{flex:170px;max-width:220px;margin:0}.ad-studio-root .gemini-attachment-pill{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg-soft);max-width:360px;animation:adstudio-fadeUp var(--dur) var(--ease-out);align-items:center;gap:10px;margin:10px 10px 0;padding:6px;display:flex}.ad-studio-root .attachment-thumb-wrap{flex-shrink:0}.ad-studio-root .attachment-thumb-wrap.clickable{cursor:pointer}.ad-studio-root .attachment-thumb-container{border-radius:6px;width:36px;height:36px;position:relative;overflow:hidden}.ad-studio-root .attachment-thumb{-o-object-fit:cover;object-fit:cover;cursor:zoom-in;border-radius:6px;width:100%;height:100%;transition:transform .15s}.ad-studio-root .attachment-thumb-container:hover .attachment-thumb{transform:scale(1.08)}.ad-studio-root .attachment-thumb-overlay{color:#fff;opacity:0;background:#0006;justify-content:center;align-items:center;transition:opacity .15s;display:flex;position:absolute;inset:0}.ad-studio-root .attachment-thumb-container:hover .attachment-thumb-overlay{opacity:1}.ad-studio-root .attachment-icon-holder{background:var(--bg);border:1px solid var(--border);border-radius:6px;place-items:center;width:36px;height:36px;display:grid}.ad-studio-root .attachment-meta{flex-direction:column;flex:1;min-width:0;display:flex}.ad-studio-root .attachment-name{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:500;overflow:hidden}.ad-studio-root .attachment-size{color:var(--text-3);font-size:11px}.ad-studio-root .attachment-remove-btn{border-radius:var(--radius-xs);width:26px;height:26px;color:var(--text-3);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);flex-shrink:0;place-items:center;display:grid}.ad-studio-root .attachment-remove-btn:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .gemini-input-row{align-items:flex-end;gap:6px;padding:8px;display:flex}.ad-studio-root .gemini-tool-btn{border-radius:var(--radius-full);width:36px;height:36px;color:var(--text-3);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);flex-shrink:0;place-items:center;display:grid}.ad-studio-root .gemini-tool-btn:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .gemini-textarea{resize:none;min-height:36px;max-height:200px;color:var(--text);background:0 0;border:none;outline:none;flex:1;padding:8px 4px;font-size:14.5px;line-height:1.45}.ad-studio-root .gemini-textarea::placeholder{color:var(--text-3)}.ad-studio-root .gemini-send-btn{border-radius:var(--radius-full);background:var(--bg-muted);width:36px;height:36px;color:var(--text-3);transition:background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);flex-shrink:0;place-items:center;display:grid}.ad-studio-root .gemini-send-btn.active{background:var(--primary);color:var(--on-primary)}.ad-studio-root .gemini-send-btn.active:hover{background:var(--primary-hover)}.ad-studio-root .gemini-loading-spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:14px;height:14px;animation:.7s linear infinite adstudio-spin}.ad-studio-root .gemini-deck-footer{color:var(--text-3);justify-content:space-between;align-items:center;gap:12px;padding:0 16px 10px;font-size:11.5px;display:flex}.ad-studio-root .deck-gemini-specs{white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:5px;min-width:0;display:inline-flex;overflow:hidden}.ad-studio-root .deck-gemini-specs span{text-overflow:ellipsis;overflow:hidden}.ad-studio-root .specs-info-icon{flex-shrink:0}.ad-studio-root .deck-guidance-text{white-space:nowrap;flex-shrink:0}.ad-studio-root .deck-guidance-text kbd{font-family:var(--font-sans);border:1px solid var(--border);background:var(--bg-soft);color:var(--text-2);border-bottom-width:2px;border-radius:4px;padding:1px 5px;font-size:10.5px;font-weight:500}.ad-studio-root .gemini-markdown-body{flex-direction:column;display:flex}.ad-studio-root .markdown-paragraph{margin:0 0 3px;font-size:13.5px;line-height:1.62}.ad-studio-root .markdown-spacer{height:8px}.ad-studio-root .markdown-h1,.ad-studio-root .markdown-h2,.ad-studio-root .markdown-h3{color:var(--text);letter-spacing:-.015em;line-height:1.35}.ad-studio-root .markdown-h1{margin:10px 0 4px;font-size:16.5px;font-weight:600}.ad-studio-root .markdown-h2{margin:8px 0 3px;font-size:15px;font-weight:600}.ad-studio-root .markdown-h3{margin:6px 0 2px;font-size:13.8px;font-weight:600}.ad-studio-root .gemini-markdown-body>:first-child{margin-top:0}.ad-studio-root .markdown-list-item{gap:8px;padding:1px 0 1px 2px;font-size:13.5px;line-height:1.58;display:flex}.ad-studio-root .bullet-dot{color:var(--text-3);flex-shrink:0;width:8px}.ad-studio-root .bullet-num{min-width:16px;color:var(--text-3);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:13px}.ad-studio-root .list-text{min-width:0}.ad-studio-root .markdown-blockquote{border-left:2px solid var(--border-strong);color:var(--text-2);margin:6px 0;padding:2px 0 2px 12px;font-size:13px;line-height:1.58}.ad-studio-root .markdown-pre{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg-soft);font-family:var(--font-mono);color:var(--text);margin:8px 0;padding:12px 14px;font-size:12px;line-height:1.55;overflow-x:auto}.ad-studio-root .inline-code{background:var(--bg-muted);font-family:var(--font-mono);color:var(--text);border-radius:4px;padding:1px 5px;font-size:.85em}.ad-studio-root .markdown-h4{color:var(--text);margin:6px 0 2px;font-size:13px;font-weight:600}.ad-studio-root .markdown-hr{border:none;border-top:1px solid var(--border);margin:12px 0}.ad-studio-root .markdown-link{color:var(--accent-text);text-underline-offset:2px;text-decoration:underline}.ad-studio-root .markdown-table-block{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg);margin:8px 0;overflow:hidden}.ad-studio-root .markdown-table-scroll{overflow-x:auto}.ad-studio-root .markdown-table{border-collapse:collapse;width:100%;font-size:12.5px;line-height:1.5}.ad-studio-root .markdown-table th,.ad-studio-root .markdown-table td{text-align:left;vertical-align:top;border-bottom:1px solid var(--border);padding:6px 10px}.ad-studio-root .markdown-table th{background:var(--bg-soft);color:var(--text);white-space:nowrap;font-weight:600}.ad-studio-root .markdown-table tbody tr:last-child td{border-bottom:none}.ad-studio-root .markdown-table-actions{border-top:1px solid var(--border);background:var(--bg-soft);justify-content:flex-end;gap:4px;padding:6px 8px;display:flex}.ad-studio-root .markdown-table-actions button{border-radius:var(--radius-xs);height:26px;color:var(--text-2);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);align-items:center;gap:5px;padding:0 10px;font-size:12px;font-weight:500;display:inline-flex}.ad-studio-root .markdown-table-actions button:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .gemini-message-item.is-error .gemini-message-body{border:1px solid color-mix(in srgb, var(--danger) 25%, transparent);border-radius:var(--radius-md);background:var(--danger-soft);padding:10px 14px;font-size:13.5px}.ad-studio-root .message-notices{flex-direction:column;gap:6px;margin-left:32px;display:flex}.ad-studio-root .message-notice{border:1px solid color-mix(in srgb, var(--warning) 25%, transparent);border-radius:var(--radius-md);background:var(--warning-soft);color:var(--text);align-items:flex-start;gap:8px;padding:8px 12px;font-size:13px;line-height:1.5;display:flex}.ad-studio-root .message-notice svg{color:var(--warning);flex-shrink:0;margin-top:2px}@media (max-width:640px){.ad-studio-root .message-notices{margin-left:0}}.ad-studio-root .prompt-busy-hint{text-align:center;color:var(--text-3);margin-top:8px;font-size:12px}.ad-studio-root .vault-storage-warning{border:1px solid color-mix(in srgb, var(--warning) 25%, transparent);border-radius:var(--radius-md);background:var(--warning-soft);max-width:620px;color:var(--text);margin:-12px 0 20px;padding:10px 14px;font-size:13px}.ad-studio-root .markdown-hashtag{color:var(--accent-text);font-weight:500}.ad-studio-root .gemini-markdown-body strong{color:var(--text);font-weight:600}.ad-studio-root .templates-view-page{max-width:1200px;margin:0 auto;padding:40px 32px 64px}.ad-studio-root .templates-hero{margin-bottom:20px}.ad-studio-root .templates-title{letter-spacing:-.025em;color:var(--text);margin-bottom:8px;font-size:clamp(24px,2.6vw,30px);font-weight:600;line-height:1.2}.ad-studio-root .templates-desc{max-width:620px;color:var(--text-2);margin-bottom:24px;font-size:14.5px;line-height:1.6}.ad-studio-root .vault-controls-bar{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.ad-studio-root .templates-search-bar{border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--bg);width:100%;max-width:520px;height:40px;box-shadow:var(--shadow-xs);transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);align-items:center;padding:0 6px 0 12px;display:flex;position:relative}.ad-studio-root .templates-search-bar:focus-within{border-color:color-mix(in srgb, var(--accent) 45%, var(--border-strong));box-shadow:0 0 0 4px var(--focus-ring)}.ad-studio-root .search-icon{color:var(--text-3);flex-shrink:0}.ad-studio-root .templates-search-input{background:0 0;border:none;outline:none;flex:1;min-width:0;height:100%;padding:0 10px;font-size:13.5px}.ad-studio-root .templates-search-input::placeholder{color:var(--text-3)}.ad-studio-root .search-clear-btn{border-radius:var(--radius-xs);height:28px;color:var(--text-2);transition:background var(--dur-fast) var(--ease);padding:0 10px;font-size:12px;font-weight:500}.ad-studio-root .search-clear-btn:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .category-filter-chips{flex-wrap:wrap;gap:6px;margin-bottom:24px;display:flex}.ad-studio-root .category-chip-btn{border:1px solid var(--border);border-radius:var(--radius-full);background:var(--bg);height:32px;color:var(--text-2);font-variant-numeric:tabular-nums;transition:background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:500;display:inline-flex}.ad-studio-root .category-chip-btn:hover{border-color:var(--border-strong);color:var(--text)}.ad-studio-root .category-chip-btn.active{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.ad-studio-root .templates-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;display:grid}.ad-studio-root .template-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg);transition:border-color var(--dur) var(--ease), box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease-out);animation:adstudio-fadeUp var(--dur-slow) var(--ease-out);flex-direction:column;display:flex;overflow:hidden}.ad-studio-root .template-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-md)}.ad-studio-root .vault-card{cursor:pointer}.ad-studio-root .template-card-media{aspect-ratio:4/3;background:var(--bg-muted);position:relative;overflow:hidden}.ad-studio-root .template-card-img,.ad-studio-root .vault-rendered-video{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;transition:transform .6s var(--ease-out)}.ad-studio-root .card-slider-toggle-btn{z-index:5;border-radius:var(--radius-full);background:var(--card);-webkit-backdrop-filter:blur(8px);height:28px;color:var(--text);opacity:0;transition:opacity var(--dur) var(--ease), transform var(--dur) var(--ease);align-items:center;gap:5px;padding:0 10px;font-size:12px;font-weight:500;display:inline-flex;position:absolute;bottom:10px;right:10px;transform:translateY(4px);box-shadow:0 1px 3px #0000001f}.ad-studio-root .template-card:hover .card-slider-toggle-btn,.ad-studio-root .card-slider-toggle-btn:focus-visible{opacity:1;transform:translateY(0)}.ad-studio-root .template-card-body{flex-direction:column;flex:1;gap:8px;padding:14px 16px 16px;display:flex}.ad-studio-root .template-card-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.ad-studio-root .template-card-title{letter-spacing:-.01em;color:var(--text);font-size:14.5px;font-weight:600}.ad-studio-root .template-card-trigger{background:var(--bg-muted);font-family:var(--font-mono);color:var(--text-2);border-radius:5px;flex-shrink:0;padding:2px 7px;font-size:11px}.ad-studio-root .template-card-desc{color:var(--text-2);-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.ad-studio-root .template-material-note{color:var(--text-3);gap:6px;font-size:12px;display:flex}.ad-studio-root .material-label{color:var(--text-2);flex-shrink:0;font-weight:500}.ad-studio-root .material-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ad-studio-root .template-card-actions{margin-top:auto;padding-top:6px}.ad-studio-root .btn-use-template{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);height:34px;color:var(--text);transition:background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);justify-content:center;align-items:center;gap:6px;padding:0 14px;font-size:13px;font-weight:500;display:inline-flex}.ad-studio-root .template-card-actions .btn-use-template{width:100%}.ad-studio-root .btn-use-template:hover,.ad-studio-root .template-card:hover .btn-use-template{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.ad-studio-root .template-tag-badge{border-radius:var(--radius-full);background:var(--bg-muted);letter-spacing:.03em;height:22px;color:var(--text-2);align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.ad-studio-root .vault-item-prompt{color:var(--text);-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.ad-studio-root .vault-item-footer{justify-content:space-between;align-items:center;gap:8px;margin-top:auto;display:flex}.ad-studio-root .vault-item-model{color:var(--text-3);text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;overflow:hidden}.ad-studio-root .vault-hover-actions{opacity:.6;transition:opacity var(--dur) var(--ease);gap:2px;display:flex}.ad-studio-root .template-card:hover .vault-hover-actions{opacity:1}.ad-studio-root .vault-action-btn{border-radius:var(--radius-xs);width:28px;height:28px;color:var(--text-2);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);place-items:center;display:grid}.ad-studio-root .vault-action-btn:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .vault-action-btn.danger:hover{background:var(--danger-soft);color:var(--danger)}.ad-studio-root .vault-content-preview{aspect-ratio:4/3;background:var(--bg-soft);border-bottom:1px solid var(--border);flex-direction:column;gap:8px;padding:18px 18px 0;display:flex;position:relative;overflow:hidden}.ad-studio-root .vault-content-preview:after{content:"";background:linear-gradient(to bottom, transparent, var(--bg-soft));pointer-events:none;height:48px;position:absolute;bottom:0;left:0;right:0}.ad-studio-root .vault-content-kind{border-radius:var(--radius-full);background:var(--bg);border:1px solid var(--border);height:22px;color:var(--text-2);align-self:flex-start;align-items:center;gap:5px;padding:0 8px;font-size:11px;font-weight:500;display:inline-flex}.ad-studio-root .vault-content-title{letter-spacing:-.01em;color:var(--text);-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-size:15px;font-weight:600;line-height:1.35;display:-webkit-box;overflow:hidden}.ad-studio-root .vault-content-excerpt{color:var(--text-2);font-size:13px;line-height:1.6}.ad-studio-root .content-viewer-card{flex-direction:column;max-width:760px;display:flex;overflow:hidden}.ad-studio-root .content-viewer-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ad-studio-root .content-viewer-body{border-top:1px solid var(--border);flex:1;min-height:0;padding:0 20px 20px;overflow-y:auto}.ad-studio-root .content-viewer-prompt{border-radius:var(--radius-sm);background:var(--bg-soft);border:1px solid var(--border);margin:16px 0;padding:10px 12px}.ad-studio-root .content-viewer-prompt p{color:var(--text-2);font-size:13px;line-height:1.55}.ad-studio-root .content-viewer-actions{justify-content:space-between}.ad-studio-root .content-viewer-delete:hover{color:var(--danger);border-color:color-mix(in srgb, var(--danger) 35%, var(--border-strong));background:var(--danger-soft)}.ad-studio-root .empty-vault-state{border:1px dashed var(--border-strong);border-radius:var(--radius-lg);background:var(--bg-soft);text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:72px 24px;display:flex}.ad-studio-root .empty-vault-text{max-width:380px;color:var(--text-2);font-size:14px;line-height:1.6}.ad-studio-root .empty-vault-state .btn-use-template{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.ad-studio-root .empty-vault-state .btn-use-template:hover{background:var(--primary-hover)}.ad-studio-root .before-after-container{-webkit-user-select:none;user-select:none;cursor:ew-resize;width:100%;height:100%;position:relative;overflow:hidden}.ad-studio-root .after-img-layer{-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.ad-studio-root .after-img-wrapper{z-index:2;position:absolute;inset:0 auto 0 0;overflow:hidden}.ad-studio-root .before-img-layer{-o-object-fit:cover;object-fit:cover;max-width:none;height:100%}.ad-studio-root .slider-divider-line{z-index:3;background:var(--card);cursor:ew-resize;width:2px;margin-left:-1px;position:absolute;top:0;bottom:0;box-shadow:0 0 8px #00000040}.ad-studio-root .slider-handle-button{background:var(--card);width:34px;height:34px;color:var(--text);border-radius:50%;place-items:center;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 10px #0003}.ad-studio-root .media-overlay-badges{z-index:4;position:absolute;top:10px;left:10px}.ad-studio-root .media-badge{border-radius:var(--radius-full);white-space:nowrap;padding:3px 8px;font-size:10.5px;font-weight:600;display:inline-block;background:var(--card)!important;color:var(--text)!important;border:none!important}.ad-studio-root .modal-backdrop,.ad-studio-root .safety-modal-backdrop{z-index:100;background:var(--bg-overlay);-webkit-backdrop-filter:blur(4px);animation:adstudio-fadeIn var(--dur) var(--ease);place-items:center;padding:24px;display:grid;position:fixed;inset:0}.ad-studio-root .modal-card,.ad-studio-root .safety-modal-dialog{border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--bg-elevated);width:100%;max-width:540px;max-height:calc(100vh - 48px);box-shadow:var(--shadow-lg);animation:adstudio-scaleIn var(--dur-slow) var(--ease-out);position:relative;overflow-y:auto}.ad-studio-root .modal-header{justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 20px 16px;display:flex}.ad-studio-root .modal-title{letter-spacing:-.01em;color:var(--text);font-size:16px;font-weight:600}.ad-studio-root .modal-subtitle{color:var(--text-2);margin-top:4px;font-size:13px;line-height:1.5}.ad-studio-root .modal-close-btn,.ad-studio-root .safety-modal-close{border-radius:var(--radius-sm);width:30px;height:30px;color:var(--text-3);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);flex-shrink:0;place-items:center;display:grid}.ad-studio-root .modal-close-btn:hover,.ad-studio-root .safety-modal-close:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .modal-tabs-nav{background:var(--bg-muted);border-radius:var(--radius-md);gap:2px;margin:0 20px;padding:3px;display:flex}.ad-studio-root .modal-tab-btn{height:30px;color:var(--text-2);transition:background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);border-radius:7px;flex:1;font-size:13px;font-weight:500}.ad-studio-root .modal-tab-btn:hover{color:var(--text)}.ad-studio-root .modal-tab-btn.active{background:var(--bg-elevated);color:var(--text);box-shadow:var(--shadow-sm)}.ad-studio-root .modal-form-section{animation:adstudio-fadeIn var(--dur) var(--ease);flex-direction:column;gap:16px;padding:20px;display:flex}.ad-studio-root .form-group{flex-direction:column;gap:6px;display:flex}.ad-studio-root .form-label{color:var(--text);font-size:13px;font-weight:500}.ad-studio-root .form-input{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg);width:100%;height:38px;color:var(--text);box-shadow:var(--shadow-xs);transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);outline:none;padding:0 12px;font-size:13.5px}.ad-studio-root .form-input::placeholder{color:var(--text-3)}.ad-studio-root .form-input:focus{border-color:color-mix(in srgb, var(--accent) 50%, var(--border-strong));box-shadow:0 0 0 4px var(--focus-ring)}.ad-studio-root .select-wrapper{position:relative}.ad-studio-root .select-wrapper:after{content:"";border-right:1.5px solid var(--text-3);border-bottom:1.5px solid var(--text-3);pointer-events:none;width:6px;height:6px;position:absolute;top:50%;right:14px;transform:translateY(-70%)rotate(45deg)}.ad-studio-root .form-select{appearance:none;cursor:pointer;padding-right:36px}.ad-studio-root .form-helper{color:var(--text-3);font-size:12px}.ad-studio-root .modal-actions{border-top:1px solid var(--border);background:var(--bg-soft);justify-content:flex-end;gap:8px;padding:16px 20px;display:flex}.ad-studio-root .btn-primary-clean,.ad-studio-root .btn-secondary-clean,.ad-studio-root .safety-btn-primary,.ad-studio-root .safety-btn-secondary{border-radius:var(--radius-sm);height:36px;transition:background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);justify-content:center;align-items:center;gap:6px;padding:0 14px;font-size:13px;font-weight:500;display:inline-flex}.ad-studio-root .btn-primary-clean,.ad-studio-root .safety-btn-primary{background:var(--primary);color:var(--on-primary);box-shadow:var(--shadow-sm)}.ad-studio-root .btn-primary-clean:hover,.ad-studio-root .safety-btn-primary:hover{background:var(--primary-hover)}.ad-studio-root .btn-secondary-clean,.ad-studio-root .safety-btn-secondary{border:1px solid var(--border-strong);background:var(--bg);color:var(--text);box-shadow:var(--shadow-xs)}.ad-studio-root .btn-secondary-clean:hover,.ad-studio-root .safety-btn-secondary:hover{background:var(--bg-soft)}.ad-studio-root .btn-primary-clean:active,.ad-studio-root .btn-secondary-clean:active,.ad-studio-root .safety-btn-primary:active,.ad-studio-root .safety-btn-secondary:active{transform:scale(.98)}.ad-studio-root .shortcuts-icon-pill{border-radius:var(--radius-sm);background:var(--bg-muted);width:34px;height:34px;color:var(--text-2);place-items:center;display:grid}.ad-studio-root .shortcuts-list{flex-direction:column;padding:4px 20px 20px;display:flex}.ad-studio-root .shortcut-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:10px 0;display:flex}.ad-studio-root .shortcut-row:last-child{border-bottom:none}.ad-studio-root .shortcut-desc{color:var(--text-2);font-size:13px}.ad-studio-root .shortcut-kbd{border:1px solid var(--border-strong);background:var(--bg-soft);font-family:var(--font-sans);color:var(--text);border-bottom-width:2px;border-radius:6px;flex-shrink:0;padding:2px 8px;font-size:11.5px;font-weight:500}.ad-studio-root .safety-modal-dialog{text-align:center;max-width:440px;padding:28px 24px 20px}.ad-studio-root .safety-modal-close{position:absolute;top:12px;right:12px}.ad-studio-root .safety-modal-header{flex-direction:column;align-items:center;gap:10px;margin-bottom:12px;display:flex}.ad-studio-root .safety-modal-icon-ring{background:var(--warning-soft);width:52px;height:52px;color:var(--warning);border-radius:50%;place-items:center;display:grid}.ad-studio-root .safety-shield-icon{width:24px;height:24px}.ad-studio-root .safety-category-badge{border-radius:var(--radius-full);background:var(--bg-muted);color:var(--text-2);padding:2px 10px;font-size:11.5px;font-weight:500}.ad-studio-root .safety-modal-title{letter-spacing:-.01em;color:var(--text);font-size:17px;font-weight:600}.ad-studio-root .safety-modal-body{flex-direction:column;gap:14px;display:flex}.ad-studio-root .safety-modal-description{color:var(--text-2);font-size:13.5px;line-height:1.6}.ad-studio-root .safety-recommendation-box{border-radius:var(--radius-md);background:var(--bg-soft);border:1px solid var(--border);text-align:left;padding:12px 14px}.ad-studio-root .recommendation-label{color:var(--text);margin-bottom:4px;font-size:12px;font-weight:600;display:block}.ad-studio-root .recommendation-text{color:var(--text-2);font-size:13px;line-height:1.55}.ad-studio-root .safety-modal-actions{gap:8px;margin-top:20px;display:flex}.ad-studio-root .safety-modal-actions>button{flex:1}.ad-studio-root .btn-media-action{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg);height:32px;color:var(--text);transition:background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);align-items:center;gap:6px;padding:0 12px;font-size:12.5px;font-weight:500;display:inline-flex}.ad-studio-root .btn-media-action:hover{background:var(--bg-soft)}.ad-studio-root .btn-media-action.btn-animate-action{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.ad-studio-root .btn-media-action.btn-animate-action:hover{background:var(--primary-hover)}.ad-studio-root .toast-container{z-index:200;pointer-events:none;flex-direction:column;gap:8px;display:flex;position:fixed;bottom:20px;right:20px}.ad-studio-root .toast-card{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg-elevated);min-width:260px;max-width:380px;box-shadow:var(--shadow-lg);pointer-events:auto;animation:adstudio-toastIn var(--dur-slow) var(--ease-out);align-items:center;gap:10px;padding:10px 10px 10px 14px;display:flex}.ad-studio-root .toast-icon{flex-shrink:0;place-items:center;display:grid}.ad-studio-root .toast-success .toast-icon{color:var(--success)}.ad-studio-root .toast-error .toast-icon{color:var(--danger)}.ad-studio-root .toast-info .toast-icon{color:var(--text-2)}.ad-studio-root .toast-message{color:var(--text);flex:1;font-size:13px}.ad-studio-root .toast-close-btn{border-radius:var(--radius-xs);width:24px;height:24px;color:var(--text-3);transition:background var(--dur-fast) var(--ease);place-items:center;display:grid}.ad-studio-root .toast-close-btn:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .error-fallback{background:var(--bg);place-items:center;min-height:100vh;padding:24px;display:grid}.ad-studio-root .error-fallback-card{flex-direction:column;align-items:flex-start;gap:10px;width:100%;max-width:440px;display:flex}.ad-studio-root .error-fallback-title{letter-spacing:-.01em;font-size:18px;font-weight:600}.ad-studio-root .error-fallback-text{color:var(--text-2);font-size:14px;line-height:1.6}.ad-studio-root .error-fallback-detail{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg-soft);width:100%;max-height:120px;font-family:var(--font-mono);color:var(--text-2);white-space:pre-wrap;margin:4px 0 8px;padding:10px 12px;font-size:12px;overflow:auto}@media (max-width:900px){.ad-studio-root .studio-sidebar{width:var(--sidebar-w);box-shadow:var(--shadow-lg);transition:transform var(--dur-slow) var(--ease-out);position:absolute;top:0;bottom:0;left:0;transform:translate(0)}.ad-studio-root .studio-sidebar.collapsed{width:var(--sidebar-w);box-shadow:none;transform:translate(-100%)}.ad-studio-root .sidebar-mobile-backdrop{z-index:15;background:var(--bg-overlay);opacity:0;pointer-events:none;transition:opacity var(--dur-slow) var(--ease);display:block;position:absolute;inset:0}.ad-studio-root .sidebar-mobile-backdrop.active{opacity:1;pointer-events:auto}.ad-studio-root .nav-link-docs{display:none}}@media (max-width:480px){.ad-studio-root .brand-title{display:none}}@media (max-width:640px){.ad-studio-root .studio-nav{grid-template-columns:auto 1fr auto;gap:8px;padding:0 8px}.ad-studio-root .brand-subtitle{display:none}.ad-studio-root .nav-tabs{justify-self:center}.ad-studio-root .nav-tab-btn{padding:0 10px}.ad-studio-root .nav-tab-btn svg,.ad-studio-root .btn-settings-minimal span{display:none}.ad-studio-root .btn-settings-minimal{justify-content:center;width:32px;padding:0}.ad-studio-root .gemini-messages-viewport{padding:20px 16px 16px}.ad-studio-root .gemini-prompt-wrapper{padding:8px 12px 12px}.ad-studio-root .gemini-starters-grid{grid-template-columns:1fr}.ad-studio-root .gemini-starter-card:nth-child(n+3),.ad-studio-root .gemini-deck-footer .deck-guidance-text{display:none}.ad-studio-root .gemini-message-item.assistant .gemini-message-body,.ad-studio-root .gemini-message-item.assistant .gemini-reasoning-drawer,.ad-studio-root .gemini-message-item.assistant .api-key-notice-card,.ad-studio-root .gemini-message-item.assistant .safety-refusal-card,.ad-studio-root .gemini-message-item.assistant .gemini-copy-actions-bar,.ad-studio-root .gemini-message-item.assistant .gemini-media-grid,.ad-studio-root .gemini-message-item.assistant .gemini-loading-card{margin-left:0;padding-left:0}.ad-studio-root .templates-view-page{padding:24px 16px 48px}.ad-studio-root .templates-grid{grid-template-columns:1fr}.ad-studio-root .modal-backdrop,.ad-studio-root .safety-modal-backdrop{align-items:end;padding:12px}.ad-studio-root .toast-container{bottom:12px;left:12px;right:12px}.ad-studio-root .toast-card{min-width:0;max-width:none}}.ad-studio-root .lightbox-brief-list{grid-template-columns:max-content 1fr;gap:4px 14px;margin-top:6px;font-size:13px;display:grid}.ad-studio-root .lightbox-brief-list dt{color:var(--text-3);text-transform:capitalize}.ad-studio-root .lightbox-brief-list dd{color:var(--text);font-weight:500}.ad-studio-root .lightbox-brief-palette{gap:6px;margin-top:10px;display:flex}.ad-studio-root .markdown-table-section td{background:var(--bg-soft);color:var(--text);font-weight:600}.ad-studio-root .message-finishing{color:var(--text-3);align-items:center;gap:8px;margin-left:32px;font-size:12.5px;display:flex}@media (max-width:640px){.ad-studio-root .message-finishing{margin-left:0}}.ad-studio-root .markdown-table{overflow-wrap:normal;word-break:normal}.ad-studio-root .markdown-table th,.ad-studio-root .markdown-table td{min-width:7em}.ad-studio-root .markdown-table td:nth-child(2){min-width:16em}.ad-studio-root [role=dialog][tabindex="-1"]:focus{outline:none}.ad-studio-root .gemini-send-btn.is-stop{background:var(--primary);color:var(--on-primary)}.ad-studio-root .gemini-send-btn.is-stop:hover{background:var(--primary-hover)}.ad-studio-root .viewer-overlay{z-index:1000;-webkit-backdrop-filter:blur(12px);color:#f1f1f4;background:#000000c7;outline:none;flex-direction:column;height:100dvh;animation:.16s ease-out adstudio-viewer-in;display:flex;position:fixed;inset:0}@keyframes adstudio-viewer-in{0%{opacity:0}to{opacity:1}}.ad-studio-root .viewer-close-floating-btn{color:#fff;cursor:pointer;z-index:1050;background:#1e1e24e0;border:1px solid #fff3;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;transition:all .15s;display:flex;position:fixed;top:24px;right:28px;box-shadow:0 6px 20px #00000073}.ad-studio-root .viewer-close-floating-btn:hover{background:#fff3;border-color:#fff6;transform:scale(1.06)}.ad-studio-root .viewer-chip{color:#fff;letter-spacing:.05em;background:#ffffff24;border-radius:999px;padding:2px 8px;font-size:10.5px;font-weight:600}.ad-studio-root .viewer-floating-toolbar{-webkit-backdrop-filter:blur(16px);z-index:1040;background:#121218e0;border:1px solid #ffffff24;border-radius:999px;align-items:center;gap:8px;height:42px;padding:4px 14px;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 12px 32px #0000008c}.ad-studio-root .viewer-pill-meta{color:#ffffffb3;align-items:center;gap:8px;font-size:11.5px;font-weight:500;display:flex}.ad-studio-root .viewer-pill-model{text-overflow:ellipsis;white-space:nowrap;max-width:140px;overflow:hidden}.ad-studio-root .viewer-pill-divider{background:#ffffff1f;width:1px;height:18px}.ad-studio-root .viewer-pill-zoom{align-items:center;gap:3px;display:flex}.ad-studio-root .viewer-pill-btn{color:#ffffffd9;cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;gap:5px;height:28px;padding:0 8px;font-size:12px;transition:background .12s,color .12s;display:inline-flex}.ad-studio-root .viewer-pill-btn:hover:not(:disabled){color:#fff;background:#ffffff24}.ad-studio-root .viewer-pill-btn:disabled{opacity:.35;cursor:not-allowed}.ad-studio-root .viewer-pill-btn.with-text{padding:0 10px;font-weight:500}.ad-studio-root .viewer-pill-btn.is-primary{background:var(--card);color:var(--text);font-weight:600}.ad-studio-root .viewer-pill-btn.is-primary:hover{background:var(--bg-3);color:var(--text)}.ad-studio-root .viewer-pill-indicator{color:#fff;text-align:center;cursor:pointer;background:0 0;border:none;min-width:38px;padding:0 4px;font-size:11.5px;font-weight:600}.ad-studio-root .viewer-pill-actions{align-items:center;gap:4px;display:flex}.ad-studio-root .viewer-body{flex:auto;justify-content:center;align-items:center;width:100%;height:100%;min-height:0;display:flex}.ad-studio-root .viewer-stage{-webkit-user-select:none;user-select:none;flex:auto;justify-content:center;align-items:center;width:100%;height:100%;padding:24px;display:flex;position:relative;overflow:hidden}.ad-studio-root .viewer-stage.is-zoomed{cursor:grab}.ad-studio-root .viewer-stage.is-zoomed:active{cursor:grabbing}.ad-studio-root .viewer-media-viewport{transform-origin:50%;touch-action:none;background:#0d0d12;border-radius:12px;justify-content:center;align-items:center;max-width:88vw;max-height:82vh;display:flex;position:relative;overflow:hidden;box-shadow:0 25px 70px -10px #000c,0 0 0 1px #ffffff1f}.ad-studio-root .viewer-media{-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;user-select:none;border-radius:12px;width:auto;max-width:86vw;height:auto;max-height:80vh;display:block}.ad-studio-root img.viewer-media{cursor:zoom-in}.ad-studio-root video.viewer-media{background:#000;max-width:86vw;max-height:80vh}.ad-studio-root .viewer-spinner{border:3px solid #fff3;border-top-color:var(--border);border-radius:50%;width:34px;height:34px;animation:.8s linear infinite adstudio-viewer-spin;position:absolute}@keyframes adstudio-viewer-spin{to{transform:rotate(360deg)}}.ad-studio-root .viewer-details{background:#14141af5;border-left:1px solid #ffffff1a;flex:0 0 340px;padding:16px 18px;font-size:13.5px;line-height:1.6;overflow-y:auto}.ad-studio-root .viewer-details section+section{margin-top:18px}.ad-studio-root .viewer-details h3{letter-spacing:.04em;text-transform:uppercase;color:#f1f1f499;margin:0 0 6px;font-size:11.5px;font-weight:600}.ad-studio-root .viewer-details p{color:#e6e6ea;white-space:pre-wrap;margin:0}.ad-studio-root .viewer-details .lightbox-brief-list dt{color:#f1f1f499}.ad-studio-root .viewer-details .lightbox-brief-list dd{color:#fff}.ad-studio-root .viewer-facts{color:#f1f1f499;flex-direction:column;gap:2px;font-size:12.5px;display:flex}@media (max-width:760px){.ad-studio-root .viewer-actions .with-label span,.ad-studio-root .viewer-meta-model{display:none}.ad-studio-root .viewer-body{flex-direction:column}.ad-studio-root .viewer-details{border-top:1px solid #ffffff1a;border-left:0;flex:none;max-height:45dvh}.ad-studio-root .viewer-stage{padding:4px 6px 8px}}.ad-studio-root .lightbox-prompt-label{color:var(--text-3);margin-bottom:4px;font-size:11.5px;font-weight:500;display:block}.ad-studio-root .studio-composer{align-items:stretch;gap:10px;display:flex}.ad-studio-root .studio-rail{border:1px solid var(--border-strong);border-radius:var(--radius-xl);background:var(--bg-soft);box-shadow:var(--shadow-sm);flex-direction:column;flex-shrink:0;gap:4px;padding:5px;display:flex}.ad-studio-root .studio-rail-btn{border-radius:var(--radius-lg);width:64px;min-height:46px;color:var(--text-3);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;font-size:11px;font-weight:500;display:flex}.ad-studio-root .studio-rail-btn.active{background:var(--bg);color:var(--text);box-shadow:var(--shadow-sm), inset 0 0 0 1px var(--border);font-weight:600}.ad-studio-root .studio-rail-btn.active svg{color:var(--accent)}.ad-studio-root .studio-rail-btn:focus-visible{box-shadow:0 0 0 3px var(--focus-ring);outline:none}.ad-studio-root .studio-capsule{flex-direction:column;flex:1;min-width:0;display:flex}.ad-studio-root .studio-textarea{width:100%;padding:12px 14px 4px}.ad-studio-root .studio-toolbar{align-items:center;gap:6px;padding:6px 8px 8px;display:flex}.ad-studio-root .studio-chips{flex-wrap:wrap;flex:1;align-items:center;gap:6px;min-width:0;display:flex}.ad-studio-root .studio-chip{border:1px solid var(--border);border-radius:var(--radius-full);background:var(--bg-muted);height:30px;color:var(--text-2);cursor:pointer;transition:background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);align-items:center;gap:5px;padding:0 10px;font-size:12.5px;font-weight:500;display:inline-flex;position:relative}.ad-studio-root .studio-chip:focus-within{border-color:color-mix(in srgb, var(--accent) 45%, var(--border-strong));box-shadow:0 0 0 3px var(--focus-ring)}.ad-studio-root .studio-chip select{appearance:none;color:var(--text);font:inherit;cursor:pointer;field-sizing:content;background:0 0;border:none;outline:none;padding:0}.ad-studio-root .studio-chip select option{background:var(--bg-elevated);color:var(--text)}.ad-studio-root .studio-enhance-badge{height:30px;color:var(--text-3);white-space:nowrap;align-items:center;gap:4px;padding:0 4px;font-size:11.5px;display:inline-flex}.ad-studio-root .studio-enhance-badge svg{color:var(--accent)}.ad-studio-root .studio-send-btn{border-radius:var(--radius-full);background:var(--bg-muted);height:38px;color:var(--text-3);transition:background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);flex-shrink:0;align-items:center;gap:6px;padding:0 16px;font-size:13px;font-weight:600;display:inline-flex}.ad-studio-root .studio-send-btn.active{background:var(--primary);color:var(--on-primary)}.ad-studio-root .studio-send-btn.active:hover{background:var(--primary-hover)}.ad-studio-root .studio-send-btn.active:active{transform:scale(.97)}.ad-studio-root .studio-send-btn.is-stop{background:var(--danger-soft);color:var(--danger)}.ad-studio-root .studio-send-btn:focus-visible{box-shadow:0 0 0 3px var(--focus-ring);outline:none}@media (max-width:640px){.ad-studio-root .studio-composer{flex-direction:column;gap:8px}.ad-studio-root .studio-rail{border-radius:var(--radius-lg);flex-direction:row}.ad-studio-root .studio-rail-btn{flex-direction:row;gap:6px;width:auto;min-height:38px;font-size:12.5px}.ad-studio-root .studio-enhance-badge{display:none}.ad-studio-root .studio-send-btn{padding:0 12px}}.ad-studio-root .preset-picker{display:inline-flex;position:relative}.ad-studio-root .preset-chip{max-width:160px}.ad-studio-root .preset-chip>span{text-overflow:ellipsis;white-space:nowrap;color:var(--text);overflow:hidden}.ad-studio-root .preset-chip.is-set{border-color:color-mix(in srgb, var(--accent) 45%, var(--border-strong));background:var(--accent-soft)}.ad-studio-root .preset-popover{z-index:40;border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--bg-elevated);width:min(420px,100vw - 32px);max-height:min(380px,60vh);box-shadow:var(--shadow-lg);padding:10px;position:absolute;bottom:calc(100% + 8px);left:0;overflow-y:auto}.ad-studio-root .preset-popover-head{letter-spacing:.04em;text-transform:uppercase;color:var(--text-3);padding:2px 4px 8px;font-size:11.5px;font-weight:600}.ad-studio-root .preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.ad-studio-root .preset-card{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg);min-width:0;color:var(--text);text-align:left;cursor:pointer;transition:background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);align-items:center;gap:10px;padding:8px;display:flex;position:relative}.ad-studio-root .preset-card:hover{background:var(--bg-hover);border-color:var(--border-strong)}.ad-studio-root .preset-card:focus-visible{box-shadow:0 0 0 3px var(--focus-ring);outline:none}.ad-studio-root .preset-card.selected{border-color:var(--accent);background:var(--accent-soft)}.ad-studio-root .preset-swatch{border-radius:var(--radius-sm);color:#fff;background:linear-gradient(135deg, hsl(var(--h) 72% 58%), hsl(calc(var(--h) + 55) 70% 42%));flex:none;place-items:center;width:40px;height:40px;display:grid}.ad-studio-root .preset-swatch.is-auto{color:var(--text-2);background:var(--bg-muted);border:1px dashed var(--border-strong)}.ad-studio-root .preset-card-text{flex-direction:column;gap:1px;min-width:0;display:flex}.ad-studio-root .preset-card-label{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;overflow:hidden}.ad-studio-root .preset-card-desc{color:var(--text-3);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:11.5px;line-height:1.3;display:-webkit-box;overflow:hidden}.ad-studio-root .preset-card-check{color:var(--accent);position:absolute;top:6px;right:6px}.ad-studio-root .gemini-media-grid.is-multi{grid-template-columns:repeat(2,minmax(0,1fr));max-width:980px;display:grid}.ad-studio-root .gemini-media-grid.is-multi .gemini-media-card{max-width:none}.ad-studio-root .nav-assets-btn{border-radius:var(--radius-sm);height:32px;color:var(--text-2);transition:background var(--dur) var(--ease), color var(--dur) var(--ease);align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:500;display:inline-flex}.ad-studio-root .nav-assets-btn:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .assets-layer{z-index:90;position:fixed;inset:0}.ad-studio-root .assets-backdrop{background:var(--bg-overlay);position:absolute;inset:0}.ad-studio-root .assets-drawer{background:var(--bg-elevated);border-left:1px solid var(--border-strong);width:min(440px,100vw);box-shadow:var(--shadow-lg);animation:adstudio-assetsIn var(--dur-slow) var(--ease-out) both;flex-direction:column;display:flex;position:absolute;top:0;bottom:0;right:0}@keyframes adstudio-assetsIn{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:none}}.ad-studio-root .assets-head{justify-content:space-between;align-items:center;padding:14px 16px 8px;display:flex}.ad-studio-root .assets-head h2{color:var(--text);font-size:16px;font-weight:600}.ad-studio-root .assets-filters{border-bottom:1px solid var(--border);gap:6px;padding:4px 16px 12px;display:flex}.ad-studio-root .assets-filter{border:1px solid var(--border);border-radius:var(--radius-full);background:var(--bg-muted);height:30px;color:var(--text-2);align-items:center;gap:6px;padding:0 12px;font-size:12.5px;font-weight:500;display:inline-flex}.ad-studio-root .assets-filter.active{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.ad-studio-root .assets-filter-count{opacity:.7;font-size:11px}.ad-studio-root .assets-body{flex:1;min-height:0;padding:14px 16px 20px;overflow-y:auto}.ad-studio-root .assets-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;margin:0;padding:0;list-style:none;display:grid}.ad-studio-root .asset-tile{flex-direction:column;gap:6px;min-width:0;display:flex}.ad-studio-root .asset-thumb{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg-muted);cursor:pointer;width:100%;display:block;position:relative;overflow:hidden}.ad-studio-root .asset-thumb:focus-visible{box-shadow:0 0 0 3px var(--focus-ring);outline:none}.ad-studio-root .asset-thumb img,.ad-studio-root .asset-thumb video{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;display:block}.ad-studio-root .asset-play{border-radius:var(--radius-full);color:#fff;background:#0000008c;place-items:center;width:24px;height:24px;display:grid;position:absolute;bottom:6px;right:6px}.ad-studio-root .asset-prompt{color:var(--text-2);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:12px;line-height:1.35;display:-webkit-box;overflow:hidden}.ad-studio-root .asset-meta{color:var(--text-3);justify-content:space-between;font-size:11px;display:flex}.ad-studio-root .asset-actions{gap:4px;display:flex}.ad-studio-root .assets-icon-btn{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);width:30px;height:30px;color:var(--text-2);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);place-items:center;display:grid}.ad-studio-root .assets-icon-btn:hover:not(:disabled){background:var(--bg-hover);color:var(--text)}.ad-studio-root .assets-icon-btn:disabled{opacity:.45;cursor:not-allowed}.ad-studio-root .assets-state{text-align:center;color:var(--text-2);flex-direction:column;align-items:center;gap:6px;padding:28px 12px;font-size:13px;display:flex}.ad-studio-root .assets-state span{color:var(--text-3);font-size:12px}.ad-studio-root .assets-btn{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg);height:32px;color:var(--text);padding:0 14px;font-size:13px;font-weight:500}.ad-studio-root .assets-btn:hover{background:var(--bg-hover)}.ad-studio-root .assets-more{margin:16px auto 0;display:block}.ad-studio-root .assets-spin{animation:.9s linear infinite adstudio-assetsSpin}@keyframes adstudio-assetsSpin{to{transform:rotate(360deg)}}@media (max-width:640px){.ad-studio-root .preset-picker{position:static}.ad-studio-root .preset-popover{width:auto;left:0;right:0}.ad-studio-root .gemini-media-grid.is-multi{grid-template-columns:minmax(0,1fr)}.ad-studio-root .nav-assets-btn span{display:none}.ad-studio-root .nav-assets-btn{justify-content:center;width:32px;padding:0}.ad-studio-root .assets-drawer{border-left:none;width:100vw}}@media (prefers-reduced-motion:reduce){.ad-studio-root .assets-drawer,.ad-studio-root .assets-spin{animation:none}}.ad-studio-root .media-caption{color:var(--text-secondary,#888);padding:6px 10px 0;font-size:11px}.ad-studio-root .message-retry-btn{margin-top:8px}.ad-studio-root{background:var(--bg,#fcfcfd);width:100%;height:100%;min-height:100%;color:var(--text,#0f172a);font-family:var(--font-body,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);background:var(--bg,#fafaf9);width:100%;height:100%;font-family:var(--font-body,"Inter", sans-serif);flex-direction:column;display:flex;position:relative;overflow:hidden}.ad-studio-root .adstudio-shell{background:0 0;flex-direction:column;width:100%;height:100%;display:flex;position:relative;overflow:hidden}.ad-studio-root .adstudio-toolbar{background:var(--card);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--border);z-index:20;flex-shrink:0;justify-content:space-between;align-items:center;padding:10px 24px;display:flex}.ad-studio-root .adstudio-toolbar-group{align-items:center;gap:8px;display:flex}.ad-studio-root .adstudio-toolbar-btn{background:var(--card);border:1.5px solid var(--border);color:var(--text);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:9999px;align-items:center;gap:7px;padding:7px 14px;font-size:13px;font-weight:500;transition:all .2s cubic-bezier(.16,1,.3,1);display:inline-flex;box-shadow:0 1px 2px #00000008}.ad-studio-root .adstudio-toolbar-btn:hover{background:var(--card);color:var(--accent);border-color:#0f766e;transform:translateY(-1px);box-shadow:0 4px 12px #0f766e1f}.ad-studio-root .adstudio-toolbar-btn.is-active{color:#fff;background:#042f2e;border-color:#042f2e;box-shadow:0 4px 12px #042f2e40}.ad-studio-root .adstudio-toolbar-btn.is-brand-active{background:var(--accent-tint);color:var(--accent);border-color:#14b8a6;font-weight:600}.ad-studio-root .adstudio-toolbar-btn.btn-new-chat{color:#fff;background:#042f2e;border-color:#042f2e;font-weight:600;box-shadow:0 2px 8px #042f2e33}.ad-studio-root .adstudio-toolbar-btn.btn-new-chat:hover{color:#fff;background:#115e59;border-color:#115e59}.ad-studio-root .adstudio-toolbar-btn.btn-editor-link{background:var(--card);color:var(--accent);border-color:#5eead4;font-weight:600}.ad-studio-root .adstudio-toolbar-btn.btn-editor-link:hover{color:#fff;background:linear-gradient(135deg,#0f766e 0%,#042f2e 100%);border-color:#0f766e;box-shadow:0 4px 14px #0f766e40}.ad-studio-root .adstudio-count-pill{background:var(--bg-3);color:#475569;border-radius:9999px;padding:1px 6px;font-size:11px;font-weight:700}.ad-studio-root .adstudio-toolbar-btn.is-active .adstudio-count-pill{color:#fff;background:#fff3}.ad-studio-root .adstudio-stage{background:radial-gradient(at 50% 12%,#ccfbf173 0%,#0000 60%),radial-gradient(at 85% 85%,#f0fdfa99 0%,#0000 50%),#fafaf9;flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.ad-studio-root .adstudio-main{flex-direction:column;flex:1;align-items:center;width:100%;min-height:0;padding:40px 24px 48px;transition:all .3s cubic-bezier(.16,1,.3,1);display:flex;overflow-y:auto}.ad-studio-root .adstudio-main.is-home{justify-content:center;overflow-y:auto}.ad-studio-root .adstudio-main.is-chat{justify-content:space-between;height:100%;min-height:0;max-height:100%;padding:16px 24px 18px;overflow:hidden}.ad-studio-root .adstudio-stack{flex-direction:column;align-items:center;width:100%;max-width:980px;display:flex}.ad-studio-root .adstudio-main.is-chat .adstudio-stack{flex-direction:column;flex:1;height:100%;min-height:0;max-height:100%;display:flex;overflow:hidden}.ad-studio-root .adstudio-chat-scrollable{scroll-behavior:smooth;flex-direction:column;flex:1;width:100%;min-height:0;padding:8px 12px 20px;display:flex;overflow:hidden auto}.ad-studio-root .adstudio-chat-scrollable::-webkit-scrollbar{width:6px}.ad-studio-root .adstudio-chat-scrollable::-webkit-scrollbar-thumb{background:#94a3b859;border-radius:9999px}.ad-studio-root .adstudio-chat-scrollable::-webkit-scrollbar-thumb:hover{background:#94a3b899}.ad-studio-root .adstudio-composer-pinned{z-index:20;flex-shrink:0;width:100%;max-width:980px;padding-top:8px;position:relative}.ad-studio-root .adstudio-hero{text-align:center;flex-direction:column;align-items:center;margin-bottom:28px;animation:.4s adstudio-fadeIn;display:flex}.ad-studio-root .adstudio-hero-badge{color:var(--accent);letter-spacing:.01em;background:#0f766e14;border:1px solid #0f766e33;border-radius:9999px;align-items:center;gap:7px;margin-bottom:14px;padding:5px 14px;font-size:12px;font-weight:600;display:inline-flex}.ad-studio-root .adstudio-hero-title{letter-spacing:-.035em;background:linear-gradient(135deg,#09090b 20%,#1e293b 60%,#0f766e 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin:0 0 10px;font-size:38px;font-weight:800;line-height:1.15}.ad-studio-root .adstudio-hero-sub{color:var(--text-2);text-align:center;max-width:580px;margin:0;font-size:15px;font-weight:400;line-height:1.5}.ad-studio-root .gemini-prompt-wrapper{width:100%;max-width:980px;position:relative}.ad-studio-root .studio-composer{align-items:stretch;gap:12px;width:100%;display:flex}.ad-studio-root .studio-rail{background:var(--card);border:1.5px solid var(--border);border-radius:20px;flex-direction:column;flex-shrink:0;gap:6px;padding:6px;display:flex;box-shadow:0 4px 16px -2px #0000000a}.ad-studio-root .studio-rail-btn{width:64px;height:58px;color:var(--text-2);cursor:pointer;background:0 0;border:none;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:11px;font-weight:600;transition:all .2s cubic-bezier(.16,1,.3,1);display:flex}.ad-studio-root .studio-rail-btn:hover{background:var(--card);color:var(--text)}.ad-studio-root .studio-rail-btn.active{color:#fff;background:#042f2e;box-shadow:0 4px 14px #042f2e4d}.ad-studio-root .gemini-input-capsule.studio-capsule{background:var(--card);border:1.5px solid var(--border);border-radius:22px;flex-direction:column;flex:1;padding:14px 18px 12px;transition:all .25s cubic-bezier(.16,1,.3,1);display:flex;position:relative;box-shadow:0 10px 32px -4px #0000000f,0 2px 6px -1px #00000005}.ad-studio-root .gemini-textarea.studio-textarea{width:100%;color:var(--text);resize:none;background:0 0;border:none;outline:none;min-height:42px;max-height:200px;padding:0;font-family:inherit;font-size:15px;line-height:1.55}.ad-studio-root .gemini-textarea.studio-textarea::placeholder{color:var(--text-3)}.ad-studio-root .studio-toolbar{border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;padding-top:10px;display:flex}.ad-studio-root .gemini-tool-btn{border:1.5px solid var(--border);background:var(--card);color:#475569;cursor:pointer;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;transition:all .15s;display:inline-flex}.ad-studio-root .gemini-tool-btn:hover{background:var(--bg-3);color:var(--text);border-color:#cbd5e1;transform:scale(1.05)}.ad-studio-root .studio-chips{scrollbar-width:none;-ms-overflow-style:none;flex-wrap:nowrap;flex:1;align-items:center;gap:8px;min-width:0;display:flex;overflow-x:auto}.ad-studio-root .studio-chips::-webkit-scrollbar{display:none}.ad-studio-root .studio-chip{border:1px solid var(--border);background:var(--card);color:#334155;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;border-radius:9999px;flex-shrink:0;align-items:center;gap:6px;padding:5px 11px;font-size:12px;font-weight:500;transition:all .15s;display:inline-flex;position:relative}.ad-studio-root .studio-chip:hover{background:var(--bg-3);color:var(--text);border-color:#cbd5e1}.ad-studio-root .studio-chip select{color:inherit;cursor:pointer;background:0 0;border:none;outline:none;padding:0;font-family:inherit;font-size:12px;font-weight:500}.ad-studio-root .studio-enhance-badge{color:var(--accent);background:#0f766e14;border:1px solid #0f766e33;border-radius:9999px;align-items:center;gap:5px;padding:4px 10px;font-size:11px;font-weight:600;display:inline-flex}.ad-studio-root .studio-send-btn{background:var(--bg-3);color:#94a3b8;cursor:not-allowed;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;transition:all .2s cubic-bezier(.16,1,.3,1);display:inline-flex}.ad-studio-root .studio-send-btn.active{color:#fff;cursor:pointer;background:#042f2e;box-shadow:0 4px 14px #042f2e4d}.ad-studio-root .studio-send-btn.active:hover{background:#115e59;transform:scale(1.06);box-shadow:0 6px 18px #115e5959}.ad-studio-root .studio-send-btn.is-stop{color:#fff;cursor:pointer;background:#ef4444;border-radius:9999px;gap:6px;width:auto;padding:0 14px;font-size:12px;font-weight:600}.ad-studio-root .adstudio-chips{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;width:100%;margin-top:24px;display:flex}.ad-studio-root .adstudio-chip{background:var(--card);border:1.5px solid var(--border);color:var(--text);cursor:pointer;border-radius:9999px;align-items:center;gap:8px;padding:9px 18px;font-size:13px;font-weight:600;transition:all .2s cubic-bezier(.16,1,.3,1);display:inline-flex;box-shadow:0 2px 6px #00000008}.ad-studio-root .adstudio-chip:hover:not(.is-disabled){background:var(--accent-tint);color:var(--accent);border-color:#0f766e;transform:translateY(-2px);box-shadow:0 6px 16px #0f766e1f}.ad-studio-root .adstudio-chip.is-selected{color:#fff;background:#042f2e;border-color:#042f2e;box-shadow:0 4px 14px #042f2e40}.ad-studio-root .adstudio-chip.adstudio-chip-editor{background:var(--card);color:var(--accent);border-color:#99f6e4}.ad-studio-root .adstudio-chip.adstudio-chip-editor:hover{color:#fff;background:linear-gradient(135deg,#0f766e 0%,#042f2e 100%);border-color:#0f766e}.ad-studio-root .adstudio-chip.is-disabled{opacity:.65;background:var(--card);border-color:var(--border);color:var(--text-3);cursor:default;box-shadow:none;transform:none}.ad-studio-root .adstudio-soon{text-transform:uppercase;letter-spacing:.04em;background:var(--bg-3);color:#64748b;border-radius:9999px;margin-left:2px;padding:2px 7px;font-size:10px;font-weight:700}.ad-studio-root .adstudio-inspirations{flex-direction:column;align-items:center;gap:10px;width:100%;margin-top:28px;animation:.5s adstudio-fadeIn;display:flex}.ad-studio-root .adstudio-inspirations-label{text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);align-items:center;gap:6px;font-size:12px;font-weight:600;display:flex}.ad-studio-root .adstudio-inspirations-list{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;max-width:780px;display:flex}.ad-studio-root .adstudio-inspire-pill{background:var(--card);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--border);color:var(--text);cursor:pointer;border-radius:9999px;align-items:center;gap:6px;padding:7px 14px;font-size:12px;font-weight:500;transition:all .15s;display:inline-flex}.ad-studio-root .adstudio-inspire-pill:hover{background:var(--accent-tint);color:var(--accent);border-color:#14b8a6;transform:translateY(-1px);box-shadow:0 4px 10px #14b8a61f}.ad-studio-root .adstudio-panel-backdrop{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:40;background:#0f172a59;animation:.2s adstudio-fadeIn;position:absolute;inset:0}.ad-studio-root .adstudio-recent-panel{background:var(--card);border-right:1px solid var(--border);z-index:50;flex-direction:column;width:320px;max-width:85vw;animation:.25s cubic-bezier(.16,1,.3,1) adstudio-slideRight;display:flex;position:absolute;top:0;bottom:0;left:0;box-shadow:6px 0 28px #00000014}.ad-studio-root .adstudio-recent-head{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding:18px 20px;display:flex}.ad-studio-root .adstudio-recent-title{color:var(--text);letter-spacing:-.01em;font-size:15px;font-weight:700}.ad-studio-root .adstudio-icon-btn{width:30px;height:30px;color:var(--text-2);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;transition:all .15s;display:inline-flex}.ad-studio-root .adstudio-icon-btn:hover{background:var(--bg-3);color:var(--text)}.ad-studio-root .adstudio-new-chat-btn{color:#fff;cursor:pointer;background:#042f2e;border:none;border-radius:12px;justify-content:center;align-items:center;gap:8px;margin:14px 16px 8px;padding:11px 16px;font-size:13px;font-weight:600;transition:all .2s;display:flex;box-shadow:0 4px 14px #042f2e33}.ad-studio-root .adstudio-new-chat-btn:hover{background:#115e59;transform:translateY(-1px);box-shadow:0 6px 18px #115e5940}.ad-studio-root .adstudio-recent-list{flex-direction:column;flex:1;gap:4px;padding:8px 12px;display:flex;overflow-y:auto}.ad-studio-root .adstudio-recent-item{border:1px solid #0000;border-radius:10px;align-items:center;transition:all .15s;display:flex;position:relative}.ad-studio-root .adstudio-recent-open{text-align:left;cursor:pointer;background:0 0;border:none;flex:1;align-items:center;gap:10px;min-width:0;padding:10px 12px;display:flex}.ad-studio-root .adstudio-recent-icon{color:var(--text-2);flex-shrink:0}.ad-studio-root .adstudio-recent-item.is-current .adstudio-recent-icon{color:var(--accent)}.ad-studio-root .adstudio-recent-text{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.ad-studio-root .adstudio-recent-name{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;overflow:hidden}.ad-studio-root .adstudio-recent-item.is-current .adstudio-recent-name{color:var(--text);font-weight:600}.ad-studio-root .adstudio-recent-meta{color:var(--text-2);align-items:center;gap:6px;font-size:11px;display:flex}.ad-studio-root .adstudio-mode-badge{background:var(--bg-3);color:#475569;text-transform:uppercase;border-radius:4px;padding:2px 6px;font-size:10px;font-weight:600}.ad-studio-root .adstudio-mode-badge.mode-video{color:#4338ca;background:#e0e7ff}.ad-studio-root .adstudio-mode-badge.mode-image{background:var(--accent-tint);color:var(--accent)}.ad-studio-root .adstudio-mode-badge.mode-ugc{color:#b45309;background:#fef3c7}.ad-studio-root .adstudio-recent-delete{color:var(--text-3);cursor:pointer;opacity:0;background:0 0;border:none;border-radius:6px;flex-shrink:0;margin-right:6px;padding:8px;transition:all .15s}.ad-studio-root .adstudio-recent-item:hover .adstudio-recent-delete{opacity:1}.ad-studio-root .adstudio-recent-delete:hover{color:#ef4444;background:#fee2e2}.ad-studio-root .adstudio-recent-delete.is-confirm{opacity:1;color:#fff;background:#ef4444;border-radius:4px;padding:4px 8px;font-size:11px;font-weight:600}.ad-studio-root .adstudio-recent-empty{text-align:center;color:var(--text-3);padding:36px 16px;font-size:13px;line-height:1.5}.ad-studio-root .adstudio-recent-error{color:#ef4444;flex-direction:column;align-items:center;gap:8px;padding:24px 16px;font-size:13px;display:flex}.ad-studio-root .adstudio-link-btn{color:var(--accent);cursor:pointer;background:0 0;border:none;align-items:center;gap:5px;font-size:12px;font-weight:600;display:inline-flex}.ad-studio-root .brand-kit-logo{-o-object-fit:cover;object-fit:cover;border-radius:6px;width:24px;height:24px}.ad-studio-root .brand-swatch{border:1px solid #00000026;border-radius:50%;width:14px;height:14px}.ad-studio-root .adstudio-overlay{background:var(--card);z-index:30;flex-direction:column;animation:.2s adstudio-fadeIn;display:flex;position:absolute;inset:0}.ad-studio-root .adstudio-overlay-bar{border-bottom:1px solid var(--border);align-items:center;padding:12px 20px;display:flex}@keyframes adstudio-slideRight{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes higs-slideUp{0%{opacity:0;transform:translateY(30px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.ad-studio-root .higs-popover-anchor{z-index:1000;align-items:center;display:inline-flex;position:relative}.ad-studio-root .studio-chips{overflow:visible!important}.ad-studio-root .studio-toolbar{position:relative;overflow:visible!important}.ad-studio-root .gemini-input-capsule.studio-capsule{overflow:visible!important}.ad-studio-root .studio-chip.studio-model-chip.higs-model-trigger{background:var(--card);border:1px solid var(--border);color:var(--text);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:9999px;align-items:center;gap:7px;padding:5px 12px 5px 10px;font-size:12.5px;font-weight:600;transition:all .18s cubic-bezier(.16,1,.3,1);display:inline-flex;box-shadow:0 1px 2px #0000000a}.ad-studio-root .studio-chip.studio-model-chip.higs-model-trigger:hover{background:var(--card);color:var(--text);border-color:#cbd5e1}.ad-studio-root .studio-chip.studio-model-chip.higs-model-trigger.active{background:var(--accent-tint);color:var(--text);border-color:#0d9488;box-shadow:0 0 0 3px #0d94881f}.ad-studio-root .higs-trigger-icon{color:var(--accent);flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}.ad-studio-root .higs-trigger-name{color:var(--text);white-space:nowrap;text-overflow:ellipsis;max-width:170px;font-weight:600;overflow:hidden}.ad-studio-root .higs-trigger-chevron{color:var(--text-2);flex-shrink:0;transition:transform .2s}.ad-studio-root .studio-chip.studio-model-chip.higs-model-trigger.active .higs-trigger-chevron{color:var(--accent);transform:rotate(90deg)}.ad-studio-root .higs-popover-anchor{align-items:center;display:inline-flex;position:relative}@keyframes higs-popoverFade{0%{opacity:0;transform:translateY(8px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.ad-studio-root .higs-popover-card{background:var(--card);border:1px solid var(--border);z-index:1000;-webkit-user-select:none;user-select:none;border-radius:16px;flex-direction:column;width:390px;max-width:calc(100vw - 32px);max-height:min(440px,100vh - 160px);animation:.2s cubic-bezier(.16,1,.3,1) higs-popoverFade;display:flex;position:absolute;left:0;overflow:hidden;box-shadow:0 20px 45px -5px #0f172a1f,0 8px 16px -4px #0f172a0f,0 0 0 1px #00000008}.ad-studio-root .higs-popover-card.placement-top{top:auto;bottom:calc(100% + 10px)}.ad-studio-root .higs-popover-card.placement-bottom{top:calc(100% + 10px);bottom:auto}.ad-studio-root .higs-search-container{border:1px solid var(--border);background:var(--card);border-radius:10px;align-items:center;gap:10px;margin:12px 12px 6px;padding:8px 12px;transition:all .15s;display:flex}.ad-studio-root .higs-search-container:focus-within{background:var(--card);border-color:#0d9488;box-shadow:0 0 0 3px #0d94881a}.ad-studio-root .higs-search-ico{color:var(--text-2);flex-shrink:0}.ad-studio-root .higs-search-field{color:var(--text);flex:1;padding:0;font-family:inherit;font-size:13.5px;box-shadow:none!important;background:0 0!important;border:none!important;outline:none!important}.ad-studio-root .higs-search-field:focus,.ad-studio-root .higs-search-field:focus-visible{box-shadow:none!important;border:none!important;outline:none!important}.ad-studio-root .higs-search-field::placeholder{color:var(--text-3)}.ad-studio-root .higs-search-clear-btn{color:var(--text-3);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:2px;display:flex}.ad-studio-root .higs-search-clear-btn:hover{color:var(--text)}.ad-studio-root .higs-tab-header{border-bottom:1px solid #f1f5f9;flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;padding:8px 14px 6px;display:flex}.ad-studio-root .higs-studio-tabs{background:var(--bg-3);border:1px solid var(--border);border-radius:8px;gap:3px;padding:2px;display:flex}.ad-studio-root .higs-tab-pill{color:var(--text-2);cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:5px;padding:4px 10px;font-size:11.5px;font-weight:600;transition:all .15s;display:flex}.ad-studio-root .higs-tab-pill.active{background:var(--card);color:var(--text);box-shadow:0 1px 3px #00000014}.ad-studio-root .higs-tab-pill:not(.active):hover{color:var(--text)}.ad-studio-root .higs-featured-label{color:var(--text-2);letter-spacing:.01em;font-size:11.5px;font-weight:600}.ad-studio-root .higs-model-list-scroll{flex-direction:column;flex:1;gap:2px;padding:6px 8px 10px;display:flex;overflow-y:auto}.ad-studio-root .higs-model-list-scroll::-webkit-scrollbar{width:5px}.ad-studio-root .higs-model-list-scroll::-webkit-scrollbar-thumb{background:#94a3b859;border-radius:9999px}.ad-studio-root .higs-row-item{cursor:pointer;border-radius:10px;outline:none;align-items:center;gap:12px;padding:9px 10px;transition:background .12s;display:flex;position:relative}.ad-studio-root .higs-row-item:hover,.ad-studio-root .higs-row-item:focus-visible{background:var(--card)}.ad-studio-root .higs-row-item.is-selected{background:#0d948814}.ad-studio-root .higs-icon-box{background:var(--card);border:1px solid var(--border);color:#475569;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;transition:all .15s;display:flex}.ad-studio-root .higs-row-item:hover .higs-icon-box{color:var(--text);background:var(--bg-3);border-color:#cbd5e1}.ad-studio-root .higs-icon-box.selected-icon{color:var(--accent);background:#0d94881f;border-color:#0d9488}.ad-studio-root .higs-info-col{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ad-studio-root .higs-name-line{align-items:center;gap:6px;display:flex}.ad-studio-root .higs-model-title{color:var(--text);letter-spacing:-.01em;font-size:13.5px;font-weight:600}.ad-studio-root .higs-badge-tag{text-transform:uppercase;letter-spacing:.04em;border-radius:4px;padding:1px 6px;font-size:9.5px;font-weight:800;line-height:1.3}.ad-studio-root .higs-credit-tag{background:var(--bg-3);color:#334155;border:1px solid var(--border);white-space:nowrap;border-radius:999px;padding:1px 7px;font-size:11px;font-weight:700;line-height:1.4}.ad-studio-root .higs-badge-tag.badge-neon{background:var(--accent-tint);color:var(--accent);border:1px solid #bbf7d0}.ad-studio-root .higs-badge-tag.badge-green{background:var(--accent-tint);color:var(--accent);border:1px solid #a7f3d0}.ad-studio-root .higs-badge-tag.badge-blue{background:var(--card);color:#0369a1;border:1px solid #bae6fd}.ad-studio-root .higs-badge-tag.badge-purple{background:var(--bg-3);color:#7e22ce;border:1px solid #e9d5ff}.ad-studio-root .higs-desc-line{color:var(--text-2);white-space:nowrap;text-overflow:ellipsis;font-size:11.5px;line-height:1.35;overflow:hidden}.ad-studio-root .higs-check-indicator{color:var(--accent);flex-shrink:0;justify-content:center;align-items:center;margin-left:auto;display:flex}.ad-studio-root .higs-empty-notice{text-align:center;color:var(--text-2);padding:32px 16px;font-size:13px}.ad-studio-root .higs-empty-btn{background:var(--card);color:var(--text);cursor:pointer;border:1px solid #cbd5e1;border-radius:7px;margin-top:8px;padding:5px 12px;font-size:12px}.video-project-stack{flex-direction:column;gap:12px;width:100%;display:flex}.video-project-stack>.gemini-rendered-video{width:100%}.vp-chat-storyboard{background:0 0;border:0;padding:0}.vp-chat-storyboard .vp-title{margin-bottom:4px;font-weight:600}.vp-generating{min-height:56px}.ad-studio-root .adstudio-main.is-chat{padding:4px 24px 8px}.ad-studio-root .adstudio-main.is-chat .adstudio-chat-scrollable{padding:0 12px 4px}.ad-studio-root .adstudio-main.is-chat .gemini-messages-viewport{gap:18px;padding:12px 24px 8px}.ad-studio-root .adstudio-main.is-chat .gemini-message-item{max-width:860px;margin-inline:auto}.ad-studio-root .adstudio-main.is-chat .adstudio-composer-pinned{padding-top:4px}.ad-studio-root .adstudio-main.is-chat .gemini-prompt-wrapper{padding:4px 24px 8px}.vp-chat-storyboard .vp-goal{opacity:.85;margin:0 0 10px}.vp-chat-storyboard .vp-shots{gap:12px;margin:0 0 8px;padding:0;list-style:none;display:grid}.vp-chat-storyboard .vp-shots li{background:0 0;border-left:2px solid #0f766e59;border-radius:0;padding:0 0 0 10px}.vp-chat-storyboard .vp-shot-head{letter-spacing:.02em;text-transform:uppercase;color:var(--text-2);flex-wrap:wrap;justify-content:flex-start;gap:4px 10px;margin-bottom:2px;font-size:11px;font-weight:600;display:flex}.vp-chat-storyboard .vp-shot-body{color:inherit;font-size:14px;line-height:1.5}.vp-chat-storyboard .vp-shot-meta{color:var(--text-2);opacity:1;margin-top:3px;font-size:12px;line-height:1.4}.ad-studio-root .adstudio-main.is-chat .gemini-message-item{overflow-wrap:anywhere;min-width:0}@media (max-width:640px){.ad-studio-root .adstudio-main.is-chat{padding:2px 16px 6px}.ad-studio-root .adstudio-main.is-chat .gemini-messages-viewport{padding:8px 0 6px}}.vp-draft .vp-shots li{animation:.35s ease-out both vp-draft-in}@keyframes vp-draft-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.vp-draft .vp-caret{opacity:.5;background:currentColor;width:8px;height:16px;margin-top:4px;animation:1s step-end infinite vp-caret-blink;display:inline-block}@keyframes vp-caret-blink{50%{opacity:0}}@media (prefers-reduced-motion:reduce){.vp-draft .vp-shots li,.vp-draft .vp-caret{animation:none}}.vp-quality{margin-top:8px;font-size:13px}.vp-quality summary{cursor:pointer;color:var(--text-2)}.vp-quality-part{border-left:2px solid #0f766e59;margin-top:6px;padding:6px 0 6px 10px}.ad-studio-root .frame-slots{gap:14px;margin:10px 10px 0;display:flex}.ad-studio-root .frame-slot-wrap{flex-direction:column;align-items:center;gap:4px;display:flex;position:relative}.ad-studio-root .frame-slot{border:1.5px dashed var(--border);border-radius:var(--radius-md);background:var(--bg-soft);width:64px;height:64px;color:var(--text-3);cursor:pointer;transition:border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);place-items:center;display:grid;overflow:hidden}.ad-studio-root .frame-slot:hover{border-color:var(--text-3);color:var(--text-2)}.ad-studio-root .frame-slot.filled{cursor:default;border-style:solid;padding:0}.ad-studio-root .frame-slot img{-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.ad-studio-root .frame-slot-remove{border:1px solid var(--border);background:var(--bg-soft);width:18px;height:18px;color:var(--text-2);border-radius:50%;place-items:center;display:grid;position:absolute;top:-6px;right:-6px}.ad-studio-root .frame-slot-label{color:var(--text-3);font-size:11px}.ad-studio-root .vp-keyframes{gap:8px;padding:4px 0 8px;display:flex;overflow-x:auto}.ad-studio-root .vp-keyframe{flex:none;width:132px;margin:0}.ad-studio-root .vp-keyframe img{aspect-ratio:16/9;-o-object-fit:cover;object-fit:cover;border:1px solid var(--border);border-radius:var(--radius-sm,6px);width:100%;display:block}.ad-studio-root .vp-keyframe figcaption{color:var(--text-3);margin-top:2px;font-size:11px}.ad-studio-root .adstudio-main.is-home .gemini-prompt-wrapper:before{display:none}.ad-studio-root .chip-menu{display:inline-flex;position:relative}.ad-studio-root .chip-menu-trigger{gap:6px}.ad-studio-root .chip-menu-trigger.active{background:var(--accent-tint);color:var(--text);border-color:#0f766e}.ad-studio-root .chip-menu-chevron{opacity:.55;transition:transform .15s}.ad-studio-root .chip-menu-trigger.active .chip-menu-chevron{transform:rotate(180deg)}.ad-studio-root .chip-menu-popover,.chip-menu-popover{z-index:2000;background:var(--bg-elevated,#fff);border:1px solid var(--border-strong,#cbd5e1);min-width:168px;max-height:min(460px,75vh);box-shadow:var(--shadow-lg,0 10px 25px -5px #0000001a, 0 8px 10px -6px #0000001a);scrollbar-width:thin;scrollbar-color:#94a3b8 transparent;overscroll-behavior:contain;border-radius:12px;padding:6px;animation:.16s cubic-bezier(.16,1,.3,1) higs-popoverFade;position:fixed;bottom:calc(100% + 8px);left:0;overflow-y:auto}.ad-studio-root .chip-menu-popover::-webkit-scrollbar{width:6px}.chip-menu-popover::-webkit-scrollbar{width:6px}.ad-studio-root .chip-menu-popover::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.chip-menu-popover::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.ad-studio-root .chip-menu-popover::-webkit-scrollbar-thumb:hover{background:#94a3b8}.chip-menu-popover::-webkit-scrollbar-thumb:hover{background:#94a3b8}.ad-studio-root .chip-menu-head{letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);padding:6px 10px 4px;font-size:10.5px;font-weight:700}.ad-studio-root .chip-menu-item{width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;font-size:13px;display:flex}.ad-studio-root .chip-menu-item:hover,.ad-studio-root .chip-menu-item:focus-visible{background:var(--bg-hover);outline:none}.ad-studio-root .chip-menu-item.selected{background:var(--accent-tint);color:var(--accent);font-weight:600}.ad-studio-root .higs-model-title{white-space:nowrap}.ad-studio-root .higs-desc-line{white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.ad-studio-root .higs-meta-line{flex-wrap:wrap;align-items:center;gap:4px 6px;margin-top:5px;display:flex}.ad-studio-root .higs-provider{color:var(--text-3);margin-right:2px;font-size:11px}.ad-studio-root .higs-feature-tag{background:var(--bg-muted);color:var(--text-2);border:1px solid var(--border);border-radius:999px;padding:4px 7px;font-size:10.5px;line-height:1}.ad-studio-root .higs-row-item.is-selected .higs-feature-tag{background:var(--card)}.ad-studio-root .preset-popover{width:min(500px,100vw - 32px)}.ad-studio-root .preset-swatch.is-camera{color:var(--text);background:var(--bg-muted);border:1px solid var(--border)}.ad-studio-root .preset-card.selected .preset-swatch.is-camera{color:var(--accent);background:var(--accent-tint);border-color:#99f6e4}.ad-studio-root .preset-card-desc{white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.ad-studio-root .adstudio-main.is-chat .adstudio-stack{max-width:1180px}.ad-studio-root .adstudio-main.is-chat .gemini-message-item,.ad-studio-root .adstudio-main.is-chat .adstudio-composer-pinned,.ad-studio-root .adstudio-main.is-chat .gemini-prompt-wrapper{max-width:1000px}.ad-studio-root .gemini-message-item.user .gemini-message-body{background:var(--accent-tint);max-width:min(72%,680px);color:var(--text);border:1px solid #ccfbf1}.ad-studio-root .gemini-message-item.assistant .gemini-message-body{line-height:1.65}.ad-studio-root .adstudio-main.is-chat .frame-slots{gap:10px;margin:8px 12px 0}.ad-studio-root .adstudio-main.is-chat .frame-slot{border-radius:10px;width:44px;height:44px}.ad-studio-root .adstudio-main.is-chat .frame-slot-label{font-size:10px}.ad-studio-root .vp-chat-storyboard{background:var(--bg-elevated);border:1px solid var(--border);box-shadow:var(--shadow-sm);border-radius:14px;padding:16px 18px}.ad-studio-root .vp-chat-storyboard .vp-title{color:var(--text);font-size:15px;font-weight:650}.ad-studio-root .vp-chat-storyboard .vp-shots li{border-left:2px solid #99f6e4;padding:2px 0 2px 12px}.ad-studio-root .vp-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.ad-studio-root .vp-actions .vp-primary{color:#fff;background:#0f766e;border-radius:10px;padding:9px 16px;font-weight:600;box-shadow:0 1px 2px #0f766e40}.ad-studio-root .vp-actions .vp-primary:hover:not(:disabled){background:#115e59}.ad-studio-root .video-project-card{border-radius:14px}.ad-studio-root .vp-generating{border:1px solid var(--border);background:var(--bg-soft)}.ad-studio-root .gemini-input-capsule.studio-capsule:focus-within{border-color:#0f766e;box-shadow:0 0 0 3px #0f766e24,0 8px 28px #0f766e1a}.ad-studio-root .studio-textarea::placeholder{color:var(--text-2)}.ad-studio-root .studio-composer{max-width:780px;margin:0 auto}.ad-studio-root .studio-textarea{min-height:72px;color:var(--text);font-size:15px;line-height:1.55}.ad-studio-root .studio-toolbar{flex-wrap:nowrap}.ad-studio-root .studio-send-btn.icon-only{color:#fff;opacity:.35;cursor:not-allowed;background:#0f766e;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;display:inline-flex}.ad-studio-root .studio-seg{background:var(--bg-3);border:1px solid var(--border);border-radius:11px;flex:none;gap:2px;padding:3px;display:inline-flex}.ad-studio-root .studio-seg-btn{height:28px;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:6px;padding:0 11px;font-size:13px;font-weight:600;transition:background .15s,color .15s;display:inline-flex}.ad-studio-root .studio-seg-btn:hover{color:var(--text)}.ad-studio-root .studio-seg-btn.active{color:#fff;background:#0f766e;box-shadow:0 1px 3px #0f766e59}.ad-studio-root .studio-send-btn.icon-only.active{opacity:1;cursor:pointer;box-shadow:0 4px 12px #0f766e59}.ad-studio-root .studio-seg-btn:focus-visible,.ad-studio-root .studio-chip:focus-visible,.ad-studio-root .studio-send-btn:focus-visible{outline-offset:2px;outline:2px solid #0f766e}@media (max-width:640px){.ad-studio-root .studio-chips{scrollbar-width:none;-webkit-overflow-scrolling:touch;flex-wrap:nowrap;overflow-x:auto}.ad-studio-root .studio-chips::-webkit-scrollbar{display:none}.ad-studio-root .higs-popover-card{width:calc(100vw - 24px);left:50%;transform:translate(-50%)}.ad-studio-root .chip-menu-popover{min-width:0;position:fixed;bottom:96px;left:12px;right:12px}.ad-studio-root .gemini-message-item.user .gemini-message-body{max-width:88%}.ad-studio-root .studio-seg-btn span{display:none}.ad-studio-root .studio-seg-btn{padding:0 9px}.ad-studio-root .studio-textarea{min-height:56px}}.ad-studio-root .gemini-input-capsule.studio-capsule .studio-toolbar{flex-wrap:wrap;row-gap:8px}.ad-studio-root .gemini-input-capsule.studio-capsule .studio-chips{flex-wrap:wrap;flex:1 1 0;width:auto;min-width:0;overflow:visible}.ad-studio-root .gemini-input-capsule.studio-capsule .studio-send-btn{align-self:flex-end;margin-left:auto}.ad-studio-root .gemini-input-capsule.studio-capsule .frame-slots{gap:10px;margin-bottom:6px}.ad-studio-root .gemini-input-capsule.studio-capsule .frame-slot{border-radius:10px;width:56px;height:56px}.ad-studio-root .video-project-panel .vp-prompt{white-space:pre-wrap;max-height:240px;font:11px/1.45 var(--font-mono,monospace);background:#00000040;border-radius:6px;margin:4px 0 8px;padding:8px;overflow:auto}.ad-studio-root .adstudio-main.is-chat .adstudio-chat-scrollable{padding-bottom:6px}.ad-studio-root .fv-wrap{flex-direction:column;gap:8px;width:100%;min-width:0;display:flex}.ad-studio-root .fv-wrap>.gemini-rendered-video{max-height:min(60vh,480px);margin-inline:auto}.ad-studio-root .fv-row{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.ad-studio-root .fv-btn{background:var(--card);color:var(--text);font:inherit;cursor:pointer;border:1px solid #cbd5e1;border-radius:999px;padding:4px 12px;font-size:12px;font-weight:600;line-height:1.4}.ad-studio-root .fv-btn:hover:not(:disabled){color:var(--accent);border-color:#0f766e}.ad-studio-root .fv-btn.is-active{color:#fff;background:#0f766e;border-color:#0f766e}.ad-studio-root .fv-btn:disabled{opacity:.5;cursor:not-allowed}.ad-studio-root .fv-tag{background:var(--accent-tint);color:var(--accent);text-transform:uppercase;letter-spacing:.04em;border:1px solid #ccfbf1;border-radius:999px;align-items:center;padding:2px 8px;font-size:11px;font-weight:600;display:inline-flex}.ad-studio-root .fv-input{background:var(--card);width:80px;color:var(--text);font:inherit;border:1px solid #cbd5e1;border-radius:8px;padding:4px 8px;font-size:12px}.ad-studio-root .fv-error{color:#b91c1c;margin:0;font-size:12px}.ad-studio-root .adstudio-main.is-chat .gemini-input-capsule.studio-capsule .frame-slots{gap:14px;margin:0 0 4px}.ad-studio-root .adstudio-main.is-chat .gemini-input-capsule.studio-capsule .frame-slot-wrap{flex-direction:row;align-items:center;gap:6px}.ad-studio-root .adstudio-main.is-chat .gemini-input-capsule.studio-capsule .frame-slot{border-radius:8px;width:34px;height:34px}.ad-studio-root .adstudio-main.is-chat .studio-textarea{min-height:44px}.ad-studio-root .adstudio-main.is-chat .studio-composer{max-width:940px}.ad-studio-root .studio-composer>.studio-seg{align-self:flex-start;width:fit-content;margin:0 0 8px 4px}@media (min-width:1000px){.ad-studio-root .adstudio-main.is-chat .studio-composer{flex-direction:column;align-items:stretch;gap:10px;max-width:1000px;display:flex}.ad-studio-root .adstudio-main.is-chat .studio-composer>.gemini-input-capsule{flex:1;min-width:0;position:relative}.ad-studio-root .adstudio-main.is-chat .gemini-input-capsule.studio-capsule .frame-slots{z-index:1;gap:8px;margin:0;position:absolute;bottom:14px;right:74px}.ad-studio-root .adstudio-main.is-chat .gemini-input-capsule.studio-capsule .frame-slot-label{display:none}.ad-studio-root .adstudio-main.is-chat .studio-textarea{min-height:40px}}.ad-studio-root .media-visual-wrapper:has(.fv-wrap){background:var(--bg-elevated,#fff);min-height:0;max-height:none;padding:12px;display:block;overflow:visible}.ad-studio-root .fv-wrap>.gemini-rendered-video{-o-object-fit:contain;object-fit:contain;background:#08080a;border-radius:12px;width:100%;max-height:min(62vh,560px)}.ad-studio-root .fv-row[aria-label=Versions]:before,.ad-studio-root .fv-row[aria-label=Free\ edits]:before{color:var(--text-2);min-width:66px;margin-right:4px;font-size:12px;font-weight:600}.ad-studio-root .fv-row[aria-label=Versions]:before{content:"Version"}.ad-studio-root .fv-row[aria-label=Free\ edits]:before{content:"Free edits"}.ad-studio-root .media-visual-wrapper:has(.fv-wrap) .vp-quality{margin:10px 2px 0}.ad-studio-root .media-visual-wrapper:has(.fv-wrap) .vp-quality summary{color:var(--text)}.ad-studio-root .fv-btn.is-active:hover:not(:disabled){color:#fff;background:#115e59;border-color:#115e59}.ad-studio-root .vp-generating{align-items:center;gap:14px;display:flex}.ad-studio-root .vp-progress-indicator{flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;gap:4px;width:40px;display:flex}.ad-studio-root .vp-progress-ring{width:28px;height:28px;overflow:visible;transform:rotate(-90deg)}.ad-studio-root .vp-progress-ring-bg{fill:none;stroke:#ffffff1f;stroke-width:2.5px}.ad-studio-root .vp-progress-ring-fg{fill:none;stroke:#10b981;stroke-width:2.5px;stroke-linecap:round;transition:stroke-dashoffset .6s cubic-bezier(.4,0,.2,1)}.ad-studio-root .adstudio-toolbar-btn{border:1px solid var(--border-strong);box-shadow:none;gap:6px;padding:5px 14px;font-size:12px;font-weight:600}.ad-studio-root .adstudio-toolbar-btn:hover{background:var(--bg-hover);border-color:var(--border-strong);color:var(--text);box-shadow:none;transform:none}.ad-studio-root .adstudio-toolbar-btn.is-active{background:var(--accent-soft);color:var(--accent-text);border-color:var(--accent);box-shadow:none}.ad-studio-root .adstudio-toolbar-btn.btn-new-chat{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:none}.ad-studio-root .adstudio-toolbar-btn.btn-new-chat:hover{background:var(--primary-hover);border-color:var(--primary-hover);color:#fff}.ad-studio-root .adstudio-hero{margin-bottom:20px}.ad-studio-root .adstudio-hero-title{letter-spacing:-.02em;margin-bottom:6px;font-size:26px;font-weight:700}.ad-studio-root .adstudio-hero-sub{max-width:460px;font-size:12px}.ad-studio-root .gemini-textarea.studio-textarea{font-size:13px}.ad-studio-root .gemini-tool-btn{border-width:1px;width:28px;height:28px}.ad-studio-root .studio-chips{gap:6px}.ad-studio-root .studio-chip{border-color:var(--border-strong);background:var(--bg);padding:3px 10px;font-size:11.5px}.ad-studio-root .studio-chip:hover{background:var(--bg-hover);border-color:var(--border-strong)}.ad-studio-root .studio-chip select{font-size:11.5px}.ad-studio-root .studio-rail-btn{font-size:11px}.ad-studio-root .studio-seg-btn{gap:5px;height:24px;padding:0 10px;font-size:12px}.ad-studio-root .studio-seg{border-radius:10px;padding:2px}.ad-studio-root .studio-chip{height:26px;font-size:11.5px}.ad-studio-root .studio-chip.studio-model-chip.higs-model-trigger{box-shadow:none;gap:5px;padding:3px 10px 3px 8px;font-size:11.5px}.ad-studio-root .adstudio-chip{box-shadow:none;border-width:1px;gap:6px;padding:5px 14px;font-size:12px}.ad-studio-root .studio-send-btn.icon-only{width:32px;height:32px}.ad-studio-root .adstudio-actions-row{border-bottom:1px solid color-mix(in srgb, var(--accent) 18%, var(--border));background:0 0;flex-shrink:0;align-items:center;gap:8px;padding:8px 16px;display:flex}.ad-studio-root .adstudio-panel-backdrop{background:var(--bg-overlay);-webkit-backdrop-filter:none}.ad-studio-root .adstudio-recent-panel{z-index:51;background:var(--bg-soft);border-right:1px solid var(--border);width:min(320px,86vw);box-shadow:var(--shadow-lg)}.ad-studio-root .adstudio-recent-head{border-bottom:1px solid var(--border);padding:12px 12px 10px 16px}.ad-studio-root .adstudio-recent-title{font-size:13px}.ad-studio-root .adstudio-icon-btn{border-radius:8px;width:26px;height:26px}.ad-studio-root .adstudio-recent-panel .adstudio-new-chat-btn{display:none}.ad-studio-root .adstudio-recent-list{gap:2px;padding:8px}.ad-studio-root .adstudio-recent-item{border-radius:10px}.ad-studio-root .adstudio-recent-item:hover{background:var(--bg-hover);border-color:#0000}.ad-studio-root .adstudio-recent-item.is-current{background:var(--accent-soft);border-color:#0000}.ad-studio-root .adstudio-recent-name{font-size:12px}.ad-studio-root .adstudio-recent-meta{font-size:10.5px}.ad-studio-root .adstudio-recent-empty{font-size:11px}.ad-studio-root .adstudio-shell{background:radial-gradient(900px 420px at 50% 0%, color-mix(in srgb, var(--accent) 16%, var(--bg)) 0%, transparent 70%), color-mix(in srgb, var(--accent) 5%, var(--bg))}.ad-studio-root .adstudio-stage{background:0 0}.ad-studio-root{--bg-hover:#e8f6f3;--border:#dcebe8;--border-strong:#c3dcd7;--text:#11302c;--text-2:#46605b;--text-3:#66807b;--primary:#0d6b60;--primary-hover:#0a4f47;--on-primary:#fff;--accent:#14a58f;--accent-soft:#e4f9f4;--accent-text:#0b5a50;--focus-ring:#14a58f4d}[data-theme=dark] .ad-studio-root{--primary:#14a58f;--primary-hover:#2fd1b4;--on-primary:#06201c;--accent:#2fd1b4;--accent-soft:#2fd1b41f;--accent-text:#7ee6cf;--focus-ring:#2fd1b440}.ad-studio-root .adstudio-main.is-home{justify-content:stretch;padding:0 24px 18px;overflow:hidden}.ad-studio-root .adstudio-main.is-home .adstudio-stack{flex:1;max-width:none;height:100%;min-height:0}.ad-studio-root .adstudio-main.is-home .adstudio-chips{border-bottom:1px solid color-mix(in srgb, var(--accent) 18%, var(--border));order:-1;justify-content:flex-start;width:calc(100% + 48px);margin:0 -24px;padding:10px 24px}.ad-studio-root .adstudio-main.is-home .adstudio-hero{flex:1;justify-content:center;margin:0}.ad-studio-root .adstudio-main.is-home .adstudio-composer-pinned{max-width:none}.ad-studio-root .adstudio-hero-logo{background:var(--primary);width:60px;height:60px;color:var(--on-primary);letter-spacing:.02em;border-radius:16px;place-items:center;margin-bottom:18px;font-size:18px;font-weight:700;display:grid}.ad-studio-root .adstudio-main.is-home .adstudio-hero-title{letter-spacing:-.02em;-webkit-text-fill-color:currentColor;color:var(--text);background:0 0;margin:0 0 8px;font-size:26px;font-weight:700}.ad-studio-root .adstudio-main.is-home .adstudio-hero-sub{color:var(--text-2);font-size:14px}.ad-studio-root .studio-composer{flex-direction:column;align-items:flex-start;gap:10px;max-width:none;margin:0}.ad-studio-root .studio-composer>:not(.studio-seg){width:100%}.ad-studio-root .gemini-prompt-wrapper{max-width:none}.ad-studio-root .studio-textarea{min-height:96px}.ad-studio-root .vp-ratio-modal{background:var(--bg-elevated,#fff);border:1px solid var(--border);width:90%;max-width:520px;color:var(--text);z-index:10001;border-radius:16px;flex-direction:column;gap:18px;padding:24px;animation:.2s cubic-bezier(.16,1,.3,1) vpModalFadeIn;display:flex;position:relative;box-shadow:0 20px 48px #0000002e,0 0 0 1px #11302c0d}@keyframes vpModalFadeIn{0%{opacity:0;transform:scale(.96)translateY(6px)}to{opacity:1;transform:scale(1)translateY(0)}}.ad-studio-root .vp-ratio-header{justify-content:space-between;align-items:flex-start;display:flex}.ad-studio-root .vp-ratio-title-group{align-items:center;gap:12px;display:flex}.ad-studio-root .vp-ratio-icon-badge{width:36px;height:36px;color:var(--accent-text);background:#14a58f1f;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.ad-studio-root .vp-ratio-title{color:var(--text);letter-spacing:-.01em;margin:0;font-size:16px;font-weight:600}.ad-studio-root .vp-ratio-subtitle{color:#11302c99;margin:3px 0 0;font-size:12px;line-height:1.4}.ad-studio-root .vp-ratio-close-btn{color:#11302c80;cursor:pointer;background:0 0;border:none;border-radius:6px;padding:4px;transition:all .15s}.ad-studio-root .vp-ratio-source-card{background:#11302c08;border:1px solid #11302c0f;border-radius:12px;align-items:center;gap:12px;padding:10px 14px;display:flex}.ad-studio-root .vp-ratio-source-thumb{-o-object-fit:cover;object-fit:cover;background:#111;border:1px solid #11302c1a;border-radius:8px;flex-shrink:0;width:48px;height:48px}.ad-studio-root .vp-ratio-source-info{flex-direction:column;gap:3px;min-width:0;display:flex}.ad-studio-root .vp-ratio-source-badge{align-items:center;gap:6px;display:flex}.ad-studio-root .vp-ratio-source-pill{text-transform:uppercase;letter-spacing:.04em;color:#11302ccc;background:#11302c1a;border-radius:4px;padding:1px 6px;font-size:10px;font-weight:600}.ad-studio-root .vp-ratio-source-pill-ratio{color:var(--accent-text);font-size:11px;font-weight:600}.ad-studio-root .vp-ratio-source-prompt{color:#11302c8c;white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:12px;overflow:hidden}.ad-studio-root .vp-ratio-section{flex-direction:column;gap:8px;display:flex}.ad-studio-root .vp-ratio-section-header{justify-content:space-between;align-items:center;display:flex}.ad-studio-root .vp-ratio-section-label{color:#11302cb3;text-transform:uppercase;letter-spacing:.05em;font-size:12px;font-weight:600}.ad-studio-root .vp-ratio-select-all-btn{color:var(--accent-text);cursor:pointer;background:0 0;border:none;padding:0;font-size:11px;font-weight:500}.ad-studio-root .vp-ratio-select-all-btn:hover{text-decoration:underline}.ad-studio-root .vp-ratio-grid{grid-template-columns:1fr;gap:8px;display:grid}.ad-studio-root .vp-ratio-card{cursor:pointer;-webkit-user-select:none;user-select:none;background:#11302c08;border:1px solid #11302c14;border-radius:10px;justify-content:space-between;align-items:center;padding:10px 14px;transition:all .15s;display:flex}.ad-studio-root .vp-ratio-card.is-selected{background:#14a58f14;border-color:#14a58f66}.ad-studio-root .vp-ratio-card.is-current{cursor:default;opacity:.7;background:#11302c05;border-color:#11302c0f}.ad-studio-root .vp-ratio-card-left{align-items:center;gap:12px;display:flex}.ad-studio-root .vp-ratio-box-preview{background:#11302c0a;border:1px dashed #11302c26;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.ad-studio-root .vp-ratio-shape{background:#11302c66;border-radius:2px;transition:all .15s}.ad-studio-root .vp-ratio-card-name{color:var(--text);align-items:center;gap:6px;font-size:13px;font-weight:500;display:flex}.ad-studio-root .vp-ratio-current-tag{text-transform:uppercase;color:#34d399;background:#10b98126;border-radius:4px;padding:1px 5px;font-size:9px;font-weight:600}.ad-studio-root .vp-ratio-card-desc{color:#11302c80;margin-top:1px;font-size:11px}.ad-studio-root .vp-ratio-checkbox{color:#fff;border:1.5px solid #11302c4d;border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;transition:all .15s;display:flex}.ad-studio-root .vp-ratio-checkbox.locked{color:#11302c80;background:#11302c1f;border-color:#0000}.ad-studio-root .vp-ratio-mode-selector{grid-template-columns:1fr 1fr;gap:8px;display:grid}.ad-studio-root .vp-ratio-mode-btn{color:#11302cb3;cursor:pointer;text-align:left;background:#11302c08;border:1px solid #11302c14;border-radius:10px;align-items:flex-start;gap:10px;padding:10px 12px;transition:all .15s;display:flex}.ad-studio-root .vp-ratio-mode-btn strong{color:var(--text);font-size:12px;font-weight:500;display:block}.ad-studio-root .vp-ratio-mode-btn span{color:#11302c73;margin-top:2px;font-size:10px;line-height:1.3;display:block}.ad-studio-root .vp-ratio-mode-btn.active{color:var(--accent-text);background:#14a58f1a;border-color:#14a58f}.ad-studio-root .vp-ratio-footer{justify-content:flex-end;gap:10px;margin-top:4px;display:flex}.ad-studio-root .vp-ratio-btn-secondary{color:#11302ccc;cursor:pointer;background:#11302c0f;border:1px solid #11302c1a;border-radius:8px;padding:9px 16px;font-size:13px;font-weight:500;transition:all .15s}.ad-studio-root .vp-ratio-btn-secondary:hover{color:var(--text);background:#11302c1a}.ad-studio-root .vp-ratio-btn-primary{color:#fff;cursor:pointer;background:#14a58f;border:none;border-radius:8px;align-items:center;gap:8px;padding:9px 20px;font-size:13px;font-weight:600;transition:all .15s;display:flex;box-shadow:0 4px 14px #14a58f59}.ad-studio-root .vp-ratio-btn-primary:hover:not(:disabled){background:#0d6b60;box-shadow:0 6px 20px #14a58f80}.ad-studio-root .vp-ratio-btn-primary:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.ad-studio-root .vp-ratio-generating-box{aspect-ratio:1;background:#11302c05;border:1px dashed #14a58f4d;border-radius:12px;justify-content:center;align-items:center;width:100%;min-height:220px;max-height:340px;display:flex;position:relative;overflow:hidden}.ad-studio-root .vp-ratio-generating-box:after{content:"";background:linear-gradient(90deg,#0000,#14a58f0f,#0000);width:100%;height:100%;animation:1.8s infinite vpShimmer;position:absolute;top:0;left:-100%}@keyframes vpShimmer{to{left:100%}}.ad-studio-root .vp-ratio-generating-text{color:var(--text);margin-top:8px;font-size:13px;font-weight:600}.ad-studio-root .vp-ratio-generating-sub{color:#11302c80;margin-top:2px;font-size:11px}.ad-studio-root .multi-ratio-chip{color:var(--text-2);cursor:pointer;white-space:nowrap;background:#11302c0a;border:1px solid #11302c17;border-radius:9999px;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:500;transition:all .15s;display:inline-flex}.ad-studio-root .multi-ratio-chip:hover{color:var(--text);background:#11302c14;border-color:#14a58f4d}.ad-studio-root .multi-ratio-chip.active{color:var(--accent-text);background:#14a58f24;border-color:#14a58f80;box-shadow:0 0 12px #14a58f33}.ad-studio-root .multi-ratio-count-pill{color:#fff;background:#14a58f;border-radius:9999px;justify-content:center;align-items:center;margin-left:2px;padding:2px 6px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.ad-studio-root .gemini-media-btn.is-multi-ratio{color:var(--accent-text);border-color:#14a58f40}.ad-studio-root .gemini-media-btn.is-multi-ratio:hover{color:var(--text);background:#14a58f2e;border-color:#14a58f80}.ad-studio-root .vp-ratio-source-card.is-pre-generate{background:#14a58f0f;border:1px solid #14a58f33;border-radius:10px;align-items:center;gap:12px;padding:12px 14px;display:flex}.ad-studio-root .vp-ratio-source-icon-badge{color:#06b6d4;background:#14a58f1f;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.ad-studio-root .vp-ratio-header-actions{align-items:center;gap:10px;display:flex}.ad-studio-root .vp-ratio-clear-btn{color:#ef4444d9;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:2px 6px;font-size:12px;transition:all .15s}.ad-studio-root .vp-ratio-clear-btn:hover{color:#ef4444;background:#ef44441a}.ad-studio-root .vp-modal-overlay{z-index:1000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0a282466;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.ad-studio-root .studio-send-btn.icon-only{background:var(--primary);width:38px;height:38px;color:var(--on-primary);padding:0}.ad-studio-root .studio-send-btn.icon-only svg{flex-shrink:0}.ad-studio-root .studio-send-btn.icon-only.active:hover{background:var(--primary-hover)}.ad-studio-root .adstudio-main .gemini-input-capsule.studio-capsule .frame-slots{gap:8px;margin:0 0 4px}.ad-studio-root .adstudio-main .gemini-input-capsule.studio-capsule .frame-slot{border-radius:8px;width:44px;height:44px}.ad-studio-root .adstudio-main .gemini-input-capsule.studio-capsule .frame-slot svg{width:16px;height:16px}.ad-studio-root .adstudio-main .gemini-input-capsule.studio-capsule .frame-slot-wrap{gap:2px}.ad-studio-root .adstudio-main .gemini-input-capsule.studio-capsule .frame-slot-label{font-size:10px}.ad-studio-root .adstudio-main.is-home .studio-textarea{min-height:64px}.ad-studio-root .adstudio-main.is-home .adstudio-hero{min-height:0;overflow:hidden}.ad-studio-root .adstudio-main.is-home .adstudio-hero-logo{width:48px;height:48px;margin-bottom:12px;font-size:15px}.ad-studio-root .studio-textarea,.ad-studio-root .adstudio-main.is-home .studio-textarea{min-height:40px}.ad-studio-root .gemini-input-capsule.studio-capsule{padding:10px 16px 8px}.ad-studio-root .gemini-input-capsule.studio-capsule .studio-toolbar{row-gap:6px;margin-top:4px;padding:6px 0 0}.ad-studio-root .higs-model-list-scroll{padding:4px 6px 8px}.ad-studio-root .higs-popover-card{width:680px;max-height:max(360px,100vh - 300px)}.ad-studio-root .higs-desc-line{-webkit-line-clamp:2}.ad-studio-root .gemini-media-footer{justify-content:flex-start;min-width:0}.ad-studio-root .media-footer-buttons{flex-wrap:wrap;flex-shrink:1;row-gap:2px;min-width:0}.ad-studio-root .gemini-media-btn{white-space:nowrap}.ad-studio-root .gemini-media-footer{padding:8px 6px}.ad-studio-root .media-footer-buttons{flex-wrap:wrap;flex-shrink:1;gap:0;min-width:0;max-width:100%}.ad-studio-root .gemini-media-btn{flex-shrink:0;gap:4px;padding:0 6px}.ad-studio-root .cp-panel{flex-direction:column;flex:0 0 440px;gap:12px;width:440px;min-height:0;padding:16px 16px 24px 4px;display:flex;overflow-y:auto}@media (max-width:1279px){.ad-studio-root .cp-panel{display:none}}.ad-studio-root .cp-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:14px 16px;box-shadow:0 2px 10px #11302c0d}.ad-studio-root .cp-top{justify-content:space-between;gap:12px;display:flex}.ad-studio-root .cp-chip{background:var(--bg-hover);color:var(--primary);border-radius:999px;align-items:center;gap:6px;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.ad-studio-root .cp-title{color:var(--text);margin:6px 0 2px;font-size:22px;font-weight:700}.ad-studio-root .cp-desc{color:var(--text-2);margin:0;font-size:12px;line-height:1.45}.ad-studio-root .cp-viewall{border:1px solid var(--border-strong);background:var(--card);height:32px;color:var(--primary);white-space:nowrap;cursor:pointer;border-radius:10px;align-self:flex-start;align-items:center;gap:6px;padding:0 12px;font-size:12px;font-weight:600;display:inline-flex}.ad-studio-root .cp-stats{border-top:1px solid var(--border);grid-template-columns:1.3fr 1fr 1fr;gap:10px;margin-top:12px;padding-top:12px;display:grid}.ad-studio-root .cp-stat{min-width:0;color:var(--text-2);gap:8px;font-size:11px;display:flex}.ad-studio-root .cp-stat b{color:var(--text);font-size:11.5px;display:block}.ad-studio-root .cp-stat-icon{color:var(--primary);flex-shrink:0}.ad-studio-root .cp-avatars{align-items:center;margin-top:4px;display:flex}.ad-studio-root .cp-avatars span{border:2px solid var(--border);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin-right:-5px;font-size:9px;font-weight:700;display:inline-flex}.ad-studio-root .cp-avatars em{color:var(--text-2);margin-left:10px;font-style:normal;font-weight:600}.ad-studio-root .cp-bar{background:var(--border);border-radius:999px;height:6px;margin-top:6px;overflow:hidden}.ad-studio-root .cp-bar i{background:var(--primary);border-radius:999px;height:100%;display:block}.ad-studio-root .cp-dates{background:var(--bg-hover);color:var(--text);border-radius:999px;margin-top:4px;padding:4px 10px;font-weight:600;display:inline-block}.ad-studio-root .cp-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.ad-studio-root .cp-head h3,.ad-studio-root .cp-h3{color:var(--text);align-items:center;gap:8px;margin:0;font-size:15px;font-weight:700;display:flex}.ad-studio-root .cp-head h3 svg,.ad-studio-root .cp-h3 svg{color:var(--primary)}.ad-studio-root .cp-collapse{cursor:pointer;width:100%;color:var(--text-2);background:0 0;border:0;padding:0}.ad-studio-root .cp-total{border:1px solid var(--border-strong);background:var(--bg-hover);color:var(--primary);border-radius:999px;padding:3px 12px;font-size:12px;font-weight:600}.ad-studio-root .cp-tr{border-top:1px solid var(--border);grid-template-columns:96px 1fr 112px;align-items:center;gap:8px;padding:8px 0;display:grid}.ad-studio-root .cp-th{color:var(--text-2);border-top:0;padding-top:0;font-size:11px;font-weight:600}.ad-studio-root .cp-channel{color:var(--text);align-items:center;gap:8px;font-size:12px;font-weight:600;display:flex}.ad-studio-root .cp-channel i{color:#fff;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.ad-studio-root .cp-formats{flex-wrap:wrap;gap:4px;display:flex}.ad-studio-root .cp-formats em{background:var(--bg-3);color:var(--text);border-radius:999px;padding:2px 8px;font-size:10px;font-style:normal}.ad-studio-root .cp-status{color:#2563eb;background:#e9f4ff;border-radius:999px;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:6px 10px;font-size:11.5px;font-weight:600;display:inline-flex}.ad-studio-root .cp-status.is-done{background:var(--accent-tint);color:var(--accent)}.ad-studio-root .cp-msg{align-items:flex-start;gap:8px;margin-bottom:8px;display:flex}.ad-studio-root .cp-msg.is-me{justify-content:flex-end}.ad-studio-root .cp-msg p{background:var(--bg-hover);color:var(--text);border-radius:14px;margin:0;padding:7px 12px;font-size:12px}.ad-studio-root .cp-msg.is-me p{background:#d9f5df}.ad-studio-root .cp-msg small{color:var(--text-3);align-items:center;gap:4px;margin-top:3px;font-size:10px;display:flex}.ad-studio-root .cp-msg.is-me small{color:var(--accent);justify-content:flex-end}.ad-studio-root .cp-av{color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;font-size:10px;font-weight:700;display:inline-flex}.ad-studio-root .cp-compose{align-items:center;gap:8px;margin-top:8px;display:flex}.ad-studio-root .cp-compose input{border:1px solid var(--border-strong);background:var(--card);min-width:0;height:36px;color:var(--text);border-radius:999px;flex:1;padding:0 14px;font-size:12px}.ad-studio-root .cp-attach{border:1px solid var(--border);background:var(--bg-hover);width:36px;height:36px;color:var(--text-2);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.ad-studio-root .cp-send{background:var(--primary);width:44px;height:36px;color:var(--on-primary);cursor:pointer;border:0;border-radius:12px;justify-content:center;align-items:center;display:inline-flex}.ad-studio-root .cp-instr{color:var(--text-2);margin:10px 0 0;padding:0 0 0 4px;font-size:12px;line-height:1.5;list-style:none}.ad-studio-root .cp-instr li{margin-bottom:6px;padding-left:14px;position:relative}.ad-studio-root .cp-instr li:before{content:"";background:var(--primary);border-radius:50%;width:6px;height:6px;position:absolute;top:7px;left:0}.ad-studio-root .cp-instr b{color:var(--text)}.ad-studio-root .cp-panel{flex-basis:400px;width:400px}.ad-studio-root .cp-top-actions{align-items:flex-start;gap:6px;display:flex}.ad-studio-root .cp-close{border:1px solid var(--border);background:var(--card);width:32px;height:32px;color:var(--text-2);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;display:inline-flex}.ad-studio-root .cp-close:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .cp-top{flex-wrap:wrap}@media (max-width:1279px){.ad-studio-root .adstudio-campaign-btn{display:none}}@media (min-width:1280px){.ad-studio-root .adstudio-main.has-campaign .adstudio-composer-pinned,.ad-studio-root .adstudio-main.has-campaign .gemini-prompt-wrapper{max-width:640px;margin-left:auto;margin-right:auto}.ad-studio-root .adstudio-main.is-chat.has-campaign .adstudio-stack{max-width:720px}.ad-studio-root .adstudio-main.is-chat.has-campaign .gemini-message-item{max-width:700px}.ad-studio-root .adstudio-main.is-home.has-campaign .adstudio-composer-pinned{max-width:640px}}.ad-studio-root .adstudio-body{flex:1;min-width:0;min-height:0;display:flex}.ad-studio-root .adstudio-left{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.ad-studio-root .cp-panel{padding-top:12px}@media (min-width:1280px){.ad-studio-root .adstudio-main.has-campaign .adstudio-composer-pinned,.ad-studio-root .adstudio-main.has-campaign .gemini-prompt-wrapper,.ad-studio-root .adstudio-main.is-home.has-campaign .adstudio-composer-pinned{max-width:none}.ad-studio-root .adstudio-main.is-chat.has-campaign .adstudio-stack{max-width:1040px}.ad-studio-root .adstudio-main.is-chat.has-campaign .gemini-message-item{max-width:1000px}}@keyframes cp-slide-in{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:none}}.ad-studio-root .cp-panel{animation:.25s cubic-bezier(.16,1,.3,1) cp-slide-in}@media (prefers-reduced-motion:reduce){.ad-studio-root .cp-panel{animation:none}}.ad-studio-root .cp-panel{flex:0 0 46%;width:46%;min-width:440px;max-width:780px}.ad-studio-root .adstudio-left .adstudio-main{padding-left:16px;padding-right:16px}.ad-studio-root .cp-panel{background:var(--accent-tint);border-left:1px solid var(--border-strong);margin:0;padding:16px;box-shadow:-6px 0 18px #11302c0d}.ad-studio-root .adstudio-left{border-right:0}.ad-studio-root .cp-formats{flex-flow:column;align-items:flex-start;gap:5px}.ad-studio-root .cp-group{border-top:1px solid var(--border)}.ad-studio-root .cp-group .cp-tr{border-top:0;padding:5px 0}.ad-studio-root .cp-channel i{border-radius:6px;width:20px;height:20px}.ad-studio-root .cp-select{display:block;position:relative}.ad-studio-root .cp-status{cursor:pointer;text-align:left;white-space:nowrap;background:var(--bg-3);color:var(--text-2);border:0}.ad-studio-root .cp-status span{flex:1}.ad-studio-root .cp-status.is-generated{background:var(--accent-tint);color:var(--accent)}.ad-studio-root .cp-status.is-sent{color:#a15c07;background:#fff3dc}.ad-studio-root .cp-options{z-index:30;background:var(--card);border:1px solid var(--border-strong);border-radius:12px;min-width:100%;margin:0;padding:4px;list-style:none;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 8px 24px #11302c24}.ad-studio-root .cp-options button{width:100%;color:var(--text);text-align:left;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:7px 10px;font-size:12px;display:flex}.ad-studio-root .cp-options button svg:last-child:not(:first-child){color:var(--primary);margin-left:auto}.ad-studio-root .cp-options button:hover,.ad-studio-root .cp-options button.is-on{background:var(--bg-hover)}.ad-studio-root .cp-tr{grid-template-columns:104px 1fr 190px}.ad-studio-root .cp-status{padding:4px 10px;font-size:10.5px;font-weight:600}.ad-studio-root .cp-options button{padding:6px 10px;font-size:10.5px}.ad-studio-root .cp-status{font-weight:400}.ad-studio-root .cp-top{flex-wrap:nowrap;align-items:flex-start}.ad-studio-root .cp-progress{align-items:center}.ad-studio-root .cp-ring{flex-shrink:0;width:46px;height:46px;position:relative}.ad-studio-root .cp-ring span{color:var(--text);place-items:center;font-size:10px;font-weight:600;display:grid;position:absolute;inset:0}.ad-studio-root .cp-ring-bg{stroke:var(--border)}.ad-studio-root .cp-ring-fg{stroke:var(--primary)}.ad-studio-root .cp-card{border-radius:4px}.ad-studio-root .cp-panel{gap:0}.ad-studio-root .cp-card{border:0;border-bottom:1px solid var(--border);box-shadow:none;background:0 0;border-radius:0;padding:16px 4px}.ad-studio-root .cp-card:last-child{border-bottom:0}.ad-studio-root .cp-panel{padding:8px 14px 14px}.ad-studio-root .cp-card{padding:10px 0}.ad-studio-root .cp-title{margin:0 0 2px;font-size:18px}.ad-studio-root .cp-desc{font-size:11.5px;line-height:1.4}.ad-studio-root .cp-close{border-radius:8px;width:28px;height:28px}.ad-studio-root .cp-stats{gap:8px;margin-top:8px;padding-top:8px}.ad-studio-root .cp-avatars{margin-top:2px}.ad-studio-root .cp-dates{margin-top:2px;padding:2px 8px}.ad-studio-root .cp-h3,.ad-studio-root .cp-head h3{font-size:14px}.ad-studio-root .cp-h3{margin-bottom:6px}.ad-studio-root .cp-table{margin-top:6px}.ad-studio-root .cp-group .cp-tr{padding:2px 0}.ad-studio-root .cp-group .cp-tr:first-child{padding-top:5px}.ad-studio-root .cp-group .cp-tr:last-child{padding-bottom:5px}.ad-studio-root .cp-status{padding:3px 10px}.ad-studio-root .cp-formats em{padding:1px 8px}.ad-studio-root .cp-msg{margin-bottom:6px}.ad-studio-root .cp-instr{margin-top:6px}.ad-studio-root .cp-instr li{margin-bottom:3px}.ad-studio-root .cp-instr-msgs{margin-top:8px}.ad-studio-root .cp-instr-msgs .cp-msg:last-child{margin-bottom:0}.ad-studio-root .cp-msg p b{font-weight:600}.ad-studio-root .cp-avatars span.cp-tipwrap,.ad-studio-root .cp-avatars em.cp-tipwrap{cursor:default;position:relative}.ad-studio-root .cp-avatars span.cp-tipwrap:hover,.ad-studio-root .cp-avatars span.cp-tipwrap:focus-visible{z-index:5}.ad-studio-root .cp-tip{z-index:40;border:1px solid var(--border-strong);background:var(--card);white-space:nowrap;text-align:left;border-radius:10px;flex-direction:column;gap:6px;min-width:96px;padding:8px 12px;font-style:normal;display:none;position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);box-shadow:0 8px 24px #11302c29}.ad-studio-root .cp-tip>span{background:0 0;border:0;flex-direction:column;width:auto;height:auto;margin:0;display:flex}.ad-studio-root .cp-tip b{color:var(--text);font-size:12px;font-weight:600}.ad-studio-root .cp-tip small{color:var(--text-3);font-size:10px}.ad-studio-root .cp-tipwrap:hover>.cp-tip,.ad-studio-root .cp-tipwrap:focus-visible>.cp-tip{display:flex}.ad-studio-root .cp-avatars .cp-tip{width:auto;height:auto;color:var(--text);border-radius:10px;margin:0;font-size:12px;font-weight:400;display:none}.ad-studio-root .cp-avatars .cp-tipwrap:hover>.cp-tip,.ad-studio-root .cp-avatars .cp-tipwrap:focus-visible>.cp-tip{display:flex}.ad-studio-root .cp-avatars .cp-tip>span{width:auto;height:auto;color:var(--text);background:0 0;border:0;border-radius:0;margin:0;font-size:12px;display:flex}.ad-studio-root .cp-more-row{padding:0 0 6px 112px}.ad-studio-root .cp-more{color:var(--primary);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:2px 4px;font-size:11px;font-weight:500;display:inline-flex}.ad-studio-root .cp-more:hover{text-decoration:underline}.ad-studio-root .cp-more svg{transition:transform .15s}.ad-studio-root .cp-formats.has-more{flex-direction:row;align-items:center;gap:6px}.ad-studio-root .cp-more-row{display:none}.ad-studio-root .cp-stat b,.ad-studio-root .cp-h3,.ad-studio-root .cp-head h3{font-size:13px;font-weight:600}.ad-studio-root .cp-stat b{font-size:11.5px}.ad-studio-root .vp-ratio-card{min-height:56px}.ad-studio-root .vp-ratio-card:focus-visible,.ad-studio-root .vp-ratio-mode-btn:focus-visible,.ad-studio-root .vp-ratio-btn-primary:focus-visible,.ad-studio-root .vp-ratio-btn-secondary:focus-visible,.ad-studio-root .vp-ratio-close-btn:focus-visible,.ad-studio-root .multi-ratio-chip:focus-visible{outline-offset:2px;outline:2px solid #818cf8}.ad-studio-root .vp-ratio-modal{max-height:min(88vh,720px);overflow-y:auto}.ad-studio-root .vp-ratio-footer{border-top:1px solid var(--border);border-radius:0 0 16px 16px;margin:4px -24px -24px;padding:14px 24px;position:sticky;bottom:-24px}@media (max-width:640px){.ad-studio-root .vp-ratio-modal{border-radius:16px 16px 0 0;width:100%;max-width:none;padding:18px 16px 0;position:fixed;bottom:0;left:0;right:0}.ad-studio-root .vp-ratio-mode-selector{grid-template-columns:1fr}.ad-studio-root .vp-ratio-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-radius:0;margin:4px -16px 0}.ad-studio-root .vp-ratio-footer>*{flex:1;justify-content:center}}@media (prefers-reduced-motion:reduce){.ad-studio-root .vp-ratio-modal,.ad-studio-root .vp-ratio-generating-box:after{animation:none}}.ad-studio-root .vp-ratio-modal{background:var(--card);color:var(--text);border-color:var(--border);box-shadow:0 24px 60px #0f172a2e,0 0 0 1px #0f172a0a}.ad-studio-root .vp-ratio-title{color:var(--text)}.ad-studio-root .vp-ratio-subtitle{color:var(--text-2)}.ad-studio-root .vp-ratio-icon-badge{color:#4f46e5;background:#eef2ff}.ad-studio-root .vp-ratio-close-btn{color:var(--text-2)}.ad-studio-root .vp-ratio-close-btn:hover{color:var(--text);background:var(--bg-3)}.ad-studio-root .vp-ratio-source-card{background:var(--card);border-color:var(--border)}.ad-studio-root .vp-ratio-source-card.is-pre-generate{background:var(--card);border-color:#e0e7ff}.ad-studio-root .vp-ratio-source-icon-badge{background:var(--accent-tint);color:var(--accent)}.ad-studio-root .vp-ratio-source-thumb{background:var(--bg-3);border-color:var(--border)}.ad-studio-root .vp-ratio-source-pill{background:var(--bg-3);color:#334155}.ad-studio-root .vp-ratio-source-pill-ratio{color:#4f46e5}.ad-studio-root .vp-ratio-source-prompt,.ad-studio-root .vp-ratio-section-label{color:var(--text)}.ad-studio-root .vp-ratio-select-all-btn{color:#4f46e5}.ad-studio-root .vp-ratio-card{background:var(--card);border-color:var(--border)}.ad-studio-root .vp-ratio-card:hover:not(.is-current){background:var(--card);border-color:#cbd5e1}.ad-studio-root .vp-ratio-card.is-selected{background:var(--card);border-color:#818cf8;box-shadow:inset 0 0 0 1px #c7d2fe}.ad-studio-root .vp-ratio-card.is-current{background:var(--card);border-color:var(--border);opacity:.85}.ad-studio-root .vp-ratio-card-name{color:var(--text)}.ad-studio-root .vp-ratio-card-desc{color:var(--text-2)}.ad-studio-root .vp-ratio-box-preview{background:var(--card);border-color:#cbd5e1}.ad-studio-root .vp-ratio-shape{background:#94a3b8}.ad-studio-root .vp-ratio-card.is-selected .vp-ratio-shape{background:#6366f1}.ad-studio-root .vp-ratio-current-tag{background:var(--accent-tint);color:var(--accent)}.ad-studio-root .vp-ratio-checkbox{color:#fff;border-color:#cbd5e1}.ad-studio-root .vp-ratio-checkbox.checked{background:#6366f1;border-color:#6366f1}.ad-studio-root .vp-ratio-checkbox.locked{background:var(--bg-3);color:#64748b}.ad-studio-root .vp-ratio-mode-btn{background:var(--card);border-color:var(--border);color:var(--text)}.ad-studio-root .vp-ratio-mode-btn strong{color:var(--text)}.ad-studio-root .vp-ratio-mode-btn span{color:var(--text-2)}.ad-studio-root .vp-ratio-mode-btn.active{background:var(--card);color:#4f46e5;border-color:#6366f1}.ad-studio-root .vp-ratio-footer{background:var(--card)}.ad-studio-root .vp-ratio-btn-secondary{background:var(--card);border-color:var(--border);color:var(--text)}.ad-studio-root .vp-ratio-btn-secondary:hover{background:var(--bg-3);color:var(--text)}.ad-studio-root .vp-ratio-btn-primary{box-shadow:0 4px 14px #6366f140}.ad-studio-root .vp-ratio-clear-btn{color:#dc2626}.ad-studio-root .vp-ratio-clear-btn:hover{background:var(--bg-3);color:#b91c1c}.ad-studio-root .vp-ratio-generating-box{background:var(--card);border-color:#c7d2fe}.ad-studio-root .vp-ratio-generating-text{color:var(--text)}.ad-studio-root .vp-ratio-generating-sub{color:var(--text-2)}.ad-studio-root .multi-ratio-chip{background:var(--card);border-color:var(--border);color:var(--text)}.ad-studio-root .multi-ratio-chip:hover{background:var(--card);color:var(--text);border-color:#c7d2fe}.ad-studio-root .multi-ratio-chip.active{color:#4338ca;box-shadow:none;background:#eef2ff;border-color:#a5b4fc}.ad-studio-root .vp-more-tools{display:none}.ad-studio-root .vp-show-more .vp-more-tools{display:block}.ad-studio-root .vp-show-more .fv-row.vp-more-tools{display:flex}.ad-studio-root .tsv-overlay{z-index:90;background:#0f172a8c;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.ad-studio-root .tsv-box{background:var(--accent-tint);border-radius:16px;flex-direction:column;width:min(780px,100%);height:min(88vh,900px);display:flex;overflow:hidden;box-shadow:0 20px 60px #0f172a59}.ad-studio-root .tsv-head{border-bottom:1px solid var(--border);background:var(--card);justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;font-size:14px;display:flex}.ad-studio-root .tsv-badge{background:var(--accent-tint);color:var(--accent);border-radius:999px;align-items:center;gap:4px;margin-left:10px;padding:2px 9px;font-size:11px;font-weight:600;display:inline-flex}.ad-studio-root .tsv-close{border:1px solid var(--border);background:var(--card);cursor:pointer;border-radius:9px;place-items:center;width:30px;height:30px;display:grid}.ad-studio-root .tsv-chips{border-bottom:1px solid var(--border);background:var(--card);gap:6px;padding:8px 16px;display:flex;overflow-x:auto}.ad-studio-root .tsv-chips button{border:1px solid var(--border-strong);background:var(--card);cursor:pointer;white-space:nowrap;border-radius:12px;flex-direction:column;align-items:flex-start;padding:4px 12px;font-size:12px;display:flex}.ad-studio-root .tsv-chips button.is-on{background:var(--accent-tint);color:var(--accent);border-color:#0f766e}.ad-studio-root .tsv-chips small{color:var(--text-2);font-size:10px}.ad-studio-root .tsv-body{flex:1;min-height:0;padding:12px 16px 24px;overflow-y:auto}.ad-studio-root .tsv-note{text-align:center;color:var(--text-2);margin:20px 0;font-size:13px}.ad-studio-root .tsv-error{color:#b42318}.ad-studio-root .gemini-media-static{cursor:default;color:var(--accent)}.ad-studio-root .video-project-card.vp-generating{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:16px;align-items:center;gap:14px;padding:12px 16px;box-shadow:0 6px 22px #0f172a12}.ad-studio-root .vp-generating .vp-progress-text{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.ad-studio-root .vp-generating .vp-progress-status{font-size:14px;font-weight:650}.ad-studio-root .vp-generating .vp-progress-sub{opacity:.7;font-size:12px}.ad-studio-root .vp-steps{flex-wrap:wrap;gap:5px;margin:6px 0 0;padding:0;list-style:none;display:flex}.ad-studio-root .vp-step{border:1px solid var(--border);opacity:.6;border-radius:999px;align-items:center;gap:6px;padding:2px 9px;font-size:11px;font-weight:600;display:inline-flex}.ad-studio-root .vp-step-dot{background:color-mix(in srgb, var(--text) 25%, transparent);border-radius:50%;width:7px;height:7px}.ad-studio-root .vp-step.is-active{opacity:1;border-color:var(--accent);color:var(--accent)}.ad-studio-root .vp-step.is-active .vp-step-dot{background:var(--accent);animation:1.2s ease-in-out infinite vp-step-pulse}.ad-studio-root .vp-step.is-done{opacity:1}.ad-studio-root .vp-step.is-done .vp-step-dot{background:#16a34a}@keyframes vp-step-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(1.5)}}@media (prefers-reduced-motion:reduce){.ad-studio-root .vp-step.is-active .vp-step-dot{animation:none}}.ad-studio-root .vp-keyframes{gap:6px;padding:2px 0 6px}.ad-studio-root .vp-keyframe{width:96px}.ad-studio-root .vp-keyframe figcaption{margin-top:1px;font-size:10px}.ad-studio-root .vp-designboard{flex-wrap:wrap;align-items:flex-start;gap:6px 14px;display:flex}.ad-studio-root .vp-db-section{min-width:0;margin:0}.ad-studio-root .vp-db-title{margin:0 0 2px;font-size:12px;font-weight:650}.ad-studio-root .vp-db-hint{display:none}.ad-studio-root .vp-db-board-link{display:inline-block;position:relative}.ad-studio-root .vp-db-board{cursor:zoom-in;border:1px solid var(--border);border-radius:6px;width:auto;max-width:100%;height:300px;display:block}.ad-studio-root .vp-db-zoom{color:#fff;background:#0009;border-radius:999px;padding:1px 6px;font-size:10px;position:absolute;bottom:4px;right:4px}.ad-studio-root .vp-sheet-row{gap:6px;max-width:100%;padding-bottom:4px;display:flex;overflow-x:auto}.ad-studio-root .vp-sheet-item{flex:none;margin:0;position:relative}.ad-studio-root .vp-sheet-item img,.ad-studio-root .vp-sheet-missing{cursor:zoom-in;-o-object-fit:cover;object-fit:cover;border:1px solid var(--border);background:var(--border);border-radius:6px;width:auto;min-width:70px;max-width:190px;height:120px;display:block}.ad-studio-root .vp-sheet-item.is-wide img{max-width:260px}.ad-studio-root .vp-sheet-item figcaption{text-overflow:ellipsis;white-space:nowrap;max-width:190px;margin-top:1px;font-size:10px;line-height:1.2;overflow:hidden}.ad-studio-root .vp-sheet-actions{gap:3px;margin-top:2px;display:flex}.ad-studio-root .vp-sheet-actions .vp-secondary{height:auto;padding:1px 6px;font-size:10px}.ad-studio-root .vp-sheet-busy{background:#ffffff8c;place-items:center;height:120px;display:grid;position:absolute;inset:0 0 auto}.ad-studio-root .vp-lightbox{z-index:2000;cursor:zoom-out;background:#000000d1;place-items:center;display:grid;position:fixed;inset:0}.ad-studio-root .vp-lightbox img{border-radius:8px;max-width:94vw;max-height:92vh}.ad-studio-root .vp-lightbox-close{background:var(--card);cursor:pointer;border:0;border-radius:50%;width:36px;height:36px;font-size:22px;line-height:1;position:absolute;top:14px;right:18px}@media (max-width:640px){.ad-studio-root .video-project-card.vp-generating{flex-wrap:wrap}}.ad-studio-root .adstudio-actions-row{flex-wrap:wrap;gap:6px;min-width:0;padding:6px 12px}.ad-studio-root .adstudio-actions-row>*,.ad-studio-root .adstudio-actions-row .adstudio-toolbar-btn{white-space:nowrap;flex:none}.ad-studio-root .adstudio-actions-row .adstudio-toolbar-btn{height:28px;min-height:0;padding:0 12px;font-size:11.5px;line-height:1}.ad-studio-root .studio-send-btn.is-stop.icon-only{color:#fff;background:#ef4444;border-radius:50%;gap:0;width:36px;height:36px;padding:0;box-shadow:0 2px 8px #ef44444d}.ad-studio-root .studio-send-btn.is-stop.icon-only:hover{background:#dc2626;transform:scale(1.06)}.ad-studio-root .adstudio-actions-row .adstudio-task-reopen{background:linear-gradient(90deg, color-mix(in srgb, #0f766e 14%, var(--bg)), var(--bg));height:auto;color:var(--text);white-space:nowrap;cursor:pointer;border:1px solid #7bb3ad;border-radius:999px 0 0 999px;align-items:center;gap:8px;margin-left:auto;margin-right:-12px;padding:4px 8px 4px 5px;font-size:12px;font-weight:700;animation:.35s ease-out adTaskIn;display:inline-flex;box-shadow:-2px 2px 8px #0f766e24}.ad-studio-root .adstudio-task-reopen:hover{background:color-mix(in srgb, #0f766e 20%, var(--bg))}.ad-studio-root .adstudio-task-reopen-icon{color:#fff;background:#0f766e;border-radius:50%;place-items:center;width:24px;height:24px;display:grid}.ad-studio-root .adstudio-task-reopen-arrow{color:var(--accent);animation:1.6s ease-in-out infinite adTaskNudge}@keyframes adTaskIn{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:none}}@keyframes adTaskNudge{0%,to{transform:translate(0)}50%{transform:translate(-3px)}}@media (prefers-reduced-motion:reduce){.ad-studio-root .adstudio-task-reopen,.ad-studio-root .adstudio-task-reopen-arrow{animation:none}}.ad-studio-root .adstudio-main.has-campaign .adstudio-hero-logo{border-radius:12px;width:40px;height:40px;margin-bottom:6px;font-size:14px;display:grid}.ad-studio-root .adstudio-main.has-campaign .adstudio-hero-sub{margin:4px 0 0;font-size:13px;line-height:1.3;display:block}.ad-studio-root .adstudio-main.is-home.has-campaign .adstudio-hero-title{margin:0;font-size:20px}.ad-studio-root .adstudio-main.has-campaign .gemini-input-capsule.studio-capsule{border-radius:16px;padding:8px 12px}.ad-studio-root .adstudio-main.has-campaign .gemini-textarea.studio-textarea{min-height:28px;font-size:14px;line-height:1.45}.ad-studio-root .adstudio-main.has-campaign .gemini-input-capsule.studio-capsule .frame-slots{gap:8px;margin:0 0 4px}.ad-studio-root .adstudio-main.has-campaign .gemini-input-capsule.studio-capsule .frame-slot{border-radius:8px;width:40px;height:40px}.ad-studio-root .adstudio-main.has-campaign .frame-slot-label{font-size:9.5px}.ad-studio-root .adstudio-main.has-campaign .gemini-input-capsule.studio-capsule .studio-toolbar{row-gap:4px}.ad-studio-root .adstudio-main.has-campaign .studio-chips{gap:4px}.ad-studio-root .adstudio-main.has-campaign .studio-chip{padding:2px 8px;font-size:11px}.ad-studio-root .adstudio-main.has-campaign .studio-send-btn{width:32px;height:32px}.ad-studio-root .adstudio-main.is-home.has-campaign .adstudio-hero{flex:auto;justify-content:center;min-height:0;margin:0;padding:0 0 4px}.ad-studio-root .adstudio-main.is-home.has-campaign .adstudio-hero-title{margin:0;line-height:1.2}.ad-studio-root .adstudio-main.has-campaign .studio-composer{gap:6px}.ad-studio-root .adstudio-main.has-campaign .adstudio-composer-pinned{padding-top:4px}.ad-studio-root .adstudio-main.has-campaign{padding-left:12px;padding-right:12px}.ad-studio-root .adstudio-main.is-home.has-campaign{padding:0 12px 10px}.ad-studio-root .adstudio-main.has-campaign .adstudio-stack,.ad-studio-root .adstudio-main.has-campaign .adstudio-composer-pinned,.ad-studio-root .adstudio-main.has-campaign .gemini-prompt-wrapper,.ad-studio-root .adstudio-main.has-campaign .studio-composer{width:100%;max-width:none;margin-left:0;margin-right:0}.ad-studio-root .adstudio-main.has-campaign .gemini-prompt-wrapper{padding:4px 0 6px}.ad-studio-root .adstudio-main.has-campaign .gemini-input-capsule.studio-capsule .studio-toolbar{flex-wrap:nowrap;align-items:center;gap:6px}.ad-studio-root .adstudio-main.has-campaign .gemini-input-capsule.studio-capsule .studio-chips{flex-wrap:nowrap;flex:1 1 0;gap:4px;min-width:0;margin-right:6px}.ad-studio-root .adstudio-main.has-campaign .studio-chips>*{white-space:nowrap;flex:0 auto;min-width:0}.ad-studio-root .adstudio-main.has-campaign .studio-chip{white-space:nowrap;gap:4px;padding:2px 7px;font-size:10.5px}.ad-studio-root .adstudio-main.has-campaign .studio-send-btn{flex:none}.ad-studio-root .adstudio-main.is-home .adstudio-hero .adstudio-hero-title{letter-spacing:-.01em;font-size:24px;font-weight:650;line-height:1.25}.ad-studio-root .adstudio-main.is-home .adstudio-hero .adstudio-hero-sub{max-width:440px;font-size:14px;line-height:1.5}.ad-studio-root .adstudio-main.is-home.has-campaign .adstudio-hero .adstudio-hero-title{font-size:20px}.ad-studio-root .adstudio-main.is-home.has-campaign .adstudio-hero .adstudio-hero-sub{max-width:400px;font-size:12px}.ad-studio-root .gemini-input-capsule.studio-capsule:focus-within,.ad-studio-root .gemini-input-capsule.studio-capsule.has-input{border-color:var(--border-strong);box-shadow:var(--shadow-md)}.ad-studio-root .gemini-input-capsule.studio-capsule textarea:focus,.ad-studio-root .gemini-input-capsule.studio-capsule textarea:focus-visible{box-shadow:none;outline:none}.ad-studio-root .adstudio-actions-row{border-bottom:0}.ad-studio-root .adstudio-hero-logo{background:0 0;padding:0;overflow:hidden}.ad-studio-root .adstudio-hero-logo img{-o-object-fit:contain;object-fit:contain;width:100%;height:100%;display:block}.ad-studio-root .studio-top-row{justify-content:space-between;align-items:center;gap:8px;width:100%;display:flex}.ad-studio-root .studio-toolbar{position:relative}.ad-studio-root .attach-menu{z-index:60;border:1px solid var(--border);background:var(--bg);border-radius:14px;min-width:250px;padding:6px;position:absolute;bottom:calc(100% + 6px);left:8px;box-shadow:0 10px 30px #0f172a29}.ad-studio-root .attach-menu button{-moz-column-gap:10px;width:100%;color:var(--text);text-align:left;cursor:pointer;transition:background var(--dur-fast) var(--ease);background:0 0;border:0;border-radius:10px;grid-template-columns:20px 1fr;align-items:center;column-gap:10px;padding:9px 10px;display:grid}.ad-studio-root .attach-menu button:hover:not(:disabled){background:var(--bg-hover)}.ad-studio-root .attach-menu button:disabled{opacity:.45;cursor:not-allowed}.ad-studio-root .attach-menu button span{font-size:13.5px;font-weight:600}.ad-studio-root .attach-menu button em{color:var(--text-3);grid-column:2;font-size:11.5px;font-style:normal}.ad-studio-root .lib-picker-overlay{z-index:1000;background:#0f172a73;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.ad-studio-root .lib-picker{border:1px solid var(--border);background:var(--bg);width:min(760px,100%);max-height:min(640px,92vh);color:var(--text);border-radius:16px;flex-direction:column;display:flex;box-shadow:0 24px 60px #0f172a47}.ad-studio-root .lib-picker-head{justify-content:space-between;align-items:center;padding:14px 16px 6px;display:flex}.ad-studio-root .lib-picker-head h3{margin:0;font-size:15px;font-weight:700}.ad-studio-root .lib-picker-close{width:28px;height:28px;color:var(--text-3);cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;display:grid}.ad-studio-root .lib-picker-close:hover{background:var(--bg-hover);color:var(--text)}.ad-studio-root .lib-picker-tools{flex-wrap:wrap;align-items:center;gap:10px;padding:6px 16px 10px;display:flex}.ad-studio-root .lib-picker-search{border:1px solid var(--border);height:36px;color:var(--text-3);border-radius:10px;flex:200px;align-items:center;gap:8px;padding:0 12px;display:flex}.ad-studio-root .lib-picker-search:focus-within{border-color:var(--accent)}.ad-studio-root .lib-picker-search input{min-width:0;color:var(--text);background:0 0;border:0;outline:0;flex:1;font-size:13px}.ad-studio-root .lib-picker-kinds{gap:6px;display:flex}.ad-studio-root .lib-picker-kinds button{border:1px solid var(--border);height:30px;color:var(--text-2);cursor:pointer;background:0 0;border-radius:999px;padding:0 12px;font-size:12.5px}.ad-studio-root .lib-picker-kinds button.active{background:var(--text);border-color:var(--text);color:var(--bg)}.ad-studio-root .lib-picker-body{flex:1;min-height:160px;padding:4px 16px 12px;overflow-y:auto}.ad-studio-root .lib-picker-state{min-height:160px;color:var(--text-3);text-align:center;justify-content:center;align-items:center;gap:8px;font-size:13px;display:flex}.ad-studio-root .lib-picker-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;display:grid}.ad-studio-root .lib-picker-item{color:var(--text);text-align:left;cursor:pointer;background:0 0;border:2px solid #0000;border-radius:12px;flex-direction:column;gap:6px;padding:5px;display:flex}.ad-studio-root .lib-picker-item:hover{background:var(--bg-hover)}.ad-studio-root .lib-picker-item.selected{border-color:var(--accent)}.ad-studio-root .lib-picker-thumb{aspect-ratio:1;background:var(--bg-muted);border-radius:8px;display:block;position:relative;overflow:hidden}.ad-studio-root .lib-picker-thumb img,.ad-studio-root .lib-picker-thumb video{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;display:block}.ad-studio-root .lib-picker-badge{color:#fff;background:#0f172ab3;border-radius:6px;padding:3px;position:absolute;bottom:6px;left:6px}.ad-studio-root .lib-picker-check{background:var(--accent);color:#fff;border-radius:50%;place-items:center;width:20px;height:20px;display:grid;position:absolute;top:6px;right:6px}.ad-studio-root .lib-picker-name{text-overflow:ellipsis;white-space:nowrap;padding:0 2px;font-size:12px;overflow:hidden}.ad-studio-root .lib-picker-foot{border-top:1px solid var(--border);color:var(--text-3);justify-content:space-between;align-items:center;gap:12px;padding:10px 16px 14px;font-size:12.5px;display:flex}.ad-studio-root .lib-picker-attach{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:999px;align-items:center;gap:6px;height:34px;padding:0 18px;font-size:13px;font-weight:600;display:inline-flex}.ad-studio-root .lib-picker-attach:disabled{opacity:.45;cursor:not-allowed}.ad-studio-root .lib-picker-spin{animation:.9s linear infinite lib-picker-spin}@keyframes lib-picker-spin{to{transform:rotate(360deg)}}.ad-studio-root .media-item-row{align-items:flex-start;gap:8px;min-width:0;max-width:100%;display:flex}.ad-studio-root .media-item-row>.gemini-media-card{flex:0 auto;min-width:0}.ad-studio-root .gemini-media-grid.is-multi .media-item-row>.gemini-media-card{flex:auto}.ad-studio-root .media-task-plus{flex:none;margin-top:8px}.ad-studio-root .adstudio-actions-row{flex-wrap:nowrap;overflow:visible}.ad-studio-root .adstudio-actions-row>div:has(>button[aria-haspopup=listbox]){flex:0 auto;min-width:0}.ad-studio-root .adstudio-actions-row .adstudio-toolbar-btn{padding:0 10px}[data-theme=dark] .ad-studio-root .adstudio-shell{background:radial-gradient(1100px 520px at 50% -8%,#2dd4bf33,#0000 62%),radial-gradient(700px 380px at 88% 108%,#6366f11a,#0000 60%),linear-gradient(#0c1413 0%,#0a0f12 100%)}[data-theme=dark] .ad-studio-root .adstudio-hero-logo{background:linear-gradient(145deg,#2dd4bf38,#2dd4bf0d);border:1px solid #5eead459;border-radius:20px;width:68px;height:68px;animation:5s ease-in-out infinite adstudio-dark-float;position:relative;box-shadow:0 0 0 6px #2dd4bf12,0 10px 40px #2dd4bf59,inset 0 1px #ffffff1f}[data-theme=dark] .ad-studio-root .adstudio-hero-logo img{border-radius:14px}@keyframes adstudio-dark-float{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}[data-theme=dark] .ad-studio-root .adstudio-main.is-home .adstudio-hero-title{background:linear-gradient(92deg,#fff 0%,#99f6e4 55%,#2dd4bf 100%);-webkit-text-fill-color:transparent;color:#0000;-webkit-background-clip:text;background-clip:text;font-size:30px}[data-theme=dark] .ad-studio-root .adstudio-main.is-home .adstudio-hero-sub{color:#9aa7a4;font-size:14.5px}[data-theme=dark] .ad-studio-root .gemini-input-capsule.studio-capsule{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:linear-gradient(#1b2224eb,#121719f5);border:1px solid #5eead42e;box-shadow:0 18px 50px #0000008c,inset 0 0 0 1px #ffffff08}[data-theme=dark] .ad-studio-root .gemini-input-capsule.studio-capsule:focus-within{border-color:#2dd4bfa6;box-shadow:0 18px 50px #0000008c,0 0 0 4px #2dd4bf24,0 0 40px #2dd4bf29}[data-theme=dark] .ad-studio-root .gemini-input-capsule.studio-capsule textarea::placeholder{color:#6f7f7c}[data-theme=dark] .ad-studio-root .studio-chip{color:#cfd8d6;background:#ffffff0a;border-color:#ffffff1a}[data-theme=dark] .ad-studio-root .studio-chip:hover{color:#fff;background:#2dd4bf1a;border-color:#2dd4bf73}[data-theme=dark] .ad-studio-root .studio-seg{background:#ffffff0d;border-color:#ffffff1a}[data-theme=dark] .ad-studio-root .studio-seg-btn{color:#aebbb8}[data-theme=dark] .ad-studio-root .studio-seg-btn.active{color:#fff;background:linear-gradient(135deg,#14b8a6,#0f766e);box-shadow:0 4px 16px #14b8a673}[data-theme=dark] .ad-studio-root .gemini-tool-btn{color:#cfd8d6;background:#ffffff0d;border-color:#ffffff1f}[data-theme=dark] .ad-studio-root .gemini-tool-btn:hover{color:#fff;background:#2dd4bf1f;border-color:#2dd4bf80}[data-theme=dark] .ad-studio-root .studio-send-btn.icon-only.active{color:#04201c;background:linear-gradient(135deg,#2dd4bf,#0d9488);box-shadow:0 6px 22px #2dd4bf80}[data-theme=dark] .ad-studio-root .adstudio-actions-row .adstudio-toolbar-btn:not(.btn-new-chat){color:#d5dedc;box-shadow:none;background:#ffffff0a;border:1px solid #ffffff1a}[data-theme=dark] .ad-studio-root .adstudio-actions-row .adstudio-toolbar-btn:not(.btn-new-chat):hover{color:#fff;background:#2dd4bf1a;border-color:#2dd4bf73}[data-theme=dark] .ad-studio-root .adstudio-toolbar-btn.btn-new-chat{background:linear-gradient(135deg,#14b8a6,#0f766e);border-color:#0000;box-shadow:0 6px 20px #14b8a659}
