:root{color:#172033;background:#f7fbff;--studio-ink: #172033;--studio-muted: #63708a;--studio-primary: #087ca0;--studio-cyan: #0891b2;--studio-mint: #14b8a6;--form-accent: var(--studio-primary);--form-accent-track: #dfeef2;--form-accent-gradient: linear-gradient(90deg, var(--studio-primary), rgba(20, 184, 166, .82));--studio-rose: #e86fa4;--studio-surface: rgba(255, 255, 255, .9);--surface-shadow: 0 14px 34px rgba(50, 77, 132, .1);--surface-shadow-strong: 0 18px 44px rgba(50, 77, 132, .16);--surface-highlight: inset 0 1px 0 rgba(255, 255, 255, .86);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;background:linear-gradient(145deg,#ecfdf5b8,#f0f9ffe6 42%,#fffbfdeb),radial-gradient(circle at 12% 0%,rgba(8,145,178,.12),transparent 23rem),radial-gradient(circle at 92% 12%,rgba(20,184,166,.14),transparent 22rem),#f7fbff}button,a,textarea,input,select{font:inherit}input,select,textarea{max-width:100%}.app-icon{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}audio{display:block;width:100%;height:50px;overflow:hidden;border:1px solid rgba(8,124,160,.18);border-radius:12px;background:#eaf7fa;box-shadow:inset 0 1px #ffffffe0,0 7px 18px #087ca014;accent-color:var(--studio-primary)}audio:focus-visible{outline:3px solid rgba(8,145,178,.2);outline-offset:2px}audio::-webkit-media-controls-enclosure{border-radius:11px;background:transparent}audio::-webkit-media-controls-panel{background:linear-gradient(90deg,#e7f7fa,#f0fbf9)}audio::-webkit-media-controls-play-button{border-radius:50%;background-color:#087ca01f}audio::-webkit-media-controls-timeline{margin-right:9px;margin-left:9px;border-radius:999px}audio::-webkit-media-controls-current-time-display,audio::-webkit-media-controls-time-remaining-display{color:var(--studio-ink);font-variant-numeric:tabular-nums;text-shadow:none}.shell{display:grid;min-height:100vh;place-items:center;padding:max(20px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom))}.hero-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;position:relative;width:min(100%,390px);max-height:calc(100vh - 32px);min-height:min(844px,calc(100vh - 32px));overflow:hidden;overscroll-behavior:contain;border:1px solid rgba(8,124,160,.12);border-radius:8px;background:#ffffffdb;box-shadow:0 24px 80px #204e7621;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:16px}.hero-content{min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;padding-bottom:14px;overscroll-behavior:contain;scrollbar-width:none}.hero-card-no-nav .hero-content{padding-bottom:0}.hero-content::-webkit-scrollbar{display:none}.top-bar,.section-heading,.history-item,.bottom-nav{display:flex;align-items:center}.top-bar{min-height:42px;margin-bottom:18px;justify-content:space-between}.top-bar-compact{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:8px}.top-bar-no-balance{grid-template-columns:42px 1fr 64px}.top-bar-with-home{grid-template-columns:88px minmax(0,1fr) auto}.header-navigation{display:flex;align-items:center}.header-navigation .menu-button:focus-visible{outline:2px solid #823de0;outline-offset:-2px}.menu-button,.ghost-button,.section-heading button{border:0;background:transparent;color:#5e5b8a;cursor:pointer;touch-action:manipulation}.menu-button{display:grid;width:44px;height:44px;place-items:center;border-radius:8px}.ghost-button{display:grid;min-width:44px;min-height:44px;place-items:center;border-radius:8px}.ghost-button .app-icon{width:20px;height:20px}.brand{display:grid;gap:1px;text-align:center}.top-bar-compact .brand{align-self:center;min-width:0}.top-bar-compact .brand-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-wallet{display:flex;align-items:center;gap:8px;flex-shrink:0}.header-topup{min-height:44px;padding:8px 4px;border:0;border-radius:8px;background:transparent;color:#7131c9;font:inherit;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}.header-topup:focus-visible{outline:2px solid #823de0;outline-offset:2px}.brand-title{color:#17172f;font-size:16px;font-weight:800}.brand-subtitle,.welcome p,.history-item small,.bottom-nav span{color:#77739d;font-size:12px}.credits{display:inline-flex;align-items:center;gap:4px;min-width:56px;justify-content:flex-end;font-size:14px;font-weight:800}.credits .app-icon{width:18px;height:18px;color:var(--studio-primary)}.welcome{margin:54px 0 34px;text-align:center}.welcome h1{margin:0;font-size:25px;letter-spacing:-.04em}.welcome p{max-width:280px;margin:7px auto 0;line-height:1.45}.home-header{display:grid;gap:8px;margin:4px 0 16px;border-bottom:1px solid rgba(125,151,188,.18);padding:0 2px 15px}.home-greeting{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px}.home-user-avatar{display:grid;width:44px;height:44px;overflow:hidden;place-items:center;border:1px solid rgba(8,124,160,.16);border-radius:50%;background:linear-gradient(135deg,#e0f7fff5,#e8f8eff5);color:var(--studio-primary);box-shadow:var(--surface-highlight)}.home-user-avatar img{width:100%;height:100%;object-fit:cover}.home-user-avatar .app-icon{width:22px;height:22px}.home-header h1{margin:0;color:var(--studio-ink);font-size:22px;line-height:1.08;letter-spacing:0}.home-header p{max-width:330px;margin:0;color:var(--studio-muted);font-size:13px;line-height:1.45}.creation-list{display:grid;gap:8px}.creation-card{display:grid;grid-template-columns:42px minmax(0,1fr) 34px;align-items:center;gap:10px;min-height:68px;border:1px solid rgba(125,151,188,.18);border-radius:6px;background:#ffffffdb;box-shadow:0 8px 18px #324d840f,var(--surface-highlight);color:inherit;cursor:pointer;padding:11px 12px;text-align:left;touch-action:manipulation;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}.creation-card:hover{background:#fff;border-color:#0891b247;box-shadow:0 10px 22px #324d841a,var(--surface-highlight);transform:translateY(-1px)}.creation-card:active{transform:scale(.99)}.creation-icon,.creation-arrow{display:grid;place-items:center;border-radius:8px}.creation-icon{width:42px;height:42px}.creation-arrow{width:34px;height:34px;color:var(--studio-muted);transform:rotate(180deg)}.creation-copy{display:grid;gap:3px}.creation-copy strong{color:var(--studio-ink);font-size:15px}.creation-copy small{color:var(--studio-muted);font-size:12px;line-height:1.3}.creation-green .creation-icon{background:#e8f8ef;color:#1f8a61}.creation-purple .creation-icon{background:#edf6fa;color:#31596a}.creation-pink .creation-icon{background:#fff1f6;color:#c23c76}.creation-blue .creation-icon{background:#e0f7ff;color:#087ca0}.scenario-icon .app-icon,.choice-icon .app-icon,.tariff-icon .app-icon{width:22px;height:22px}.history{margin-top:24px}.section-heading{justify-content:space-between;margin-bottom:10px}.section-heading h2{margin:0;font-size:16px}.section-heading button{color:#744cff;font-size:12px}.history-item{gap:12px;min-height:70px;border:1px solid rgba(125,151,188,.18);border-radius:6px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:var(--surface-shadow),var(--surface-highlight);padding:10px}.history-preview{width:58px;height:46px;flex:0 0 auto;border-radius:8px;background:linear-gradient(135deg,#2612521a,#24c3ff33),url("data:image/svg+xml,%3Csvg width='116' height='92' viewBox='0 0 116 92' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%23432689'/%3E%3Cstop offset='1' stop-color='%2309d3ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='116' height='92' rx='18' fill='url(%23g)'/%3E%3Cpath d='M11 75h94M22 63h15V28H22v35Zm29 0h12V17H51v46Zm26 0h18V35H77v28Z' stroke='white' stroke-opacity='.65' stroke-width='4'/%3E%3C/svg%3E");background-size:cover}.history-item div:nth-child(2){display:grid;flex:1;gap:4px}.bottom-nav{display:grid;grid-template-columns:1fr 1fr 52px 1fr 1fr;align-content:start;align-items:center;align-self:end;position:relative;z-index:20;width:100%;justify-content:space-between;border:1px solid rgba(125,151,188,.18);border-radius:6px;background:#fffffff0;box-shadow:0 16px 38px #204e7624,var(--surface-highlight);margin-top:10px;padding:8px 6px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.bottom-nav button{display:grid;min-width:50px;min-height:48px;place-items:center;gap:3px;border:0;background:transparent;color:#77739d;cursor:pointer;text-decoration:none;touch-action:manipulation}.bottom-nav .app-icon{width:19px;height:19px}.bottom-nav button.active{color:var(--studio-primary)}.bottom-nav .bottom-nav-create{width:44px;height:44px;min-width:44px;min-height:44px;justify-self:center;border-radius:50%;background:var(--studio-primary);color:#fff}.bottom-nav .bottom-nav-create .app-icon{width:24px;height:24px}.bottom-nav button:focus-visible{outline:2px solid var(--studio-primary);outline-offset:3px}.page-head{margin:4px 0 16px;border-bottom:1px solid rgba(125,151,188,.18);padding:0 2px 15px}.page-head h1,.generation-state h1{margin:0 0 8px;color:var(--studio-ink);font-size:24px;line-height:1.08;letter-spacing:0}.page-head p,.generation-state p{margin:0;color:var(--studio-muted);font-size:13px;line-height:1.45}.stack-list{display:grid;gap:12px}.segmented-tabs{display:flex;gap:8px;margin:0 0 14px;overflow-x:auto;padding:2px 0 6px}.segmented-tabs button{border:1px solid rgba(216,206,255,.78);border-radius:6px;background:#fff;color:#6b6795;cursor:pointer;flex:0 0 auto;font:inherit;font-size:12px;font-weight:800;padding:9px 12px}.segmented-tabs button.active{border-color:#c7baff;background:#f0ecff;color:#744cff}.choice-card,.option-pill{border:1px solid rgba(216,206,255,.78);background:linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--surface-shadow),var(--surface-highlight);color:inherit;cursor:pointer;text-align:left;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.choice-card{display:flex;align-items:center;gap:14px;border-radius:8px;padding:14px}.choice-card:disabled{cursor:not-allowed;opacity:.52}.choice-card:not(:disabled):hover,.option-pill:hover{border-color:#b9a9ff;box-shadow:var(--surface-shadow-strong),var(--surface-highlight);transform:translateY(-2px)}.choice-primary{border-color:#c7baff;background:linear-gradient(135deg,#744cff14,#59caff14)}.choice-icon{display:grid;width:44px;height:44px;flex:0 0 auto;place-items:center;border-radius:8px;background:#f0ecff;color:#744cff}.choice-card strong,.choice-card small{display:block}.choice-card small{margin-top:4px;color:#77739d;font-size:12px;line-height:1.35}.video-model-head{margin-top:18px;margin-bottom:16px}.video-model-head h1{margin-bottom:8px}.video-model-head p{margin:0;color:#77739d;font-size:14px;line-height:1.45}.video-path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}.creation-entry-screen{padding-bottom:20px}.creation-task-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px}.creation-task-card{display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:12px;min-height:88px;border:1px solid rgba(19,32,29,.12);border-radius:14px;background:var(--studio-surface, #fff);color:var(--studio-ink, #172033);box-shadow:0 6px 18px #13201d0d;padding:14px;text-align:left;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.creation-task-card:hover{border-color:var(--studio-primary, #087ca0);box-shadow:0 10px 24px #13201d1a;transform:translateY(-1px)}.creation-task-card:focus-visible,.creation-change-task:focus-visible{outline:2px solid var(--studio-primary, #087ca0);outline-offset:2px}.creation-task-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:color-mix(in srgb,var(--studio-primary, #087ca0) 12%,var(--studio-surface, white));color:var(--studio-primary, #087ca0)}.creation-task-icon .app-icon,.creation-task-arrow .app-icon{width:20px;height:20px}.creation-task-copy{display:grid;gap:5px;min-width:0}.creation-task-copy strong{font-size:14px;line-height:1.25}.creation-task-copy small{color:var(--studio-muted, #63708a);font-size:12px;line-height:1.4}.creation-task-arrow{color:var(--studio-muted, #63708a)}.creation-model-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.creation-model-heading h1{margin:0 0 6px}.creation-model-heading p{margin:0}.creation-change-task{flex:0 0 auto;min-height:38px;border:1px solid rgba(19,32,29,.15);border-radius:10px;background:transparent;color:var(--studio-primary, #087ca0);padding:0 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}@media(max-width:520px){.creation-task-grid{grid-template-columns:1fr}.creation-task-card{min-height:76px}.creation-model-heading{flex-wrap:wrap}}.video-path-card{display:grid;min-width:0;min-height:76px;align-content:center;justify-items:center;gap:7px;border:1px solid rgba(216,206,255,.34);border-radius:8px;background:#fffffff0;box-shadow:0 12px 28px #44378c11,var(--surface-highlight);color:#5f5a8a;cursor:pointer;padding:10px 6px;text-align:center;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}.video-path-card span{display:grid;width:32px;height:32px;place-items:center;border-radius:6px;background:#f0ecff;color:#744cff}.video-path-card .app-icon{width:17px;height:17px}.video-path-card strong{overflow:hidden;max-width:100%;font-size:11px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.video-path-card.active{border-color:#b9a9ff73;background:radial-gradient(circle at 0% 0%,rgba(116,76,255,.13),transparent 8rem),linear-gradient(135deg,#fffffffa,#f7f4fff0);box-shadow:0 14px 34px #44378c18,var(--surface-highlight);color:#17172f}.video-path-card:hover,.video-model-card:hover{border-color:#d8ceff85;box-shadow:0 16px 38px #44378c1a,var(--surface-highlight);transform:translateY(-1px)}.video-model-section{display:grid;gap:10px}.video-model-section h2{margin:0;color:#17172f;font-size:18px;line-height:1.2}.video-model-list{display:grid;gap:10px}.video-model-card{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:12px;min-height:84px;border:1px solid rgba(216,206,255,.28);border-radius:8px;background:#fffffff0;box-shadow:0 14px 34px #44378c12,var(--surface-highlight);color:#16182f;cursor:pointer;padding:12px;text-align:left;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.video-model-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:8px;background:linear-gradient(135deg,#744cff1f,#59caff1f);color:#744cff}.video-model-icon .app-icon{width:22px;height:22px}.video-model-content{display:grid;min-width:0;gap:5px}.video-model-content strong{overflow:hidden;font-size:14px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.video-model-content small{overflow:hidden;color:#77739d;font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.video-model-content span{color:#744cff;font-size:12px;font-weight:800}.video-model-content .video-model-cost{color:#33413d;font-size:12px;font-weight:600}.video-model-cost del,.image-model-cost del{margin-right:4px;color:#8b9692;font-weight:500}.options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.option-pill{display:grid;min-height:82px;align-content:center;justify-items:center;gap:8px;border-radius:8px;padding:12px 8px}.option-pill span{font-size:22px}.option-pill strong{font-size:13px;text-align:center}.model-tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.model-tile{position:relative;display:grid;min-height:92px;align-content:center;justify-items:center;gap:7px;border:1px solid rgba(216,206,255,.84);border-radius:8px;background:linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--surface-shadow),var(--surface-highlight);color:#16182f;cursor:pointer;padding:12px 8px;text-align:center;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.model-tile:hover{border-color:#b9a9ff;box-shadow:var(--surface-shadow-strong),var(--surface-highlight);transform:translateY(-2px)}.model-tile-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:8px;background:#f0ecff;color:#744cff}.model-tile-icon .app-icon{width:19px;height:19px}.model-tile strong{font-size:13px;line-height:1.15}.model-tile em{position:absolute;top:8px;right:8px;border-radius:6px;background:#744cff1a;color:#744cff;font-size:9px;font-style:normal;font-weight:900;padding:3px 6px}.image-model-head{margin-top:10px;margin-bottom:8px}.image-model-head h1{margin-bottom:6px;font-size:22px;letter-spacing:0;line-height:1.15}.image-model-head p{max-width:320px;margin:0;color:#77739d;font-size:13px;line-height:1.45}.image-model-screen{display:grid;gap:10px;padding-bottom:18px}.image-path-grid{display:flex;gap:8px;overflow-x:auto;margin-bottom:0;padding:1px 1px 4px;scrollbar-width:none}.image-path-grid::-webkit-scrollbar{display:none}.image-path-card{display:inline-flex;flex:0 0 auto;min-width:auto;min-height:42px;align-content:initial;align-items:center;justify-items:initial;gap:7px;border-radius:8px;padding:8px 11px}.image-path-card span{width:24px;height:24px;border-radius:6px}.image-path-card .app-icon{width:14px;height:14px}.image-path-card strong{max-width:none;font-size:12px;line-height:1}.image-model-search-panel{position:sticky;top:0;z-index:3;margin:-2px 0 0;padding:3px 0;background:linear-gradient(180deg,#faf8fffa,#faf8ffdb);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.image-model-search-wrap{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;min-height:40px;border:1px solid #eee8ff;border-radius:8px;background:#fffffff5;box-shadow:0 8px 20px #44378c0b,var(--surface-highlight);color:#744cff;padding:0 11px}.image-model-search-wrap .app-icon{width:16px;height:16px}.image-model-search{width:100%;min-width:0;min-height:38px;border:0;background:transparent;color:#17172f;font:inherit;padding:0;outline:none}.image-model-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}.image-model-card{display:grid;grid-template-columns:36px minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:74px;border:1px solid rgba(216,206,255,.28);border-radius:8px;background:#fffffff0;box-shadow:0 10px 24px #44378c0e,var(--surface-highlight);color:#16182f;cursor:pointer;padding:10px;text-align:left;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.image-model-card:hover{border-color:#d8ceff80;box-shadow:0 14px 32px #44378c16,var(--surface-highlight);transform:translateY(-1px)}.image-model-card.selected{border-color:#744cff57;background:linear-gradient(135deg,#fbf8ff,#f5f0ff 55%,#f3faff);box-shadow:0 14px 34px #44378c1a,var(--surface-highlight)}.image-model-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:6px;color:#744cff}.image-model-card-lite .image-model-icon{background:linear-gradient(135deg,#744cff1f,#b145ff1f)}.image-model-card-base .image-model-icon{background:linear-gradient(135deg,#744cff21,#59caff24)}.image-model-card-pro .image-model-icon{background:linear-gradient(135deg,#744cff26,#ffc45724)}.image-model-icon .app-icon{width:19px;height:19px}.image-model-content{display:grid;min-width:0;gap:4px}.image-model-title-row{display:flex;align-items:center;min-width:0;gap:8px}.image-model-new-badge{flex-shrink:0;padding:3px 7px;border-radius:7px;background:#eee1fa;color:#7131c9;font-size:10px;font-weight:700;line-height:1.4;white-space:nowrap}.image-model-title-row strong{overflow:hidden;min-width:0;font-size:14px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.image-model-content small{overflow:hidden;color:#77739d;font-size:12px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.image-model-cost{color:#6f55ff;font-size:12px;font-weight:800}.image-model-check{display:grid;width:18px;height:18px;place-items:center;border-radius:999px;background:#744cff1c;color:#744cff;opacity:0;transform:scale(.92)}.image-model-card.selected .image-model-check{opacity:1;transform:scale(1)}.image-model-check .app-icon{width:11px;height:11px}.image-model-more{min-height:42px;border:1px solid #eee8ff;border-radius:8px;background:#ffffffe0;color:#744cff;font-weight:850}.compact-options{gap:8px}.compact-options .option-pill{min-height:68px}.form-card,.summary-card{width:100%;max-width:100%;overflow:hidden;border:1px solid rgba(216,206,255,.78);border-radius:8px;background:linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--surface-shadow),var(--surface-highlight);padding:14px}.field-label{display:block;margin-bottom:8px;color:#5e5b8a;font-size:13px;font-weight:800}textarea{width:100%;max-width:100%;min-width:0;min-height:190px;resize:vertical;border:1px solid #eceaf8;border-radius:8px;outline:none;padding:12px;color:#16182f;line-height:1.45}textarea:focus{border-color:#9f85ff;box-shadow:0 0 0 4px #744cff14}.lyrics-textarea{min-height:280px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px;line-height:1.5}.field-error{display:block;margin-top:8px;color:#d6426b;font-size:12px}.hidden{display:none}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;margin-top:14px;border:0;border-radius:8px;background:var(--studio-primary);box-shadow:0 12px 24px #087ca02e;color:#fff;cursor:pointer;font-weight:800}.primary-button:disabled,.ghost-button:disabled,.section-heading button:disabled{cursor:not-allowed;opacity:.46;filter:grayscale(.35);box-shadow:none}.primary-button:disabled{border-color:#7d97bc29;background:#dce8ec;color:#17203380}.primary-button .app-icon{width:20px;height:20px}.messenger-required-card{gap:12px;text-align:center}.messenger-required-card p{margin:0;color:#77739d;font-size:14px;line-height:1.45}.messenger-options{display:grid;gap:10px;width:100%;margin-top:4px}.messenger-option{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;border:1px solid transparent;border-radius:8px;color:#fff;font-size:16px;font-weight:700;text-decoration:none;transition:transform .18s ease,background-color .18s ease}.messenger-option img{flex:0 0 20px;width:20px;height:20px}.messenger-option-telegram{background:#229ed9;box-shadow:0 18px 42px #229ed940}.messenger-option-telegram:hover{background:#1687bd;transform:translateY(-1px)}.messenger-option-telegram:focus-visible{outline-color:#229ed9}.messenger-option-max{border-color:#fff3;background:#160326;box-shadow:0 18px 42px #16032638}.messenger-option-max:hover{background:#27103e;transform:translateY(-1px)}.messenger-option:focus-visible{outline:3px solid #823de0;outline-offset:4px}.messenger-option:active{transform:translateY(1px)}@media(prefers-reduced-motion:reduce){.messenger-option{transition:none}}.messenger-option-disabled{display:inline-flex;align-items:center;justify-content:center;min-height:52px;border-radius:8px;background:#eeeafa;color:#9a96ba;font-weight:800}.debug-list{display:grid;gap:10px}.debug-row{display:grid;gap:6px;border:1px solid rgba(216,206,255,.78);border-radius:8px;background:linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--surface-shadow),var(--surface-highlight);padding:11px 12px}.debug-row span{color:#77739d;font-size:11px}.debug-row code{color:#16182f;font-size:12px;white-space:pre-wrap;word-break:break-word}.music-one-screen,.image-one-screen{display:grid;gap:14px;border-color:#c7baffe6;background:radial-gradient(circle at 10% 0%,rgba(116,76,255,.08),transparent 18rem),linear-gradient(180deg,#fffffff0,#fefdffe6);box-shadow:var(--surface-shadow-strong),var(--surface-highlight)}.image-one-screen textarea,.image-one-screen select{border-color:#d8ceffe6;box-shadow:inset 0 1px #ffffffe6,0 10px 24px #44378c0f}.music-one-screen .field-label,.music-one-screen .inline-action-head{margin:2px 2px -4px}.music-one-screen input:not([type=checkbox]):not([type=range]),.music-one-screen select,.music-one-screen textarea{width:100%;border:1px solid rgba(216,206,255,.9);border-radius:8px;background:linear-gradient(180deg,#fffffff5,#fefdfff5);box-shadow:inset 0 1px #ffffffe6,0 10px 24px #44378c0f;color:#16182f;font:inherit;font-size:14px;outline:none}.music-one-screen input:not([type=checkbox]):not([type=range]),.music-one-screen select{min-height:50px;padding:0 14px}.music-one-screen select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(45deg,transparent 50%,#5e5b8a 50%) calc(100% - 19px) 50% / 7px 7px no-repeat,linear-gradient(135deg,#5e5b8a 50%,transparent 50%) calc(100% - 14px) 50% / 7px 7px no-repeat,linear-gradient(180deg,#fffffff5,#fefdfff5);padding-right:36px}.music-one-screen textarea{min-height:128px;padding:13px 14px}.music-one-screen .lyrics-textarea{min-height:240px}.music-one-screen input:not([type=checkbox]):not([type=range]):focus,.music-one-screen select:focus,.music-one-screen textarea:focus{border-color:#9f85ff;box-shadow:0 0 0 4px #744cff14,0 14px 30px #44378c14}.music-one-screen input::placeholder,.music-one-screen textarea::placeholder{color:#77739db8}.music-mode-toggle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--form-accent-track);border-radius:14px;background:var(--form-accent-track)}.music-mode-toggle button{min-height:44px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--studio-primary);font:inherit;font-weight:600;cursor:pointer;transition:background-color .16s ease,color .16s ease}.music-mode-toggle button[aria-pressed=true]{background:var(--studio-primary);color:#fff}.music-mode-toggle button:focus-visible{outline:2px solid var(--studio-primary);outline-offset:2px}@media(prefers-reduced-motion:reduce){.music-mode-toggle button{transition:none}}.music-custom-fields:not([hidden]){display:grid;gap:14px}.music-duration-field{display:grid;gap:10px;padding:13px 14px 11px;border:1px solid rgba(216,206,255,.9);border-radius:8px;background:#ffffff9e;box-shadow:inset 0 1px #ffffffe6}.music-duration-field[hidden]{display:none}.music-duration-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.music-duration-copy{display:grid;gap:3px}.music-duration-head .field-label{margin:0}.music-duration-head small{color:var(--studio-muted);font-size:12px;line-height:1.3}.music-one-screen .music-duration-number{position:relative;display:block;flex:0 0 96px}.music-duration-actions{display:flex;align-items:center;gap:8px}.music-one-screen .music-duration-number input:not([type=checkbox]):not([type=range]){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;min-height:42px;padding:0 38px 0 10px;text-align:right;font-variant-numeric:tabular-nums}.music-duration-number input::-webkit-inner-spin-button,.music-duration-number input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.music-duration-number span{position:absolute;top:50%;right:11px;color:var(--studio-muted);font-size:12px;pointer-events:none;transform:translateY(-50%)}.music-duration-reset{display:inline-grid;width:42px;height:42px;padding:0;place-items:center;border:1px solid rgba(216,206,255,.9);border-radius:8px;background:#fffffff0;color:#5e5b8a;cursor:pointer;transition:border-color .16s ease,color .16s ease,transform .16s ease}.music-duration-reset svg{width:18px;height:18px}.music-duration-reset:hover:not(:disabled),.music-duration-reset:focus-visible{border-color:#9f85ff;color:#744cff;outline:none}.music-duration-reset:active:not(:disabled){transform:scale(.96)}.music-duration-reset:disabled{color:#5e5b8a59;cursor:default}.music-duration-limits{display:flex;justify-content:space-between;color:var(--studio-muted);font-size:11px;font-variant-numeric:tabular-nums}.replace-section-head{margin-bottom:14px}.replace-source-card,.replace-editor,.replace-form{display:grid;gap:14px;margin-bottom:12px;border:1px solid rgba(216,206,255,.78);border-radius:8px;background:#fffffff5;box-shadow:var(--surface-shadow),var(--surface-highlight);padding:14px}.replace-source-title,.replace-editor-head,.replace-selection-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.replace-source-title>span{display:grid;width:40px;height:40px;flex:0 0 auto;place-items:center;border-radius:8px;background:#f0ecff;color:#744cff}.replace-source-title>div{min-width:0;flex:1}.replace-source-title strong,.replace-source-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.replace-source-title small,.replace-editor-head small,.replace-form .field-group>small{margin-top:3px;color:var(--studio-muted);font-size:12px;line-height:1.4}.replace-source-card audio{width:100%}.replace-editor-head h2{margin:0;font-size:17px}.replace-editor-head strong{color:var(--studio-primary);font-size:13px;font-variant-numeric:tabular-nums}.replace-selection-track{position:relative;height:42px}.replace-selection-track:before,.replace-selection-track>span{position:absolute;top:17px;height:8px;border-radius:999px;content:""}.replace-selection-track:before{right:0;left:0;background:var(--form-accent-track)}.replace-selection-track>span{left:var(--selection-start, 0%);width:var(--selection-width, 0%);background:var(--form-accent)}.replace-selection-track input[type=range]{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:42px;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;pointer-events:none}.replace-selection-track input[type=range]::-webkit-slider-runnable-track{height:8px;background:transparent}.replace-selection-track input[type=range]::-webkit-slider-thumb{width:24px;height:24px;margin-top:-8px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:4px solid #fff;border-radius:50%;background:var(--form-accent);box-shadow:0 3px 10px #087ca033;cursor:grab;pointer-events:auto}.replace-selection-track input[type=range]::-moz-range-track{height:8px;background:transparent}.replace-selection-track input[type=range]::-moz-range-thumb{width:18px;height:18px;border:4px solid #fff;border-radius:50%;background:var(--form-accent);box-shadow:0 3px 10px #087ca033;cursor:grab;pointer-events:auto}.replace-time-fields,.replace-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.replace-time-fields label,.replace-form .field-group{display:grid;gap:6px}.replace-time-fields label>span{color:var(--studio-muted);font-size:12px;font-weight:750}.replace-time-fields input,.replace-form input,.replace-form textarea{width:100%}.replace-selection-summary{align-items:stretch}.replace-selection-summary>strong{display:flex;align-items:center;color:var(--studio-ink);font-size:13px;font-variant-numeric:tabular-nums}.replace-preview-button{min-height:44px;margin:0;padding:0 12px;white-space:nowrap}.replace-preview-button .app-icon,.replace-section-entry .app-icon{width:17px;height:17px}.replace-form textarea{resize:vertical}.replace-advanced{border-top:1px solid #f0eef8;padding-top:12px}.replace-advanced summary{min-height:44px;color:#5e5b8a;cursor:pointer;font-size:13px;font-weight:800;line-height:44px}.replace-advanced[open] summary{margin-bottom:8px}.replace-submit,.replace-section-entry{min-height:52px}.replace-section-entry{display:flex;align-items:center;justify-content:center;gap:8px}.work-primary-actions,.extend-submit-actions{display:grid;gap:10px}.extend-music-entry{display:flex;min-height:52px;align-items:center;justify-content:center;gap:8px}.extend-music-entry .app-icon{width:17px;height:17px}.extend-music-head{margin-bottom:14px}.extend-mode-card{margin-bottom:12px;border:1px solid rgba(216,206,255,.78);border-radius:8px;background:#fffffff5;box-shadow:var(--surface-shadow),var(--surface-highlight);padding:14px}.extend-mode-toggle{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:16px;cursor:pointer}.extend-mode-toggle>span{min-width:0}.extend-mode-toggle strong,.extend-mode-toggle small{display:block}.extend-mode-toggle small{margin-top:4px;color:var(--studio-muted);font-size:12px;line-height:1.4}.extend-mode-toggle input{width:22px;height:22px;flex:0 0 auto;accent-color:var(--studio-primary)}.extend-custom-fields[hidden]{display:none}.extend-custom-fields h2{margin:0;font-size:17px}.extend-time-control{display:grid;grid-template-columns:minmax(0,1fr) 132px;align-items:end;gap:12px}.extend-time-control>input[type=range]{width:100%;min-height:44px;accent-color:var(--studio-primary)}.extend-time-control label,.extend-weight{display:grid;gap:6px}.extend-time-control label>span{color:var(--studio-muted);font-size:12px;font-weight:750}.extend-time-control input[type=number],.extend-custom-fields select{width:100%}.extend-prompt-field>small{color:var(--studio-muted);font-size:12px;line-height:1.45}.extend-prompt-field .inline-action-head .ghost-button{flex:0 0 auto}.extend-weight-control{display:grid;grid-template-columns:minmax(0,1fr) 82px;align-items:center;gap:12px}.extend-weight-control input[type=range]{width:100%;min-height:42px;accent-color:var(--studio-primary)}.extend-weight-control input[type=number]{width:100%;text-align:center;font-variant-numeric:tabular-nums}.extend-submit{min-height:52px}.extend-submit-actions .ghost-button{min-height:44px}@media(max-width:480px){.replace-form-row{grid-template-columns:1fr}.replace-selection-summary{display:grid}.extend-time-control{grid-template-columns:1fr}}.inline-action-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#5f5a87;font-weight:800}.inline-action-head .ghost-button{width:auto;min-height:34px;padding:0 12px;border:1px solid rgba(116,76,255,.22);border-radius:6px;background:#744cff14;color:#744cff;font-size:12px;font-weight:900;box-shadow:0 10px 20px #744cff1a}.field-label-with-info{display:flex;align-items:center;justify-content:space-between;gap:10px}.field-label-with-info label{margin:0}.info-button{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;border:1px solid rgba(8,124,160,.2);border-radius:12px;background:#087ca014;color:var(--studio-primary);cursor:pointer;box-shadow:none;touch-action:manipulation;transition:border-color .16s ease,background-color .16s ease}.info-button .app-icon{width:18px;height:18px}.info-button:hover,.info-button:focus-visible{border-color:#087ca066;background:#087ca021}.info-button:focus-visible{outline:3px solid rgba(8,145,178,.2);outline-offset:2px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(216,206,255,.9);border-radius:8px;background:linear-gradient(135deg,#744cff0f,#59caff0d),linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--surface-shadow),var(--surface-highlight);padding:13px 14px;color:#5f5a87;font-weight:800}.switch-row input{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:44px;height:26px;flex:0 0 auto;border:1px solid rgba(216,206,255,.95);border-radius:999px;background:#f0f0f7;accent-color:var(--form-accent);transition:background .16s ease,border-color .16s ease}.switch-row input:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 4px 12px #44378c2e;transition:transform .16s ease}.switch-row input:checked{border-color:#087ca073;background:var(--form-accent)}.switch-row input:checked:after{transform:translate(18px)}.music-mode-switch{min-height:58px;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}.music-mode-switch.is-active{border-color:#087ca057;background:linear-gradient(135deg,#e0f7fff0,#fffffffa),#fff;box-shadow:0 10px 22px #087ca01a,var(--surface-highlight)}.switch-copy{display:grid;gap:3px;min-width:0}.switch-copy small{color:var(--studio-muted);font-size:12px;font-weight:600;line-height:1.35}.voice-builder{display:grid;gap:10px}.voice-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px}.voice-section-head h2{margin:0;color:var(--studio-muted);font-size:16px;line-height:1.2}.voice-small-action{min-height:32px;border-radius:6px;padding:0 10px;font-size:12px}.voice-small-action:disabled,.icon-button:disabled{cursor:default;opacity:.62}.voice-speaker-grid,.voice-turn-list{display:grid;gap:8px}.voice-speaker-grid{grid-template-columns:repeat(auto-fit,minmax(246px,1fr))}.voice-speaker-card,.voice-turn-card{display:grid;gap:8px;border:1px solid rgba(125,151,188,.18);border-radius:8px;background:#fffffff0;box-shadow:0 10px 24px #204e7612,var(--surface-highlight);padding:10px}.voice-card-head,.voice-turn-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.voice-card-head strong{color:var(--studio-ink);font-size:13px;line-height:1.2}.icon-button{display:grid;place-items:center;border:1px solid rgba(216,206,255,.72);border-radius:6px;background:#ffffffdb;color:#77739d;cursor:pointer;padding:0}.icon-button.small{width:28px;height:28px;flex:0 0 auto}.icon-button.small .app-icon{width:14px;height:14px}.voice-compact-grid{display:grid;gap:8px}.voice-compact-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.voice-compact-grid.one{grid-template-columns:minmax(0,1fr)}.voice-selection-row{grid-template-columns:minmax(0,1fr) auto;align-items:end}.voice-selection-row .voice-small-action{width:auto;min-height:44px;white-space:nowrap}.voice-compact-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.voice-compact-grid.three>:first-child{grid-column:1 / -1}.voice-compact-grid label,.voice-profile-field,.compact-textarea-field{display:grid;min-width:0;gap:4px}.voice-compact-grid span,.voice-profile-field>span,.compact-textarea-field span{overflow:hidden;color:var(--studio-muted);font-size:11px;font-weight:850;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.voice-builder input,.voice-builder select,.voice-builder textarea{width:100%;min-width:0;border:1px solid rgba(125,151,188,.2);border-radius:8px;background:#fffffff5;color:var(--studio-ink);font:inherit;outline:none}.voice-builder input:focus,.voice-builder select:focus,.voice-builder textarea:focus{border-color:#087ca073;box-shadow:0 0 0 4px #087ca014,0 10px 22px #324d8414}.voice-builder input,.voice-builder select{min-height:36px;padding:0 10px}.voice-builder .voice-selection-row select{min-height:44px}.voice-builder textarea{min-height:66px;resize:vertical;padding:9px 10px}.voice-profile-input{min-height:52px}.voice-card-head .icon-button.small{width:36px;height:36px}.voice-card-head .icon-button,.voice-turn-top .icon-button{border-color:#7d97bc38;background:#ffffffeb;color:var(--studio-muted)}.voice-submit-bar{position:relative;z-index:10;margin-top:8px;border:1px solid rgba(125,151,188,.18);border-radius:8px;background:#fffffff5;box-shadow:0 -10px 28px #204e761a,var(--surface-highlight);padding:8px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.voice-submit-bar .primary-button{min-height:48px;margin-top:0}.voice-submit-hint{margin:0 0 6px;color:#9b3553;font-size:12px;font-weight:750;line-height:1.35;text-align:center}.voice-turn-top select{max-width:190px}.voice-turn-card textarea{min-height:86px}.voice-tag-row{display:flex;gap:6px;overflow-x:auto;padding:1px 1px 2px;scrollbar-width:none}.voice-tag-row::-webkit-scrollbar{display:none}.voice-tag-row button{flex:0 0 auto;min-height:30px;border:1px solid rgba(8,124,160,.2);border-radius:8px;background:#e0f7ff;color:var(--studio-primary);cursor:pointer;font-size:11px;font-weight:850;padding:0 10px}.voice-tag-row button:hover,.voice-tag-row button:focus-visible{border-color:#087ca057;background:#d2f2fb}.voice-context-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.voice-context-grid textarea{min-height:74px}.voice-temperature-label{margin-top:2px}.music-one-screen input[type=range],.voice-one-screen input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:12px;border-radius:999px;background:linear-gradient(90deg,var(--studio-primary),var(--studio-mint)) 0 / var(--range-fill, 65%) 100% no-repeat,#e8eef6;outline:none}.voice-one-screen input[type=range]{background:linear-gradient(90deg,var(--studio-primary),var(--studio-mint)) 0 / var(--range-fill, 65%) 100% no-repeat,#e8eef6}.music-one-screen input[type=range]::-webkit-slider-thumb,.voice-one-screen input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:26px;height:26px;border:4px solid #fff;border-radius:50%;background:var(--studio-primary);box-shadow:0 8px 18px #087ca047}.voice-one-screen input[type=range]::-webkit-slider-thumb{background:var(--studio-primary);box-shadow:0 8px 18px #087ca047}.music-one-screen input[type=range]::-moz-range-thumb,.voice-one-screen input[type=range]::-moz-range-thumb{width:18px;height:18px;border:4px solid #fff;border-radius:50%;background:var(--studio-primary);box-shadow:0 8px 18px #087ca047}.voice-one-screen input[type=range]::-moz-range-thumb{background:var(--studio-primary);box-shadow:0 8px 18px #087ca047}.helper-text{margin:10px 4px 0;color:var(--studio-muted);font-size:12px;line-height:1.35;text-align:center}.helper-text.danger{color:#d6426b}.helper-text button{border:0;background:transparent;color:#744cff;cursor:pointer;font:inherit;font-weight:800;text-decoration:underline}.summary-card{display:grid;gap:10px}.summary-row{display:grid;gap:4px;border-bottom:1px solid #f0eef8;padding-bottom:10px}.summary-row:last-child{border-bottom:0;padding-bottom:0}.summary-row span{color:#77739d;font-size:12px}.summary-row strong{font-size:14px;line-height:1.35}.generation-state{display:grid;justify-items:center;margin:54px 0 20px;text-align:center}.generation-loader{position:relative;display:grid;width:108px;height:108px;place-items:center;border-radius:50%;background:#f5f1ff;box-shadow:inset 0 0 0 1px #744cff1a}.generation-loader:before{content:"";position:absolute;top:8px;right:8px;bottom:8px;left:8px;border-radius:inherit;border:7px solid rgba(116,76,255,.12);border-top-color:#744cff;animation:loader-spin 1.2s linear infinite;will-change:transform}.generation-loader span{width:38px;height:38px;border-radius:8px;background:#e9e0ff}@keyframes loader-spin{to{transform:rotate(360deg)}}.generation-list{display:grid;width:100%;gap:8px;margin:22px 0;padding:0;color:#77739d;font-size:13px;list-style:none;text-align:left}.generation-list li:before{content:"○";margin-right:8px}.generation-list li.done{color:#23b26d}.generation-list li.done:before{content:"✓"}.generation-list li.active{color:#744cff;font-weight:800}.notice-card{width:100%;margin:12px 0;border:1px solid #eceaf8;border-radius:8px;background:#fbfaff;color:#5e5b8a;font-size:12px;line-height:1.4;padding:10px 12px}.alert-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;background:#16182f57;padding:22px}.scenario-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:45;display:grid;align-items:center;justify-items:center;background:#16182f47;padding:18px}.scenario-panel{width:min(100%,340px);max-height:min(680px,calc(100vh - 36px));overflow:auto;scrollbar-width:none;border:1px solid rgba(216,206,255,.72);border-radius:6px;background:#fffffffa;box-shadow:0 24px 70px #16182f38;padding:16px}.scenario-panel::-webkit-scrollbar{display:none}.scenario-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.scenario-head h2{margin:0;color:#16182f;font-size:22px;letter-spacing:-.04em}.scenario-head p{margin:0;color:#77739d;font-size:12px;line-height:1.4}.scenario-tabs{display:grid;gap:14px}.scenario-tab{display:grid;gap:8px}.scenario-tab h3{margin:0;color:#5e5b8a;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.scenario-list{display:grid;gap:8px}.scenario-item{display:flex;width:100%;align-items:center;gap:10px;border:1px solid rgba(238,232,255,.96);border-radius:8px;background:linear-gradient(180deg,#fff,#fefeff);box-shadow:0 10px 24px #744cff14;color:inherit;cursor:pointer;padding:11px;text-align:left}.scenario-item.disabled{cursor:not-allowed;opacity:.55}.scenario-icon{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border-radius:8px;background:linear-gradient(135deg,#744cff1f,#59caff1f);color:#744cff}.scenario-item strong,.scenario-item small,.scenario-item em{display:block}.scenario-item strong{color:#16182f;font-size:14px;line-height:1.15}.scenario-item small{margin-top:3px;color:#77739d;font-size:11px;line-height:1.3}.alert-popup{display:grid;width:min(100%,330px);gap:12px;border:1px solid #eceaf8;border-radius:6px;background:#fff;box-shadow:0 24px 70px #16182f3d;padding:20px;text-align:center}.alert-icon{display:grid;width:52px;height:52px;margin:0 auto;place-items:center;border-radius:8px;background:#f0ecff;color:#744cff}.alert-icon .app-icon{width:26px;height:26px}.alert-error .alert-icon{background:#fff0f3;color:#d63b62}.alert-warning .alert-icon{background:#fff7e8;color:#ff8a00}.alert-success .alert-icon{background:#e7f8ef;color:#1f9d5b}.alert-content{display:grid;gap:6px}.alert-content h2{margin:0;color:#16182f;font-size:20px;line-height:1.15}.alert-content p{margin:0;color:#5e5b8a;font-size:14px;line-height:1.45}.alert-button{margin-top:2px}.result-head{text-align:center}.result-card{display:grid;gap:14px;border:1px solid rgba(216,206,255,.78);border-radius:6px;background:linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--surface-shadow),var(--surface-highlight);padding:14px;text-align:center}.result-cover{display:grid;width:100%;min-height:170px;place-items:center;border-radius:8px;background:radial-gradient(circle at 70% 15%,rgba(176,82,255,.36),transparent 8rem),linear-gradient(135deg,#20133d,#744cff);color:#fff}.result-cover .app-icon{width:58px;height:58px}.result-card strong,.result-card small{display:block}.result-card small{margin-top:4px;color:#77739d;font-size:12px}.result-card audio{width:100%}.result-lyrics{position:relative;overflow:hidden;border:1px solid rgba(125,151,188,.18);border-radius:8px;background:#ffffffe6;text-align:left}.result-lyrics summary{cursor:pointer;min-height:44px;padding:12px 56px 12px 14px;color:var(--studio-primary);font-size:14px;font-weight:850;list-style-position:inside}.lyrics-copy-button{display:grid;position:absolute;z-index:1;top:0;right:2px;width:44px;height:44px;padding:0;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--studio-primary);cursor:pointer;touch-action:manipulation;transition:background-color .18s ease,opacity .18s ease}.lyrics-copy-button .app-icon{width:20px;height:20px}.lyrics-copy-button:hover{background:#087ca014}.lyrics-copy-button:active{background:#087ca024;opacity:.78}.lyrics-copy-button:focus-visible{outline:3px solid rgba(8,145,178,.22);outline-offset:-3px}.result-lyrics-body{max-height:320px;overflow-y:auto;border-top:1px solid rgba(125,151,188,.14);padding:14px;color:var(--studio-ink);font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}.result-variant{display:grid;gap:10px;padding:12px;border:1px solid rgba(226,218,255,.78);border-radius:8px;background:#faf8ffc7}.result-variant-title{color:var(--accent);font-size:14px}.result-image{width:100%;max-height:360px;object-fit:contain;border-radius:8px;background:#f7f6ff}.action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.action-row .primary-button{margin-top:0}.secondary-button{display:grid;min-height:52px;place-items:center;border:1px solid #eceaf8;border-radius:8px;background:#fff;color:#744cff;font-weight:800;text-decoration:none}.secondary-button:disabled{cursor:not-allowed;opacity:.58}.load-more-button{width:100%;min-height:46px;margin-top:12px;border-color:#d8ceffd1;border-radius:8px;background:#ffffffeb;box-shadow:0 12px 30px #744cff14}.balance-card{display:flex;align-items:center;justify-content:space-between;overflow:hidden;border:1px solid rgba(8,124,160,.18);border-radius:6px;background:linear-gradient(135deg,#ecfeffeb,#fffffffa),repeating-linear-gradient(90deg,rgba(8,145,178,.045) 0 1px,transparent 1px 28px);box-shadow:0 12px 28px #204e761a,var(--surface-highlight);color:var(--studio-ink);padding:18px}.balance-card span,.balance-card small{display:block;color:var(--studio-muted);font-size:12px}.balance-card strong{display:block;margin:5px 0;font-size:42px;line-height:1}.balance-gem{display:grid;width:64px;height:64px;place-items:center;border-radius:6px;background:#e0f7ff;color:var(--studio-primary)}.balance-gem .app-icon{width:34px;height:34px}.credits-screen-content{display:grid;gap:14px;padding-bottom:calc(32px + env(safe-area-inset-bottom))}.credits-page-head{margin-bottom:0}.balance-card-compact{min-height:74px;padding:12px 14px}.balance-card-compact strong{display:flex;align-items:baseline;gap:6px;margin:3px 0 0;font-size:28px;line-height:1.1}.balance-card-compact strong small{display:inline;font-size:12px;font-weight:650}.balance-card-compact .balance-gem{width:44px;height:44px}.balance-card-compact .balance-gem .app-icon{width:24px;height:24px}.credits-screen-content .section-block{margin-top:0}.credits-screen-content .section-heading{margin-bottom:8px}.section-block{margin-top:18px}.tariff-list,.payment-history,.works-list{display:grid;min-width:0;max-width:100%;gap:10px}.works-compact-screen{display:grid;min-width:0;max-width:100%;gap:14px;padding-bottom:calc(28px + env(safe-area-inset-bottom))}.works-toolbar{position:relative;display:block;min-width:0;max-width:100%;margin:0;overflow:visible}.works-toolbar:after{position:absolute;top:2px;right:0;width:22px;height:44px;background:linear-gradient(90deg,transparent,var(--surface, #fff) 90%);content:"";pointer-events:none}.works-refresh-status{display:block;margin-top:-4px;color:var(--muted);font-size:12px;line-height:1.4}.work-filters{display:flex;min-width:0;max-width:100%;gap:6px;overflow-x:auto;padding:2px 8px 10px 0;scroll-padding-inline:8px;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}.work-filters::-webkit-scrollbar{display:none}.work-filters button,.refresh-button{flex:0 0 auto;min-width:72px;max-width:116px;min-height:44px;border:1px solid rgba(125,151,188,.18);border-radius:6px;background:#ffffffe0;color:var(--studio-muted);cursor:pointer;font-size:12px;font-weight:800;overflow:hidden;padding:9px 12px;scroll-snap-align:start;text-overflow:ellipsis;touch-action:manipulation;white-space:nowrap}.work-filters button.active{border-color:#087ca042;background:#e0f7ff;box-shadow:var(--surface-highlight);color:var(--studio-primary)}.work-filters button.active{font-weight:900}.refresh-button{color:var(--studio-primary)}.payment-item{border-color:#7d97bc29}.tariff-side button{background:var(--studio-primary);color:#fff}.refresh-button{min-width:34px;height:34px;padding:0}.works-compact-screen .works-list{gap:8px}.work-relation{overflow:hidden;color:var(--studio-primary);font-size:11px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.related-works-card{display:grid;gap:10px}.related-works-card h2{margin:0;font-size:16px}.related-work-list{display:grid;gap:8px}.related-work-link{display:grid;min-width:0;gap:3px;border:1px solid rgba(125,151,188,.18);border-radius:8px;background:#ffffffd1;color:var(--studio-ink);cursor:pointer;padding:10px 12px;text-align:left}.related-work-link>span{color:var(--studio-primary);font-size:11px;font-weight:800}.related-work-link strong,.related-work-link small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.related-work-link small{color:var(--studio-muted)}.work-detail-title{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-word}.tariff-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(216,206,255,.78);border-radius:8px;background:linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--surface-shadow),var(--surface-highlight);padding:12px}.tariff-card.popular{border-color:#c7baff;background:linear-gradient(135deg,#744cff14,#59caff14)}.tariff-card.featured{border-color:#087ca052;background:linear-gradient(135deg,#e0f7ffc7,#fffffffa)}.tariff-main{display:flex;align-items:center;min-width:0;gap:10px}.tariff-icon{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border-radius:8px;background:#f0ecff;font-size:20px}.tariff-main strong,.tariff-main small,.tariff-side strong,.payment-item strong,.payment-item small{display:block}.tariff-main strong,.payment-item strong{font-size:14px}.tariff-main small,.payment-item small{color:#77739d;font-size:12px;line-height:1.35}.tariff-side{display:grid;justify-items:end;gap:5px}.tariff-side del{color:var(--studio-muted);font-size:12px}.tariff-side>strong{white-space:nowrap}.tariff-side .popular-badge{max-width:126px;text-align:center;white-space:normal}.tariff-discount{display:inline-block;margin-left:5px;border-radius:999px;background:#087ca01a;color:var(--studio-primary);font-size:10px;font-weight:850;vertical-align:middle}.work-item{display:flex;align-items:center;gap:10px;min-width:0;overflow:hidden;border:1px solid rgba(216,206,255,.7);border-radius:8px;background:linear-gradient(180deg,#fff,#fefeff);box-shadow:0 10px 26px #44378c14,var(--surface-highlight);padding:10px}.work-item-clickable{cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.work-item-clickable:hover{border-color:#b9a9ff;box-shadow:var(--surface-shadow-strong),var(--surface-highlight);transform:translateY(-1px)}.work-list-action{align-self:flex-start;margin-top:8px;border:0;border-radius:999px;background:#e0f7ff;color:var(--studio-primary);padding:7px 12px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.work-preview{display:grid;width:44px;height:44px;flex:0 0 auto;overflow:hidden;place-items:center;border-radius:8px;background:linear-gradient(135deg,#744cff29,#59caff24);color:#744cff}.work-preview-image{background:#f7f4ff;box-shadow:inset 0 0 0 1px #d8ceff73}.work-preview-image img{display:block;width:100%;height:100%;object-fit:cover}.work-preview .app-icon,.history-preview .app-icon,.payment-icon .app-icon{width:20px;height:20px}.work-preview-placeholder{align-content:center;justify-items:center;gap:3px;padding:4px;text-align:center}.work-preview-placeholder span{max-width:100%;overflow:hidden;font-size:7px;font-weight:800;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.work-preview-video{background:linear-gradient(145deg,#dcf6fb,#dff3e9)}.work-preview-image{background:linear-gradient(145deg,#e6f5f8,#f5edff)}.work-preview-music,.work-preview-voice{background:linear-gradient(145deg,#f3e9ff,#e2f4fb)}.work-body{display:grid;min-width:0;flex:1;gap:5px}.work-open-icon{display:grid;width:28px;height:28px;flex:0 0 auto;place-items:center;border-radius:6px;background:#f0ecff;color:#744cff;transform:rotate(180deg)}.work-open-icon .app-icon{width:16px;height:16px}.work-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}.work-title-row strong{flex:1 1 auto;display:-webkit-box;overflow:hidden;min-width:0;max-width:100%;font-size:14px;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}.work-title-row .status-pill{flex:0 0 auto;max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-body small{overflow:hidden;color:#77739d;font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.work-menu-button{display:grid;width:28px;height:28px;flex:0 0 auto;place-items:center;border:0;border-radius:6px;background:#f0ecff;color:#6b5f9b;cursor:pointer;font-size:18px;font-weight:900;line-height:1}.work-title-row .status-pill{font-size:10px;padding:4px 7px}.work-body audio{width:100%;height:50px}.work-body video,.result-card video{width:100%;border-radius:8px;background:#16182f}.work-image{width:100%;max-height:220px;object-fit:cover;border-radius:8px;background:#f7f6ff}.work-cover{aspect-ratio:1 / 1;max-height:180px;box-shadow:0 12px 28px #44378c1f}.work-detail-card,.work-detail-media{margin-top:14px}.status-pill{flex:0 0 auto;border-radius:6px;background:#f0ecff;color:#744cff;font-size:11px;font-weight:800;padding:5px 8px}.status-completed{background:#e7f8ef;color:#1f9d5b}.status-generating,.status-lyrics{background:#f0ecff;color:#744cff}.status-failed{background:#fff0f3;color:#d63b62}.status-draft{background:#f5f4fb;color:#77739d}.inline-link{color:#744cff;font-size:12px;font-weight:800;text-decoration:none}.work-error{border-radius:6px;background:#fff0f3;color:#b42348;font-size:12px;line-height:1.4;padding:8px 10px}.receipt-email-card{margin:16px 0;padding:16px;border:1px solid #e6d9f0;border-radius:16px;background:#ffffffa6}.receipt-email-card .checkout-field{margin-top:0}.receipt-email-card input{width:100%;min-width:0;min-height:44px;box-sizing:border-box;padding:12px;border:1px solid #e6d9f0;border-radius:12px;background:#fff;color:inherit;font:inherit}.receipt-email-card input:focus-visible{outline:2px solid #823de0;outline-offset:2px}.receipt-email-card button{min-height:44px}.receipt-email-feedback:empty{display:none}.profile-card{display:flex;align-items:center;gap:12px;border:1px solid rgba(216,206,255,.78);border-radius:6px;background:linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--surface-shadow),var(--surface-highlight);padding:14px}.profile-avatar{display:grid;width:58px;height:58px;flex:0 0 auto;place-items:center;border-radius:6px;background:linear-gradient(135deg,#744cff,#b052ff);color:#fff;font-size:24px;font-weight:900}.profile-main{display:grid;min-width:0;flex:1;gap:3px}.profile-main strong{color:#16182f;font-size:16px}.profile-main small{color:#77739d;font-size:12px}.profile-main .profile-platform-id{max-width:100%;overflow:hidden;color:#9a96ba;font-size:11px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.profile-balance{display:grid;min-width:58px;justify-items:center;border-radius:8px;background:#f7f4ff;color:#744cff;padding:9px 10px}.profile-balance strong{color:#16182f;font-size:16px}.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.profile-stats article{display:grid;gap:2px;border:1px solid rgba(216,206,255,.78);border-radius:8px;background:linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--surface-shadow),var(--surface-highlight);padding:12px;text-align:center}.profile-stats strong{color:#16182f;font-size:18px}.profile-stats small,.profile-row span{color:#77739d;font-size:11px}.profile-list{display:grid;gap:10px}.profile-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(216,206,255,.78);border-radius:8px;background:linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--surface-shadow),var(--surface-highlight);padding:11px 12px}.profile-row strong{min-width:0;color:#16182f;font-size:13px;text-align:right;word-break:break-word}.referral-card{display:grid;gap:12px;margin-top:14px;border:1px solid rgba(216,206,255,.78);border-radius:6px;background:radial-gradient(circle at 92% 12%,rgba(116,76,255,.08),transparent 7rem),linear-gradient(180deg,#fff,#fefeff);box-shadow:var(--surface-shadow),var(--surface-highlight);padding:16px}.referral-card h2{margin:0 0 5px;color:#16182f;font-size:20px;line-height:1.15}.referral-card p{margin:0;color:#77739d;font-size:13px;line-height:1.45}.referral-link{overflow:hidden;border:1px solid rgba(216,206,255,.7);border-radius:8px;background:#f8f6ffc7;color:#625d8e;font-size:12px;font-weight:800;padding:11px;text-overflow:ellipsis;white-space:nowrap}.referral-link-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:center}.referral-copy-button{display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(216,206,255,.7);border-radius:8px;background:#f8f6ffc7;color:var(--primary, #823de0);cursor:pointer}.referral-copy-button:hover{background:#eee5fa}.referral-copy-button:focus-visible{outline:2px solid #823de0;outline-offset:2px}.primary-button.compact{min-height:44px;margin:0}.referral-cashback{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:8px;background:linear-gradient(135deg,#744cff14,#34c7ff14);color:#77739d;font-size:12px;padding:11px}.referral-cashback strong{color:#16182f;font-size:16px}.popular-badge{border-radius:6px;background:#f0ecff;color:#744cff;font-size:10px;font-weight:800;padding:4px 7px;text-transform:uppercase}.tariff-side button{border:0;border-radius:6px;background:var(--form-accent);color:#fff;cursor:pointer;font-size:12px;font-weight:800;padding:7px 12px}.payment-item{display:flex;align-items:center;gap:10px;border:1px solid #eceaf8;border-radius:8px;background:#fff;padding:10px}.spending-work-link{display:flex;align-items:center;justify-content:flex-end;gap:3px;min-height:44px;margin-left:auto;padding:4px 0;border:0;background:transparent;color:#823de0;font:inherit;font-weight:650;white-space:nowrap;cursor:pointer}.spending-work-link .app-icon{width:14px;height:14px}.spending-work-link:focus-visible{outline:2px solid #823de0;outline-offset:2px;border-radius:4px}.payment-icon{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:6px;background:#f0ecff;color:#744cff;font-size:14px;font-weight:900}.payment-item div:nth-child(2){flex:1;min-width:0}.payment-item>span{color:#77739d;font-size:11px;max-width:105px;text-align:right}.payment-action{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.payment-action span{color:#77739d;font-size:11px}.tariff-card,.work-item,.profile-card,.profile-stats article,.profile-row,.referral-card{border-color:#7d97bc2e;background:#ffffffdb;box-shadow:0 8px 18px #324d840f,var(--surface-highlight)}.tariff-card.popular{border-color:#087ca047;background:linear-gradient(135deg,#e0f7ffc7,#fffffff5)}.tariff-icon,.payment-icon,.profile-balance,.work-open-icon,.work-menu-button{background:#e0f7ff;color:var(--studio-primary)}.work-preview{background:linear-gradient(135deg,#e0f7ffe6,#e8f8efe6);color:var(--studio-primary)}.work-preview-image{background:#f8fbff;box-shadow:inset 0 0 0 1px #7d97bc2e}.status-pill,.status-generating,.status-lyrics,.popular-badge{background:#e0f7ff;color:var(--studio-primary)}.tariff-side button{background:var(--studio-primary)}.profile-avatar{overflow:hidden;background:linear-gradient(135deg,#e0f7fff5,#e8f8eff5);color:var(--studio-primary)}.profile-avatar-image img{display:block;width:100%;height:100%;object-fit:cover}.empty-card{border:1px dashed #d8d4ec;border-radius:8px;background:#ffffffd1;box-shadow:0 10px 24px #44378c12;color:#77739d;font-size:13px;padding:14px;text-align:center}.works-empty-state{display:grid;width:100%;max-width:100%;min-width:0;justify-items:center;gap:10px;border-style:solid;padding:22px 16px;overflow:hidden;text-align:center}.works-empty-state .empty-icon{display:grid;width:52px;height:52px;place-items:center;border-radius:8px;background:#e0f7ff;color:var(--studio-primary)}.works-empty-state .empty-icon .app-icon{width:24px;height:24px}.works-empty-state h2{max-width:100%;margin:0;color:#17172f;font-size:18px;overflow-wrap:anywhere}.works-empty-state p{width:min(100%,260px);margin:0;color:#77739d;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.works-empty-state .primary-button{width:min(100%,260px);min-height:46px;margin-top:4px;border:1px solid rgba(8,124,160,.24);background:var(--studio-primary);box-shadow:0 12px 24px #087ca02e;padding:0 18px;white-space:normal}.video-form{display:grid;gap:10px}.video-create-screen{display:grid;gap:14px;padding-bottom:112px}.video-config-card{background:radial-gradient(circle at 20% 0%,rgba(116,76,255,.11),transparent 16rem),#fff}.text-video-screen{padding-bottom:150px}.text-video-head{margin-top:18px;margin-bottom:14px}.text-video-head h1{margin-bottom:8px}.text-video-head p{margin:0;color:#77739d;font-size:14px;line-height:1.45}.video-section-card{display:grid;width:100%;max-width:100%;min-width:0;overflow:hidden;gap:12px}.video-section-card h2{margin:0;color:#17172f;font-size:18px;line-height:1.2}.video-prompt-wrap{position:relative}.video-prompt-wrap textarea{min-height:158px;resize:vertical;border-color:#d8ceff9e;border-radius:8px;background:linear-gradient(180deg,#fffffffa,#fcfbfff0),#fff;box-shadow:0 14px 34px #44378c12,var(--surface-highlight);font-size:13px;padding:14px 14px 34px}.char-counter{position:absolute;right:14px;bottom:11px;color:#9a96b8;font-size:11px;font-weight:800}.video-chip-group{display:grid;gap:8px}.video-chip-group+.video-chip-group{margin-top:2px}.video-chip-group h3{margin:0;color:#5e5b8a;font-size:13px;font-weight:900}.video-range-field{display:grid;grid-column:1 / -1;gap:10px;padding:14px;border:1px solid rgba(216,206,255,.52);border-radius:8px;background:linear-gradient(135deg,#fffffffa,#f7f3ffe6),#fff;box-shadow:0 12px 30px #44378c0f,var(--surface-highlight)}.range-head,.range-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.range-head span{color:#5e5b8a;font-size:13px;font-weight:900}.range-head strong{color:#17172f;font-size:14px;font-weight:950;white-space:nowrap}.range-meta{color:#9a96b8;font-size:11px;font-weight:800}.video-range-field input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:44px;border-radius:999px;background:var(--form-accent-gradient) left center / var(--range-fill, 0%) 8px no-repeat,var(--form-accent-track) left center / 100% 8px no-repeat;outline:none}.video-range-field input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:24px;height:24px;border:3px solid #fff;border-radius:50%;background:var(--form-accent);box-shadow:0 3px 10px #087ca033}.video-range-field input[type=range]::-moz-range-thumb{width:18px;height:18px;border:3px solid #fff;border-radius:50%;background:var(--form-accent);box-shadow:0 3px 10px #087ca033}.video-chip-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.seedance-mode-switch{position:relative;display:grid;grid-template-columns:repeat(var(--mode-count, 3),minmax(0,1fr));padding:4px;border:1px solid #e1d6ed;border-radius:14px;background:#f5effa;touch-action:pan-y}.seedance-mode-switch__indicator{position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 8px) / var(--mode-count, 3));border-radius:10px;background:#eee0fa;box-shadow:0 1px 4px #613b7720;transform:translate(calc(var(--mode-index, 0) * 100%));transition:transform .18s ease-in-out;pointer-events:none}.seedance-mode-switch button{position:relative;z-index:1;min-width:0;min-height:44px;padding:8px 4px;border:0;border-radius:10px;background:transparent;color:#736584;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.seedance-mode-switch button[aria-pressed=true]{color:#7131c9}.seedance-mode-switch button:focus-visible{outline:2px solid #823de0;outline-offset:-2px}@media(prefers-reduced-motion:reduce){.seedance-mode-switch__indicator{transition:none}}.video-chip{min-height:42px;border:1px solid rgba(216,206,255,.5);border-radius:8px;background:#ffffffeb;box-shadow:var(--surface-highlight);color:#6b6795;cursor:pointer;font-size:12px;font-weight:900}.ghost-button.is-loading,.ghost-button.is-loading:disabled{cursor:wait;opacity:.78;filter:none}.button-spinner{display:inline-block;width:14px;height:14px;margin-right:6px;vertical-align:-2px;border:2px solid rgba(116,76,255,.24);border-top-color:#744cff;border-radius:999px;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.video-chip.active{border-color:#744cff6b;background:linear-gradient(135deg,#744cff24,#59caff1f);box-shadow:0 12px 26px #744cff1f,var(--surface-highlight);color:#17172f}.text-video-action-bar{gap:9px}.compact-heading{margin-bottom:2px}.motion-option-group{display:grid;gap:10px}.motion-option-group+.motion-option-group{margin-top:6px}.motion-option-title{display:flex;align-items:center;gap:9px;color:#744cff}.motion-option-title span{display:grid;width:28px;height:28px;place-items:center;border-radius:6px;background:#f0ecff}.motion-option-title .app-icon{width:18px;height:18px}.motion-option-title h3{margin:0;color:#5e5b8a;font-size:13px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.motion-segment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.motion-segment{min-height:54px;border:1px solid #e7e2fb;border-radius:8px;background:#ffffffbd;box-shadow:var(--surface-highlight);color:#77739d;cursor:pointer;font-size:14px;font-weight:900}.motion-segment.active{border-color:#744cffb8;background:linear-gradient(135deg,#744cff29,#59caff21);box-shadow:0 12px 26px #744cff24,var(--surface-highlight);color:#16182f}.motion-option-group p{margin:-2px 0 0;color:#77739d;font-size:12px;font-weight:750;line-height:1.35}.video-sticky-cta{position:absolute;right:16px;bottom:92px;left:16px;z-index:4;display:grid;gap:10px;border:1px solid rgba(216,206,255,.78);border-radius:6px;background:#fffffff5;box-shadow:0 18px 44px #44378c29,var(--surface-highlight);padding:12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.video-cta-meta{display:flex;justify-content:space-between;gap:10px;color:#77739d;font-size:12px;font-weight:800}.video-cta-meta strong{color:#16182f}.video-sticky-cta .primary-button{margin-top:0}.upload-box{position:relative;display:grid;gap:4px;place-items:center;border:1px dashed #d8ceff;border-radius:8px;background:linear-gradient(135deg,#744cff0f,#59caff0f);color:#5e5b8a;cursor:pointer;overflow:hidden;padding:14px 12px;text-align:center}.upload-box.uploading{border-style:solid;background:linear-gradient(135deg,#744cff1f,#59caff24);cursor:wait}.upload-box span{color:#744cff;font-size:24px}.upload-box strong{color:#16182f;font-size:13px}.upload-box small{max-width:260px;color:#77739d;font-size:11px;line-height:1.35}strong>.app-icon{width:1em;height:1em;display:inline-block;vertical-align:-.15em}.video-model-picker{margin-bottom:16px}.video-model-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;cursor:pointer;width:100%;padding:0;border:0;background:transparent;color:var(--studio-ink);font:inherit;text-align:left}.video-model-picker-trigger>span{display:grid;gap:4px}.video-model-picker-trigger small{color:var(--studio-muted, #716580)}.video-model-picker-trigger>svg{width:24px;height:24px}.video-model-picker-dialog{width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--studio-border, #e6d9f0);border-radius:24px;background:var(--studio-surface, #fff);color:var(--studio-ink, #302342);box-shadow:0 24px 80px #61348333}.video-model-picker-dialog::backdrop{background:#2317357a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.video-model-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.video-model-picker-head h2{margin:0;font-size:20px}.video-model-picker-head .menu-button{flex:0 0 44px}.hero-content:has(dialog[open]){overflow:hidden}.video-model-picker-panel .video-model-list{max-height:60dvh;overflow-y:auto;overscroll-behavior:contain;padding:4px}.video-model-picker-selected .video-model-card{border-color:var(--studio-primary, #823de0);background:var(--studio-soft, #f0e4fa)}.video-model-picker-trigger:focus-visible{outline:2px solid var(--studio-primary, #823de0);outline-offset:4px;border-radius:14px}.video-upload-hint{margin:8px 0 12px;line-height:1.5}.ghost-button[data-action^=assist-]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--studio-border, #e6d9f0);border-radius:14px;background:#f0e4fa;color:var(--studio-primary);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background .16s ease}.ghost-button[data-action^=assist-]:hover{background:#eee1fa}.ghost-button[data-action^=assist-]:active{background:#e6d9f0}.ghost-button[data-action^=assist-]:focus-visible{outline:2px solid var(--studio-primary);outline-offset:3px}.ghost-button[data-action^=assist-]:disabled{cursor:wait;opacity:.6}.hero-card-no-nav .video-sticky-cta{bottom:max(12px,env(safe-area-inset-bottom))}@media(max-width:600px){.video-model-picker-dialog{margin:auto auto 0;width:100%;max-height:85dvh;border-radius:24px 24px 0 0;padding-bottom:max(20px,env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){.ghost-button[data-action^=assist-]{transition:none}}.upload-box input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;cursor:pointer;opacity:0}.upload-spinner{width:26px;height:26px;border:3px solid rgba(116,76,255,.18);border-top-color:#744cff;border-radius:999px;animation:upload-spin .9s linear infinite}@keyframes upload-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.generation-loader:before,.button-spinner,.upload-spinner{animation-duration:2.4s}}.upload-status{border:1px solid #ece8ff;border-radius:8px;background:#fbfaff;color:#77739d;font-size:12px;padding:9px 12px}.upload-status.uploading{border-color:#d8ceff;background:#f5f0ff;color:#744cff;font-weight:800}.uploaded-media-list{display:grid;gap:8px}.uploaded-media-item{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;border:1px solid #e6ddff;border-radius:8px;background:#fff;box-shadow:0 10px 24px #744cff1a;color:#16182f;padding:10px 12px}.uploaded-media-item span{display:grid;place-items:center;width:34px;height:34px;border-radius:6px;background:#f0e9ff;color:#744cff}.uploaded-media-item strong{font-size:13px}.uploaded-media-item small{color:#22b573;font-size:11px;font-weight:800}.compact-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.select-field{display:grid;gap:6px}.select-field span{color:#5e5b8a;font-size:12px;font-weight:800}.select-field select{width:100%;min-width:0;border:1px solid #eceaf8;border-radius:8px;background:#fff;color:#16182f;font:inherit;font-size:13px;padding:11px 12px}.switch-list{display:grid;gap:8px}.switch-field{display:flex;align-items:center;gap:9px;border:1px solid #eceaf8;border-radius:8px;background:#fff;color:#5e5b8a;font-size:13px;font-weight:800;padding:10px 12px}.switch-field input{accent-color:var(--form-accent)}.compact-summary{margin-top:12px}.top-bar{flex:0 0 auto}.page-head,.video-model-head,.text-video-head,.result-head{margin-top:4px}.video-create-screen,.text-video-screen{padding-bottom:0}.form-card,.summary-card,.settings-card,.debug-row,.choice-card,.option-pill,.video-path-card,.video-model-card,.image-model-card,.voice-speaker-card,.voice-turn-card,.result-card,.work-detail-card,.work-detail-media,.generation-state,.video-range-field,.upload-box,.uploaded-media-item,.switch-row,.switch-field,.empty-card,.notice-card{min-width:0;max-width:100%;border-color:#7d97bc2e;border-radius:8px;background:linear-gradient(180deg,#fffffff0,#f9fdffe6),#fff;box-shadow:0 8px 18px #324d840f,var(--surface-highlight)}.music-one-screen,.image-one-screen,.video-config-card{border-color:#087ca02e;background:linear-gradient(145deg,#ecfeffb8,#fffffff0),repeating-linear-gradient(90deg,rgba(8,145,178,.035) 0 1px,transparent 1px 28px);box-shadow:0 12px 26px #204e761a,var(--surface-highlight)}.choice-primary,.video-path-card.active,.image-model-card.selected,.image-model-card.featured,.video-chip.active,.motion-segment.active,.tariff-card.popular,.upload-box.uploading{border-color:#087ca047;background:linear-gradient(135deg,#e0f7ffe6,#fffffff5),#fff;box-shadow:0 12px 26px #087ca01a,var(--surface-highlight)}.choice-icon,.video-path-card span,.video-model-icon,.image-model-icon,.scenario-icon,.motion-option-title span,.uploaded-media-item span,.upload-box span,.generation-loader span,.result-icon,.debug-icon,.empty-icon{background:#e0f7ff;color:var(--studio-primary)}.segmented-tabs button,.video-chip,.motion-segment,.image-model-more,.inline-action-head .ghost-button,.voice-small-action,.secondary-button,.load-more-button{min-height:44px;border-color:#7d97bc2e;border-radius:6px;background:#ffffffe6;color:var(--studio-muted);box-shadow:var(--surface-highlight);touch-action:manipulation}.segmented-tabs button.active,.video-chip.active,.motion-segment.active,.image-model-more,.inline-action-head .ghost-button,.voice-small-action:not(:disabled),.secondary-button:not(:disabled),.load-more-button:not(:disabled){border-color:#087ca042;background:#e0f7ff;color:var(--studio-primary)}.primary-button,.tariff-side button{border:1px solid rgba(8,124,160,.24);background:var(--studio-primary);box-shadow:0 12px 24px #087ca02e;color:#fff}.choice-card:not(:disabled):hover,.option-pill:hover,.video-path-card:hover,.video-model-card:hover,.image-model-card:hover,.creation-card:hover{border-color:#087ca042;box-shadow:0 10px 22px #324d841a,var(--surface-highlight);transform:translateY(-1px)}input:not([type=checkbox]):not([type=range]),select,textarea,.image-model-search,.select-field select{min-width:0;border-color:#7d97bc33;border-radius:8px;background:#fffffff0;color:var(--studio-ink);box-shadow:var(--surface-highlight)}input:not([type=checkbox]):not([type=range]):focus,select:focus,textarea:focus,.image-model-search:focus{border-color:#087ca073;box-shadow:0 0 0 4px #087ca014,0 10px 22px #324d8414}.switch-row input,.switch-field input{accent-color:var(--studio-primary)}.switch-row input:checked{border-color:#087ca073;background:var(--studio-primary)}.music-one-screen input[type=range],.voice-one-screen input[type=range],.video-range-field input[type=range],.extend-time-control>input[type=range],.extend-weight-control input[type=range]{-moz-appearance:none;appearance:none;-webkit-appearance:none;display:block;margin:0;padding:0;width:100%;min-height:44px;height:44px;border:0;border-radius:0;background:var(--form-accent-gradient) left center / var(--range-fill, 0%) 8px no-repeat,linear-gradient(var(--form-accent-track),var(--form-accent-track)) left center / 100% 8px no-repeat;outline:none;accent-color:var(--form-accent)}.music-one-screen input[type=range]::-webkit-slider-runnable-track,.voice-one-screen input[type=range]::-webkit-slider-runnable-track,.video-range-field input[type=range]::-webkit-slider-runnable-track,.extend-time-control>input[type=range]::-webkit-slider-runnable-track,.extend-weight-control input[type=range]::-webkit-slider-runnable-track{height:8px;background:transparent}.music-one-screen input[type=range]::-webkit-slider-thumb,.voice-one-screen input[type=range]::-webkit-slider-thumb,.video-range-field input[type=range]::-webkit-slider-thumb,.extend-time-control>input[type=range]::-webkit-slider-thumb,.extend-weight-control input[type=range]::-webkit-slider-thumb{-moz-appearance:none;appearance:none;-webkit-appearance:none;box-sizing:border-box;width:24px;height:24px;margin-top:-8px;border:3px solid #fff;border-radius:50%;background:var(--form-accent);box-shadow:0 3px 10px #087ca033}.music-one-screen input[type=range]::-moz-range-track,.voice-one-screen input[type=range]::-moz-range-track,.video-range-field input[type=range]::-moz-range-track,.extend-time-control>input[type=range]::-moz-range-track,.extend-weight-control input[type=range]::-moz-range-track{height:8px;background:transparent}.music-one-screen input[type=range]::-moz-range-thumb,.voice-one-screen input[type=range]::-moz-range-thumb,.video-range-field input[type=range]::-moz-range-thumb,.extend-time-control>input[type=range]::-moz-range-thumb,.extend-weight-control input[type=range]::-moz-range-thumb{width:18px;height:18px;border:3px solid #fff;border-radius:50%;background:var(--form-accent);box-shadow:0 3px 10px #087ca033}.music-one-screen input[type=range]:focus-visible,.voice-one-screen input[type=range]:focus-visible,.video-range-field input[type=range]:focus-visible,.extend-time-control>input[type=range]:focus-visible,.extend-weight-control input[type=range]:focus-visible{outline:3px solid rgba(8,145,178,.2);outline-offset:1px}.video-range-field:has(input[data-video-range-variant=seedance-timeout]) .video-chip-list{grid-template-columns:repeat(2,minmax(0,1fr))}.button-spinner,.upload-spinner,.generation-loader:before{border-color:#087ca02e;border-top-color:var(--studio-primary)}.video-sticky-cta{position:sticky;right:auto;bottom:0;left:auto;z-index:5;margin-top:12px;border-color:#7d97bc2e;background:#fffffff5;box-shadow:0 -10px 28px #204e761f,var(--surface-highlight)}.scenario-panel,.alert-popup{border-radius:8px;border-color:#7d97bc2e}.alert-icon{background:#e0f7ff;color:var(--studio-primary)}.field-label,.select-field span,.video-chip-group h3,.motion-option-title h3,.range-head span,.inline-action-head,.voice-section-head h2{color:var(--studio-muted)}.motion-option-title,.upload-status.uploading,.uploaded-media-item small,.text-link,.result-variant-title,.work-open-icon,.work-menu-button,.refresh-button,.secondary-button{color:var(--studio-primary)}.result-cover{background:linear-gradient(135deg,#e0f7fff5,#e8f8efeb),repeating-linear-gradient(90deg,rgba(8,145,178,.06) 0 1px,transparent 1px 30px);color:var(--studio-primary)}.result-variant,.generation-list li,.upload-status{border-color:#7d97bc2e;background:#ffffffe6}.generation-state{margin:22px 0 14px;padding:18px 14px}.generation-loader{background:#e0f7ff;box-shadow:inset 0 0 0 1px #087ca01f}.generation-loader:before{border-color:#087ca029;border-top-color:var(--studio-primary)}.generation-loader span{background:#fff;color:var(--studio-primary)}.work-item-clickable:hover,.tariff-card:hover,.uploaded-media-item:hover{border-color:#087ca042}.image-model-card-fast .image-model-icon,.image-model-card-pro .image-model-icon,.image-model-card-premium .image-model-icon,.image-model-card-creative .image-model-icon,.image-model-card-default .image-model-icon{background:#e0f7ff;color:var(--studio-primary)}.image-model-card.selected .image-model-check{background:var(--studio-primary);color:#fff}@media(max-width:420px){.shell{padding:0}.hero-card{max-height:100vh;min-height:100vh;border:0;border-radius:0}.bottom-nav{padding-bottom:max(8px,min(12px,env(safe-area-inset-bottom)))}}.video-path-card.active{border-color:#087ca047;background:radial-gradient(circle at 0% 0%,rgba(8,145,178,.1),transparent 8rem),linear-gradient(135deg,#ecfeffd1,#fffffff5);box-shadow:0 12px 26px #087ca01a,var(--surface-highlight);color:var(--studio-ink)}.video-path-card:hover,.video-model-card:hover,.image-model-card:hover{border-color:#087ca042;box-shadow:0 10px 22px #324d841a,var(--surface-highlight)}.video-path-card{color:var(--studio-muted)}.video-model-section h2,.video-model-card,.image-model-card{color:var(--studio-ink)}.video-model-icon,.image-model-icon,.image-model-card-lite .image-model-icon,.image-model-card-base .image-model-icon,.image-model-card-pro .image-model-icon{background:#e0f7ff;color:var(--studio-primary)}.video-model-content small,.image-model-content small{color:var(--studio-muted)}.video-model-content span,.image-model-cost,.image-model-search-wrap{color:var(--studio-primary)}.image-model-search-wrap{border-color:#7d97bc33;box-shadow:var(--surface-highlight)}.image-model-card.selected{border-color:#087ca047;background:linear-gradient(135deg,#e0f7ffe6,#fffffff5),#fff;box-shadow:0 12px 26px #087ca01a,var(--surface-highlight)}.image-model-check{background:#087ca01c;color:var(--studio-primary)}:root{color:#302342;background:#fdfcfe;--studio-ink: #302342;--studio-muted: #716580;--studio-primary: #823de0;--studio-cyan: #74d9f5;--studio-mint: #e56bd9;--studio-rose: #e56bd9;--studio-surface: #ffffffeb;--form-accent: #823de0;--form-accent-track: #e9d9f5;--form-accent-gradient: linear-gradient(90deg, #823de0, #d367d9);--surface-shadow: 0 14px 34px #5e328516;--surface-shadow-strong: 0 18px 44px #5e328526}body{background:radial-gradient(ellipse at 14% 11%,#d8baf533,transparent 34%),radial-gradient(ellipse at 92% 78%,#b9e9f23b,transparent 33%),#fdfcfe}.hero-card{border-color:#e3d5ee;background:linear-gradient(155deg,#ffffffed,#faf7fdf2 65%,#f5edfbd9);box-shadow:0 24px 80px #61348324,inset 0 1px #fff}.top-bar,.bottom-nav{color:var(--studio-ink)}.bottom-nav{border-color:#e5d7ee;background:#ffffffef;box-shadow:0 13px 32px #5e32851e,inset 0 1px #fff}.bottom-nav button{color:#716580}.bottom-nav .bottom-nav-create{color:#fff}.bottom-nav button.active,.section-heading button,.inline-link{color:#823de0}.home-user-avatar{border-color:#d8c1ec;background:linear-gradient(135deg,#f3e6fc,#e4f4fc)}.home-quick-start{margin:2px 0 19px}.home-quick-start h2,.home-all-formats-title{margin:0;color:#302342;font-size:15px;font-weight:800}.home-quick-start p{margin:4px 0 11px;color:#716580;font-size:12px;line-height:1.45}.home-quick-list{display:grid;gap:8px}.home-quick-card{display:grid;grid-template-columns:36px minmax(0,1fr) 18px;align-items:center;gap:11px;width:100%;min-height:62px;padding:10px 12px;border:1px solid #dfc7ec;border-radius:9px;background:linear-gradient(130deg,#f2e3fbee,#ffffffed 72%);box-shadow:inset 0 1px #fff,0 8px 21px #63348119;color:#302342;text-align:left;cursor:pointer}.home-quick-card:hover,.home-quick-card:focus-visible{border-color:#a76bd8;box-shadow:inset 0 1px #fff,0 10px 25px #7131c929}.home-quick-card strong,.home-quick-card small{display:block}.home-quick-card strong{font-size:13px;line-height:1.3}.home-quick-card small{margin-top:3px;color:#716580;font-size:11px;line-height:1.35}.home-quick-card>.app-icon{width:17px;height:17px;color:#826d95}.home-quick-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:8px;background:#e8d4f7;color:#7b36c5}.home-quick-icon .app-icon{width:20px;height:20px}.home-all-formats-title{padding:0 1px 2px}.creation-card,.history-item,.profile-card,.form-card,.summary-card,.settings-card,.choice-card,.option-pill,.video-path-card,.video-model-card,.image-model-card,.voice-speaker-card,.voice-turn-card,.result-card,.work-detail-card,.work-detail-media,.generation-state,.video-range-field,.upload-box,.uploaded-media-item,.switch-row,.switch-field,.empty-card,.notice-card{border-color:#e6d9f0;background:linear-gradient(145deg,#ffffffed,#f8f2fce8);box-shadow:0 8px 20px #57317112,inset 0 1px #fff}.creation-card:hover,.choice-card:hover,.option-pill:hover,.video-path-card:hover,.video-model-card:hover,.image-model-card:hover,.work-item-clickable:hover,.tariff-card:hover,.uploaded-media-item:hover{border-color:#bd90e8;box-shadow:0 10px 26px #743db32b,inset 0 1px #fff}.creation-green .creation-icon,.creation-blue .creation-icon{background:#e6f3fb;color:#5a4fb0}.creation-purple .creation-icon{background:#e9d9fb;color:#7131c9}.creation-pink .creation-icon{background:#f9e3f4;color:#9b3aa8}.music-one-screen,.image-one-screen,.video-config-card{border-color:#dfcbea;background:radial-gradient(circle at 90% 0%,#eecdf241,transparent 48%),linear-gradient(145deg,#faf5fdeb,#ffffffed);box-shadow:0 12px 28px #59317b1a,inset 0 1px #fff}.choice-primary,.video-path-card.active,.image-model-card.selected,.image-model-card.featured,.video-chip.active,.motion-segment.active,.tariff-card.popular,.upload-box.uploading{border-color:#ae7ddd;background:linear-gradient(135deg,#f2e5fd,#fffe 75%);box-shadow:0 10px 24px #7131c920,inset 0 1px #fff}.choice-icon,.video-path-card span,.video-model-icon,.image-model-icon,.scenario-icon,.motion-option-title span,.uploaded-media-item span,.upload-box span,.generation-loader span,.result-icon,.debug-icon,.empty-icon,.image-model-card-lite .image-model-icon,.image-model-card-base .image-model-icon,.image-model-card-pro .image-model-icon,.image-model-card-fast .image-model-icon,.image-model-card-premium .image-model-icon,.image-model-card-creative .image-model-icon,.image-model-card-default .image-model-icon{background:#eee1fa;color:#823de0}.primary-button,.tariff-side button{border:1px solid #ffffff87;background:radial-gradient(ellipse at 85% 0%,#e68aef91,transparent 55%),linear-gradient(180deg,#a457df,#813bcc 55%,#6731b9);color:#fff;box-shadow:inset 0 1px 1px #ffffff9c,0 10px 24px #7131c942}.primary-button:not(:disabled):hover,.tariff-side button:not(:disabled):hover{filter:brightness(1.06)}.primary-button:disabled{background:#e4dce9;color:#766b83;box-shadow:none}.segmented-tabs button.active,.video-chip.active,.motion-segment.active,.image-model-more,.inline-action-head .ghost-button,.voice-small-action:not(:disabled),.secondary-button:not(:disabled),.load-more-button:not(:disabled){border-color:#d2b3e9;background:#f0e4fa;color:#7131c9}textarea,input,select{accent-color:#823de0}textarea:focus,input:focus-visible,select:focus-visible{border-color:#ab73dd;box-shadow:0 0 0 4px #823de01f}audio{border-color:#dac5eb;background:#f3eafb;box-shadow:inset 0 1px #fff,0 7px 18px #7131c916}audio:focus-visible{outline-color:#a772db}audio::-webkit-media-controls-panel{background:linear-gradient(90deg,#f2e6fb,#f8effa)}audio::-webkit-media-controls-play-button{background-color:#a777d329}.generation-loader{background:#f1e6fb;box-shadow:inset 0 0 0 1px #ac7cdb38}.generation-loader:before{border-color:#ac7cdb2e;border-top-color:#823de0}.generation-next-step{margin:4px 0 0;color:#716580;font-size:12px;line-height:1.5;text-align:center}.generation-next-step+.primary-button+.secondary-button{width:100%;margin-top:8px}.profile-avatar{background:linear-gradient(135deg,#823de0,#d367d9)}.profile-balance{background:#f0e7f9;color:#7131c9}.balance-card{border-color:#dec8eb;background:radial-gradient(circle at 93% 8%,#ecd5f5a6,transparent 40%),linear-gradient(135deg,#faf3fe,#ffffffed);box-shadow:0 10px 26px #62368920,inset 0 1px #fff}.balance-gem{background:#eee0fa;color:#823de0}@media(prefers-reduced-transparency:reduce){.hero-card,.bottom-nav,.creation-card,.choice-card,.form-card,.summary-card{background:#fcfaff;-webkit-backdrop-filter:none;backdrop-filter:none}}.generation-state.generation-state-mascot{margin:8px 0 16px;padding:12px 8px 20px;border:0;background:transparent;box-shadow:none}.generation-mascot{position:relative;width:min(100%,248px);aspect-ratio:1;margin:0 auto 12px}.generation-mascot img{display:block;width:100%;height:100%;object-fit:contain}.generation-mascot-working{animation:klepa-breathe 4.8s ease-in-out infinite;transform-origin:50% 85%}.klepa-eye-overlay{overflow:visible;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.klepa-eye{transform-box:fill-box;transform-origin:center;animation:klepa-eye-wonder 4.8s ease-in-out infinite}.klepa-cinema-trail{animation:klepa-projector-glow 3.6s ease-in-out infinite}.klepa-film-frame{transform-box:fill-box;transform-origin:center;opacity:0;animation:klepa-film-flow 3.6s ease-out infinite}@keyframes klepa-film-flow{0%{opacity:0;transform:translate(0) scale(.65)}20%{opacity:1}75%{opacity:.8}to{opacity:0;transform:translate(72px) scale(1.35)}}@keyframes klepa-projector-glow{0%,to{opacity:.8}50%{opacity:1}}.klepa-lens-ring ellipse:last-child{animation:klepa-lens-turn 4s linear infinite}@keyframes klepa-lens-turn{0%{stroke-dashoffset:0}to{stroke-dashoffset:-162}}.klepa-eye-glow{opacity:.22;filter:blur(7px)}.klepa-eye-sparkle,.klepa-eye-glint{transform-box:fill-box;transform-origin:center;animation:klepa-eye-shine 2.8s ease-in-out infinite}.klepa-eye-1 .klepa-eye-sparkle{animation-delay:.7s}.klepa-eye-glint{animation-delay:1.4s}@keyframes klepa-eye-wonder{0%,to{transform:scale(1)}50%{transform:scale(1.16)}}@keyframes klepa-eye-shine{0%,to{opacity:.35;transform:scale(.65)}45%,60%{opacity:1;transform:scale(1.1)}}.generation-state-mascot h1{max-width:300px;line-height:1.2}.generation-state-mascot p{max-width:280px;line-height:1.6}.generation-reassurance{max-width:300px;margin:0 auto 18px;line-height:1.6}@keyframes klepa-breathe{0%,to{transform:translateY(0) rotate(-.4deg)}50%{transform:translateY(-3px) rotate(.4deg)}}@media(max-height:700px){.generation-mascot{width:min(100%,190px);margin-bottom:8px}.generation-state.generation-state-mascot{margin-bottom:8px;padding-bottom:12px}}@media(prefers-reduced-motion:reduce){.generation-mascot-working,.klepa-eye,.klepa-eye-sparkle,.klepa-eye-glint,.klepa-lens-ring ellipse:last-child{animation:none}.klepa-cinema-trail{animation:none;opacity:.5}.klepa-film-frame{animation:none;opacity:0}}.home-greeting:has(.home-mascot:not([hidden])){grid-template-columns:44px minmax(0,1fr) 80px;gap:10px}.home-greeting__copy{min-width:0}.home-greeting__copy h1{overflow-wrap:anywhere}.home-mascot{display:grid;align-items:center;width:80px;height:76px;padding:0;border:0;border-radius:16px;background:transparent;box-shadow:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.home-mascot[hidden]{display:none}.home-mascot img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:50% 75%}.home-mascot-art{position:relative;display:block;width:100%;height:100%;transform-origin:50% 75%}.home-mascot-eyes{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.home-mascot[data-emotion=gaze] .home-mascot-gaze{animation:home-klepa-look-around 2.4s ease-in-out}.home-mascot-eyelid{transform-box:fill-box;transform-origin:50% 0%;transform:scaleY(0)}.home-mascot[data-emotion=blink] .home-mascot-eyelid{animation:home-klepa-blink .6s ease-in-out}.home-mascot-closed-eye{opacity:0}.home-mascot[data-emotion=blink] .home-mascot-closed-eye{animation:home-klepa-closed-eye .6s ease-in-out}@keyframes home-klepa-blink{0%,to{transform:scaleY(0)}35%,65%{transform:scaleY(1)}}@keyframes home-klepa-closed-eye{0%,25%,75%,to{opacity:0}35%,65%{opacity:1}}.home-mascot-smile{opacity:0}.home-mascot[data-emotion=smile] .home-mascot-smile{animation:home-klepa-smile 2.8s ease-in-out}.home-mascot-tongue{transform-box:fill-box;transform-origin:50% 0%}.home-mascot[data-emotion=smile] .home-mascot-tongue{animation:home-klepa-tongue 2.8s ease-in-out}@keyframes home-klepa-smile{0%,to{opacity:0}10%,90%{opacity:1}}@keyframes home-klepa-tongue{0%,10%,90%,to{opacity:1;transform:scaleY(1)}35%,65%{opacity:0;transform:scaleY(0)}}@keyframes home-klepa-look-around{0%,to{transform:translate(0)}20%,40%{transform:translate(-10px,-2px)}60%,80%{transform:translate(10px,1px)}}@media(prefers-reduced-motion:reduce){.home-mascot[data-emotion] .home-mascot-gaze,.home-mascot[data-emotion] .home-mascot-smile,.home-mascot[data-emotion] .home-mascot-eyelid,.home-mascot[data-emotion] .home-mascot-closed-eye,.home-mascot[data-emotion] .home-mascot-tongue{animation:none}}.home-mascot:focus-visible{outline:2px solid #823de0;outline-offset:3px}@media(max-width:360px){.home-greeting:has(.home-mascot:not([hidden])){grid-template-columns:40px minmax(0,1fr) 64px;gap:8px}.home-mascot{width:64px;height:64px}}.checkout-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));background:#2317357a;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);overflow-y:auto}.checkout-dialog{width:min(440px,100%);max-height:100%;overflow-y:auto;padding:24px;background:linear-gradient(155deg,#fff 28%,#f8f1fd);color:#302342;border:1px solid rgba(255,255,255,.9);border-radius:26px;box-shadow:0 24px 80px #30234240;outline:none;overscroll-behavior:contain}.checkout-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.checkout-eyebrow{font-size:12px;color:#716580}.checkout-header h2{font-size:24px;margin:4px 0 0;letter-spacing:-.04em}.checkout-close{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border:1px solid #e6d9f0;border-radius:50%;background:#f4ebfa;color:#716580;cursor:pointer}.checkout-package{display:flex;gap:12px;align-items:center;padding:16px;background:#f1e6fa;border:1px solid #e6d9f0;border-radius:16px;margin-bottom:22px}.checkout-package-icon{color:#823de0}.checkout-package strong{display:block;font-size:20px}.checkout-package div>span{display:block;margin-top:3px;font-size:13px;color:#716580}.checkout-field{display:block;font-size:14px;font-weight:650;margin:18px 0 8px}.checkout-dialog input,.checkout-dialog select{width:100%;min-height:50px;padding:12px 14px;border:1px solid #d9c7e9;border-radius:14px;background:#ffffffd9;color:#302342;font:inherit;font-size:16px;box-sizing:border-box}.checkout-field input,.checkout-field select{display:block;margin-top:8px}.checkout-method{padding:12px 14px;margin-top:8px;font-weight:400;border:1px solid #e6d9f0;border-radius:14px;background:#fff;font-size:16px}.checkout-dialog select:disabled{opacity:1;color:#302342}.checkout-optional{font-weight:400;color:#716580;margin-left:6px}.checkout-promo-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.checkout-promo-row button{margin:0;min-height:50px;padding:10px 14px;font-size:14px}.checkout-hint{font-size:12px;line-height:1.5;color:#716580;margin:7px 0 0}.checkout-legal a{color:inherit;text-decoration:underline;text-underline-offset:3px}.checkout-feedback{font-size:13px;line-height:1.5}.checkout-error{color:#ad2651;margin:10px 0 0}.checkout-success{color:#21754f;margin:10px 0 0}.checkout-remove{min-height:44px;padding:8px 0;color:#6731b9;background:transparent;border:0;font:inherit;text-decoration:underline;cursor:pointer}.checkout-summary{display:grid;gap:8px;border-top:1px solid #e6d9f0;padding-top:16px;margin:20px 0}.checkout-summary>div{display:flex;justify-content:space-between;gap:12px;font-size:14px}.checkout-summary .checkout-total{font-size:18px;align-items:center}.checkout-total strong{font-size:25px;white-space:nowrap}.checkout-discount{color:#6731b9}.checkout-pay{width:100%;min-height:52px;margin:0}a.checkout-pay{display:flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box;text-align:center}.checkout-footer{text-align:center;margin-top:10px}.checkout-dialog a:focus-visible,.checkout-dialog button:focus-visible,.checkout-dialog input:focus-visible,.checkout-dialog select:focus-visible{outline:3px solid #823de0;outline-offset:2px}.checkout-dialog button:active:not(:disabled){transform:translateY(1px)}@media(max-width:480px){.checkout-backdrop{align-items:flex-end;padding-left:8px;padding-right:8px}.checkout-dialog{padding:20px}}@media(max-height:650px){.checkout-backdrop{align-items:flex-start}}.home-quick-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.home-quick-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;padding:6px 0;min-height:76px;text-align:center;border:0;border-radius:12px;background:transparent;box-shadow:none}.home-quick-card:hover,.home-quick-card:focus-visible{background:#f4eafb;box-shadow:none}.home-quick-card strong{display:block;font-size:12px;font-weight:600;line-height:1.3}.home-quick-card .home-quick-icon{width:44px;height:44px;flex-shrink:0;border-radius:14px;background:linear-gradient(135deg,#eee1fa,#f9e3f4)}.home-quick-card .home-quick-icon .app-icon{width:23px;height:23px}.home-banner-slot{width:100%;max-width:180px;height:24px;justify-self:center;border-radius:999px;background:transparent}.template-section{margin:0 0 28px}.template-section__heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.template-section h2{margin:0;font-size:20px;letter-spacing:-.025em}.template-category-link{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:44px;min-width:44px;color:#823de0;font-size:13px;font-weight:600;text-decoration:none}.template-category-link:hover{text-decoration:underline}.template-section__heading svg{width:16px;height:16px}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.template-card{position:relative;display:block;isolation:isolate;overflow:hidden;aspect-ratio:3 / 4;padding:0;width:100%;border:1px solid #e6d9f0;border-radius:18px;background:#eee1fa;text-align:left;color:#fff}.template-card img,.template-card video{width:100%;height:100%;object-fit:cover;display:block}.template-card:after{content:"";position:absolute;z-index:0;top:35%;right:0;bottom:0;left:0;background:linear-gradient(transparent,#221134e0);pointer-events:none}.template-card__kind{position:absolute;top:10px;left:10px;display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:#302342b3}.template-card__kind svg{width:18px;height:18px}.template-card__footer{position:absolute;z-index:1;left:12px;right:12px;bottom:14px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.template-card__price{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#302342cc;font-size:12px;font-weight:600}.template-card__price svg{width:14px;height:14px}.template-card strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:15px;line-height:1.3;overflow-wrap:anywhere}.template-card:active{transform:scale(.98)}.template-card:focus-visible,.home-quick-card:focus-visible,.home-all-button:focus-visible{outline:3px solid #823de0;outline-offset:3px}.template-more{width:100%;margin-top:16px;min-height:44px}.template-detail h1{overflow-wrap:anywhere}.template-detail__preview{overflow:hidden;border-radius:18px;background:#eee1fa}.template-detail__preview img,.template-detail__preview video{display:block;width:100%;max-height:430px;object-fit:contain}.template-detail__cost{color:#823de0;font-weight:600}.template-detail__note{font-size:12px;color:#716580;text-align:center}.template-detail .primary-button{width:100%}.template-video-source{padding:14px;margin-bottom:16px;border:1px solid #e6d9f0;border-radius:18px;background:#ffffffb3}.template-video-source h2{margin:0 0 12px;font-size:16px}.template-video-source video{display:block;width:100%;max-height:260px;border-radius:12px}.template-video-source p{font-size:13px}@media(max-width:340px){.home-quick-list{gap:4px}.template-grid{gap:8px}}.video-model-content .model-price,.image-model-cost .model-price{display:inline-flex;align-items:center;gap:4px;color:var(--studio-ink);white-space:nowrap}.model-price .app-icon{width:16px;height:16px;color:var(--studio-primary);flex-shrink:0}.video-model-content .model-price-unit{color:var(--studio-muted);font-weight:500}.media-option-group{grid-column:1 / -1;min-width:0;margin:0}.media-option-group+.media-option-group{margin-top:8px}.media-option-group h3{margin:0 0 10px;color:#716580;font-size:14px;font-weight:800}.media-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.media-option{min-width:0;min-height:44px;padding:10px 4px;border:1px solid #e1e6f0;border-radius:8px;background:#fffc;color:#716580;font:inherit;font-size:13px;font-weight:800;overflow-wrap:anywhere;cursor:pointer;transition:background-color .16s ease,border-color .16s ease}.media-option.active{border-color:#cda9ed;background:#efe3f8;color:#7530d2;box-shadow:inset 0 1px #fff}.media-option--long{font-size:clamp(9px,2.6vw,11px);white-space:nowrap}.media-option-group--aspect .media-option-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.media-option-group--aspect .media-option{padding:6px 4px;font-size:12px}.media-option-group--aspect .media-option--long{grid-column:span 2;font-size:12px}.media-option:active{background:#e7d7f4}.media-option:focus-visible{outline:2px solid #823de0;outline-offset:2px}@media(prefers-reduced-motion:reduce){.media-option{transition:none}}html,body{touch-action:pan-x pan-y;-webkit-text-size-adjust:100%;text-size-adjust:100%}@media(max-width:767px),(pointer:coarse){#app input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]):not([type=button]):not([type=submit]),#app textarea,#app select{font-size:16px!important}}.support-entry,.support-ticket{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:16px;margin:16px 0;border:1px solid #e4d7f1;border-radius:12px;background:#faf7fe;color:#302244;text-align:left;font:inherit}.support-entry small,.support-ticket small{display:block;margin-top:5px;color:#746780;font-size:13px}.support-form{display:grid;gap:16px;margin:20px 0}.support-form select,.support-form textarea{box-sizing:border-box;width:100%;font:inherit;font-size:16px;border:1px solid #dce2ed;border-radius:10px;padding:12px;background:#fff;color:#302244}.support-form textarea{resize:vertical;min-height:120px}.support-upload{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.support-upload input{font-size:14px;max-width:100%}#support-file-list{display:grid;gap:8px;overflow-wrap:anywhere}#support-file-list button{min-width:44px;min-height:44px;border:0;background:transparent;color:#7c35dc;font-size:24px}.support-messages{display:grid;gap:16px;margin:20px 0}.support-message{padding:16px;border:1px solid #e4d7f1;border-radius:12px;background:#fff;overflow-wrap:anywhere}.support-message-user{background:#f3eafa}.support-message small,.support-status{color:#746780}.support-message p{white-space:pre-wrap;margin:8px 0;line-height:1.5}.support-back,.support-attachment{padding:10px 0;min-height:44px;background:transparent;border:0;color:#8035dd;font:inherit;text-align:left}.support-attachment{display:block}.support-badge{background:#eee2fa;color:#722ac8;border-radius:8px;padding:5px 8px;font-size:12px}.support-image-dialog{max-width:calc(100vw - 32px);max-height:90vh;border:1px solid #e4d7f1;border-radius:12px;padding:12px}.support-image-dialog img{display:block;max-width:100%;max-height:72vh;object-fit:contain}.support-image-dialog::backdrop{background:#1e1428a6}
