.preview-foot{flex-wrap:wrap;gap:12px}.preview-foot #result-download{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:10px;background:var(--lime);color:#152006;font-weight:700;text-decoration:none}.preview-foot #result-download:focus-visible{outline:2px solid #fff;outline-offset:3px}@media(max-width:680px){.preview-foot #result-download{flex:1 1 100%;width:100%}}body{font-size:16px}label,.label,small,.eyebrow,.cost,.notice,.preview-foot,nav button,.sub{font-size:14px}button,input,select,textarea{font-size:16px}header a,#download{color:var(--lime);text-decoration:none}.scene:after{display:none}#result-media{position:absolute;inset:0;background:#080b08;display:grid;place-items:center;z-index:2}#result-media img,#result-media video{width:100%;height:100%;max-height:650px;object-fit:contain}#generation-error{color:#ffb4a5}.login-link{display:block;padding:14px;background:var(--lime);color:#152006;text-decoration:none;border-radius:8px;margin:18px 0}.templates .template{padding:20px}.templates .template strong,.templates .template small{margin:0 0 10px}.cost{display:block}.pill{font-size:14px}#pending-actions{display:flex;gap:10px;flex-wrap:wrap}.card video{width:100%;height:190px;object-fit:contain}.status-error{color:#ffb4a5}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;margin:15px 0}table{border-collapse:collapse;width:100%;font-size:14px;min-width:550px}th,td{text-align:left;padding:13px;border-bottom:1px solid var(--line)}th{color:var(--muted)}.admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stat{padding:20px;border:1px solid var(--line);border-radius:12px}.stat b{font-size:32px;display:block;color:var(--lime);margin-top:12px}.admin-section{margin-top:28px}.admin-section form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.admin-section form>div{flex:1;min-width:200px}.admin-section label{margin:12px 0 8px}.admin-section button{white-space:nowrap}.provider-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px}.provider-card{padding:20px;border:1px solid var(--line);border-radius:12px}.provider-card form{display:block}.provider-card button{margin-top:12px}.admin-error{color:#ffb4a5}.admin-nav{display:flex;gap:10px;flex-wrap:wrap}.admin-nav a{color:var(--lime)}@media(max-width:680px){.admin-grid,.provider-cards{grid-template-columns:1fr}.scene{min-height:360px}header .balance{width:100%}}
 .generation-loader{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:32px;text-align:center;background:radial-gradient(ellipse at 50% 40%,#26391c 0%,#10190f 55%,#090e09 100%);overflow:hidden}.generation-orbit{position:relative;width:142px;height:142px;display:grid;place-items:center;margin-bottom:8px}.orbit-ring{position:absolute;inset:0;border:1px solid #c5ff6325;border-top:2px solid var(--lime);border-right:2px solid #c5ff6390;border-radius:50%;animation:texnogen-orbit 3s linear infinite;box-shadow:0 0 35px #c5ff6310}.orbit-ring-inner{inset:16px;border-top-color:#c5ff6340;border-right-color:var(--lime);animation-direction:reverse;animation-duration:4s}.generation-brand{transform:scale(1.4);animation:texnogen-glow 2.8s ease-in-out infinite}.generation-eyebrow{font-size:10px;letter-spacing:3px;color:var(--lime)}.generation-loader h2{font-size:clamp(22px,3vw,30px);font-weight:500;letter-spacing:-.7px;margin:0}.generation-loader p{max-width:350px;line-height:1.7;font-size:13px;color:#b1bca9;margin:0}.generation-motion{height:3px;width:150px;border-radius:3px;background:#c5ff6318;overflow:hidden;margin-top:5px}.generation-motion span{display:block;width:45%;height:100%;border-radius:3px;background:var(--lime);animation:texnogen-scan 2s ease-in-out infinite}.generation-stage{font-size:11px;color:#a8b69e;letter-spacing:1px}@keyframes texnogen-orbit{to{transform:rotate(360deg)}}@keyframes texnogen-glow{50%{filter:drop-shadow(0 0 16px #c5ff6366);transform:scale(1.55)}}@keyframes texnogen-scan{from{transform:translateX(-110%)}to{transform:translateX(330%)}}@media(prefers-reduced-motion:reduce){.orbit-ring,.generation-brand,.generation-motion span{animation:none}.generation-brand{filter:drop-shadow(0 0 12px #c5ff6340)}}


.image-welcome{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:40px 24px;text-align:center;background:radial-gradient(ellipse at 50% 40%,#203219 0%,#10180e 45%,#0a0f0a 85%)}.image-welcome-grid{position:absolute;inset:0;background-image:linear-gradient(#c5ff6306 1px,transparent 1px),linear-gradient(90deg,#c5ff6306 1px,transparent 1px);background-size:40px 40px;mask-image:radial-gradient(ellipse,#000,transparent 75%);pointer-events:none}.image-welcome-art{width:160px;height:155px;position:relative;margin-bottom:26px;animation:welcome-float 4s ease-in-out infinite}.welcome-frame{position:absolute;width:108px;height:126px;left:26px;top:15px;border:1px solid #c5ff6338;border-radius:18px}.welcome-frame-back{transform:rotate(-14deg) translate(-12px,-3px);background:#c5ff6305}.welcome-frame-front{display:grid;place-items:center;transform:rotate(9deg);background:linear-gradient(145deg,#26351f,#111a10);box-shadow:0 12px 45px #0006,inset 0 1px 0 #c5ff6320}.welcome-frame-front .brand-icon{transform:rotate(-9deg) scale(1.5)}.welcome-spark{position:absolute;width:6px;height:6px;border-radius:50%;background:var(--lime);box-shadow:0 0 15px #c5ff6360}.welcome-spark-one{top:0;right:12px}.welcome-spark-two{left:0;bottom:20px;width:4px;height:4px;opacity:.5}.image-welcome-brand{font-size:11px;letter-spacing:4px;color:var(--lime);position:relative}.image-welcome h2{font-size:clamp(22px,2.5vw,30px);font-weight:500;letter-spacing:-.8px;margin:14px 0 10px;position:relative}.image-welcome p{font-size:13px;line-height:1.7;max-width:320px;margin:0;color:#9caa93;position:relative}.image-welcome-note{font-size:8px;letter-spacing:2px;margin-top:30px;color:#64775b;position:relative}.showing-image-welcome>.scene-info{display:none}@keyframes welcome-float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-14px) rotate(2deg)}}@media(prefers-reduced-motion:reduce){.image-welcome-art{animation:none}}@media(max-width:680px){.image-welcome{padding:28px 20px}.image-welcome-art{transform:scale(.85);margin-bottom:12px}.image-welcome h2{font-size:23px}.image-welcome-note{margin-top:22px;letter-spacing:1.5px}}
.influencer-panel{border:1px solid #35402b;border-radius:18px;padding:18px;margin:18px 0;min-width:0}.influencer-panel h3{margin:0 0 8px}.influencer-panel p{color:#a5ac9d;font-size:14px;line-height:1.6}.influencer-panel>label{display:flex;flex-direction:column;gap:8px;margin:14px 0}.influencer-panel label[hidden]{display:none}.influencer-panel select,.influencer-panel input:not([type=checkbox]){width:100%;max-width:100%;box-sizing:border-box}.influencer-catalog details{border-top:1px solid #35402b;padding:12px 0}.influencer-catalog summary{cursor:pointer;font-size:14px}.influencer-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(85px,1fr));gap:10px;margin-top:12px;max-height:340px;overflow:auto}.influencer-options label{display:flex;flex-direction:column;gap:6px;border:1px solid #35402b;border-radius:10px;padding:8px;min-width:0;font-size:12px;text-transform:none;letter-spacing:normal}.influencer-options label:has(input:checked){border-color:#baff50;background:#26351b}.influencer-options img{width:100%;height:76px;object-fit:contain;border-radius:6px}.influencer-options input[type=checkbox]{width:16px;height:16px;accent-color:#baff50}.influencer-options i{width:100%;height:36px;border-radius:6px}.influencer-items{display:flex;gap:12px;flex-wrap:wrap}.influencer-items>div{position:relative;width:80px;height:80px}.influencer-items img{width:100%;height:100%;object-fit:cover;border-radius:10px}.influencer-items button{position:absolute;right:-6px;top:-6px;padding:2px 8px;border-radius:50%;background:#151d11}.ambient-video::-webkit-media-controls,.ambient-video::-webkit-media-controls-panel,.ambient-video::-webkit-media-controls-start-playback-button,.ambient-video::-webkit-media-controls-play-button{display:none!important;-webkit-appearance:none}.ambient-video{pointer-events:none}.home-template-settings{border:1px solid #35452e;border-radius:16px;padding:22px;margin:22px 0;background:#121a10}.home-template-settings>label{display:flex;align-items:center;gap:8px}.home-template-settings input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;accent-color:#beff51}.home-template-models{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:20px 0}.home-template-models label{display:flex;align-items:center;gap:12px;border:1px solid #34432e;padding:14px;border-radius:12px}.home-template-models span{display:flex;flex-direction:column;gap:5px;min-width:0}.home-template-models small{color:#a2ad98}
.tool-settings{display:grid;gap:10px;margin:2px 0 12px;padding:14px;border:1px solid #2f3d25;border-radius:14px;background:#11160e}
.tool-settings.hidden{display:none}
.tool-settings .tool-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;letter-spacing:.06em;color:#c5ff63}
.tool-settings .tool-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.tool-settings label{display:grid;gap:6px;margin:0;font-size:12px;color:#bccbab}
.tool-settings select,.tool-settings input[type=range]{width:100%;margin:0}
.tool-settings input[type=range],.tool-settings input[type=checkbox]{accent-color:#c5ff63}
.tool-settings .tool-hint{margin:0;font-size:12px;line-height:1.5;color:#9fb08c}
.tool-settings .tool-hint.warn{color:#ffcf7a}
.tool-settings .tool-check{display:grid;grid-template-columns:18px minmax(0,1fr);justify-content:start;align-items:start;gap:10px;font-size:13px;line-height:1.45;letter-spacing:normal;text-transform:none;color:#d7efbc;cursor:pointer}
.tool-settings .tool-check input{width:18px;height:18px;margin:1px 0 0;padding:0}
.tool-settings .tool-file{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));align-items:center;gap:8px}
.tool-settings .tool-file select{min-width:0}
.tool-settings .tool-file button,.tool-settings .tool-actions button{min-height:36px;padding:8px 12px;border:1px solid #445b31;border-radius:10px;background:#1b2615;color:#d7efbc;font:inherit;font-size:12px;cursor:pointer}
.tool-settings .tool-file button:disabled,.tool-settings .tool-actions button:disabled{opacity:.5;cursor:default}
.tool-settings audio{width:100%;height:36px}
.tool-settings .tool-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tool-mask{position:relative;border-radius:12px;overflow:hidden;background:#090b08;touch-action:none}
.tool-mask canvas{display:block;width:100%;height:auto;cursor:crosshair;touch-action:none}
.tool-mask .tool-mask-empty{padding:22px;text-align:center;font-size:12px;color:#9fb08c}

.header-quick{display:flex;align-items:center;gap:8px;flex-shrink:0}
.header-quick.hidden{display:none}
.header-balance{display:none;align-items:center;gap:6px;height:42px;padding:0 13px;border:1px solid #40552f;border-radius:12px;background:#192315;color:#c5ff63;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap}
.header-balance span{font-size:13px}
@media(max-width:1100px){.header-quick{margin-left:auto}.header-balance{display:inline-flex}#mobile-menu-panel .balance>#credit-balance{display:none!important}#mobile-menu-panel .balance>.language-menu{grid-column:1}}
@media(max-width:440px){body>header:has(.header-quick:not(.hidden)){gap:8px}body>header:has(.header-quick:not(.hidden))>.logo{font-size:18px}body>header:has(.header-quick:not(.hidden)) .sub{letter-spacing:1.4px}.header-quick{gap:6px}.notify-button{width:40px;height:40px}.header-balance{height:40px;padding:0 10px;font-size:13px}}
@media(max-width:370px){body>header:has(.header-quick:not(.hidden))>.logo{font-size:15px}body>header:has(.header-quick:not(.hidden)) .sub{font-size:7.5px;letter-spacing:1px}.header-balance span{display:none}.header-balance{padding:0 9px}}
.notify{position:relative;display:inline-flex}
/* Laptops (1101–1439px): keep the desktop header on one line. */
@media(min-width:1101px) and (max-width:1439px){body>header{gap:10px;padding-inline:20px}body>header>nav{gap:0;flex-wrap:nowrap;flex-shrink:1;min-width:0}body>header>nav>button,body>header>nav>details>summary{padding-left:9px!important;padding-right:9px!important;white-space:nowrap}body>header>.balance{gap:8px;flex-wrap:nowrap;flex-shrink:0}body>header .help-link .help-label{display:none}body>header .help-link{padding-inline:11px}}
@media(min-width:1101px) and (max-width:1259px){body>header>.logo .sub{display:none}}
@media(min-width:1101px) and (max-width:1219px){body>header>.logo{font-size:19px}body>header>nav>button,body>header>nav>details>summary{padding-left:7px!important;padding-right:7px!important}body>header>.balance{gap:6px}}
@media(min-width:1101px) and (max-width:1179px){body>header>nav>button,body>header>nav>details>summary{font-size:13px!important;padding-left:6px!important;padding-right:6px!important}}
.notify.hidden{display:none}
.notify-button{position:relative;display:inline-grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #2f3d25;border-radius:12px;background:#141b10;color:#d7efbc;cursor:pointer}
.notify-button:hover{border-color:#5b7a3c;background:#1b2615}
.notify-button:focus-visible{outline:2px solid #c5ff63;outline-offset:2px}
.notify-button svg{width:20px;height:20px}
.notify-badge{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#c5ff63;color:#0b0d0b;font-size:11px;font-weight:800;line-height:19px;text-align:center}
.notify-badge.hidden{display:none}
.notify-panel{position:absolute;top:calc(100% + 10px);right:0;z-index:60;width:min(380px,calc(100vw - 24px));max-height:min(520px,calc(100vh - 110px));display:flex;flex-direction:column;border:1px solid #2f3d25;border-radius:16px;background:#0f140c;box-shadow:0 18px 48px #000a;overflow:hidden}
.notify-panel.hidden{display:none}
.notify-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid #22301b;font-weight:700;color:#eef7e4}
.notify-head small{font-weight:500;color:#8fa07f}
.notify-list{overflow:auto;padding:6px}
.notify-item{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;width:100%;padding:11px 10px;border:0;border-radius:12px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.notify-item:hover,.notify-item:focus-visible{background:#172012;outline:none}
.notify-item.unread{background:#141e0f}
.notify-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#1d2a15;color:#c5ff63}
.notify-icon.bad{background:#2c1d16;color:#ffb48a}
.notify-icon svg{width:18px;height:18px}
.notify-text strong{display:block;font-size:14px;line-height:1.35;color:#eef7e4}
.notify-text p{margin:3px 0 0;font-size:13px;line-height:1.45;color:#a9b89a;white-space:pre-line;overflow-wrap:anywhere}
.notify-text time{display:block;margin-top:5px;font-size:11px;color:#71826a}
.notify-empty{padding:30px 16px;text-align:center;font-size:13px;color:#8fa07f}
@media(max-width:700px){.notify-panel{position:fixed;top:64px;right:12px;left:12px;width:auto}}

.tg-miniapp-note{position:fixed;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 84px);z-index:80;display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid #3f5530;border-radius:14px;background:#141b10;color:#e6f2d8;font-size:13.5px;line-height:1.45;box-shadow:0 12px 30px #0008}
.tg-miniapp-note button{flex:0 0 auto;min-height:38px;padding:0 14px;border:0;border-radius:10px;background:#c5ff63;color:#132009;font-weight:800;cursor:pointer}

.bottom-nav{display:none}
@media(max-width:1100px){
 body.has-bottom-nav{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
 .bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;gap:2px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #243020;background:rgba(11,14,10,.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transition:transform .2s ease}
 .bottom-nav.keyboard-open,body.help-route .bottom-nav{transform:translateY(110%)}
 .bottom-nav button{display:grid;justify-items:center;gap:4px;min-width:0;min-height:52px;padding:4px 2px;border:0;border-radius:12px;background:none;color:#8d9a83;font:inherit;font-size:11px;font-weight:600;line-height:1.1;cursor:pointer;-webkit-tap-highlight-color:transparent}
 .bottom-nav button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .bottom-nav button svg{width:23px;height:23px}
 .bottom-nav button.active{color:#c5ff63}
 .bottom-nav button,.bottom-nav button:hover,.bottom-nav button.active{background:none!important;border:0!important;box-shadow:none!important}
 .bottom-nav button:focus-visible{outline:2px solid #c5ff63;outline-offset:-2px}
 .bottom-nav .bottom-create{color:#d7efbc}
 .bottom-nav .bottom-create i{display:grid;place-items:center;width:50px;height:50px;margin-top:-22px;border-radius:17px;background:#c5ff63;color:#0b0d0b;box-shadow:0 8px 22px #c5ff6333,0 0 0 5px #0b0e0a}
 .bottom-nav .bottom-create.active{color:#c5ff63}
 .bottom-nav .bottom-create svg{width:25px;height:25px}
 .mobile-nav{display:none!important}
 /* The bottom bar already has Create, so the menu drops Studio; Pricing and Profile/Sign in stay in both. */
 #mobile-menu-panel nav>button:first-child:not([class]){display:none!important}
 /* Admin link: own full-width row above language + Profile, so it no longer pushes Profile to a new line. */
 #mobile-menu-panel .balance>.help-link{order:0}
 #mobile-menu-panel .balance>#admin-link{order:1;grid-column:1/-1!important;justify-self:stretch!important;width:100%!important;box-sizing:border-box;margin:0!important;display:flex!important;align-items:center;justify-content:center;min-height:44px;border:1px solid #303c29;border-radius:14px;color:#c5ff63;font-weight:600;text-decoration:none}
 #mobile-menu-panel .balance>.language-menu{order:2}
 #mobile-menu-panel .balance>#account-button{order:3}
 .toast{bottom:calc(92px + env(safe-area-inset-bottom))}
}

#prompt-master .pm-attach-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 2px}
#prompt-master .pm-attach{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 12px;border:1px solid #34472a;border-radius:11px;background:#151d11;color:#d7efbc;font:inherit;font-size:13px;cursor:pointer}
#prompt-master .pm-attach:hover{border-color:#5b7a3c}
#prompt-master .pm-attach:disabled{opacity:.5;cursor:default}
#prompt-master .pm-attach svg{width:17px;height:17px}
#prompt-master .pm-thumbs{display:flex;flex-wrap:wrap;gap:8px}
#prompt-master .pm-thumb{position:relative;width:56px;height:56px;border-radius:10px;overflow:hidden;border:1px solid #34472a;background:#0c100a}
#prompt-master .pm-thumb img{width:100%;height:100%;object-fit:cover;display:block}
#prompt-master .pm-thumb button{position:absolute;top:2px;right:2px;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:#000c;color:#fff;font-size:12px;line-height:20px;cursor:pointer}
#prompt-master .pm-message-images{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#prompt-master .pm-message-images img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid #ffffff22}
#prompt-master .pm-tier{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:3px 9px;border-radius:999px;background:#c5ff63;color:#0b0d0b;font-size:11px;font-weight:800;letter-spacing:.3px;vertical-align:middle}
#prompt-master .pm-tier.hidden{display:none}
#prompt-master .pm-options-label{margin:14px 0 4px;font-size:12px;font-weight:700;letter-spacing:.6px;color:#9fb08c;text-transform:uppercase}

#prompt-master.pm2{--pm-bg:#0b0d0b;--pm-surface:#11160f;--pm-raise:#151c12;--pm-line:#232c1f;--pm-line2:#33422b;--pm-text:#eef3e9;--pm-muted:#93a088;--pm-lime:#c5ff63;max-width:860px;margin:0 auto 32px;padding:28px 18px 0}
/* Header: one title, one sentence, actions on the right */
#prompt-master.pm2 .pm-heading{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px 16px;padding:0 0 22px;text-align:left;background:none;border:0}
#prompt-master.pm2 .pm-heading .pm-eyebrow{display:none}
#prompt-master.pm2 .pm-heading .pm-symbol{grid-column:1;grid-row:1;align-self:start;width:60px;height:60px;margin:2px 0 0;border-radius:18px;font-size:38px}
#prompt-master.pm2 .pm-head-text{grid-column:2;grid-row:1;min-width:0}
#prompt-master.pm2 .pm-heading h1{margin:0;font-size:34px;line-height:1.1;font-weight:700;letter-spacing:-1px;color:var(--pm-text);text-align:left}
#prompt-master.pm2 .pm-heading .pm-intro{margin:8px 0 0;max-width:56ch;color:var(--pm-muted);font-size:15px;line-height:1.55;text-align:left}
#prompt-master.pm2 .pm2-head-actions{grid-column:3;grid-row:1;align-self:center;display:flex;align-items:center;gap:8px}
#prompt-master.pm2 .pm-test-badge{grid-column:2;justify-self:start;margin:10px 0 0;padding:4px 10px;font-size:11.5px}
#prompt-master.pm2 .pm2-head-actions button,#prompt-master.pm2 .pm2-plans{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid var(--pm-line2);border-radius:10px;background:transparent;color:var(--pm-text);font:inherit;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;cursor:pointer}
#prompt-master.pm2 .pm2-head-actions svg{width:15px;height:15px}
#prompt-master.pm2 .pm-tier{margin:0}
#prompt-master.pm2 .pm2-plans{font-size:0!important;gap:0}
#prompt-master.pm2 .pm2-plans::after{content:'Tariflar';font-size:13px}
html[lang=ru] #prompt-master.pm2 .pm2-plans::after{content:'Тарифы'}
html[lang=en] #prompt-master.pm2 .pm2-plans::after{content:'Plans'}
#prompt-master.pm2.pm2-empty .pm-clear{display:none}
/* The chat shell is no longer a boxed panel */
#prompt-master.pm2 .pm-shell{display:flex;flex-direction:column;border:0;background:none;border-radius:0;overflow:visible}
#prompt-master.pm2 .pm-toolbar{display:none}
#prompt-master.pm2 .pm-examples,#prompt-master.pm2 .pm-refresh-note,#prompt-master.pm2 .pm-label,#prompt-master.pm2 .pm-limit{display:none!important}
#prompt-master.pm2 .pm-messages{order:2;max-height:none!important;height:auto!important;overflow:visible!important;padding:0 0 12px;display:flex;flex-direction:column;gap:14px;background:none;border:0}
#prompt-master.pm2.pm2-empty .pm-messages{padding:0}
#prompt-master.pm2 .pm-message{max-width:min(640px,86%);border-radius:18px;padding:12px 16px;line-height:1.6;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere}
#prompt-master.pm2 .pm-message.pm-user{align-self:flex-end;background:var(--pm-raise);border:1px solid var(--pm-line2);color:var(--pm-text);border-bottom-right-radius:6px}
#prompt-master.pm2 .pm-message.pm-assistant{align-self:flex-start;background:none;border:0;padding:4px 2px;color:var(--pm-text);max-width:min(680px,100%)}
#prompt-master.pm2 .pm-options-label{margin:2px 0 -4px!important;color:var(--pm-muted)!important;font-size:13px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important}
/* Composer: one box; on top when empty, pinned to the bottom during a chat */
#prompt-master.pm2 .pm-form{order:3;position:sticky;bottom:12px;z-index:5;margin:6px 0 0;padding:6px 6px 6px 16px;border:1px solid var(--pm-line2);border-radius:20px;background:var(--pm-surface);box-shadow:0 18px 40px #000a}
#prompt-master.pm2.pm2-empty .pm-form{order:1;position:static;box-shadow:none;padding:10px 10px 10px 18px}
#prompt-master.pm2 .pm-form:focus-within{border-color:#5b7a3c}
#prompt-master.pm2 .pm-form textarea{display:block;width:100%;box-sizing:border-box;height:44px;min-height:44px;max-height:200px;margin:0;padding:12px 4px 4px 0;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;color:var(--pm-text);font:16px/1.5 Arial,sans-serif;resize:none}
#prompt-master.pm2.pm2-empty .pm-form textarea{height:96px;min-height:96px;font-size:17px}
#prompt-master.pm2 .pm-form textarea::placeholder{color:#6f7c66}
#prompt-master.pm2 .pm-form-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 0}
#prompt-master.pm2 .pm2-left{display:flex;align-items:center;gap:12px;min-width:0}
#prompt-master.pm2 .pm-attach-row{margin:0;gap:6px}
#prompt-master.pm2 .pm-attach{width:38px;min-height:38px;padding:0;justify-content:center;border-radius:12px;border-color:var(--pm-line2);background:transparent}
#prompt-master.pm2 .pm-attach span{display:none}
#prompt-master.pm2 .pm2-meter{color:var(--pm-muted);font-size:12.5px;white-space:nowrap}
#prompt-master.pm2 .pm-send{width:42px;height:42px;min-height:42px;flex:0 0 42px;padding:0;border:0;border-radius:50%;font-size:0;display:inline-grid;place-items:center;background:var(--pm-lime);color:#132009}
#prompt-master.pm2 .pm-send::before{content:'';width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center/contain no-repeat}
#prompt-master.pm2 .pm-send:disabled{opacity:.45}
#prompt-master.pm2 .pm-status{margin:6px 0 2px;color:var(--pm-muted);font-size:13px}
#prompt-master.pm2 .pm-status:empty{display:none}
#prompt-master.pm2 :focus-visible{outline:2px solid var(--pm-lime);outline-offset:2px}
/* Quick starts: a list, not tiles */
#prompt-master.pm2 .pm2-start{order:2;margin:26px 0 0}
#prompt-master.pm2 .pm2-start[hidden]{display:none}
#prompt-master.pm2 .pm2-start h2{margin:0 0 6px;color:var(--pm-muted);font-size:13.5px;font-weight:600}
#prompt-master.pm2 .pm2-idea{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:14px;width:100%;padding:14px 4px;border:0;border-top:1px solid var(--pm-line);background:none;color:var(--pm-text);font:inherit;font-size:15px;line-height:1.45;text-align:left;cursor:pointer;border-radius:0;box-shadow:none}
#prompt-master.pm2 .pm2-idea:last-child{border-bottom:1px solid var(--pm-line)}
#prompt-master.pm2 .pm2-idea svg{width:20px;height:20px;color:var(--pm-muted)}
#prompt-master.pm2 .pm2-idea small{color:var(--pm-muted);font-size:12.5px}
#prompt-master.pm2 .pm2-idea:hover svg,#prompt-master.pm2 .pm2-idea:focus-visible svg{color:var(--pm-lime)}
#prompt-master.pm2 .pm2-idea:hover{background:#ffffff05}
/* Option cards */
#prompt-master.pm2 .pm-suggestion.pm2-opt{display:grid;gap:12px;max-width:none;padding:18px;border:1px solid var(--pm-line);border-radius:16px;background:var(--pm-surface)}
#prompt-master.pm2 .pm2-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
#prompt-master.pm2 .pm2-title{font-size:17px;font-weight:700;color:var(--pm-text)}
#prompt-master.pm2 .pm2-kind{display:inline-flex;align-items:center;gap:6px;color:var(--pm-muted);font-size:12.5px;font-weight:600;white-space:nowrap}
#prompt-master.pm2 .pm2-kind svg{width:15px;height:15px}
#prompt-master.pm2 .pm2-summary{margin:0;color:#d6e0cc;font-size:15px;line-height:1.6}
#prompt-master.pm2 .pm2-meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--pm-muted);font-size:13px}
#prompt-master.pm2 .pm2-meta span{padding:0;border:0;background:none;font-weight:500}
#prompt-master.pm2 .pm2-meta .pm2-price{color:var(--pm-text);font-weight:700}
#prompt-master.pm2 .pm2-meta .pm2-short{color:#ffb19c;font-weight:600}
#prompt-master.pm2 details.pm2-prompt{border:0;border-top:1px solid var(--pm-line);border-radius:0;background:none}
#prompt-master.pm2 details.pm2-prompt summary{padding:12px 0 0;color:var(--pm-muted);font-size:13px;font-weight:600;list-style:none;cursor:pointer;display:flex;gap:8px;align-items:center}
#prompt-master.pm2 details.pm2-prompt summary::-webkit-details-marker{display:none}
#prompt-master.pm2 details.pm2-prompt summary::before{content:'+';display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid var(--pm-line2);border-radius:6px;font-size:13px}
#prompt-master.pm2 details.pm2-prompt[open] summary::before{content:'–'}
#prompt-master.pm2 details.pm2-prompt summary::after{content:none}
#prompt-master.pm2 .pm2-prompt-body{padding:10px 0 0}
#prompt-master.pm2 .pm2-prompt-body textarea{width:100%;box-sizing:border-box;min-height:120px;padding:12px;border:1px solid var(--pm-line);border-radius:12px;background:var(--pm-bg);color:#dfe8d6;font:14px/1.55 Arial,sans-serif;resize:vertical}
#prompt-master.pm2 .pm2-tools{display:flex;gap:8px;margin-top:8px}
#prompt-master.pm2 .pm2-tools button,#prompt-master.pm2 .pm2-ghost{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid var(--pm-line2);border-radius:12px;background:transparent;color:var(--pm-text);font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer}
#prompt-master.pm2 .pm2-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#prompt-master.pm2 .pm2-go{min-height:44px;padding:0 20px;border:0;border-radius:12px;background:var(--pm-lime);color:#132009;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
#prompt-master.pm2 .pm2-go:disabled{opacity:.55;cursor:default}
#prompt-master.pm2 .pm2-note{margin:0;color:#76836d;font-size:12.5px;line-height:1.5}
#prompt-master.pm2 .pm2-opt:has(~ .pm2-opt) .pm2-note{display:none}
#prompt-master.pm2 .pm2-run{display:grid;gap:10px}
#prompt-master.pm2 .pm2-run[hidden]{display:none}
#prompt-master.pm2 .pm2-progress{display:flex;align-items:center;gap:10px;padding:14px;border-radius:12px;background:var(--pm-bg);border:1px solid var(--pm-line);color:var(--pm-text);font-size:14px}
#prompt-master.pm2 .pm2-progress i{width:16px;height:16px;flex:0 0 16px;border-radius:50%;border:2px solid var(--pm-line2);border-top-color:var(--pm-lime);animation:pm2spin .8s linear infinite}
@keyframes pm2spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#prompt-master.pm2 .pm2-progress i{animation-duration:3s}}
#prompt-master.pm2 .pm2-media{border-radius:12px;overflow:hidden;background:#000;border:1px solid var(--pm-line)}
#prompt-master.pm2 .pm2-media img,#prompt-master.pm2 .pm2-media video{display:block;width:100%;max-height:560px;object-fit:contain;background:#000}
#prompt-master.pm2 .pm2-error{margin:0;color:#ffb19c;font-size:14px}
@media(max-width:600px){
 #prompt-master.pm2{padding:18px 14px 0}
 #prompt-master.pm2 .pm-heading{grid-template-columns:auto 1fr;padding-bottom:16px}
 #prompt-master.pm2 .pm-heading .pm-symbol{width:48px;height:48px;border-radius:15px;font-size:30px}
 #prompt-master.pm2 .pm2-head-actions{grid-column:1/-1;grid-row:auto;justify-self:start;margin-top:10px}
 #prompt-master.pm2 .pm-test-badge{grid-column:1/-1}
 #prompt-master.pm2 .pm-heading h1{font-size:28px}
 #prompt-master.pm2 .pm-heading .pm-intro{font-size:14.5px}
 #prompt-master.pm2 .pm-form{bottom:calc(env(safe-area-inset-bottom,0px) + 80px)}
 #prompt-master.pm2.pm2-empty .pm-form textarea{height:84px;min-height:84px}
 #prompt-master.pm2 .pm2-idea{grid-template-columns:20px 1fr;gap:12px;padding:13px 2px;font-size:14.5px}
 #prompt-master.pm2 .pm2-idea small{display:none}
 #prompt-master.pm2 .pm-message{max-width:92%}
 #prompt-master.pm2 .pm2-actions{flex-wrap:nowrap}
 #prompt-master.pm2 .pm2-go{flex:1 1 0;min-width:0;padding:0 10px;font-size:14px;white-space:nowrap}
 #prompt-master.pm2 .pm2-actions .pm2-ghost{flex:0 0 auto;min-height:44px;padding:0 12px;font-size:13.5px;white-space:nowrap}
 #prompt-master.pm2 .pm2-run .pm2-actions{flex-wrap:wrap}
 #prompt-master.pm2 .pm-suggestion.pm2-opt{padding:16px}
 #prompt-master.pm2 .pm2-summary{font-size:14.5px;line-height:1.55}
}

.generation-progress{width:min(100%,340px);margin-top:6px;text-align:left}
.generation-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:12px;color:#b1bca9}
.generation-progress-heading strong{font-size:22px;font-variant-numeric:tabular-nums;color:var(--lime)}
.generation-progress-track{height:8px;border-radius:999px;background:#c5ff6318;overflow:hidden}
.generation-progress-track>span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#7fa936,var(--lime));box-shadow:0 0 18px #c5ff6338;transition:width 1s linear}
.generation-progress-time{margin-top:12px;color:#b1bca9;font-size:12px;line-height:1.6;text-align:center;min-height:38px}
.generation-stage{font-variant-numeric:tabular-nums;letter-spacing:0}
@media(max-width:680px){.generation-loader{padding:22px 18px;gap:12px}.generation-orbit{width:100px;height:100px;margin-bottom:0}.generation-progress{max-width:300px}.generation-loader h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){.generation-progress-track>span{transition:none}}

.pricing-dialog .plan-capacity{padding:15px 0;margin:0 0 16px;border-top:1px solid #35422c;border-bottom:1px solid #35422c;overflow-wrap:anywhere}
.pricing-dialog .plan-capacity-title{display:block;color:#a8b79c;font-size:11px;margin-bottom:7px}
.pricing-dialog .plan-capacity strong{display:block;color:#c5ff63;font-size:17px;font-weight:600;line-height:1.5;white-space:pre-line}
.pricing-dialog .plan-capacity small{display:block;color:#93a385;font-size:10px;line-height:1.6;margin-top:7px}

.history-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.history-summary{display:flex;flex-wrap:wrap;gap:8px}
.history-summary span{padding:7px 12px;border:1px solid #263022;border-radius:999px;background:#10150f;color:#a9b5a1;font-size:12.5px}
.history-summary b{color:#eef3e9;font-weight:700;margin-right:4px}
.history-filters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;max-width:100%}
.history-filters::-webkit-scrollbar{display:none}
.history-filters button{flex:none;min-height:36px;padding:7px 14px;border:1px solid #2b3626;border-radius:999px;background:#121811;color:#b9c4b0;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.history-filters button:hover{border-color:#4a6235;color:#fff}
.history-filters button[aria-pressed=true]{background:#c5ff63;border-color:#c5ff63;color:#132009}
.history-filters button small{margin-left:6px;font-size:11px;opacity:.7}
.history-filter-empty{grid-column:1/-1;padding:40px 16px;text-align:center;color:#8d9a85;border:1px dashed #2b3626;border-radius:18px}
#history-grid .history-card{transition:border-color .18s,transform .18s}
#history-grid .history-card:hover{border-color:#3d5030}
#history-grid .history-card[data-status=failed]{border-color:#3a2a22}
#history-grid .history-placeholder{position:relative;display:grid;place-items:center;gap:10px;aspect-ratio:16/10;padding:18px!important;border-bottom:1px solid var(--line);background:radial-gradient(120% 90% at 50% 0%,#1a2414,#0a0d0a 70%);color:#9fae95;font-size:13px;text-align:center}
#history-grid .history-placeholder.is-failed{background:radial-gradient(120% 90% at 50% 0%,#2a1813,#0a0d0a 70%);color:#e6a98a}
.history-placeholder .history-spinner{width:34px;height:34px;border-radius:50%;border:3px solid #2a3a22;border-top-color:#c5ff63;animation:history-spin 1s linear infinite}
.history-placeholder .history-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#3a1f16;color:#ffb08a;font-size:20px;font-weight:700}
@keyframes history-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.history-placeholder .history-spinner{animation:none}}
#history-grid .history-badge.is-ready{background:#1f2d14;color:#c5ff63}
#history-grid .history-badge.is-failed{background:#3a1f16;color:#ffb08a}
#history-grid .history-badge.is-pending{background:#20261c;color:#d7e2c9}
@media(min-width:1500px){.history-grid,#history-grid{grid-template-columns:repeat(4,1fr)!important}}
@media(max-width:760px){
 #history-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
 #history-grid .history-card{border-radius:14px}
 #history-grid .history-card .history-body{padding:11px!important;gap:9px!important}
 #history-grid .history-heading{gap:6px}
 #history-grid .history-heading h2{font-size:13.5px!important;min-width:0!important;flex:1 1 100%!important;letter-spacing:0}
 #history-grid .history-badge{font-size:10px;padding:4px 7px}
 #history-grid .history-meta{font-size:11px}
 #history-grid .history-prompt{display:none}
 #history-grid .history-actions{grid-template-columns:1fr;gap:6px}
 #history-grid .history-actions button,#history-grid .history-actions a,#history-grid .history-download{min-height:36px;padding:7px 8px!important;font-size:12px!important;border-radius:10px}
 #history-grid .history-card .history-media:not(.history-media-audio),#history-grid .history-card .history-placeholder{aspect-ratio:4/5!important}
 #history-grid .history-placeholder{font-size:11.5px}
 .history-toolbar{margin-bottom:12px}
 .history-summary span{font-size:11.5px;padding:6px 10px}
}
/* Profile */
#profile .profile-heading-row h2,#profile h2{font-weight:700;letter-spacing:-.3px}
#profile .card,#profile section>div{scroll-margin-top:90px}

.dl-sheet{position:fixed;inset:auto 12px 12px;z-index:1000;max-width:460px;margin:0 auto;padding:18px;border:1px solid #33432b;border-radius:18px;background:#111710;color:#eef3e9;box-shadow:0 24px 60px #000c;font-size:14px;line-height:1.55}
.dl-sheet[hidden]{display:none}
.dl-sheet b{display:block;margin-bottom:6px;font-size:15px}
.dl-sheet p{margin:0 0 14px;color:#b7c3ae}
.dl-sheet .dl-actions{display:flex;flex-wrap:wrap;gap:8px}
.dl-sheet button{flex:1 1 auto;min-height:42px;padding:9px 14px;border:1px solid #3a4b30;border-radius:11px;background:#1a2414;color:#eef3e9;font-weight:600;cursor:pointer}
.dl-sheet button.dl-primary{background:#c5ff63;border-color:#c5ff63;color:#132009}
a.dl-busy{opacity:.75;pointer-events:none}

.howto{margin:32px 0 28px;padding:24px;border:1px solid #2c3a25;border-radius:22px;background:radial-gradient(130% 120% at 0% 0%,#1b2814 0%,#0d120c 60%)}
.howto[hidden]{display:none}
.howto-eyebrow{display:inline-block;margin-bottom:10px;color:#c5ff63;font-size:11px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}
.howto h2{margin:0 0 18px;font-size:clamp(22px,2.4vw,30px);letter-spacing:-.6px;line-height:1.15;color:#f2f6ee}
.howto-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0;padding:0;list-style:none;counter-reset:howto}
.howto-steps li{position:relative;padding:18px 18px 18px 64px;border:1px solid #263222;border-radius:16px;background:#0f150e;min-height:96px}
.howto-steps li:before{counter-increment:howto;content:counter(howto);position:absolute;left:16px;top:16px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#c5ff63;color:#132009;font-weight:800;font-size:15px}
.howto-steps b{display:block;margin-bottom:4px;color:#eef3e9;font-size:15px}
.howto-steps span{color:#a3b099;font-size:13px;line-height:1.55}
.howto-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.howto-actions a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:999px;font-weight:700;font-size:14px;text-decoration:none}
.howto-actions a.primary{background:#c5ff63;color:#132009}
.howto-actions a.secondary{border:1px solid #3a4b30;color:#e3ecd9}
.pricing-faq{max-width:860px;margin:36px auto 8px}
.pricing-faq h2{margin:0 0 14px;font-size:clamp(22px,2.4vw,30px);letter-spacing:-.5px}
.pricing-faq details{border:1px solid #263222;border-radius:14px;background:#0f150e;margin:8px 0}
.pricing-faq summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;list-style:none;font-weight:600;color:#eef3e9}
.pricing-faq summary::-webkit-details-marker{display:none}
.pricing-faq summary:after{content:'+';flex:none;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#1b2614;color:#c5ff63;font-size:18px;transition:transform .18s}
.pricing-faq details[open] summary:after{transform:rotate(45deg)}
.pricing-faq details p{margin:0;padding:0 18px 16px;color:#a9b5a1;line-height:1.65;font-size:14px}
.pricing-faq details p a{color:#c5ff63}
.plan-capacity strong{white-space:pre-line}
@media(max-width:760px){.howto{padding:18px;border-radius:18px}.howto-steps{grid-template-columns:1fr;gap:8px}.howto-steps li{min-height:0;padding:14px 14px 14px 58px}.howto-steps li:before{left:12px;top:13px;width:32px;height:32px}.howto-actions a{flex:1 1 auto;justify-content:center}}

/* History card whose video the phone could not play inline */
#history-grid .history-media{position:relative}
.sp-open-video{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 16px;border-radius:999px;background:rgba(11,18,6,.82);border:1px solid #c8ff5a;color:#c8ff5a;font-size:13px;font-weight:700;white-space:nowrap;text-decoration:none;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#history-grid .history-media:has(.sp-open-video) video{opacity:0}
/* Sign-up gift line shown to guests under the create buttons */
#sp-gift{margin:10px 0 0;font-size:12px;line-height:1.5;color:#cfe9a8;text-align:center}
.hero-composer #sp-gift-home{color:#cfe9a8;font-size:11px;margin-top:6px}
/* Home template rows (see layoutPresetColumns in the client) */
.showcase-cards.sp-justified{display:flex;flex-direction:column;align-items:stretch;gap:14px;columns:auto}
.showcase-cards.sp-justified .sp-jrow{display:flex;gap:14px;align-items:flex-start;width:100%}
.showcase-cards.sp-justified .preset-card{min-width:0;width:auto;margin:0;height:auto}
.showcase-cards.sp-justified .preset-card>img,.showcase-cards.sp-justified .preset-card>video{object-fit:cover}
.showcase-cards.sp-justified .sp-row-fill{display:block;flex-basis:0}
@media(max-width:760px){.showcase-cards.sp-justified,.showcase-cards.sp-justified .sp-jrow{gap:10px}}

/* Status / cancel buttons sit below the main button with room to breathe */
#pending-actions{gap:10px;margin-top:14px}
#pending-actions button{flex:1 1 160px;min-height:44px}

/* History: a result whose file is gone shows a clear note instead of a broken player */
#history-grid .history-media.sp-media-lost::after{content:attr(data-lost);position:absolute;inset:0;display:grid;place-items:center;padding:20px;text-align:center;color:#a9b59f;font-size:13px;line-height:1.5;background:#0b100a}
#history-grid .history-media.sp-media-lost video,#history-grid .history-media.sp-media-lost img{visibility:hidden}

/* Site-styled scrollbars for the model menus and dropdown panels */
.model-menu-panel,.notify-panel,.notify-list{scrollbar-width:thin;scrollbar-color:#526444 transparent}
.model-menu-panel::-webkit-scrollbar,.notify-panel ::-webkit-scrollbar{width:10px}
.model-menu-panel::-webkit-scrollbar-track{background:transparent;margin:10px 0}
.model-menu-panel::-webkit-scrollbar-thumb{background:#526444;border-radius:999px;border:3px solid #131815}
.model-menu-panel::-webkit-scrollbar-thumb:hover{background:#6f8a58}
.model-menu-panel::-webkit-scrollbar-button{display:none;height:0}

/* Phones: keep the page inside the screen. iOS zooms the page when a field under 16px gets focus and leaves it zoomed, which looks like the site spilling out of the window. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{overflow-x:clip}
@media (pointer:coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea{font-size:16px!important}}

/* Video welcome: shown in the preview for video models that have no sample clip */
.welcome-video{display:none}
.image-welcome.is-video .welcome-frame,.image-welcome.is-video .welcome-spark{display:none}
.image-welcome.is-video .image-welcome-art{width:210px;height:150px}
.image-welcome.is-video .welcome-video{display:block;position:absolute;left:10px;top:22px;width:190px;height:108px;border:1px solid #c5ff6338;border-radius:16px;background:linear-gradient(145deg,#26351f,#111a10);box-shadow:0 12px 45px #0006,inset 0 1px 0 #c5ff6320;overflow:hidden}
.wv-play{position:absolute;left:50%;top:44%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:1.5px solid #c5ff63;box-shadow:0 0 0 0 #c5ff6355;animation:wv-pulse 2.4s ease-out infinite}
.wv-play::after{content:"";position:absolute;left:17px;top:13px;border-style:solid;border-width:8px 0 8px 13px;border-color:transparent transparent transparent #c5ff63}
.wv-bar{position:absolute;left:14px;right:14px;bottom:13px;height:3px;border-radius:3px;background:#c5ff631f;overflow:hidden}
.wv-bar i{display:block;height:100%;width:100%;border-radius:3px;background:#c5ff63;transform-origin:left;animation:wv-progress 4s linear infinite}
@keyframes wv-pulse{0%{box-shadow:0 0 0 0 #c5ff6355}70%,100%{box-shadow:0 0 0 16px #c5ff6300}}
@keyframes wv-progress{0%{transform:scaleX(0)}90%,100%{transform:scaleX(1)}}
@media(max-width:700px){.image-welcome.is-video .image-welcome-art{transform:scale(.9)}}
@media(prefers-reduced-motion:reduce){.wv-play,.wv-bar i{animation:none}.wv-bar i{transform:scaleX(.6)}}

#create .intro .eyebrow,#preview-label,#scene-tag,#create>.notice{display:none!important}
#create .intro h1{font-size:clamp(28px,3vw,40px);letter-spacing:-1px}
#form label:not(.upload):not(:has(input,select,textarea)){text-transform:lowercase;letter-spacing:0;font-size:13px;font-weight:700;color:#aab69f}
#form label:not(.upload):not(:has(input,select,textarea))::first-letter{text-transform:uppercase}
.sp-family{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;width:100%;margin:0 0 10px;padding:12px;border:1px solid #33422b;border-radius:14px;background:#141b11;color:#eef3e9;font:inherit;text-align:left;cursor:pointer}
.sp-family:hover,.sp-family:focus-visible{border-color:#5b7a3c}
.sp-family:focus-visible{outline:2px solid #c5ff63;outline-offset:2px}
.sp-ico{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#1c2617;color:#c5ff63}
.sp-ico svg{width:22px;height:22px}
.sp-ico img{width:24px;height:24px;object-fit:contain;border-radius:6px}
.sp-family strong{display:block;font-size:15px;line-height:1.3}
.sp-family small{display:block;margin-top:2px;color:#93a088;font-size:12.5px;line-height:1.4}
.sp-family .sp-from{margin-top:4px;color:#c5ff63;font-weight:700}
.sp-change{color:#c5ff63;font-size:12.5px;font-weight:700;white-space:nowrap}
.sp-variant-label{display:block;margin:0 0 6px;color:#93a088;font-size:12.5px;font-weight:600}
#form.sp-single #model,#form.sp-single .sp-variant-label{display:none}
.sp-prompt-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 0}
.sp-prompt-tools #char{margin:0}
.sp-improve{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid #3f5530;border-radius:10px;background:#162011;color:#c5ff63;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.sp-improve:disabled{opacity:.6;cursor:default}
.sp-improve-note{margin:8px 0 0;padding:10px 12px;border-radius:10px;background:#141b11;border:1px solid #2b3825;color:#cfd9c5;font-size:13px;line-height:1.5}
.sp-improve-note[hidden]{display:none}
.sp-improve-note button{margin-left:6px;padding:0;border:0;background:none;color:#c5ff63;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline}
.sp-picker{width:min(640px,calc(100vw - 24px));max-height:min(760px,calc(100vh - 40px));padding:0;border:1px solid #33422b;border-radius:18px;background:#0f140d;color:#eef3e9;box-shadow:0 30px 80px #000c}
.sp-picker[open]{display:flex;flex-direction:column;overflow:hidden}
.sp-picker-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#526444 transparent}
.sp-picker-list::-webkit-scrollbar{width:10px}
.sp-picker-list::-webkit-scrollbar-track{background:transparent;margin:8px 0}
.sp-picker-list::-webkit-scrollbar-thumb{background:#526444;border-radius:999px;border:3px solid #0f140d}
.sp-picker-list::-webkit-scrollbar-thumb:hover{background:#6f8a58}
.sp-picker-list::-webkit-scrollbar-button{display:none;height:0}
.sp-picker::backdrop{background:#000b;backdrop-filter:blur(3px)}
.sp-picker-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #232c1f;background:#0f140d}
.sp-picker-head h2{margin:0;font-size:18px}
.sp-picker-head .sp-close{position:static!important;flex:0 0 36px;display:grid!important;place-items:center;width:36px!important;height:36px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:1px solid #33422b;border-radius:10px;background:none;color:#eef3e9;line-height:0;cursor:pointer;transform:none!important}
.sp-picker-head .sp-close svg{width:18px;height:18px;display:block}
.sp-picker-head .sp-close:hover{border-color:#5b7a3c;color:#c5ff63}
.sp-picker-list{display:grid;gap:8px;padding:12px}
.sp-row{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid #232c1f;border-radius:14px;background:#131a10;color:#eef3e9;font:inherit;text-align:left;cursor:pointer}
.sp-row:hover,.sp-row:focus-visible{border-color:#5b7a3c;background:#162011}
.sp-row[aria-current="true"]{border-color:#c5ff63}
.sp-row:focus{outline:none}
.sp-row:focus-visible{box-shadow:0 0 0 2px #c5ff6355}
.sp-row strong{font-size:15px}
.sp-row .sp-maker{margin-left:6px;color:#76836d;font-size:12px;font-weight:500}
.sp-row p{margin:3px 0 0;color:#a6b29b;font-size:13px;line-height:1.45}
.sp-row .sp-price{text-align:right;white-space:nowrap}
.sp-row .sp-price b{display:block;color:#c5ff63;font-size:13.5px}
.sp-row .sp-price small{color:#76836d;font-size:11.5px}
.scene.sp-no-sample video.model-sample{display:none}
#form #generate:disabled{opacity:.5;cursor:not-allowed;pointer-events:none;filter:saturate(.6)}
.sp-bar{position:fixed;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 80px);z-index:60;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding:8px 8px 8px 14px;border:1px solid #33422b;border-radius:16px;background:#0f140df2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 10px 30px #000a}
.sp-bar[hidden]{display:none}
.sp-bar-price{color:#c5ff63;font-size:17px;font-weight:800;white-space:nowrap}
.sp-bar-price:empty{display:none}
.sp-bar-go{min-height:48px;padding:0 14px;border:0;border-radius:12px;background:#c5ff63;color:#132009;font:inherit;font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.sp-bar-go.is-off{opacity:.55}
.hero-composer .sp-hidden-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip:rect(0 0 0 0)}
.sp-hero-model{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;flex:1 1 180px;max-width:320px;min-height:48px;margin:0;padding:6px 12px 6px 16px;border:1px solid #33422b;border-radius:14px;background:#141b11;color:#eef3e9;font:inherit;text-align:left;cursor:pointer}
.sp-hero-model:hover,.sp-hero-model:focus-visible{border-color:#5b7a3c}
.sp-hero-model:focus-visible{outline:2px solid #c5ff63;outline-offset:2px}
.sp-hero-model span:first-child{min-width:0}
.sp-hero-model strong{display:block;font-size:15px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-hero-model small{display:block;color:#c5ff63;font-size:12px;font-weight:700;line-height:1.3}
.sp-hero-model small:empty{display:none}
.sp-chev{flex:0 0 18px;color:#93a088}.sp-chev svg{width:18px;height:18px;display:block}
.hero-composer-top:has(.sp-hero-model){flex-wrap:wrap}
@media(max-width:600px){.sp-hero-model{flex:1 1 100%;max-width:none}.hero-composer-top:has(.sp-hero-model) .hero-kind-tabs{flex:1 1 100%;display:flex}.hero-composer-top:has(.sp-hero-model) .hero-kind-tabs button{flex:1 1 0;justify-content:center}}
@media(max-width:900px){
 #create .intro{display:none!important}
 #create .studio{margin-top:6px}
 .sp-row{grid-template-columns:40px 1fr}
 .sp-row .sp-price{grid-column:2;text-align:left;display:flex;gap:8px;align-items:baseline}
 .sp-picker{width:100vw;max-width:100vw;max-height:88vh;margin:auto 0 0;border-radius:18px 18px 0 0}
}

.live-stats{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:10px;margin:18px 0 0}
.live-stats[hidden]{display:none}
.live-stat{display:flex;flex-direction:column;gap:2px;min-width:0;padding:14px 16px;border:1px solid #2b3825;border-radius:16px;background:linear-gradient(180deg,#141c11,#0f150d)}
.live-stat b{display:flex;align-items:center;gap:8px;color:#c5ff63;font-size:24px;line-height:1.15;font-weight:800;letter-spacing:-.6px;font-variant-numeric:tabular-nums;white-space:nowrap}
.live-stat span{color:#93a088;font-size:13px;line-height:1.35}
.live-dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:#c5ff63;animation:livepulse 2s ease-out infinite}
@keyframes livepulse{0%{box-shadow:0 0 0 0 #c5ff6377}70%{box-shadow:0 0 0 8px #c5ff6300}100%{box-shadow:0 0 0 0 #c5ff6300}}
@media(prefers-reduced-motion:reduce){.live-dot{animation:none}}
@media(max-width:600px){.live-stats{gap:8px}.live-stats.four{grid-template-columns:repeat(2,minmax(0,1fr))}.live-stat{padding:12px;border-radius:14px}.live-stat b{font-size:18px;gap:6px}.live-stat span{font-size:12px}}

#motion{max-width:1180px;margin:0 auto 40px;padding:28px 18px 0;--mo-surface:#11160f;--mo-line:#2b3825;--mo-line2:#3a4b30;--mo-text:#eef3e9;--mo-muted:#93a088;--mo-lime:#c5ff63}
#motion[hidden]{display:none}
body.motion-open main>:not(#motion):not(footer){display:none!important}
button.nav-motion small.nav-motion-by{margin-left:auto;padding:2px 8px;border:1px solid #d9775766;border-radius:999px;color:#e8a385;font-size:11px;font-weight:700;white-space:nowrap}
#motion .mo-head{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;align-items:center;margin:0 0 22px}
#motion .mo-mark{grid-row:1/span 2;display:grid;place-items:center;width:60px;height:60px;border:1px solid #baff5540;border-radius:18px;background:#baff5510;color:var(--mo-lime)}
#motion .mo-mark svg{width:30px;height:30px}
#motion h1{margin:0;font-size:34px;line-height:1.1;letter-spacing:-1px;color:var(--mo-text)}
#motion .mo-intro{margin:0;color:var(--mo-muted);font-size:15px;line-height:1.55;max-width:62ch}
#motion .mo-grid{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:20px;align-items:start}
#motion .mo-panel{border:1px solid var(--mo-line);border-radius:20px;background:var(--mo-surface);padding:18px}
#motion label.mo-l{display:block;margin:16px 0 6px;color:#b9c4ae;font-size:13px;font-weight:700;letter-spacing:0;text-transform:none}
#motion [hidden]{display:none!important}
#motion .mo-panel>label.mo-l:first-child{margin-top:0}
#motion .mo-row label.mo-l{margin-top:18px}
#motion textarea,#motion select,#motion input[type=text]{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid var(--mo-line2);border-radius:12px;background:#0e130c;color:var(--mo-text);font:inherit;font-size:15px}
#motion textarea{min-height:140px;resize:vertical;line-height:1.5}
#motion textarea:focus,#motion select:focus,#motion input:focus{outline:2px solid var(--mo-lime);outline-offset:1px}
#motion .mo-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#motion .mo-kinds{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#motion .mo-kind{display:grid;align-content:start;gap:2px;padding:12px;border:1px solid var(--mo-line2);border-radius:14px;background:#0e130c;color:var(--mo-text);font:inherit;text-align:left;cursor:pointer}
#motion .mo-kind b{font-size:14.5px}#motion .mo-kind small{color:var(--mo-muted);font-size:12px;line-height:1.35}
#motion .mo-kind[aria-pressed="true"]{border-color:var(--mo-lime);background:#162011}
#motion .mo-examples{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
#motion .mo-examples button{padding:6px 11px;border:1px solid var(--mo-line2);border-radius:999px;background:transparent;color:#cfd9c5;font:inherit;font-size:12.5px;cursor:pointer}
#motion .mo-file{display:flex;align-items:center;gap:10px}
#motion .mo-file label{letter-spacing:0;text-transform:none;font-weight:600;display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 14px;border:1px dashed var(--mo-line2);border-radius:12px;color:#cfd9c5;cursor:pointer;font-size:14px}
#motion .mo-file input{position:absolute;opacity:0;width:1px;height:1px}
#motion .mo-file img{width:42px;height:42px;object-fit:contain;border-radius:10px;background:#0e130c;border:1px solid var(--mo-line)}
#motion .mo-file button{border:0;background:none;color:var(--mo-muted);cursor:pointer;font:inherit;font-size:13px;text-decoration:underline}
#motion .mo-go{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;margin-top:16px;border:0;border-radius:14px;background:var(--mo-lime);color:#132009;font:inherit;font-size:16px;font-weight:800;cursor:pointer}
#motion .mo-go:disabled{opacity:.55;cursor:default}
#motion .mo-ghost{background:transparent;border:1px solid var(--mo-line2);color:var(--mo-text)}
#motion .mo-edit{margin-top:18px;padding-top:16px;border-top:1px solid var(--mo-line)}
#motion .mo-edit[hidden]{display:none}
#motion .mo-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#motion .mo-actions .mo-go{margin-top:10px;font-size:15px}
#motion .mo-status{min-height:20px;margin:12px 0 0;color:var(--mo-muted);font-size:14px}
#motion .mo-status.err{color:#ffb19c}
#motion .mo-status a{color:var(--mo-lime)}
#motion .mo-brand{margin:8px 0 0;color:var(--mo-muted);font-size:13px}
#motion .mo-brand i{display:inline-block;width:16px;height:16px;margin:0 4px -3px 0;border-radius:4px;border:1px solid #fff3}
#motion .mo-stage{position:sticky;top:90px;display:grid;place-items:center;min-height:460px;border:1px solid var(--mo-line);border-radius:20px;background:#080a08;overflow:hidden}
#motion .mo-stage iframe{display:block;border:0;background:#000;max-width:100%;height:min(72vh,760px);width:auto;aspect-ratio:var(--ar,9/16)}
#motion .mo-empty{padding:30px;color:var(--mo-muted);text-align:center;line-height:1.6}
#motion .mo-empty b{display:block;margin-bottom:6px;color:var(--mo-text);font-size:17px}
#motion .mo-note{margin:10px 0 0;color:#76836d;font-size:12.5px;line-height:1.5}
#motion .spin{width:16px;height:16px;border-radius:50%;border:2px solid #132009;border-top-color:transparent;animation:mospin .8s linear infinite}
@keyframes mospin{to{transform:rotate(360deg)}}
@media(max-width:900px){#motion{padding:18px 14px 0}#motion .mo-grid{grid-template-columns:1fr}#motion .mo-stage{position:static;min-height:150px;order:-1}#motion .mo-empty{padding:22px 18px}#motion .mo-empty b{font-size:16px}#motion .mo-stage iframe{height:60vh}#motion h1{font-size:26px}#motion .mo-head{grid-template-columns:1fr}#motion .mo-mark{display:none}#motion .mo-intro{font-size:14.5px}}

.tripo-viewer{display:block;width:100%;height:100%;min-height:360px;background:radial-gradient(ellipse at 50% 40%,#203219 0%,#10180e 50%,#0a0f0a 90%);--poster-color:transparent;border-radius:inherit}
#result-media .tripo-viewer{min-height:min(70vh,560px)}
.tripo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.tripo-actions a,.tripo-actions button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:10px;border:1px solid #3a4a2e;background:#141c12;color:#e8f2dd;font:600 13px/1 inherit;text-decoration:none;cursor:pointer}
.tripo-actions a:hover,.tripo-actions button:hover{border-color:#c5ff63;color:#c5ff63}
.tripo-actions [disabled]{opacity:.6;cursor:progress}
.tripo-ar{position:absolute;right:12px;bottom:12px;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid #c5ff63;background:#0f160dcc;color:#c5ff63;font:600 13px/1 inherit}
.history-media-3d{position:relative;aspect-ratio:1;background:#10180e}
.history-media-3d .tripo-viewer{min-height:0;height:100%}
.image-welcome.is-3d .welcome-frame,.image-welcome.is-3d .welcome-spark,.image-welcome.is-3d .welcome-video{display:none}
.welcome-cube{display:none}
.image-welcome.is-3d .welcome-cube{display:block;position:absolute;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;transform-style:preserve-3d;animation:tripo-spin 9s linear infinite}
.welcome-cube i{position:absolute;inset:0;border:1.5px solid #c5ff63aa;background:#c5ff630d;border-radius:6px}
.welcome-cube i:nth-child(1){transform:translateZ(42px)}.welcome-cube i:nth-child(2){transform:rotateY(180deg) translateZ(42px)}
.welcome-cube i:nth-child(3){transform:rotateY(90deg) translateZ(42px)}.welcome-cube i:nth-child(4){transform:rotateY(-90deg) translateZ(42px)}
.welcome-cube i:nth-child(5){transform:rotateX(90deg) translateZ(42px)}.welcome-cube i:nth-child(6){transform:rotateX(-90deg) translateZ(42px)}
.image-welcome.is-3d .image-welcome-art{perspective:520px}
@keyframes tripo-spin{from{transform:rotateX(-22deg) rotateY(0)}to{transform:rotateX(-22deg) rotateY(360deg)}}
@media(prefers-reduced-motion:reduce){.image-welcome.is-3d .welcome-cube{animation:none;transform:rotateX(-22deg) rotateY(35deg)}}
#form .tripo-hide{display:none!important}
.tripo-opts{display:grid;gap:10px;margin:14px 0 4px;padding:14px;border:1px solid #2f3d27;border-radius:12px;background:#10160e}
.tripo-opts.hidden,.tripo-opts .hidden{display:none!important}
.tripo-tip{margin:0;color:#a9b59f;font-size:12.5px;line-height:1.55}
.tripo-field{display:grid;gap:6px;margin:0;font-size:12.5px;color:#c8d3bf}
.tripo-field select,.tripo-field input{width:100%;min-height:42px;padding:0 12px;border:1px solid #33422b;border-radius:10px;background:#0b100a;color:#eef3e9;font:inherit;font-size:14px}
.tripo-check{display:flex;align-items:flex-start;gap:10px;margin:0;font-size:13px;line-height:1.45;color:#d7e2cd;cursor:pointer}
.tripo-check input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:#c5ff63}
#form .tabs.has-3d{grid-template-columns:repeat(4,minmax(0,1fr))}

.audio-settings.ev3{grid-template-columns:1fr;gap:16px;margin:14px 0 6px}
.audio-settings.ev3>label{gap:8px;margin:0!important;padding:0!important}
.audio-settings.ev3>label>span{min-height:0!important;margin:0!important}
.ev3-label{font-size:11px;font-weight:600;letter-spacing:.08em;color:#aab7a2;text-transform:uppercase}
.ev3-voices,.ev3-tone{display:grid;gap:8px}
.ev3-current{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid #c5ff6355;border-radius:12px;background:#141d10}
.ev3-current>div{cursor:pointer;min-width:0}
.ev3-current b,.ev3-voice b{display:block;font-size:14.5px;line-height:1.2;color:#eef5e6}
.ev3-current small,.ev3-voice small{display:block;margin-top:3px;color:#9aa792;font-size:12px;line-height:1.3}
.ev3-change{min-height:34px;padding:0 12px;border-radius:9px;border:1px solid #3e5230;background:transparent;color:#c5ff63;font:600 12.5px/1 inherit;cursor:pointer;white-space:nowrap}
.ev3-change:hover{border-color:#c5ff63}
.ev3-panel{display:grid;gap:8px;padding:10px;border:1px solid #2a3724;border-radius:12px;background:#0d120b}
.ev3-panel.hidden{display:none}
.ev3-filter{display:flex;gap:6px}
.ev3-filter button{min-height:30px;padding:0 12px;border-radius:999px;border:1px solid #33422b;background:transparent;color:#c8d3bf;font:600 12px/1 inherit;cursor:pointer}
.ev3-filter button.on{border-color:#c5ff63;color:#c5ff63;background:#1a2614}
.ev3-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:6px;max-height:236px;overflow-y:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:#526444 transparent}
.ev3-grid::-webkit-scrollbar,.ev3-tags-row::-webkit-scrollbar{width:8px;height:6px}
.ev3-grid::-webkit-scrollbar-track,.ev3-tags-row::-webkit-scrollbar-track{background:transparent}
.ev3-grid::-webkit-scrollbar-thumb,.ev3-tags-row::-webkit-scrollbar-thumb{background:#526444;border-radius:999px}
.ev3-grid::-webkit-scrollbar-button,.ev3-tags-row::-webkit-scrollbar-button{display:none;width:0;height:0}
.ev3-voice{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:8px 10px;border:1px solid #243021;border-radius:10px;background:#11170f;cursor:pointer}
.ev3-voice:hover{border-color:#4b6236}
.ev3-voice.on{border-color:#c5ff63;background:#18240f}
.ev3-play{display:grid;place-items:center;width:32px;height:32px;padding:0;border-radius:50%;border:1px solid #c5ff6388;background:#c5ff6312;color:#c5ff63;font-size:11px;line-height:1;cursor:pointer}
.ev3-play.loading{animation:ev3-pulse 1s ease-in-out infinite}
.ev3-play.playing{background:#c5ff63;color:#132009}
@keyframes ev3-pulse{50%{opacity:.4}}
.ev3-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border:1px solid #2a3724;border-radius:12px;background:#0d120b}
.ev3-seg button{min-height:38px;border:0;border-radius:9px;background:transparent;color:#b9c6b0;font:600 13px/1 inherit;cursor:pointer}
.ev3-seg button.on{background:#2a3b1f;color:#eef5e6;box-shadow:inset 0 0 0 1px #c5ff6355}
.ev3-hint{margin:0;color:#8e9b86;font-size:12px;line-height:1.45}
.ev3-more{border-top:1px solid #222d1e;padding-top:10px}
.ev3-more summary{cursor:pointer;color:#a9b59f;font-size:12.5px;list-style:none}
.ev3-more summary::before{content:'+ ';color:#c5ff63}
.ev3-more[open] summary::before{content:'− '}
.ev3-more label{display:flex;flex-direction:column;gap:8px;margin-top:10px;font-size:11px;letter-spacing:.08em;color:#aab7a2}
.ev3-tags{display:grid;gap:6px;margin:6px 0 8px}
.ev3-tags>span{color:#8e9b86;font-size:12px}
.ev3-tags-row{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin;scrollbar-color:#526444 transparent}
.ev3-tags-row button{flex:none;min-height:30px;padding:0 10px;border-radius:999px;border:1px solid #2f3d29;background:#11170f;color:#d5e4c4;font:600 12px/1 inherit;cursor:pointer;white-space:nowrap}
.ev3-tags-row button:hover{border-color:#c5ff63;color:#c5ff63}
.ev3-dialogue{display:grid;gap:10px;margin:6px 0 4px}
.ev3-line{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:start;padding:10px;border:1px solid #243021;border-radius:12px;background:#0f150d}
.ev3-line select,.ev3-line textarea{width:100%;min-height:40px;padding:8px 12px;border:1px solid #33422b;border-radius:9px;background:#0b100a;color:#eef3e9;font:inherit;font-size:14px}
.ev3-line textarea{grid-column:1/-1;grid-row:2;min-height:64px;resize:vertical;line-height:1.45}
.ev3-line button{width:36px;height:40px;border-radius:9px;border:1px solid #33422b;background:transparent;color:#a9b59f;cursor:pointer}
.ev3-line button:hover{color:#ff9a8a;border-color:#6b3a33}
.ev3-add{justify-self:start;min-height:38px;padding:0 14px;border-radius:10px;border:1px dashed #3e5230;background:transparent;color:#c5ff63;font:600 13px/1 inherit;cursor:pointer}
#form.ev3-dialogue-on #prompt{display:none}
#form.ev3-dialogue-on .sp-improve{display:none!important}
#form .ev3-hide,.ev3-voices.hidden,.ev3-tone.hidden,.ev3-more.hidden,.ev3-tags.hidden,.ev3-dialogue.hidden{display:none!important}
