/* NEXLUNE AI v4 — main stylesheet (premium redesign).
   Base styles, theme (incl. prefers-color-scheme) and keyframes.
   Width-based responsive rules live in responsive.css, loaded
   after this file. Three width rules stay here on purpose: in
   v2 they are shadowed by a later base rule, and moving them
   would change the design. */
:root{--bg:#050810;--bg2:#070B14;--surface:#0D1220;--surface2:#131A2E;--line:rgba(255,255,255,.10);--text:#F2F4FA;--muted:#A7AEC4;--muted2:#7C86A3;--lime:#8B7CFF;--lime-d:#5B4BDB;--lime-soft:rgba(139,124,255,.14);--radius:20px;--header:68px;--shadow:0 20px 50px rgba(0,0,0,.45);--wa:#25d366;--err:#ff5a5a;--glass:rgba(255,255,255,.06)}
@media(prefers-color-scheme:light){:root{--bg:#F4F5FB;--bg2:#ECEEF7;--surface:#fff;--surface2:#F7F8FD;--line:rgba(10,14,40,.10);--text:#0B0E1E;--muted:#565B74;--muted2:#7A7FA0;--lime:#6D5DF0;--lime-soft:rgba(109,93,240,.12);--shadow:0 18px 40px rgba(20,24,60,.10);--glass:rgba(255,255,255,.7)}}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Inter",system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;padding-bottom:88px;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%;display:block}
h1,h2,h3{font-family:"Sora",sans-serif;line-height:.98;letter-spacing:-.03em;margin:0}
button,input,select,textarea{font-family:inherit}
.wrap{width:min(1180px,100% - 40px);margin-inline:auto}
header{position:fixed;inset:0 0 auto 0;z-index:80;padding-top:env(safe-area-inset-top,0px);backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5);background:color-mix(in srgb,var(--bg) 84%,transparent);border-bottom:1px solid color-mix(in srgb,var(--lime) 22%,transparent);box-shadow:0 6px 24px rgba(0,0,0,.10);transition:box-shadow .35s ease}
.header-top{height:var(--header);display:flex;align-items:center;justify-content:space-between;gap:12px;transition:height .3s ease}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;font-family:"Sora";font-weight:900;letter-spacing:-.02em;cursor:pointer;background:none;border:0;color:var(--text);text-align:left;padding:0}
.logo-mark{width:38px;height:38px;background:linear-gradient(145deg,var(--lime),color-mix(in srgb,var(--lime) 60%,#3B2F9E));color:#070B14;display:grid;place-items:center;font-size:20px;border-radius:10px;flex:none;box-shadow:0 6px 16px color-mix(in srgb,var(--lime) 35%,transparent),inset 0 1px 0 rgba(255,255,255,.5)}
.logo small{display:block;font-family:"Inter";font-weight:700;font-size:9px;letter-spacing:.2em;color:var(--muted);margin-top:1px;white-space:nowrap}
@media(max-width:560px){.logo small{display:none}.logo{font-size:15px}}
.header-phone{display:none;align-items:center;gap:8px;font-weight:800;font-size:14px;text-decoration:none;background:var(--surface);border:1px solid var(--line);padding:9px 14px;border-radius:999px}
.nav-desktop{display:none;gap:4px;flex-wrap:wrap}
.nav-desktop button{border:0;background:transparent;color:var(--muted);font-family:"Inter";font-weight:800;font-size:13.5px;padding:10px 11px;border-radius:999px;cursor:pointer}
.nav-desktop button.active{background:var(--lime);color:#fff}
.nav-desktop button.team-btn{border:1px solid var(--lime);color:var(--text)}
.nav-mobile{display:flex;gap:8px;overflow-x:auto;padding:0 16px 12px;scrollbar-width:none}
.nav-mobile::-webkit-scrollbar{display:none}
.nav-mobile button{flex:none;border:1px solid var(--line);background:var(--surface);color:var(--text);font-weight:800;font-size:13.5px;padding:10px 16px;border-radius:999px;cursor:pointer;min-height:44px}
.nav-mobile button.active{background:var(--lime);color:#fff;border-color:var(--lime)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:14px 22px;border-radius:999px;font-weight:800;text-decoration:none;font-size:15px;border:1px solid transparent;cursor:pointer;transition:.2s;text-align:center;background:var(--surface);color:var(--text)}
.btn:active{transform:scale(.98)}
.btn-lime{background:var(--lime);color:#fff}
.btn-wa{background:var(--wa);color:#062e16}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--line)}
.btn-white{background:#fff;color:#070B14}
.btn-sm{min-height:44px;padding:10px 16px;font-size:14px}
.btn-danger{background:#2a1212;color:#ffb3b3;border-color:rgba(255,90,90,.4)}
.page{display:block;animation:fade .35s ease}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.page{animation:none}*{animation:none!important;transition:none!important}}
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}
.hero{position:relative;padding:calc(var(--header) + var(--sat,0px) + 30px) 0 0;overflow:hidden;background:#050810;color:#F2F4FA}
.hero-bg{position:absolute;inset:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.72}
.hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,8,16,.62),rgba(5,8,16,.55) 45%,#050810),linear-gradient(90deg,rgba(5,8,16,.84),rgba(5,8,16,.15))}
.hero-in{position:relative;z-index:2;padding-bottom:36px}
.pill{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);backdrop-filter:blur(10px);padding:9px 14px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.14em}
.pill i{width:8px;height:8px;background:var(--lime);border-radius:50%;display:block;box-shadow:0 0 0 6px rgba(139,124,255,.18)}
.hero h1{font-size:clamp(42px,10.5vw,92px);font-weight:900;max-width:920px;margin:20px 0 16px}
.hero h1 em{font-style:normal;color:var(--lime)}
.hero-lead{font-size:clamp(17px,2.4vw,21px);color:#d7d9d0;max-width:680px;margin:0}
.hero-ctas{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0 20px}
.trust{display:flex;flex-wrap:wrap;gap:10px}
.trust span{font-size:13px;font-weight:700;border:1px solid rgba(255,255,255,.16);padding:10px 13px;border-radius:999px;background:rgba(0,0,0,.28)}
.trust b{color:var(--lime)}
.stats{position:relative;z-index:2;border-top:1px solid rgba(255,255,255,.12);background:rgba(10,11,9,.74);backdrop-filter:blur(14px)}
.stats-grid{display:grid;grid-template-columns:repeat(2,1fr)}
.stat{padding:20px 16px;border-right:1px solid rgba(255,255,255,.09);border-bottom:1px solid rgba(255,255,255,.09)}
.stat:nth-child(2n){border-right:0}
.stat:last-child{grid-column:span 2}
.stat strong{font-family:"Sora";font-size:30px;line-height:1;display:block;color:#fff}
.stat strong span{color:var(--lime)}
.stat label{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#A7AEC4;font-weight:700}
.source-note{font-size:12px;color:#8A90A8;padding:12px 0 16px;margin:0}
.marquee{overflow:hidden;border-block:1px solid var(--line);background:var(--lime);color:#fff;padding:13px 0;font-family:"Sora";font-weight:900;letter-spacing:.05em;white-space:nowrap}
.marquee-track{display:flex;gap:36px;width:max-content;animation:scroll 22s linear infinite}
@keyframes scroll{to{transform:translateX(-50%)}}
.page-hero{padding:calc(var(--header) + var(--sat,0px) + 30px) 0 36px;background:var(--bg2);border-bottom:1px solid var(--line)}
.page-hero h1{font-size:clamp(38px,8vw,64px);font-weight:900;margin:16px 0 12px}
.page-hero h1 em{font-style:normal;color:var(--lime-d)}
@media(prefers-color-scheme:dark){.page-hero h1 em{color:var(--lime)}}
.page-hero p{color:var(--muted);font-size:17px;max-width:640px;margin:0}
.tag-pill{display:inline-flex;background:var(--lime);color:#fff;font-weight:900;font-size:11px;letter-spacing:.14em;padding:7px 12px;border-radius:999px}
section{padding:64px 0}
.kicker{color:var(--lime-d);font-weight:900;letter-spacing:.16em;font-size:12px;text-transform:uppercase;display:flex;align-items:center;gap:10px}
@media(prefers-color-scheme:dark){.kicker{color:var(--lime)}}
.kicker::before{content:"";width:28px;height:2px;background:var(--lime)}
.sec-head{display:flex;flex-direction:column;gap:13px;margin-bottom:30px}
.sec-head h2{font-size:clamp(32px,6.5vw,54px);font-weight:900;max-width:760px}
.sec-head p{color:var(--muted);max-width:640px;margin:0;font-size:16.5px}
.services{display:grid;gap:14px}
.svc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-height:215px;display:flex;flex-direction:column;box-shadow:var(--shadow);cursor:pointer;text-align:left;width:100%;color:var(--text)}
.svc:hover{border-color:color-mix(in srgb,var(--lime) 55%,var(--line))}
.svc-num{font-family:"Sora";font-weight:900;font-size:13px;color:#fff;background:var(--lime);width:42px;height:42px;border-radius:50%;display:grid;place-items:center;margin-bottom:16px;flex:none}
.svc-cat{font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:var(--lime-d);margin-bottom:6px}
@media(prefers-color-scheme:dark){.svc-cat{color:var(--lime)}}
.svc h3{font-size:20px;line-height:1.1;margin-bottom:10px}
.svc p{color:var(--muted);font-size:14.5px;margin:0;line-height:1.6}
.svc .go{margin-top:auto;padding-top:16px;font-weight:900;font-size:13px}
.svc-full{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:var(--shadow)}
.svc-full h2,.svc-full h3{font-size:24px;margin:6px 0 10px}
.svc-full p{color:var(--muted);margin:0;font-size:15.5px}
.svc-full ul{margin:16px 0 0;padding:0;list-style:none;display:grid;gap:8px}
.svc-full li{font-size:14.5px;font-weight:600;display:flex;gap:10px}
.svc-full li::before{content:"✓";color:var(--lime-d);font-weight:900}
@media(prefers-color-scheme:dark){.svc-full li::before{color:var(--lime)}}
.services-full{display:grid;gap:16px}
.steps{display:grid;gap:14px}
.step{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.step-no{font-family:"Sora";font-size:52px;font-weight:900;color:transparent;-webkit-text-stroke:1.5px var(--lime);line-height:1}
.step h3{font-size:21px;margin:14px 0 8px}
.step p{color:var(--muted);font-size:14.5px;margin:0}
.arrow{color:var(--lime-d);font-weight:900;margin-top:14px;display:block;font-size:13px}
@media(prefers-color-scheme:dark){.arrow{color:var(--lime)}}
.work-grid{display:grid;gap:18px}
.work{border-radius:24px;overflow:hidden;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.work-img{aspect-ratio:16/10;overflow:hidden;background:#111}
.work-img img{width:100%;height:100%;object-fit:cover}
.work-body{padding:22px}
.work-tag{font-size:11px;font-weight:900;letter-spacing:.13em;color:var(--lime-d);text-transform:uppercase}
@media(prefers-color-scheme:dark){.work-tag{color:var(--lime)}}
.work h2,.work h3{font-size:23px;margin:8px 0 10px;line-height:1.05}
.work p{color:var(--muted);font-size:14.5px;margin:0 0 18px}
.metrics{display:flex;gap:18px;border-top:1px solid var(--line);padding-top:16px;flex-wrap:wrap}
.metrics div strong{font-family:"Sora";font-size:24px;display:block;line-height:1}
.metrics div span{font-size:12px;color:var(--muted);font-weight:700}
.featured{display:grid;overflow:hidden;border-radius:26px;background:#070B14;color:#fff}
.featured img{width:100%;height:100%;object-fit:cover;min-height:260px}
.featured-body{padding:28px}
.featured-body h3{font-size:32px;margin:10px 0 12px}
.featured-body p{color:#C6CADB}
.adv-grid{display:grid;gap:14px}
.adv{padding:24px;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface2)}
.adv-icon{width:46px;height:46px;border-radius:13px;background:var(--lime-soft);display:grid;place-items:center;font-size:22px;margin-bottom:14px}
.adv h3{font-size:19px;margin-bottom:8px}
.adv p{color:var(--muted);font-size:14.5px;margin:0}
.commit{background:var(--lime);color:#fff;border-radius:28px;padding:30px 22px}
.commit h2{font-size:clamp(28px,6vw,46px);margin:8px 0}
.commit>p{max-width:620px;color:rgba(255,255,255,.88);font-weight:600}
.commit-grid{display:grid;gap:12px;margin-top:24px}
.commit-item{background:rgba(255,255,255,.42);border:1px solid rgba(10,14,40,.12);border-radius:16px;padding:18px;display:flex;gap:14px;align-items:flex-start}
.commit-item b{font-family:"Sora";font-size:17px}
.commit-item p{margin:4px 0 0;color:#3A3F5C;font-size:14px}
.check{width:28px;height:28px;flex:none;background:#070B14;color:var(--lime);border-radius:50%;display:grid;place-items:center;font-weight:900}
.faq-list{display:grid;gap:12px;max-width:840px}
details{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:4px 20px}
summary{cursor:pointer;font-weight:800;font-family:"Sora";font-size:17px;padding:16px 0;list-style:none;display:flex;justify-content:space-between;gap:16px;align-items:center;min-height:52px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";width:32px;height:32px;flex:none;display:grid;place-items:center;background:var(--lime);color:#fff;border-radius:50%;font-size:20px}
details[open] summary::after{content:"−"}
details p{color:var(--muted);margin:0 0 18px;font-size:15px}
.final{position:relative;overflow:hidden;border-radius:28px;background:#070B14;color:#fff;padding:36px 22px}
.final::before{content:"";position:absolute;width:420px;height:420px;background:var(--lime);filter:blur(140px);opacity:.28;right:-120px;top:-160px;border-radius:50%}
.final h2{font-size:clamp(30px,6.5vw,56px);position:relative;max-width:820px;margin:0 auto 14px}
.final p{color:#C6CADB;position:relative;max-width:580px;margin:0 auto 24px}
.final .hero-ctas{justify-content:flex-start;position:relative}
.contact-hero-card{background:#070B14;color:#fff;border-radius:28px;padding:30px 22px;text-align:center;position:relative;overflow:hidden}
.contact-hero-card::before{content:"";position:absolute;width:380px;height:380px;background:var(--lime);filter:blur(130px);opacity:.25;left:-100px;top:-140px;border-radius:50%}
.big-num{font-family:"Sora";font-size:clamp(30px,7vw,52px);font-weight:900;letter-spacing:-.02em;position:relative;margin:10px 0 4px}
.big-num a{text-decoration:none;color:var(--lime)}
.contact-actions{display:grid;gap:12px;max-width:560px;margin:26px auto 0;position:relative}
.contact-actions .btn{min-height:62px;font-size:16px}
.info-grid{display:grid;gap:14px;margin-top:18px}
.info-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px;text-align:center}
.info-card strong{font-family:"Sora";font-size:20px;display:block;margin-bottom:6px}
.info-card p{color:var(--muted);font-size:14px;margin:0}
footer{padding:36px 0 110px;border-top:1px solid var(--line);color:var(--muted);font-size:14px;background:var(--bg2)}
.foot-grid{display:grid;gap:24px}
.foot-grid h4{font-family:"Sora";color:var(--text);margin:0 0 12px;font-size:15px}
.foot-grid a{display:block;text-decoration:none;padding:5px 0;color:var(--muted);font-weight:600}
.foot-grid a:hover{color:var(--text)}
.foot-phone{font-family:"Sora";font-size:22px;color:var(--text)!important;font-weight:900}
.bottom-bar{position:fixed;left:0;right:0;bottom:0;z-index:70;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:10px 12px calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1.2fr;gap:10px}
.bottom-bar .btn{min-height:56px;padding:12px 8px;font-size:15px}
.story-grid{display:grid;gap:22px;align-items:center}
.story-grid img{border-radius:24px;width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.trusted{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.trusted span{font-family:"Sora";font-weight:800;font-size:13px;letter-spacing:.08em;border:1px solid var(--line);background:var(--glass);backdrop-filter:blur(10px);padding:12px 18px;border-radius:999px;color:var(--muted)}
.eco{display:grid;gap:14px}
.eco-card{border-radius:22px;padding:26px;background:var(--surface);border:1px solid var(--line);backdrop-filter:blur(8px);cursor:pointer;text-align:left;color:var(--text);width:100%}
.eco-card.active{border-color:var(--lime);box-shadow:0 0 0 1px var(--lime)}
.eco-card h3{font-size:20px;margin:10px 0 6px}
.eco-card p{color:var(--muted);font-size:14.5px;margin:0}
.eco-panel{margin-top:14px;background:#070B14;color:#fff;border-radius:22px;padding:26px}
.eco-panel h3{font-size:26px;margin-bottom:8px}
.eco-panel p{color:#C6CADB;margin:0;max-width:700px}
.testi{display:grid;gap:16px}
.testi-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:var(--shadow)}
.testi-card .stars{color:#e8b800;letter-spacing:3px;font-size:17px}
.testi-card blockquote{margin:12px 0 16px;font-size:15.5px;line-height:1.65}
.testi-card footer{padding:0;border:0;background:none;display:flex;gap:12px;align-items:center}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--lime);color:#fff;display:grid;place-items:center;font-family:"Sora";font-weight:900;flex:none}
.ver-tag{font-size:10.5px;font-weight:900;letter-spacing:.12em;background:var(--lime-soft);color:var(--lime-d);padding:5px 9px;border-radius:999px}
@media(prefers-color-scheme:dark){.ver-tag{color:var(--lime)}}
/* LOGIN + TEAM */
.login-wrap{min-height:80vh;display:grid;place-items:center;padding:calc(var(--header) + var(--sat,0px) + 36px) 16px 60px;background:radial-gradient(600px 400px at 20% 10%,rgba(139,124,255,.16),transparent),var(--bg2)}
.login-card{width:min(460px,100%);background:var(--glass);backdrop-filter:blur(20px);border:1px solid var(--line);border-radius:26px;padding:32px 26px;box-shadow:var(--shadow)}
.login-card h1{font-size:32px;margin:12px 0 8px}
.login-card>p{color:var(--muted);margin:0 0 20px;font-size:15px}
.field{margin-bottom:14px}
.field label{display:block;font-weight:800;font-size:13px;margin-bottom:6px}
.field input,.field select,.field textarea{width:100%;min-height:50px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:12px 14px;font-size:15px}
.field textarea{min-height:110px;resize:vertical}
.pw-row{position:relative}
.pw-row input{padding-right:86px}
.pw-toggle{position:absolute;right:6px;top:6px;min-height:38px;border:0;border-radius:9px;background:var(--lime-soft);color:var(--text);font-weight:800;padding:6px 12px;cursor:pointer;font-size:13px}
.check-row{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;margin:6px 0 16px}
.check-row input{width:20px;height:20px;accent-color:#6D5DF0}
.login-err{display:none;background:rgba(255,90,90,.12);border:1px solid rgba(255,90,90,.5);color:#ff8a8a;border-radius:12px;padding:12px 14px;font-weight:700;font-size:14px;margin-bottom:14px}
@media(prefers-color-scheme:light){.login-err{color:#b00020}}
.login-err.show{display:block}
.dash-head{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin-bottom:8px}
.user-chip{display:flex;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:8px 16px 8px 8px;font-weight:800;font-size:14px}
.tools-grid{display:grid;gap:14px;margin-top:22px}
.tool-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px;text-align:left;cursor:pointer;color:var(--text);box-shadow:var(--shadow);width:100%}
.tool-card:hover{border-color:var(--lime)}
.tool-card .ticon{font-size:28px;margin-bottom:10px}
.tool-card h3{font-size:18px;margin-bottom:6px}
.tool-card p{color:var(--muted);font-size:13.5px;margin:0}
.tool-view{display:none}
.tool-view.active{display:block;animation:fade .3s ease}
.tool-shell{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:var(--shadow)}
.tool-shell h2{font-size:clamp(26px,5vw,38px);margin:8px 0 6px}
.tool-shell>p{color:var(--muted);margin:0 0 18px;max-width:640px}
.tool-layout{display:grid;gap:20px;align-items:start}
/* v35.3: the single implicit column MUST be minmax(0,1fr). With no
   grid-template-columns the auto column sized to the largest
   min-content child — the .vo-line rows (90-char nowrap spans) blew
   every .controls panel out to ~700px, making it horizontally
   scrollable; any sideways scroll then clipped the labels at the
   left (owner's Voiceover screenshot, 23 Nov 2026). */
.controls{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-content:start}
.controls label{font-weight:800;font-size:13px;display:block;margin-bottom:5px}
.controls input[type=text],.controls input[type=number],.controls input[type=url],.controls select,.controls textarea{width:100%;min-height:46px;border-radius:11px;border:1px solid var(--line);background:var(--surface2);color:var(--text);padding:10px 12px;font-size:14.5px}
.controls input[type=color]{width:100%;height:46px;border:1px solid var(--line);border-radius:11px;background:var(--surface2);padding:4px;cursor:pointer}
.controls input[type=range]{width:100%;accent-color:#6D5DF0}
.controls input[type=file]{width:100%;font-size:13.5px}
.ctl-row{display:flex;gap:8px;flex-wrap:wrap}
.ctl-row .btn{flex:1}
.stage{background:#070B14;border-radius:18px;padding:14px;display:grid;place-items:center;min-height:240px;overflow:hidden}
.stage canvas{max-width:100%;height:auto;border-radius:8px;background:#111}
.stage video{max-width:100%;max-height:400px;border-radius:8px;background:#000}
.hint{font-size:12.5px;color:var(--muted)}
.kv{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;font-weight:700;background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.swatches{display:flex;gap:10px;flex-wrap:wrap}
.swatch{width:64px;height:64px;border-radius:14px;border:2px solid var(--line);cursor:pointer;position:relative;flex:none}
.swatch.locked{border-color:var(--lime);box-shadow:0 0 0 2px var(--lime)}
.hex-list{display:grid;gap:8px}
.hex-item{display:flex;align-items:center;gap:10px;background:var(--surface2);border:1px solid var(--line);border-radius:11px;padding:8px 12px;font-weight:800;font-size:14px}
.hex-dot{width:26px;height:26px;border-radius:8px;flex:none;border:1px solid var(--line)}
.mini-btn{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:9px;padding:7px 12px;font-weight:800;font-size:13px;cursor:pointer;min-height:38px}
.toast{position:fixed;left:50%;transform:translateX(-50%) translateY(20px);bottom:110px;z-index:99;background:#070B14;color:#fff;border:1px solid var(--lime);padding:12px 20px;border-radius:999px;font-weight:800;font-size:14px;opacity:0;pointer-events:none;transition:.3s}
.toast.show{opacity:1;transform:translateX(-50%)}
.vid-wrap{position:relative;display:block;width:100%;aspect-ratio:16/9;max-height:400px;background:#000;border-radius:8px;overflow:hidden}
.stage .vid-wrap video{width:100%;height:100%;object-fit:contain;display:block;margin-top:0;max-height:none}
.controls::-webkit-scrollbar{width:6px}
.controls::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--lime) 55%,transparent);border-radius:99px}
.controls::-webkit-scrollbar-track{background:transparent}
.controls .ctl-group{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 14px;overflow:hidden}
.controls .ctl-group summary{font-size:14px;min-height:46px;padding:12px 0;letter-spacing:.02em}
.controls .ctl-group summary::after{width:26px;height:26px;font-size:16px}
.controls .ctl-group .ctl-body{display:grid;gap:12px;padding:2px 0 14px}
.controls .ctl-group[open]{border-color:color-mix(in srgb,var(--lime) 40%,var(--line))}
.vid-overlay{position:absolute;left:0;right:0;bottom:12%;text-align:center;font-family:"Sora";font-weight:900;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.8);pointer-events:none;padding:0 12px;word-break:break-word}
/* ===== ULTRA PREMIUM TOOLS v4 ===== */
#page-team{background:radial-gradient(900px 500px at 85% -5%,rgba(139,124,255,.14),transparent 60%),radial-gradient(700px 420px at 0% 20%,rgba(139,124,255,.07),transparent 55%),var(--bg)}
#page-team section{padding-bottom:130px}
.prem-hero{position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(135deg,#070B14,#0E1530 55%,#070B14);color:#fff;padding:28px 22px;border:1px solid rgba(139,124,255,.35);box-shadow:0 24px 60px rgba(0,0,0,.45)}
.prem-hero::after{content:"";position:absolute;width:340px;height:340px;border-radius:50%;background:var(--lime);filter:blur(130px);opacity:.28;right:-90px;top:-120px;pointer-events:none}
.prem-hero h2{font-size:clamp(26px,5.5vw,40px);position:relative;z-index:1}
.prem-hero p{color:#cdd1c2;max-width:640px;position:relative;z-index:1}
.prem-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;position:relative;z-index:1}
.prem-stats span{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(10px);padding:10px 14px;border-radius:999px;font-size:13px;font-weight:800}
.prem-stats b{color:var(--lime)}
.tools-grid{gap:16px;margin-top:20px}
.tool-card{position:relative;border-radius:22px;padding:22px;background:linear-gradient(160deg,var(--surface),var(--surface2));border:1px solid var(--line);box-shadow:0 14px 34px rgba(0,0,0,.22);transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;overflow:hidden;min-height:172px;display:flex;flex-direction:column}
.tool-card::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,var(--lime),transparent 70%);opacity:0;transition:.25s}
.tool-card:hover,.tool-card:active{transform:translateY(-3px);border-color:color-mix(in srgb,var(--lime) 60%,var(--line));box-shadow:0 20px 44px rgba(0,0,0,.3)}
.tool-card:hover::before{opacity:1}
.tool-card .ticon{width:54px;height:54px;border-radius:16px;background:linear-gradient(145deg,var(--lime),#A78BFA);display:grid;place-items:center;font-size:26px;margin-bottom:14px;box-shadow:0 10px 22px rgba(139,124,255,.35);flex:none}
.tool-card h3{font-size:19px}
.tool-card p{flex:1}
.tool-meta{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-size:12px;font-weight:900;letter-spacing:.06em}
.tool-meta .live{color:#3f7a00;display:inline-flex;gap:6px;align-items:center}
@media(prefers-color-scheme:dark){.tool-meta .live{color:var(--lime)}}
.tool-meta .live::before{content:"";width:7px;height:7px;border-radius:50%;background:#7ee000;box-shadow:0 0 0 4px rgba(126,224,0,.18)}
.tool-meta .open{color:var(--muted)}
.tool-shell{border-radius:26px;padding:20px;background:linear-gradient(170deg,var(--surface),var(--surface2));border:1px solid var(--line);box-shadow:0 24px 55px rgba(0,0,0,.28);scroll-margin-top:130px}
.tool-head{display:flex;gap:16px;align-items:flex-start;margin:14px 0 6px}
.tool-head .th-icon{width:58px;height:58px;flex:none;border-radius:17px;background:linear-gradient(145deg,var(--lime),#A78BFA);display:grid;place-items:center;font-size:28px;box-shadow:0 10px 22px rgba(139,124,255,.3)}
.tool-head h2{margin:0}
.tool-head p{margin:4px 0 0!important}
.steps-bar{display:flex;gap:0;margin:18px 0 20px;background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:12px;overflow-x:auto}
.step-chip{flex:1;min-width:96px;display:flex;align-items:center;gap:9px;font-weight:800;font-size:12.5px;color:var(--muted)}
.step-chip i{width:28px;height:28px;flex:none;border-radius:50%;background:var(--lime);color:#fff;display:grid;place-items:center;font-style:normal;font-family:"Sora";font-size:13px}
.step-chip+.step-chip{border-left:1px dashed var(--line);padding-left:12px;margin-left:4px}
.controls{background:var(--surface2);border:1px solid var(--line);border-radius:18px;padding:16px}
.controls>div{padding-bottom:12px;border-bottom:1px dashed var(--line)}
.controls>div:last-child{border-bottom:0;padding-bottom:0}
.controls input[type=file]{min-height:62px;padding:16px 12px;border:1.5px dashed color-mix(in srgb,var(--lime) 55%,var(--line));border-radius:14px;background:var(--lime-soft);font-weight:700;cursor:pointer;width:100%}
.controls input[type=file]::file-selector-button{min-height:40px;border:0;border-radius:10px;background:#070B14;color:var(--lime);font-weight:800;padding:8px 14px;margin-right:10px;cursor:pointer}
.stage{border-radius:20px;border:1px solid rgba(255,255,255,.1);background:radial-gradient(500px 260px at 50% 0%,rgba(139,124,255,.10),transparent),#070B14;padding:16px;min-height:240px;position:relative}
.stage::before{content:"● LIVE PREVIEW";position:absolute;top:12px;left:14px;font-size:10px;font-weight:900;letter-spacing:.14em;color:var(--lime);background:rgba(0,0,0,.55);padding:5px 9px;border-radius:999px;z-index:2}
.stage canvas,.stage video{margin-top:22px}
.btn{transition:transform .18s ease,box-shadow .18s ease}
.btn-lime{box-shadow:0 12px 26px rgba(139,124,255,.28)}
.btn-lime:hover{box-shadow:0 16px 32px rgba(139,124,255,.38)}
.btn:disabled{opacity:.65;cursor:wait;transform:none}
.mini-btn{min-height:44px;padding:10px 16px;border-radius:999px;font-size:13.5px}
.file-ok{display:none;margin-top:8px;background:var(--lime-soft);border:1px solid color-mix(in srgb,var(--lime) 50%,transparent);border-radius:10px;padding:9px 12px;font-size:13px;font-weight:700}
.file-ok.show{display:block}
.fallback-note{display:none;background:#2a1a05;border:1px solid #b97e00;color:#ffd98a;border-radius:14px;padding:14px 16px;font-size:14px;line-height:1.55;margin-top:10px}
@media(prefers-color-scheme:light){.fallback-note{background:#fff6dd;color:#6b4e00}}
.fallback-note.show{display:block}
.suggest-wrap{margin-top:14px}
.suggest-wrap label{font-weight:800;font-size:13px;display:block;margin-bottom:8px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:9px 13px;font-weight:800;font-size:13px;cursor:pointer;min-height:40px}
.chip:active{transform:scale(.97)}
.chip.added{background:var(--lime);color:#fff;border-color:var(--lime)}
.char-bar{height:8px;border-radius:99px;background:var(--surface2);border:1px solid var(--line);overflow:hidden;margin-top:8px}
.char-bar i{display:block;height:100%;background:var(--lime);width:0%;transition:width .25s}
.toast{border-radius:16px;max-width:calc(100vw - 32px);text-align:center;line-height:1.45}
.dash-head h1{font-size:clamp(36px,7.5vw,58px)}
.user-chip{box-shadow:var(--shadow)}
.kv{border-radius:12px}
/* ===== CANVA-LEVEL DESIGN STUDIO + AI SUITE v5 ===== */
.featured-tool{position:relative;width:100%;text-align:left;cursor:pointer;border:1px solid rgba(139,124,255,.55);border-radius:26px;padding:26px 24px;margin-top:20px;background:linear-gradient(120deg,#070B14,#1B1440 55%,#070B14);color:#fff;overflow:hidden;box-shadow:0 24px 55px rgba(0,0,0,.4);display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.featured-tool::after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:var(--lime);filter:blur(120px);opacity:.3;right:-80px;top:-110px;pointer-events:none}
.featured-tool .ft-icon{width:72px;height:72px;flex:none;border-radius:20px;background:linear-gradient(145deg,var(--lime),#A78BFA);display:grid;place-items:center;font-size:36px;box-shadow:0 14px 30px rgba(139,124,255,.4);position:relative;z-index:1}
.featured-tool h3{font-size:clamp(24px,4.5vw,34px);position:relative;z-index:1}
.featured-tool p{color:#cdd1c2;margin:6px 0 0;max-width:560px;position:relative;z-index:1;font-size:15px}
.featured-tool .ft-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;position:relative;z-index:1}
.featured-tool .ft-tags span{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.18);padding:7px 12px;border-radius:999px;font-size:12px;font-weight:800}
.featured-tool .ft-go{margin-left:auto;position:relative;z-index:1;background:var(--lime);color:#fff;font-weight:900;padding:14px 22px;border-radius:999px;font-size:15px;white-space:nowrap}
.studio-head{margin:38px 0 4px;display:flex;gap:14px;align-items:flex-start}
.studio-head .sh-icon{width:52px;height:52px;flex:none;border-radius:15px;background:linear-gradient(145deg,var(--lime),#A78BFA);display:grid;place-items:center;font-size:25px;box-shadow:0 10px 22px rgba(139,124,255,.3)}
.studio-head h2{font-size:clamp(24px,5vw,34px)}
.studio-head p{color:var(--muted);margin:4px 0 0;font-size:14.5px;max-width:640px}
.ds-topbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:16px 0 12px}
.ds-topbar .mini-btn{background:var(--surface2)}
.ds-topbar select,.ds-topbar input[type=text]{min-height:44px;border-radius:11px;border:1px solid var(--line);background:var(--surface2);color:var(--text);padding:9px 12px;font-size:14px;font-weight:700}
.ds-layout{display:grid;gap:16px}
.ds-side{background:var(--surface2);border:1px solid var(--line);border-radius:18px;padding:14px;align-content:start;display:grid;gap:12px}
.ds-tabs{display:flex;gap:6px;flex-wrap:wrap}
.ds-tab{flex:1;min-width:52px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:11px;padding:10px 6px;font-weight:800;font-size:12px;cursor:pointer;min-height:48px}
.ds-tab.active{background:var(--lime);color:#fff;border-color:var(--lime)}
.ds-panel{display:none}
.ds-panel.active{display:grid;gap:10px;align-content:start}
.ds-panel label{font-weight:800;font-size:13px;display:block;margin-bottom:5px}
.ds-panel select,.ds-panel input[type=text],.ds-panel input[type=number],.ds-panel textarea{width:100%;min-height:46px;border-radius:11px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:10px 12px;font-size:14.5px}
.ds-panel input[type=color]{width:100%;height:46px;border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:4px;cursor:pointer}
.ds-panel input[type=range]{width:100%;accent-color:#6D5DF0}
.ds-panel input[type=file]{width:100%;font-size:13.5px;min-height:52px;padding:12px;border:1.5px dashed color-mix(in srgb,var(--lime) 55%,var(--line));border-radius:12px;background:var(--lime-soft)}
.tpl-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tpl-btn{border:1px solid var(--line);border-radius:12px;padding:10px 8px;font-weight:800;font-size:12px;cursor:pointer;color:#fff;min-height:64px;text-align:left;line-height:1.3}
.tpl-btn small{display:block;font-weight:600;opacity:.75;font-size:11px;margin-top:3px}
.elem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.elem-btn{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:12px;padding:12px 4px;font-size:20px;cursor:pointer;min-height:56px}
.elem-btn small{display:block;font-size:10.5px;font-weight:800;margin-top:2px}
.bg-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.bg-btn{height:46px;border-radius:11px;border:2px solid var(--line);cursor:pointer}
.ds-stage{background:radial-gradient(500px 260px at 50% 0%,rgba(139,124,255,.08),transparent),#070B14;border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:18px 12px;display:grid;place-items:center;overflow:auto;min-height:340px}
.ds-stage canvas{max-width:100%;height:auto;border-radius:4px;background:#fff;box-shadow:0 18px 44px rgba(0,0,0,.5);touch-action:none;cursor:grab}
.ds-layers{display:grid;gap:8px;max-height:300px;overflow:auto}
.layer-row{display:flex;gap:6px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:8px 10px;font-size:13px;font-weight:700}
.layer-row.sel{border-color:var(--lime);box-shadow:0 0 0 1px var(--lime)}
.layer-row .lname{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;text-align:left;background:none;border:0;color:var(--text);font-weight:700;font-size:13px;padding:4px 0}
.layer-row button{border:1px solid var(--line);background:var(--surface2);color:var(--text);border-radius:8px;min-width:36px;min-height:36px;cursor:pointer;font-size:13px}
.design-row{display:flex;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.design-row img{width:52px;height:52px;object-fit:cover;border-radius:8px;flex:none;background:#111}
.design-row .dname{flex:1;font-weight:800;font-size:14px;min-width:0}
.design-row .dname small{display:block;color:var(--muted);font-weight:600;font-size:12px}
.ai-out{width:100%;min-height:220px;border-radius:14px;border:1px solid var(--line);background:var(--surface2);color:var(--text);padding:16px;font-size:15px;line-height:1.65}
.ai-list{display:grid;gap:10px}
.ai-item{background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.ai-item b{font-family:"Sora";font-size:16px;display:block;margin-bottom:4px}
.ai-item p{margin:0;color:var(--muted);font-size:14px}
.ai-item .mini-btn{margin-top:10px}
.prog{height:14px;border-radius:99px;background:var(--surface2);border:1px solid var(--line);overflow:hidden}
.prog i{display:block;height:100%;background:linear-gradient(90deg,#A78BFA,var(--lime));width:0%;transition:width .4s}
.check-item{display:flex;gap:12px;align-items:flex-start;width:100%;text-align:left;background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:14px 16px;cursor:pointer;color:var(--text);font-size:14.5px;font-weight:600}
.check-item .box{width:26px;height:26px;flex:none;border-radius:8px;border:2px solid var(--line);display:grid;place-items:center;font-weight:900;color:#070B14;margin-top:1px}
.check-item.done{border-color:color-mix(in srgb,var(--lime) 55%,var(--line))}
.check-item.done .box{background:var(--lime);border-color:var(--lime)}
.check-item small{display:block;color:var(--muted);font-weight:600;margin-top:2px}
.time-cards{display:grid;gap:12px}
.time-card{background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:18px}
.time-card h3{font-size:18px;margin-bottom:8px}
.time-card p{color:var(--muted);font-size:14px;margin:0 0 8px}
.time-card .best{display:inline-block;background:var(--lime-soft);border:1px solid color-mix(in srgb,var(--lime) 45%,transparent);border-radius:999px;padding:6px 12px;font-weight:800;font-size:13px;margin:3px 4px 3px 0}
.cmp-grid{display:grid;gap:12px}
.cmp-card{background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:18px}
.cmp-card h3{font-size:18px;margin-bottom:8px}
.cmp-card ul{margin:0;padding-left:18px;color:var(--muted);font-size:14px;display:grid;gap:5px}
.cmp-card .verdict{margin-top:10px;font-weight:800;font-size:13.5px}
.cal-grid{display:grid;gap:10px}
.cal-day{background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:12px}
.cal-day b{font-family:"Sora";font-size:14px;display:block;margin-bottom:6px}
.cal-day input{width:100%;min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:9px 11px;font-size:14px;margin-bottom:6px}
.vid-sticker{position:absolute;font-size:64px;pointer-events:none;filter:drop-shadow(0 4px 12px rgba(0,0,0,.6));display:none;z-index:3}
.tl-wrap{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px}
.tl-track{position:relative;height:34px;background:var(--surface2);border:1px solid var(--line);border-radius:9px;overflow:hidden}
.tl-sel{position:absolute;top:0;bottom:0;background:rgba(139,124,255,.35);border-left:3px solid var(--lime);border-right:3px solid var(--lime)}
.tl-play{position:absolute;top:0;bottom:0;width:3px;background:#fff;box-shadow:0 0 6px rgba(0,0,0,.7)}
.tl-wrap input[type=range]{margin-top:8px}
.preset-row{display:flex;gap:8px;flex-wrap:wrap}
.preset-btn{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:9px 14px;font-weight:800;font-size:13px;cursor:pointer;min-height:42px}
.preset-btn.active{background:var(--lime);color:#fff;border-color:var(--lime)}
/* ===== v6 MEGA UPGRADE ===== */
html[data-theme="light"]{--bg:#F4F5FB;--bg2:#ECEEF7;--surface:#fff;--surface2:#F7F8FD;--line:rgba(10,14,40,.12);--text:#0B0E1E;--muted:#565B74;--muted2:#7A7FA0;--lime:#6D5DF0;--lime-d:#4A3BC2;--lime-soft:rgba(109,93,240,.13);--shadow:0 18px 40px rgba(20,24,60,.12);--glass:rgba(255,255,255,.75);color-scheme:light}
html[data-theme="dark"]{--bg:#050810;--bg2:#070B14;--surface:#0D1220;--surface2:#131A2E;--line:rgba(255,255,255,.10);--text:#F2F4FA;--muted:#A7AEC4;--muted2:#7C86A3;--lime:#8B7CFF;--lime-d:#6D5DF0;--lime-soft:rgba(139,124,255,.14);--shadow:0 20px 50px rgba(0,0,0,.45);--glass:rgba(255,255,255,.06);color-scheme:dark}
.header-phone{white-space:nowrap}
.header-top{flex-wrap:nowrap}
@media(min-width:1080px){.nav-desktop button{padding:10px 8px}.hdr-btn{min-width:42px;padding:8px 10px}}
.hdr-btn{position:relative;flex:none;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;min-width:44px;min-height:44px;padding:8px 12px;font-weight:800;font-size:14px;cursor:pointer}
.hdr-btn .bdg{position:absolute;top:-4px;right:-3px;background:#ff5252;color:#fff;font-size:10px;font-weight:900;min-width:20px;height:20px;border-radius:99px;display:grid;place-items:center;padding:0 5px}
/* ===== v7 PREMIUM MOBILE HEADER ===== */
:root{--sat:env(safe-area-inset-top,0px)}
header.scrolled{box-shadow:0 16px 42px rgba(0,0,0,.34)}
.hdr-actions{display:flex;gap:8px;align-items:center}
.logo{flex:none;font-size:16px;letter-spacing:.02em}
.logo-word{white-space:nowrap;line-height:1.05}
.logo-word .lw-lime{color:var(--lime-d)}
@media(prefers-color-scheme:dark){.logo-word .lw-lime{color:var(--lime)}}
html[data-theme="dark"] .logo-word .lw-lime{color:var(--lime)}
html[data-theme="light"] .logo-word .lw-lime{color:var(--lime-d)}
.hdr-wa{display:none;align-items:center;gap:7px;height:44px;padding:0 15px;border-radius:999px;background:var(--lime);color:#fff;font-weight:800;font-size:13.5px;text-decoration:none;flex:none;box-shadow:0 8px 22px color-mix(in srgb,var(--lime) 35%,transparent)}
.hdr-wa svg{width:18px;height:18px;flex:none}
.burger{display:none;width:44px;height:44px;min-width:44px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0}
.burger span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor;transition:transform .3s ease,opacity .2s ease}
.burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger.open span:nth-child(2){opacity:0}
.burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mmenu{position:fixed;inset:0;z-index:79;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4);opacity:0;visibility:hidden;transition:opacity .35s ease,visibility 0s linear .35s;overflow-y:auto}
.mmenu.open{opacity:1;visibility:visible;transition:opacity .35s ease}
.mmenu-in{min-height:100%;max-width:560px;margin:0 auto;padding:calc(var(--header) + var(--sat) + 26px) 20px calc(30px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column}
.mitem{opacity:0;transform:translateY(16px);transition:opacity .45s ease var(--d,0s),transform .45s ease var(--d,0s)}
.mmenu.open .mitem{opacity:1;transform:none}
.mnav{display:flex;flex-direction:column}
.mlink{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:60px;padding:14px 2px;background:none;border:0;border-bottom:1px solid var(--line);font-family:"Sora",sans-serif;font-weight:800;font-size:clamp(24px,7vw,30px);letter-spacing:-.01em;color:var(--text);cursor:pointer;text-align:left}
.mlink .marr{font-size:19px;color:var(--muted2);font-family:"Inter",sans-serif}
.mlink.active{color:var(--lime-d)}
@media(prefers-color-scheme:dark){.mlink.active{color:var(--lime)}}
html[data-theme="dark"] .mlink.active{color:var(--lime)}
html[data-theme="light"] .mlink.active{color:var(--lime-d)}
.mlink.active::after{content:"";position:absolute;left:2px;bottom:9px;width:36px;height:3px;border-radius:2px;background:var(--lime)}
.mteam{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}
.mteam-btn{flex:1;min-width:150px;min-height:52px;padding:13px 18px;border-radius:999px;border:1px solid var(--lime);background:var(--lime-soft);color:var(--text);font-weight:800;font-size:15px;cursor:pointer}
.mteam-btn.ghost{border-color:var(--line);background:var(--surface)}
.mutils{display:flex;gap:10px;margin-top:12px}
.mutil{flex:1;min-height:52px;padding:10px 8px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-weight:800;font-size:14px;cursor:pointer}
body.menu-open .floats{opacity:0;visibility:hidden;pointer-events:none}
.floats{transition:opacity .25s ease,visibility .25s}
.mcta{display:flex;flex-direction:column;gap:10px;margin-top:26px}
.mcta .btn{width:100%}
.kpi-grid{display:grid;gap:12px;grid-template-columns:1fr 1fr}
.kpi{background:linear-gradient(160deg,var(--surface),var(--surface2));border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow)}
.kpi .k-ic{font-size:22px}
.kpi strong{font-family:"Sora";font-size:clamp(22px,4.5vw,30px);display:block;line-height:1.1;margin:6px 0 2px}
.kpi label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800}
.kpi .k-sub{font-size:12px;color:var(--muted);margin-top:4px;display:block}
.cc-grid{display:grid;gap:14px;margin-top:14px}
.cc-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow)}
.cc-card h3{font-size:17px;margin-bottom:10px}
.cc-card canvas{width:100%;height:auto;display:block}
.act-item{display:flex;gap:10px;padding:9px 0;border-bottom:1px dashed var(--line);font-size:13.5px}
.act-item:last-child{border-bottom:0}
.act-item .a-ic{width:32px;height:32px;flex:none;border-radius:10px;background:var(--lime-soft);display:grid;place-items:center}
.act-item small{color:var(--muted);display:block}
.qa-grid{display:grid;gap:10px;grid-template-columns:repeat(2,1fr);margin-top:14px}
.qa-btn{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:16px;padding:16px 12px;font-weight:800;font-size:13.5px;cursor:pointer;text-align:center;min-height:74px}
.qa-btn span{font-size:22px;display:block;margin-bottom:6px}
.pill-status{display:inline-block;font-size:11px;font-weight:900;letter-spacing:.05em;padding:5px 10px;border-radius:999px;background:var(--lime-soft);color:var(--lime-d);border:1px solid color-mix(in srgb,var(--lime) 40%,transparent)}
@media(prefers-color-scheme:dark){.pill-status{color:var(--lime)}}
.crm-row{display:flex;gap:10px;align-items:center;background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:12px 14px;flex-wrap:wrap}
.crm-row .c-main{flex:1;min-width:180px}
.crm-row b{font-family:"Sora";font-size:15.5px}
.crm-row small{color:var(--muted);display:block;font-size:12.5px}
.kb-board{display:grid;gap:12px}
.kb-col{background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:12px;min-height:140px}
.kb-col.drag-over{border-color:var(--lime);box-shadow:0 0 0 1px var(--lime)}
.kb-col h4{font-family:"Sora";margin:0 0 10px;font-size:14px;display:flex;justify-content:space-between}
.kb-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:10px;cursor:grab;box-shadow:0 6px 16px rgba(0,0,0,.15)}
.kb-card:active{cursor:grabbing}
.kb-card b{font-size:14px;display:block}
.kb-card small{color:var(--muted);font-size:12px;display:block;margin-top:2px}
.kb-card .kb-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px;align-items:center}
.prio{font-size:10.5px;font-weight:900;padding:4px 8px;border-radius:99px}
.prio-high{background:#3a0d0d;color:#ff9a9a}
.prio-med{background:#3a2c05;color:#ffd98a}
.prio-low{background:#0d2b12;color:#8ae89a}
@media(prefers-color-scheme:light){.prio-high{background:#ffe1e1;color:#a10000}.prio-med{background:#fff3d1;color:#7a5a00}.prio-low{background:#dff5e2;color:#14662a}}
.kb-prog{height:7px;border-radius:99px;background:var(--line);overflow:hidden;margin-top:8px}
.kb-prog i{display:block;height:100%;background:var(--lime)}
.inv-doc{background:#fff;color:#111;border-radius:14px;padding:26px 22px;font-size:14px;box-shadow:0 14px 34px rgba(0,0,0,.3)}
.inv-doc h3{color:#070B14}
.inv-doc table{width:100%;border-collapse:collapse;margin:14px 0}
.inv-doc th{text-align:left;border-bottom:2px solid #111;padding:8px 6px;font-size:12px;letter-spacing:.06em}
.inv-doc td{border-bottom:1px solid #e3e3e3;padding:8px 6px}
.inv-doc .r{text-align:right}
.inv-head{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;border-bottom:4px solid var(--inv-accent,#A78BFA);padding-bottom:14px}
.inv-logo{font-family:"Sora";font-weight:900;font-size:24px}
.inv-logo span{color:var(--inv-accent,#6D5DF0)}
.calpro-head{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.calpro-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.calpro-dow{font-size:11px;font-weight:900;text-align:center;color:var(--muted);padding:6px 0}
.calpro-day{border:1px solid var(--line);border-radius:10px;min-height:74px;padding:6px;background:var(--surface2);cursor:pointer;overflow:hidden}
.calpro-day.dim{opacity:.38}
.calpro-day.today{border-color:var(--lime);box-shadow:0 0 0 1px var(--lime)}
.calpro-day.sel{outline:2px solid var(--lime)}
.calpro-day .dnum{font-size:11px;font-weight:900}
.post-chip{display:block;font-size:10px;font-weight:800;border-radius:6px;padding:3px 5px;margin-top:3px;color:#070B14;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:grab}
.lb-sec{border:1px solid var(--line);background:var(--surface2);border-radius:12px;padding:12px 14px;display:flex;gap:10px;align-items:center;margin-bottom:8px;cursor:grab}
.lb-sec b{flex:1;font-size:14px}
.lb-preview{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;color:#111}
.score-ring{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;margin:0 auto;font-family:"Sora";font-weight:900;font-size:34px;background:conic-gradient(var(--lime) calc(var(--p)*1%),var(--line) 0)}
.score-ring i{width:92px;height:92px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-style:normal}
.checkline{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px dashed var(--line);font-size:14px}
.checkline:last-child{border:0}
.floats{position:fixed;right:14px;bottom:104px;z-index:85;display:flex;flex-direction:column;gap:10px;align-items:flex-end}
@media(max-width:560px){.float-btn{width:50px;height:50px;font-size:23px}.floats{bottom:112px}}
.float-btn{width:56px;height:56px;border-radius:50%;border:0;display:grid;place-items:center;font-size:26px;cursor:pointer;box-shadow:0 12px 28px rgba(0,0,0,.4);text-decoration:none}
.float-wa{background:#25d366;color:#fff}
.float-chat{background:var(--lime);color:#fff}
.chat-panel{position:fixed;right:12px;bottom:176px;z-index:90;width:min(360px,calc(100vw - 24px));max-height:min(540px,70vh);background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 26px 60px rgba(0,0,0,.5);display:none;flex-direction:column;overflow:hidden}
.chat-panel.open{display:flex}
.chat-head{background:#070B14;color:#fff;padding:14px 16px;display:flex;gap:10px;align-items:center}
.chat-head b{font-family:"Sora"}
.chat-head small{display:block;color:#C6CADB;font-size:12px}
.chat-body{padding:12px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;flex:1}
.chat-msg{max-width:86%;padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.5}
.chat-msg.bot{background:var(--surface2);border:1px solid var(--line);align-self:flex-start;border-bottom-left-radius:4px}
.chat-msg.me{background:var(--lime);color:#fff;align-self:flex-end;border-bottom-right-radius:4px;font-weight:600}
.chat-chips{display:flex;gap:6px;flex-wrap:wrap;padding:0 12px 10px}
.chat-input{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line)}
.chat-input input{flex:1;min-height:46px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);color:var(--text);padding:10px 12px;font-size:14.5px}
.overlay-panel{position:fixed;inset:0;z-index:95;background:rgba(4,5,3,.72);backdrop-filter:blur(6px);display:none;padding:18px 14px;overflow-y:auto}
.overlay-panel.open{display:block}
.overlay-card{width:min(640px,100%);margin:5vh auto;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow)}
.search-item{display:flex;gap:10px;align-items:center;width:100%;text-align:left;background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:12px 14px;cursor:pointer;color:var(--text);font-weight:700;font-size:14.5px;margin-bottom:8px}
.tour-step{display:none}
.tour-step.on{display:block}
.serp{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:var(--surface)}
.serp .s-url{font-size:12px;color:var(--muted)}
.serp .s-title{font-size:18px;color:#7aa5ff;font-weight:700;line-height:1.3}
.serp .s-desc{font-size:13.5px;color:var(--muted)}
@media(prefers-color-scheme:light){.serp .s-title{color:#1a56c4}}
.nl-preview{border:1px solid var(--line);border-radius:14px;overflow:hidden}
#printArea{display:none}
#printArea.open{display:block;position:fixed;inset:0;z-index:120;background:#e9eae4;overflow:auto;padding:16px}
.pv-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #ddd;border-radius:12px;padding:12px 14px;margin:0 auto 14px;max-width:820px;color:#111}
#printArea .inv-doc{max-width:820px;margin:0 auto}
@media print{body{padding:0!important;background:#fff!important}header,main,footer,.bottom-bar,.floats,.chat-panel,.toast,.overlay-panel,.pv-bar{display:none!important}#printArea{display:block!important;position:static;background:#fff;padding:0}#printArea .inv-doc{box-shadow:none;max-width:none}}
.vid-anim-pulse{animation:vpulse 1.1s ease-in-out infinite}
@keyframes vpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
.vid-anim-bounce{animation:vbounce 1s ease infinite}
@keyframes vbounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
.vid-anim-slide{animation:vslide 2.4s ease-in-out infinite}
@keyframes vslide{0%,100%{transform:translateX(-8px)}50%{transform:translateX(8px)}}
.fade-veil{position:absolute;inset:0;background:#000;opacity:0;pointer-events:none;transition:opacity .5s}
/* ================= NEXLUNE AI — PREMIUM UI OVERLAY ================= */
/* Moon + aurora hero */
.hero{background:#050810}
.hero-bg img{opacity:.66}
.hero-bg::after{background:linear-gradient(180deg,rgba(5,8,16,.55),rgba(5,8,16,.45) 45%,#050810),linear-gradient(90deg,rgba(5,8,16,.85),rgba(5,8,16,.10)),radial-gradient(700px 420px at 82% 8%,rgba(139,124,255,.30),transparent 60%),radial-gradient(560px 380px at 8% 30%,rgba(99,102,241,.22),transparent 60%)}
.hero-in::before{content:"";position:absolute;top:-14px;right:2%;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle at 36% 34%,#ffffff,#DCD8FF 52%,#8B7CFF 78%,#5B4BDB);box-shadow:0 0 60px 12px rgba(139,124,255,.45),0 0 140px 40px rgba(99,102,241,.22);opacity:.9;pointer-events:none}
.hero h1{letter-spacing:-.035em}
.hero h1 em,.page-hero h1 em{background:linear-gradient(100deg,#C7C2FF,#8B7CFF 45%,#7EE0FF);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-lead{color:#D8DCEB}
.pill{border-color:rgba(139,124,255,.45);background:rgba(139,124,255,.10)}
::selection{background:rgba(139,124,255,.4)}
/* Moon badge logo */
.logo-mark{background:linear-gradient(145deg,#A78BFA,#7C6CF0 55%,#4A3BC2)!important;color:#fff!important;position:relative;box-shadow:0 6px 18px rgba(139,124,255,.5),inset 0 1px 0 rgba(255,255,255,.4)!important}
/* v4: logo moon is an inline SVG */
/* Glass cards + glow hovers */
.svc,.work,.adv,.tool-card,.cc-card,.kpi,.info-card,.commit-item,.eco-card,.step{background:linear-gradient(160deg,rgba(255,255,255,.055),rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.09);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 18px 40px rgba(0,0,0,.35);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.svc:hover,.work:hover,.tool-card:hover,.eco-card:hover{transform:translateY(-4px);border-color:rgba(139,124,255,.45);box-shadow:0 24px 55px rgba(0,0,0,.45),0 0 0 1px rgba(139,124,255,.25),0 12px 40px rgba(139,124,255,.18)}
/* Buttons */
/* v31.2 (D-0): gradient darkened — white text now ≥4.5:1 at EVERY stop (was 2.72:1 at #A78BFA, 3.99:1 mid) */
.btn-lime{background:linear-gradient(135deg,#6558E8,#5B4BDB 55%,#4A3BC2)!important;color:#fff!important;box-shadow:0 10px 28px rgba(124,108,240,.45),inset 0 1px 0 rgba(255,255,255,.35)}
.btn-lime:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(124,108,240,.55),inset 0 1px 0 rgba(255,255,255,.35)}
.btn-wa{box-shadow:0 10px 26px rgba(37,211,102,.35)}
/* Headings + kickers */
.kicker{color:#B7AEFF!important;letter-spacing:.18em}
.sec-head h2,.prem-hero h2{letter-spacing:-.03em}
/* Stats + marquee */
.stats{background:linear-gradient(180deg,rgba(139,124,255,.08),transparent)}
.stat strong{color:#fff}
.marquee{border-color:rgba(139,124,255,.25)}
/* Final CTA + studio hero aurora */
.final,.prem-hero{background:linear-gradient(140deg,#0B1026,#141038 55%,#0B1026)!important;border:1px solid rgba(139,124,255,.3);box-shadow:0 24px 60px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.08)}
/* Recolor embedded lime visuals to violet */
/* v4: real violet imagery — no hue filter */
/* Chat + floats */
.float-chat{background:linear-gradient(135deg,#A78BFA,#5B4BDB)!important;color:#fff!important;box-shadow:0 10px 26px rgba(124,108,240,.5)}
.chat-msg.me{background:linear-gradient(135deg,#A78BFA,#6D5DF0)!important;color:#fff!important}
/* --- header v2: aurora strip, condense, mega nav --- */
header::before{content:"";position:absolute;inset:0 0 auto 0;height:2px;background:linear-gradient(90deg,transparent,#22D3EE 20%,#6D5DF0 50%,#C026D3 80%,transparent);opacity:.95;z-index:2}
.nav-desktop button:hover{color:var(--text);background:var(--lime-soft)}
.nav-desktop button.active{box-shadow:0 6px 18px color-mix(in srgb,var(--lime) 45%,transparent)}
.has-drop{position:relative;display:inline-flex}
.drop{position:absolute;top:calc(100% + 12px);left:50%;transform:translateX(-50%) translateY(6px);min-width:292px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:10px;opacity:0;visibility:hidden;transition:.22s;z-index:90}
.has-drop:hover .drop,.has-drop:focus-within .drop{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.drop button{display:flex;width:100%;text-align:left;gap:10px;align-items:center;border:0;background:transparent;color:var(--text);font-family:"Inter";font-weight:800;font-size:13.5px;padding:11px 12px;border-radius:12px;cursor:pointer}
.drop button:hover{background:var(--lime-soft)}
.drop button small{display:block;color:var(--muted);font-weight:600;font-size:11.5px}
.drop .drop-ic{width:34px;height:34px;flex:none;border-radius:10px;background:var(--lime-soft);display:grid;place-items:center;font-size:16px}
.hero-copy{min-width:0}
.hero-visual{position:relative;min-height:360px;display:grid;place-items:center}
.moon-orb{position:relative;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle at 35% 32%,#FFFFFF 0%,#DCD6FF 34%,#A78BFA 62%,#5B4BDB 100%);box-shadow:0 0 60px rgba(139,124,255,.55),0 0 140px rgba(139,124,255,.30),inset -18px -22px 50px rgba(43,32,120,.55)}
.moon-orb::before{content:"";position:absolute;inset:-26px;border:1px dashed rgba(167,139,250,.5);border-radius:50%}
.moon-orb::after{content:"";position:absolute;top:18%;left:12%;width:44px;height:44px;border-radius:50%;background:rgba(91,75,219,.18);box-shadow:52px 74px 0 -6px rgba(91,75,219,.14),96px 18px 0 -12px rgba(91,75,219,.16)}
.moon-sat{position:absolute;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 0 16px rgba(255,255,255,.9);top:6%;right:22%}
.moon-chip{position:absolute;background:rgba(13,18,32,.85);border:1px solid rgba(139,124,255,.45);backdrop-filter:blur(10px);border-radius:999px;padding:10px 15px;font-size:13px;font-weight:800;color:#F2F4FA;box-shadow:0 12px 30px rgba(0,0,0,.4);white-space:nowrap}
.moon-chip b{color:#A78BFA}
.moon-chip.c1{top:14%;left:-2%}
.moon-chip.c2{bottom:22%;right:0}
.moon-chip.c3{bottom:2%;left:6%}
.hero-moon-m{display:flex;justify-content:center;margin:0 0 18px}
.hero-moon-m .moon-orb{width:118px;height:118px}
.hero-moon-m .moon-orb::before{inset:-14px}
/* --- AI capabilities showcase --- */
.cap-grid{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
.cap{background:linear-gradient(160deg,var(--surface),var(--surface2));border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.cap::after{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,var(--lime),transparent 70%)}
.cap-ic{width:52px;height:52px;border-radius:15px;background:linear-gradient(145deg,var(--lime),#A78BFA);display:grid;place-items:center;font-size:24px;margin-bottom:14px}
.cap h3{font-size:19px;margin-bottom:8px}
.cap p{color:var(--muted);font-size:14.5px;margin:0}
.cap ul{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.cap li{font-size:13.5px;font-weight:700;display:flex;gap:8px}
.cap li::before{content:"\2713";color:var(--lime);font-weight:900}
/* --- tools preview band --- */
.tools-band{position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(135deg,#070B14,#171040 55%,#070B14);color:#fff;padding:36px 24px;border:1px solid rgba(139,124,255,.4);box-shadow:0 24px 60px rgba(0,0,0,.45)}
.tools-band::after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;background:var(--lime);filter:blur(130px);opacity:.28;right:-100px;top:-140px;pointer-events:none}
.tools-band h2{font-size:clamp(28px,5.5vw,44px);position:relative;z-index:1}
.tools-band p{color:#C6CADB;position:relative;z-index:1;max-width:640px}
.tool-chips{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0 24px;position:relative;z-index:1}
.tool-chips span{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(8px);padding:9px 14px;border-radius:999px;font-size:13px;font-weight:800}
/* --- process deep-dive --- */
.step-list{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.step-list li{font-size:13.5px;font-weight:700;display:flex;gap:8px;color:var(--muted)}
.step-list li::before{content:"\2713";color:var(--lime);font-weight:900}
/* --- service detail blocks --- */
.svc-full{scroll-margin-top:110px}
.svc-detail{margin-top:18px;padding-top:18px;border-top:1px dashed var(--line)}
.svc-detail h3,.svc-detail h4{font-family:"Sora";font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.svc-detail ul{margin:0 0 16px}
.svc-detail ul:last-of-type{margin-bottom:14px}
.svc-flow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;font-weight:800;color:var(--muted)}
.svc-flow b{color:var(--text)}
.svc-flow .arr{color:var(--lime)}
.svc-cta{display:inline-flex;margin-top:16px;font-weight:900;font-size:14px;color:var(--lime-d);text-decoration:none}
@media(prefers-color-scheme:dark){.svc-cta{color:var(--lime)}}
html[data-theme="dark"] .svc-cta{color:var(--lime)}
/* --- case study detail --- */
.case-detail{display:grid;gap:14px;margin-top:20px;grid-template-columns:minmax(0,1fr)}
.case-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--shadow)}
.case-card .work-tag{display:block;margin-bottom:8px}
.case-card h2,.case-card h3{font-size:20px;margin-bottom:12px}
.case-card h3,.case-card h4{font-family:"Sora";font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:14px 0 6px}
.case-card p{color:var(--muted);font-size:14.5px;margin:0}
.case-card .metrics{margin-top:16px}
/* --- about extras --- */
.belief-grid{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
.belief{background:var(--surface2);border:1px solid var(--line);border-radius:20px;padding:22px}
.belief h3{font-size:18px;margin-bottom:8px}
.belief p{color:var(--muted);font-size:14.5px;margin:0}
.moon-note{background:linear-gradient(135deg,#0B1026,#171040);border:1px solid rgba(139,124,255,.35);border-radius:24px;padding:26px;color:#fff;position:relative;overflow:hidden;margin-top:18px}
.moon-note::after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:var(--lime);filter:blur(120px);opacity:.25;right:-70px;top:-110px;pointer-events:none}
.moon-note h3{font-size:clamp(22px,4.5vw,30px);margin-bottom:10px;position:relative;z-index:1}
.moon-note p{color:#C6CADB;margin:0;max-width:680px;position:relative;z-index:1}
/* --- FAQ categories --- */
.faq-cat{font-family:"Sora";font-size:15px;letter-spacing:.12em;text-transform:uppercase;color:var(--lime-d);margin:26px 0 12px}
@media(prefers-color-scheme:dark){.faq-cat{color:var(--lime)}}
html[data-theme="dark"] .faq-cat{color:var(--lime)}
.faq-cat:first-child{margin-top:0}
/* --- contact extras --- */
.next-steps{display:grid;gap:14px;margin-top:18px;grid-template-columns:minmax(0,1fr)}
.next-step{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px}
.next-step .ns-no{font-family:"Sora";font-size:40px;font-weight:900;color:transparent;-webkit-text-stroke:1.5px var(--lime);line-height:1}
.next-step h3{font-size:18px;margin:12px 0 6px}
.next-step p{color:var(--muted);font-size:14px;margin:0}
.quick-svc{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px}
.quick-svc button{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:16px;padding:16px 12px;font-weight:800;font-size:13.5px;cursor:pointer;text-align:center;min-height:64px}
.quick-svc button:hover{border-color:var(--lime)}
.quick-svc button span{display:block;font-size:20px;margin-bottom:6px}
/* --- premium footer v13.1: fixed dark bg + fixed light text (theme-independent) --- */
.site-footer{position:relative;background:linear-gradient(180deg,#0A0E1C,#04060D);border-top:0;padding:0 0 110px;color:#A7AEC4;overflow:hidden}
.site-footer::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,transparent,#8B7CFF 20%,#A78BFA 50%,#6D5DF0 80%,transparent)}
.site-footer::after{content:"";position:absolute;inset:auto 0 0 0;height:260px;pointer-events:none;background:radial-gradient(600px 220px at 15% 100%,rgba(139,124,255,.12),transparent 70%),radial-gradient(600px 220px at 85% 100%,rgba(109,93,240,.10),transparent 70%)}
.foot-cta{padding:44px 0 8px;border-bottom:0}
.foot-cta-in{display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:space-between;background:linear-gradient(135deg,rgba(139,124,255,.14),rgba(167,139,250,.06));border:1px solid rgba(139,124,255,.25);border-radius:20px;padding:30px 32px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.foot-cta h3{font-size:clamp(22px,4.5vw,30px);color:#F2F4FA;margin:0}
.foot-cta p{margin:8px 0 0;font-size:14.5px;color:#A7AEC4}
.foot-main{padding:40px 0 28px}
.foot-brand{max-width:360px}
.foot-brand p{font-size:14.5px;margin:12px 0 16px}
.site-footer .fb-btns{display:flex;gap:10px;flex-wrap:wrap}
.foot-social{display:flex;gap:10px;margin:0 0 18px}
.foot-social a{width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);display:grid;place-items:center;color:#C3C8D8;transition:color .2s,border-color .2s,background-color .2s,transform .2s}
.foot-social a:hover{border-color:#8B7CFF;color:#fff;background:rgba(139,124,255,.15);transform:translateY(-2px)}
.foot-social .ic{width:18px;height:18px}
.foot-points{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:8px;font-size:13px}
.foot-points li{display:flex;gap:8px;align-items:center}
.foot-points .ic{width:16px;height:16px;color:#A78BFA;flex:none}
.foot-points a{color:#F2F4FA;font-weight:800;text-decoration:none}
.foot-points a:hover{text-decoration:underline}
.foot-cols{display:grid;gap:28px;margin-top:30px}
.foot-col h4{font-family:"Sora";color:#F2F4FA;margin:0 0 14px;font-size:14px;letter-spacing:.12em;text-transform:uppercase;position:relative;padding-bottom:10px}
.foot-col h4::after{content:"";position:absolute;left:0;bottom:0;width:24px;height:2px;border-radius:2px;background:linear-gradient(90deg,#8B7CFF,#A78BFA)}
.foot-col a,.foot-col button{display:block;text-align:left;background:none;border:0;padding:6px 0;color:#C3C8D8;font-weight:600;font-size:14px;text-decoration:none;cursor:pointer;font-family:inherit;transition:color .15s,transform .15s}
.foot-col a:hover,.foot-col button:hover{color:#FFFFFF;transform:translateX(3px)}
.foot-col .fc-note{font-size:12.5px;margin-top:10px}
.foot-acc{margin-top:28px;display:grid;gap:10px}
.foot-acc details{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);border-radius:16px;padding:0 18px}
.foot-acc summary{font-size:15px;padding:15px 0;min-height:52px;color:#F2F4FA;font-weight:700}
.foot-acc summary::after{width:30px;height:30px;font-size:18px}
.foot-acc .fa-links{padding:0 0 16px;display:grid;gap:2px}
.foot-acc a,.foot-acc button{display:block;text-align:left;background:none;border:0;padding:8px 0;color:#C3C8D8;font-weight:600;font-size:14.5px;text-decoration:none;cursor:pointer;font-family:inherit;min-height:40px}
.foot-bottom{border-top:1px solid rgba(255,255,255,.10);padding:20px 96px calc(20px + env(safe-area-inset-bottom,0px)) 0;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;font-size:13px}
.foot-bottom .fb-mid{font-weight:800;color:#F2F4FA}
.fb-links{display:flex;gap:18px}
.fb-links a{color:#A7AEC4;text-decoration:none;font-weight:600}
.fb-links a:hover{color:#FFFFFF}
#toTopBtn{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);color:#F2F4FA;border-radius:999px;padding:10px 18px;font-weight:800;font-size:13.5px;cursor:pointer;min-height:44px}
#toTopBtn:hover{border-color:#8B7CFF}
/* footer logo + ghost buttons use fixed light colours (theme-independent) */
.site-footer .logo{color:#F2F4FA}
.site-footer .logo-word .lw-lime{color:#A78BFA}
.site-footer .btn-ghost{color:#F2F4FA;border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.06)}
@media(max-width:560px){.foot-bottom{padding-right:80px}}

/* ================= NEXLUNE AI v4 — PREMIUM DESIGN SYSTEM ================= */
/* Fonts: Sora (headings) + Inter (body). One line-icon set (24x24,
   1.7px stroke, currentColor) — see icons.py. No emoji anywhere. */

/* --- SVG icon sizing --- */
.ic{width:22px;height:22px;flex:none}
.ticon svg{width:26px;height:26px}
.th-icon svg{width:28px;height:28px}
.sh-icon svg{width:25px;height:25px}
.cap-ic svg{width:24px;height:24px}
.adv-icon svg{width:22px;height:22px}
.kpi .k-ic svg{width:22px;height:22px}
.qa-btn svg{width:22px;height:22px}
.drop .drop-ic svg{width:17px;height:17px}
.hdr-btn svg{width:19px;height:19px}
.mutil svg{width:19px;height:19px}
.float-btn svg{width:24px;height:24px}
.quick-svc svg{width:21px;height:21px;margin:0 auto 6px;display:block}
.info-ic{display:block;margin-bottom:8px;color:var(--lime-d)}
.info-ic svg{width:26px;height:26px}
.belief h3 svg{width:21px;height:21px;vertical-align:-4px;margin-right:8px;color:var(--lime-d)}
.moon-note h3 svg{width:26px;height:26px;vertical-align:-5px;margin-right:8px;color:#C7C2FF}
.btn svg{width:17px;height:17px}
.ft-icon svg{width:36px;height:36px}
.chat-head svg{width:26px;height:26px;flex:none}
.logo-mark svg{width:22px;height:22px}
.search-item svg{width:19px;height:19px;flex:none}
.mini-btn svg{width:15px;height:15px;vertical-align:-2px}
.hdr-wa svg{width:18px;height:18px}
.svc-img{border-radius:16px;overflow:hidden;margin-bottom:18px;aspect-ratio:16/8;background:var(--surface2)}
.svc-img img{width:100%;height:100%;object-fit:cover}
/* icon tiles keep their gradient; svg inherits tile colour */
.ticon,.th-icon,.sh-icon,.cap-ic,.ft-icon{color:#fff}
.adv-icon{color:var(--lime-d)}
.kpi .k-ic{color:var(--lime-d);display:block}

/* --- Home hero slider --- */
.hero-slider{position:relative;overflow:hidden;background:#050810;color:#F2F4FA;padding-top:calc(var(--header) + var(--sat,0px))}
.hs-slides{position:relative;min-height:560px}
.hs-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s linear .8s}
.hs-slide.active{opacity:1;visibility:visible;transition:opacity .8s ease}
.hs-img{position:absolute;inset:0}
.hs-img img{width:100%;height:100%;object-fit:cover}
.hs-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,8,16,.55),rgba(5,8,16,.45) 45%,#050810),linear-gradient(90deg,rgba(5,8,16,.85),rgba(5,8,16,.15)),radial-gradient(700px 420px at 82% 8%,rgba(139,124,255,.30),transparent 60%)}
.hs-content{position:relative;z-index:2;padding:72px 0 96px;max-width:920px}
.hs-content h1{font-size:clamp(42px,10.5vw,92px);font-weight:800;max-width:920px;margin:20px 0 16px;letter-spacing:-.035em;line-height:.98}
.hs-content h1 em{font-style:normal;background:linear-gradient(100deg,#C7C2FF,#8B7CFF 45%,#7EE0FF);-webkit-background-clip:text;background-clip:text;color:transparent}
.hs-content .hero-lead{font-size:clamp(17px,2.4vw,21px);color:#D8DCEB;max-width:680px;margin:0}
.hs-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(10,12,20,.45);backdrop-filter:blur(10px);color:#fff;display:grid;place-items:center;cursor:pointer;transition:.2s}
.hs-arrow:hover{background:rgba(139,124,255,.55);border-color:rgba(139,124,255,.6)}
.hs-arrow svg{width:20px;height:20px}
.hs-prev{left:16px}
.hs-next{right:16px}
.hs-dots{position:absolute;left:50%;transform:translateX(-50%);bottom:22px;z-index:3;display:flex;gap:8px}
.hs-dot{width:10px;height:10px;border-radius:99px;border:0;background:rgba(255,255,255,.4);cursor:pointer;padding:0;transition:.3s}
.hs-dot.active{width:28px;background:#A78BFA}
@media(max-width:700px){.hs-slides{min-height:520px}.hs-content{padding:56px 0 88px}.hs-arrow{width:42px;height:42px}.hs-prev{left:10px}.hs-next{right:10px}}

/* --- Studio: sticky search + filter chips + recently used --- */
.dash-sticky{position:sticky;top:calc(var(--header) + var(--sat,0px));z-index:40;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);padding:14px 2px 12px;margin:0 -2px 6px;border-bottom:1px solid var(--line)}
.studio-search{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:6px 8px 6px 16px;box-shadow:var(--shadow)}
.studio-search:focus-within{border-color:var(--lime);box-shadow:0 0 0 3px var(--lime-soft)}
.studio-search .ss-ic{display:grid;place-items:center;color:var(--muted);flex:none}
.studio-search .ss-ic svg{width:19px;height:19px}
.studio-search input{flex:1;min-width:0;border:0;background:transparent;color:var(--text);font-size:15px;font-weight:600;outline:none;min-height:40px;font-family:inherit}
.studio-search input::placeholder{color:var(--muted2)}
.filter-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.fchip{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:999px;padding:9px 15px;font-weight:800;font-size:13px;cursor:pointer;min-height:40px;transition:.2s;font-family:inherit}
.fchip:hover{color:var(--text);border-color:var(--lime)}
.fchip.active{background:var(--lime);color:#fff;border-color:var(--lime)}
.recent-row{margin-top:10px}
.recent-row .tools-grid{margin-top:12px}
.recent-title{display:flex;align-items:center;gap:8px;font-family:Sora;font-size:15px;font-weight:700;margin:0;color:var(--muted)}
.recent-title svg{width:18px;height:18px;color:var(--lime)}
.ss-clear{display:grid;place-items:center;width:34px;height:34px;border:0;background:transparent;color:var(--muted);cursor:pointer;border-radius:50%;flex:none}
.ss-clear:hover{color:var(--text);background:var(--surface2)}
.ss-clear svg{width:17px;height:17px}
.no-results{text-align:center;color:var(--muted);font-weight:700;padding:36px 16px;display:none}
.no-results.show{display:block}
.tool-card.hide,.studio-head.hide{display:none!important}
/* tool-open guard (mirrors the JS-injected guard) */
body.tool-open #dashHome{display:none!important}
body.tool-open .tool-view{display:none}
body.tool-open .tool-view.active{display:block;animation:fade .3s ease}

/* --- Light-theme polish (equal care for light mode) --- */
html[data-theme="light"]{--bg:#F3F4FA;--bg2:#EDEFF7;--surface:#FFFFFF;--surface2:#F6F7FC;--line:rgba(11,14,30,.11);--text:#0B0E1E;--muted:#555A72;--muted2:#7E83A0;--lime:#6D5DF0;--lime-d:#4A3BC2;--lime-soft:rgba(109,93,240,.12);--shadow:0 16px 36px rgba(20,24,60,.10);--glass:rgba(255,255,255,.78)}
html[data-theme="light"] .svc,html[data-theme="light"] .work,html[data-theme="light"] .adv,html[data-theme="light"] .tool-card,html[data-theme="light"] .cc-card,html[data-theme="light"] .kpi,html[data-theme="light"] .info-card,html[data-theme="light"] .eco-card,html[data-theme="light"] .step,html[data-theme="light"] .cap,html[data-theme="light"] .case-card,html[data-theme="light"] .belief,html[data-theme="light"] .next-step{background:linear-gradient(160deg,#FFFFFF,#F7F8FD);border:1px solid rgba(11,14,30,.09);box-shadow:0 14px 30px rgba(20,24,60,.07)}
html[data-theme="light"] .tool-card:hover,html[data-theme="light"] .svc:hover,html[data-theme="light"] .work:hover,html[data-theme="light"] .eco-card:hover{border-color:rgba(109,93,240,.5);box-shadow:0 22px 44px rgba(20,24,60,.12),0 0 0 1px rgba(109,93,240,.22)}
html[data-theme="light"] .ticon,html[data-theme="light"] .th-icon,html[data-theme="light"] .sh-icon,html[data-theme="light"] .cap-ic{box-shadow:0 10px 22px rgba(109,93,240,.35)}
html[data-theme="light"] header{background:color-mix(in srgb,#F3F4FA 86%,transparent)}
html[data-theme="light"] .dash-sticky{background:color-mix(in srgb,#F3F4FA 88%,transparent)}
html[data-theme="light"] .kicker{color:#4A3BC2!important}
html[data-theme="light"] .adv-icon{color:#4A3BC2}
html[data-theme="light"] .info-ic,html[data-theme="light"] .belief h3 svg,html[data-theme="light"] .kpi .k-ic{color:#4A3BC2}
@media(prefers-color-scheme:light){
  :root{--bg:#F3F4FA;--bg2:#EDEFF7;--surface:#FFFFFF;--surface2:#F6F7FC;--line:rgba(11,14,30,.11);--text:#0B0E1E;--muted:#555A72;--muted2:#7E83A0;--lime:#6D5DF0;--lime-d:#4A3BC2;--lime-soft:rgba(109,93,240,.12);--shadow:0 16px 36px rgba(20,24,60,.10);--glass:rgba(255,255,255,.78)}
  .svc,.work,.adv,.tool-card,.cc-card,.kpi,.info-card,.eco-card,.step,.cap,.case-card,.belief,.next-step{background:linear-gradient(160deg,#FFFFFF,#F7F8FD);border:1px solid rgba(11,14,30,.09);box-shadow:0 14px 30px rgba(20,24,60,.07)}
}

/* --- Premium motion + focus --- */
.svc,.work,.tool-card,.cap,.case-card,.belief,.next-step,.eco-card{will-change:transform}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
.btn-lime{background:linear-gradient(135deg,#6558E8,#5B4BDB 55%,#4A3BC2)!important}

/* --- Sizing for SVG icons injected by JS (main.js / tools.js) --- */
.notif-ic{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--surface2);flex:none}
.notif-ic svg{width:19px;height:19px}
.search-item svg{width:19px;height:19px;flex:none}
.a-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--surface2);flex:none}
.a-ic svg{width:17px;height:17px}
.kb-col h4 svg{width:17px;height:17px;vertical-align:-3px;margin-right:6px}
.kb-card small svg{width:13px;height:13px;vertical-align:-2px}
.kb-meta svg{width:13px;height:13px;vertical-align:-2px}
.lb-sec b svg{width:17px;height:17px;vertical-align:-3px;margin-right:4px}
.time-card h3 svg{width:18px;height:18px;vertical-align:-3px}
.best svg{width:14px;height:14px;vertical-align:-2px}
.cc-card h3 svg{width:20px;height:20px;vertical-align:-4px}
.layer-row button svg{width:16px;height:16px}
.mini-btn svg{width:15px;height:15px;vertical-align:-2px}
.btn svg{width:17px;height:17px;vertical-align:-3px}
.hdr-btn svg{width:20px;height:20px}
.mutil svg{width:18px;height:18px}
.team-btn svg,.mteam-btn svg{width:16px;height:16px;vertical-align:-3px}
.chat-head>svg{width:22px;height:22px;flex:none}
.float-btn svg{width:24px;height:24px}

/* ================= NEXLUNE AI v8 — NEW TOOLS + PREMIUM POLISH ================= */
/* BG Remover Pro, Palette Extractor, Video to GIF, Audio Trimmer,
   PDF Merge & Split, Unit & Currency Converter. */

/* --- NEW badge on tool cards --- */
.live.new{background:linear-gradient(135deg,#A78BFA,#6D5DF0);color:#fff;border-color:transparent;box-shadow:0 4px 14px rgba(124,108,240,.45)}
html[data-theme="light"] .live.new{color:#fff}

/* --- Featured BG Remover banner --- */
.featured-tool.bgr{background:linear-gradient(135deg,#0B1026,#1B1245 55%,#0B1026);border-color:rgba(139,124,255,.55)}
.featured-tool.bgr::after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:var(--lime);filter:blur(110px);opacity:.28;right:-60px;top:-120px;pointer-events:none}
.featured-tool.bgr .ft-icon{background:linear-gradient(145deg,#C7C2FF,#7C6CF0 60%,#4A3BC2)}

/* --- Premium polish: icon lift + button feedback --- */
.ticon{transition:transform .25s ease,box-shadow .25s ease}
.tool-card:hover .ticon{transform:scale(1.1) rotate(-4deg)}
.mini-btn:hover{border-color:var(--lime);color:var(--text)}
.btn:active{transform:translateY(1px) scale(.99)}
.tool-view.active .tool-shell{animation:nxrise .35s ease}
@keyframes nxrise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

/* --- Dropzone --- */
.dropzone{border:2px dashed var(--line);border-radius:16px;padding:26px 16px;text-align:center;cursor:pointer;background:var(--surface2);transition:.2s;display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--muted)}
.dropzone:hover,.dropzone.drag{border-color:var(--lime);background:var(--lime-soft);color:var(--text)}
.dropzone .ic{width:34px;height:34px;color:var(--lime-d)}
.dropzone strong{font-size:15px;color:var(--text)}
.dropzone span{font-size:12.5px;font-weight:600}
html[data-theme="dark"] .dropzone .ic{color:var(--lime)}

/* --- Progress bar (shared) --- */
.nx-prog{margin-top:4px}
.nx-prog-bar{height:10px;border-radius:99px;background:var(--surface2);border:1px solid var(--line);overflow:hidden}
.nx-prog-fill{height:100%;width:0%;border-radius:99px;background:linear-gradient(90deg,#A78BFA,#6D5DF0);transition:width .3s ease}

/* --- Empty state + premium result card (shared) --- */
.nx-empty{border:1px dashed var(--line);border-radius:18px;padding:34px 20px;text-align:center;color:var(--muted);background:var(--surface2)}
.nx-empty .ic{width:40px;height:40px;margin-bottom:10px;color:var(--lime-d)}
.nx-empty p{margin:0;font-size:14px;font-weight:600;line-height:1.55}
.nx-empty img{max-width:100%;max-height:320px;border-radius:14px;margin:0 auto 12px;display:block;object-fit:contain}
html[data-theme="dark"] .nx-empty .ic{color:var(--lime)}
.nx-result{background:linear-gradient(160deg,var(--surface),var(--surface2));border:1px solid rgba(139,124,255,.4);border-radius:18px;padding:18px;box-shadow:var(--shadow);margin-top:14px}
.nx-result strong{font-family:Sora;font-size:16px}
.nx-result .hint{font-size:13px}

/* --- BG compare slider --- */
.checker{--checkerboard-black-color:#f8f9f9;--checkerboard-white-color:transparent;background-color:var(--checkerboard-white-color);background-image:linear-gradient(45deg,var(--checkerboard-black-color) 25%,var(--checkerboard-white-color) 25%),linear-gradient(-45deg,var(--checkerboard-black-color) 25%,var(--checkerboard-white-color) 25%),linear-gradient(45deg,var(--checkerboard-white-color) 75%,var(--checkerboard-black-color) 75%),linear-gradient(-45deg,var(--checkerboard-white-color) 75%,var(--checkerboard-black-color) 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.bg-compare{position:relative;border-radius:16px;overflow:hidden;border:1px solid var(--line);line-height:0;min-height:220px}
.bg-compare>img{width:100%;display:block;object-fit:contain;max-height:520px}
.bg-compare-top{position:absolute;inset:0;clip-path:inset(0 50% 0 0);line-height:0}
.bg-compare-top img{width:100%;height:100%;object-fit:contain}
.bg-compare-handle{position:absolute;top:0;bottom:0;left:50%;width:2px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.25);transform:translateX(-50%);pointer-events:none}
.bg-compare-handle::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;background:#fff;border:2px solid var(--lime);box-shadow:0 4px 14px rgba(0,0,0,.35)}
.bg-tag{position:absolute;top:10px;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;background:rgba(5,8,16,.72);color:#fff;padding:5px 10px;border-radius:99px;line-height:1.4;z-index:2}
.bg-tag.left{left:10px}
.bg-tag.right{right:10px}

/* --- Palette swatches --- */
.swatch-grid{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
.swatch{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:0 0 10px;overflow:hidden;cursor:pointer;text-align:left;color:var(--text);font-family:inherit;transition:.2s}
.swatch:hover{transform:translateY(-3px);border-color:var(--lime);box-shadow:var(--shadow)}
.sw-color{display:block;height:72px}
.sw-hex{display:block;font-weight:900;font-size:14px;padding:10px 12px 0}
.sw-rgb{display:block;font-size:11.5px;color:var(--muted);padding:2px 12px 0}
.sw-copy{display:block;font-size:11px;font-weight:800;color:var(--lime-d);padding:6px 12px 0}
html[data-theme="dark"] .sw-copy{color:var(--lime)}

/* --- PDF file list --- */
.pdf-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:11px 12px;margin-bottom:8px}
.pdf-name{flex:1;min-width:140px;font-weight:700;font-size:13.5px;word-break:break-all}
.pdf-pages{font-size:12px;font-weight:800;color:var(--muted);white-space:nowrap}
.pdf-btns{display:flex;gap:6px;flex-wrap:wrap}
.pdf-btns .mini-btn{padding:7px 10px;min-height:34px;font-size:12.5px}

/* --- Converter result --- */
.cv-result{text-align:center;padding:28px 18px}
.cv-label{display:block;font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.cv-out{font-family:Sora;font-size:clamp(30px,6vw,44px);font-weight:800;letter-spacing:-.02em;line-height:1.15;word-break:break-word}

/* ===== v9 additions: public Studio, favourites, popular, admin access ===== */

/* --- FREE badge on the Studio nav button --- */
.nav-free{display:inline-block;vertical-align:2px;background:var(--text);color:var(--bg);font-size:9.5px;font-weight:900;letter-spacing:.1em;padding:3px 6px;border-radius:99px;margin-left:5px;line-height:1}
.nav-desktop button.active .nav-free{background:#fff;color:var(--lime-d)}

/* --- Favourite star on tool cards + featured banners --- */
.fav-btn{position:absolute;top:12px;right:12px;z-index:3;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--surface2);border:1px solid var(--line);color:var(--muted);cursor:pointer;transition:.2s}
.fav-btn svg{width:18px;height:18px}
.fav-btn:hover{color:var(--lime);border-color:var(--lime);transform:scale(1.08)}
.fav-btn.active{background:var(--lime);border-color:var(--lime);color:#fff}
.fav-btn.active svg{fill:#fff}
.fav-btn:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
.featured-tool .fav-btn{top:14px;right:14px;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.25);color:#fff}
.featured-tool .fav-btn.active{background:var(--lime);border-color:var(--lime)}

/* --- Favourites + Popular rows (mirror Recently Used) --- */
.fav-row,.popular-row{margin-top:10px}
.fav-row .tools-grid,.popular-row .tools-grid{margin-top:12px}
.fchip .ic{width:14px;height:14px;vertical-align:-2px}

/* --- Ctrl+K hint chip inside the Studio search --- */
.ss-kbd{flex:none;font-size:11px;font-weight:800;letter-spacing:.06em;color:var(--muted2);background:var(--surface2);border:1px solid var(--line);border-bottom-width:2px;border-radius:7px;padding:4px 8px;line-height:1;white-space:nowrap}

/* --- Breadcrumb inside tool views --- */
.crumbs{display:flex;align-items:center;gap:8px;margin-bottom:14px;font-size:13.5px;font-weight:700}
.crumb{border:0;background:transparent;color:var(--lime);font:inherit;cursor:pointer;padding:0}
.crumb:hover{text-decoration:underline}
.crumb-sep{color:var(--muted2)}
.crumb-cur{color:var(--muted)}

/* --- Empty state (search / favourites) --- */
.no-results{display:none;flex-direction:column;align-items:center;text-align:center;color:var(--muted);font-weight:700;padding:44px 16px}
.no-results .ic{width:44px;height:44px;color:var(--muted2);margin-bottom:12px}
.no-results b{font-family:Sora;font-size:19px;color:var(--text)}
.no-results p{margin:6px 0 16px;font-size:14px;font-weight:600}

/* --- Dashboard return transition --- */
#dashHome{animation:nxdash .35s ease}
@keyframes nxdash{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* --- Home showcase grid (dark tools band) --- */
.show-grid{display:grid;gap:12px;grid-template-columns:repeat(1,minmax(0,1fr));margin:22px 0;position:relative;z-index:1}
.show-tool{display:flex;gap:14px;align-items:center;text-align:left;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:16px;cursor:pointer;color:#fff;font-family:inherit;transition:.2s;width:100%}
.show-tool:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.13)}
.st-ic{flex:none;width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,var(--lime),#A78BFA);display:grid;place-items:center;box-shadow:0 8px 18px rgba(139,124,255,.35)}
.st-ic .ic{width:24px;height:24px}
.st-txt{min-width:0}
.st-txt b{display:block;font-family:Sora;font-size:15.5px;margin-bottom:3px}
.st-txt small{display:block;font-size:13px;color:rgba(255,255,255,.75);line-height:1.45}

/* --- Admin Tool Access panel --- */
.acc-panel{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--shadow);margin-bottom:24px}
.acc-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:20px}
.acc-head .sh-icon{width:52px;height:52px;flex:none;border-radius:15px;background:linear-gradient(145deg,var(--lime),#A78BFA);display:grid;place-items:center;font-size:25px;box-shadow:0 10px 22px rgba(139,124,255,.3)}
.acc-head h2{font-family:Sora;font-size:21px;margin:0 0 6px}
.acc-head p{color:var(--muted);font-size:14px;margin:0;line-height:1.6}
.acc-group{margin-top:18px}
.acc-group h3{font-family:Sora;font-size:14px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.acc-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line)}
.acc-row:last-child{border-bottom:0}
.acc-name{font-weight:700;font-size:14.5px;min-width:0}
.acc-select{flex:none;min-width:132px;min-height:40px;border-radius:10px;border:1px solid var(--line);background:var(--surface2);color:var(--text);font-family:inherit;font-size:13.5px;font-weight:700;padding:6px 10px;cursor:pointer}
.acc-select:focus{outline:2px solid var(--lime);outline-offset:1px}
.acc-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}
.acc-actions .hint{margin:0;flex:1;min-width:220px}

/* ===== v10: BG Remover Pro — end level ===== */
.nx-check{display:flex!important;align-items:center;gap:10px;font-weight:700;font-size:14px;cursor:pointer;margin:0!important}
.nx-check input{width:18px;height:18px;accent-color:#6D5DF0;flex:none;cursor:pointer}
.bg-queue{display:grid;gap:8px;max-height:264px;overflow-y:auto;padding-right:2px}
.bg-qitem{display:flex;gap:10px;align-items:center;background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:8px;cursor:pointer;transition:.15s}
.bg-qitem:hover{border-color:var(--lime)}
.bg-qitem.sel{border-color:var(--lime);box-shadow:0 0 0 2px color-mix(in srgb,var(--lime) 30%,transparent)}
.bg-qthumb{width:48px;height:48px;object-fit:cover;border-radius:8px;flex:none;background:#111}
.bg-qmeta{flex:1;min-width:0;display:grid;gap:3px}
.bg-qname{font-weight:700;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bg-qstatus{font-size:12px;color:var(--muted);font-weight:600}
.bg-qprog{height:6px;border-radius:99px;background:var(--surface);border:1px solid var(--line);overflow:hidden}
.bg-qprog-fill{height:100%;width:0%;background:linear-gradient(90deg,#A78BFA,#6D5DF0);transition:width .25s ease}
.bg-qbtns{display:flex;gap:6px;flex:none}
.bg-qbtns .mini-btn{min-height:34px;padding:5px 10px;font-size:15px}
.bg-brush-btn.on{border-color:var(--lime);background:color-mix(in srgb,var(--lime) 16%,var(--surface));color:var(--text);box-shadow:0 0 0 2px color-mix(in srgb,var(--lime) 25%,transparent)}
.bg-stage-tools{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;width:100%;margin-bottom:12px}
.bg-seg{display:inline-flex;background:var(--surface2);border:1px solid var(--line);border-radius:99px;padding:3px;gap:2px}
.bg-seg button{border:0;background:transparent;color:var(--muted);font-family:inherit;font-weight:800;font-size:13px;padding:7px 14px;border-radius:99px;cursor:pointer}
.bg-seg button.on{background:var(--lime);color:#fff}
.bg-zoom{display:flex;gap:8px;align-items:center}
.bg-zoom input[type=range]{width:110px;accent-color:#6D5DF0}
.bg-zoom span{font-size:13px;font-weight:800;min-width:44px;text-align:center}
.bg-zoom .mini-btn{min-height:34px;padding:5px 11px;font-size:16px}
.bg-zoom-wrap{width:100%;max-height:72vh;overflow:auto;border-radius:16px}
.bg-zoom-inner{margin:0 auto;transition:width .2s ease}
#tool-bgremove #bgStageResult{width:100%}
#tool-bgremove .bg-compare>img{max-height:min(520px,68vh)}
#tool-bgremove .bg-compare.zoomed>img{max-height:none}
#tool-bgremove .bg-compare-top canvas{width:100%;height:100%;object-fit:contain;max-width:none;border-radius:0;background:transparent}
#tool-bgremove #bgCanvas{touch-action:none}
#tool-bgremove #bgCanvas.brushing{cursor:none}
.bg-compare.bg-nocheck{background-color:#0B0F1C;background-image:none}
.bg-tag{pointer-events:none}
.bg-brush-cursor{position:absolute;display:none;width:24px;height:24px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1.5px rgba(0,0,0,.55),0 0 0 4px rgba(139,124,255,.25);transform:translate(-50%,-50%);pointer-events:none;z-index:3}
.bg-brush-cursor.restore{box-shadow:0 0 0 1.5px rgba(0,0,0,.55),0 0 0 4px rgba(74,222,128,.45)}
.bg-side{display:flex;gap:12px}
.bg-side figure{flex:1;min-width:0;margin:0}
.bg-side img{width:100%;border-radius:14px;border:1px solid var(--line);display:block;object-fit:contain;max-height:520px;background-color:#EDEDEF;background-image:linear-gradient(45deg,#C9C9CF 25%,transparent 25%),linear-gradient(-45deg,#C9C9CF 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#C9C9CF 75%),linear-gradient(-45deg,transparent 75%,#C9C9CF 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.bg-side figcaption{text-align:center;font-size:12.5px;font-weight:800;color:var(--muted);margin-top:8px;letter-spacing:.06em;text-transform:uppercase}

/* ===== v13: BG Remover Pro — remove.bg pixel-match (scoped to #tool-bgremove) ===== */
/* Design tokens extracted from remove.bg's live CSS (18 Nov 2026, static.remove.bg
   vite bundles application-93daca53.css / index-373704d8.css / application-fc7a30a2.css):
   primary #0f70e6, hover #0d5fc2 / border #0c59b6, focus rings 0 0 0 .2rem #3385ea80
   and 0 0 0 3px #2275d780, ring 0 0 0 2px #aae1ffd9; body text #454545, muted #747474,
   secondary #54616c, light blue #86aed8; borders #dee2e6, inputs #ced4da; greys #f7f9fa,
   #edeff0, #e9ecef, editor bg #ecf1f9; checker #f8f9f9 on transparent (20px tiles);
   headings Poppins 700 (h3 1.5rem), body Canva Sans stack 1rem/1.5; buttons 99px pills
   (.btn .625rem 1.5rem .875rem 700; .btn-lg .75rem 2rem 1.25rem); radii .25rem inputs/
   dropdowns, 1rem cards; shadows .shadow 0 .5rem 1rem #00000026, .shadow-lg
   0 1rem 3rem #0000002d, 0 0 40px #0000001a, editor drop-shadow(0 16px 32px
   rgba(0,27,45,.05)) drop-shadow(0 32px 64px rgba(0,27,45,.05)); dropzone overlay
   rgba(102,74,0,.8); yellow accent #FFC83E; danger #ffb8b8, error text #DB1436,
   success #008009, fail #f93e3e; swatch border #6f6f6f. Panel 260px, 3-col grids,
   ~55px samples, pill toolbar + side panel per the live-study report. */
.bg12-hero,.bg12-editor,.bg12-modelbar{font-family:"Canva Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}
#tool-bgremove .bg12-modelbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #dee2e6;border-radius:1rem;padding:.625rem 1rem;margin-bottom:18px}
#tool-bgremove .bg12-modelbar label{font-weight:700;font-size:.875rem;flex:none;color:#454545}
#tool-bgremove .bg12-modelbar select{flex:1;min-width:220px;border-radius:.25rem;border:1px solid #ced4da;background:#fff;color:#495057;font-family:inherit;font-size:1rem;font-weight:400;line-height:1.5;padding:.625rem 1.5rem}
#tool-bgremove .bg12-modelbar .hint{margin:0;flex:1;min-width:220px;color:#747474}
.bg12-dropzone{display:none}
#tool-bgremove.bg12-drag .bg12-dropzone{display:block;position:fixed;inset:0;z-index:6000;background:rgba(102,74,0,.8);text-align:center;color:#fff;padding-top:45vh}
.bg12-dropzone h3{font-family:Poppins,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:2.25rem;font-weight:700;line-height:1.2;color:#fff;margin:0}
.bg12-dropzone p{font-size:1.1rem;font-weight:400;margin:10px 0 0;color:#fff}
.bg12-hero{background:#fff;border:1px solid #edeff0;border-radius:1rem;box-shadow:0 0 40px #0000001a;padding:56px 24px 44px;text-align:center;max-width:720px;margin:0 auto;position:relative}
.bg12-hero-title{font-family:Poppins,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1.5rem;font-weight:700;color:#454545;margin:0 0 22px;line-height:1.2}
.bg12-titlewrap{position:relative;display:inline-block}
.bg12-sparkle{position:absolute;top:-14px;right:-26px;width:22px;height:22px;color:#FFC83E;pointer-events:none}
.bg12-sparkle svg{width:100%;height:100%;display:block}
.bg12-upload{display:inline-block;background:#0f70e6;color:#fff;border:1px solid #0f70e6;border-radius:99px;padding:.75rem 2rem;font-family:inherit;font-size:1.25rem;font-weight:700;line-height:1.5;cursor:pointer;box-shadow:0 0 0 4px #fff,0 8px 20px rgba(15,112,230,.35);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}
.bg12-upload:hover{background:#0d5fc2;border-color:#0c59b6}
.bg12-or{margin:18px 0 6px;color:#454545;font-size:1rem}
.bg12-or strong{font-weight:700}
.bg12-or span{font-size:.875rem;color:#747474}
.bg12-urlrow{display:flex;gap:8px;justify-content:center;margin:10px auto 0;max-width:520px}
.bg12-urlrow input{flex:1;min-width:0;min-height:42px;border-radius:.25rem;border:1px solid #ced4da;background:#fff;color:#495057;padding:.625rem 1.5rem;font-size:1rem;font-family:inherit}
.bg12-samples-label{margin:30px 0 12px;color:#747474;font-size:.875rem;font-weight:700}
.bg12-samples{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.bg12-sample{width:56px;height:56px;border-radius:8px;overflow:hidden;border:2px solid transparent;padding:0;cursor:pointer;background:#f7f9fa;transition:.15s}
.bg12-sample:hover{border-color:#0f70e6;transform:scale(1.06)}
.bg12-sample img{width:100%;height:100%;object-fit:cover;display:block}
.bg12-hero .hint{margin-top:22px;color:#747474}
.bg12-editor{background:#ecf1f9;border-radius:1rem;padding:16px}
.bg12-editor .hint{color:#747474}
.bg12-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fff;border-radius:99px;box-shadow:0 .5rem 1rem #00000026;padding:8px 10px;margin:0 auto 16px;max-width:880px}
.bg12-tabs{display:flex;gap:2px;flex-wrap:wrap}
.bg12-tab{border:0;background:transparent;color:#454545;font-family:inherit;font-weight:700;font-size:.875rem;padding:9px 15px;border-radius:99px;cursor:pointer;transition:color .15s ease-in-out,background-color .15s ease-in-out}
.bg12-tab:hover{color:#0f70e6}
.bg12-tab.on{background:#0f70e6;color:#fff}
.bg12-tools{display:flex;gap:6px;align-items:center}
.bg12-iconbtn{width:38px;height:38px;border-radius:50%;border:1px solid #dee2e6;background:#fff;color:#454545;display:grid;place-items:center;cursor:pointer;transition:.15s;flex:none}
.bg12-iconbtn:hover{border-color:#0f70e6;color:#0f70e6}
.bg12-iconbtn:disabled{opacity:.4;cursor:default;border-color:#dee2e6;color:#454545}
.bg12-iconbtn:active{background:rgba(15,112,230,.08)}
.bg12-iconbtn .ic{width:19px;height:19px}
.bg12-dlwrap{position:relative;display:flex}
.bg12-dlmain{background:#0f70e6;color:#fff;border:1px solid #0f70e6;border-right:0;border-radius:99px 0 0 99px;padding:.625rem 1.5rem;font-family:inherit;font-weight:700;font-size:.875rem;line-height:1.5;cursor:pointer;transition:.15s}
.bg12-dlmain:hover{background:#0d5fc2;border-color:#0c59b6}
.bg12-dlchev{background:#0f70e6;color:#fff;border:1px solid #0f70e6;border-left:1px solid rgba(255,255,255,.35);border-radius:0 99px 99px 0;padding:.625rem;cursor:pointer;display:grid;place-items:center;transition:.15s}
.bg12-dlchev:hover{background:#0d5fc2;border-color:#0c59b6;border-left-color:rgba(255,255,255,.35)}
.bg12-dlchev .ic{width:16px;height:16px}
.bg12-dlmenu{position:absolute;top:calc(100% + 8px);right:0;width:280px;background:#fff;border:1px solid rgba(0,0,0,.15);border-radius:.25rem;box-shadow:0 1rem 3rem #0000002d;padding:.5rem 0;z-index:20}
.bg12-dlmenu .hint{color:#747474;padding:8px 16px 4px;margin:0}
.bg12-dlrow{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;text-align:left;border:0;background:transparent;color:#454545;font-family:inherit;font-weight:700;font-size:1rem;padding:10px 16px;border-radius:0;cursor:pointer;transition:.15s}
.bg12-dlrow small{color:#747474;font-weight:600;font-size:12px}
.bg12-dlrow:hover{background:#f7f9fa}
.bg12-dlrow.on{background:rgba(15,112,230,.08)}
.bg12-dlsep{height:1px;background:#dee2e6;margin:.5rem 0}
.bg12-dlfmt{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;font-weight:700;font-size:.875rem;color:#454545}
.bg12-fmtbtns{display:flex;gap:4px}
.bg12-fmtbtns button{border:1px solid #dee2e6;background:#fff;color:#454545;font-family:inherit;font-weight:700;font-size:12px;padding:6px 10px;border-radius:.25rem;cursor:pointer;transition:.15s}
.bg12-fmtbtns button.on{background:#0f70e6;border-color:#0f70e6;color:#fff}
.bg12-dlq{padding:8px 16px}
.bg12-dlq label{font-size:.875rem;font-weight:700;color:#454545}
.bg12-dlq input[type=range]{width:100%;accent-color:#0f70e6}
.bg12-body{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:start}
.bg12-stage{min-width:0}
.bg12-panel{background:#fff;border-radius:1rem;box-shadow:0 .5rem 1rem #00000026;padding:18px;position:sticky;top:calc(var(--header) + 16px);max-height:calc(100vh - var(--header) - 48px);overflow-y:auto}
.bg12-panelpage h3{font-family:Poppins,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1.1rem;font-weight:700;line-height:1.2;margin:0 0 6px;color:#454545}
.bg12-panelpage h4{font-family:Poppins,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:.875rem;font-weight:700;line-height:1.2;margin:18px 0 10px;color:#454545}
.bg12-panelpage .hint{font-size:12px;color:#747474}
.bg12-panelpage>div{margin-bottom:12px}
.bg12-panelpage label{font-weight:700;font-size:.875rem;display:block;margin-bottom:5px;color:#454545}
.bg12-panelpage input[type=text],.bg12-panelpage input[type=search],.bg12-panelpage input[type=number]{width:100%;min-height:42px;border-radius:.25rem;border:1px solid #ced4da;background:#fff;color:#495057;padding:.625rem 1.5rem;font-size:1rem;font-family:inherit}
#bgPickRgbRow input,#bgPickHslRow input{padding:.625rem .5rem}
.bg12-panelpage input[type=range]{width:100%;height:1.4rem;accent-color:#0f70e6}
.bg12-panelpage input[type=color]{width:100%;height:42px;border:1px solid #ced4da;border-radius:.25rem;padding:2px;background:#fff;cursor:pointer}
/* v28 — large-image fit: the canvas had only width:100% (no cap) while
   .bg-compare>img is capped at 520px, so a tall image's canvas height
   exploded (width x aspect ratio) and the stage showed a scrollbar.
   width:auto + max-width/max-height keeps the canvas's own ratio (a
   replaced element with both dimensions auto shrinks proportionally
   under its caps; width:100% + max-height would SQUASH it, and
   object-fit:contain would letterbox it and break the refine brush's
   client-to-canvas mapping). Centred with margin:auto. The vh term
   keeps the capped image inside the stage wrap, which is itself
   capped (72vh here, 60vh on phones ≤560px — responsive.css drops
   this cap to 56vh there). .zoomed restores width:100% with no cap,
   exactly like the img rule, so magnify zoom still works. */
#tool-bgremove #bgCanvas{display:block;width:auto;height:auto;max-width:100%;max-height:min(520px,68vh);margin:0 auto}
#tool-bgremove .bg-compare.zoomed #bgCanvas{max-height:none;width:100%}
#tool-bgremove #bgOrigImg{display:none}
#tool-bgremove .bg-compare.show-orig #bgOrigImg{display:block}
#tool-bgremove .bg-compare.show-orig #bgCanvas{display:none}
#tool-bgremove .bg-compare{background-color:transparent;border:1px solid #dee2e6;border-radius:1rem;box-shadow:none;filter:drop-shadow(0 16px 32px rgba(0,27,45,.05)) drop-shadow(0 32px 64px rgba(0,27,45,.05));isolation:isolate;min-height:260px}
#tool-bgremove .bg-compare.bg-nocheck{background-color:#fff;background-image:none}
#tool-bgremove .bg-brush-cursor{box-shadow:0 0 0 1.5px rgba(0,0,0,.55),0 0 0 4px rgba(15,112,230,.30)}
.bg12-magnify{position:absolute;top:12px;right:12px;z-index:4;width:38px;height:38px;border-radius:50%;border:1px solid #dee2e6;background:#fff;color:#454545;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.12);transition:.15s}
.bg12-magnify:hover{border-color:#0f70e6;color:#0f70e6}
.bg12-magnify.on{background:#0f70e6;border-color:#0f70e6;color:#fff}
.bg12-magnify .ic{width:19px;height:19px}
.bg12-loading{background:#fff;border:1px solid #edeff0;border-radius:1rem;padding:28px 20px;text-align:center;box-shadow:0 0 40px #0000001a}
.bg12-loading img{max-width:100%;max-height:280px;border-radius:.5rem;margin:0 auto 16px;display:block;object-fit:contain}
.bg12-error{background:#fff;border:1px solid #ffb8b8;border-radius:1rem;padding:28px 20px;text-align:center;box-shadow:0 0 40px #0000001a}
.bg12-error p{color:#DB1436;font-weight:600;margin:0 0 16px;line-height:1.6}
.bg12-tray{display:flex;gap:10px;align-items:center;margin-top:14px;flex-wrap:wrap}
.bg12-trayitems{display:flex;gap:8px;flex-wrap:wrap;flex:1;min-width:0;max-height:none;overflow:visible}
.bg-titem{position:relative;width:56px;height:56px;border-radius:8px;overflow:hidden;border:2px solid transparent;cursor:pointer;background:#fff;flex:none;padding:0;transition:.15s}
.bg-titem:hover{border-color:#86aed8}
.bg-titem.sel{border-color:#0f70e6;box-shadow:0 0 0 2px #aae1ffd9}
.bg-tthumb{width:100%;height:100%;object-fit:cover;display:block}
.bg-tbadge{position:absolute;bottom:3px;right:3px;font-size:10px;font-weight:900;line-height:1;background:rgba(0,0,0,.65);color:#fff;padding:3px 5px;border-radius:99px}
.bg-tbadge.done{background:#008009}
.bg-tbadge.fail{background:#f93e3e}
.bg12-trayadd{width:44px;height:44px;border-radius:50%;border:2px dashed #dee2e6;background:#fff;color:#54616c;display:grid;place-items:center;cursor:pointer;flex:none;transition:.15s}
.bg12-trayadd:hover{border-color:#0f70e6;color:#0f70e6}
.bg12-trayadd .ic{width:20px;height:20px}
.bg12-traymenu-wrap{position:relative;flex:none}
.bg12-traymenubtn{width:44px;height:44px;border-radius:50%;border:1px solid #dee2e6;background:#fff;color:#454545;display:grid;place-items:center;cursor:pointer;transition:.15s}
.bg12-traymenubtn:hover{border-color:#0f70e6;color:#0f70e6}
.bg12-traymenubtn .ic{width:18px;height:18px}
.bg12-traymenu{position:absolute;bottom:calc(100% + 8px);right:0;width:210px;background:#fff;border:1px solid rgba(0,0,0,.15);border-radius:.25rem;box-shadow:0 1rem 3rem #0000002d;padding:.5rem 0;z-index:20}
.bg12-traymenu button{display:block;width:100%;text-align:left;border:0;background:transparent;color:#454545;font-family:inherit;font-weight:700;font-size:.875rem;padding:10px 16px;border-radius:0;cursor:pointer;transition:.15s}
.bg12-traymenu button:hover{background:#f7f9fa}
#bgTrayDelete{color:#DB1436}
.bg12-brushbtns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.bg12-brushbtn{display:flex;flex-direction:column;gap:6px;align-items:center;padding:14px 8px;border:2px solid #dee2e6;border-radius:1rem;background:#fff;color:#454545;font-family:inherit;font-weight:700;font-size:.875rem;cursor:pointer;transition:.15s}
.bg12-brushbtn .ic{width:22px;height:22px}
.bg12-brushbtn:hover{border-color:#86aed8}
.bg12-brushbtn.on{border-color:#0f70e6;color:#0f70e6;background:rgba(15,112,230,.06)}
.bg12-toggle{display:flex!important;align-items:center;gap:10px;font-weight:700;font-size:.875rem;color:#454545;cursor:pointer;margin:14px 0!important}
.bg12-toggle input{position:absolute;opacity:0;width:0;height:0}
.bg12-toggle-ui{flex:none;width:44px;height:24px;border-radius:99px;background:#ced4da;position:relative;transition:.2s}
.bg12-toggle-ui::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:.2s}
.bg12-toggle input:checked + .bg12-toggle-ui{background:#0f70e6}
.bg12-toggle input:checked + .bg12-toggle-ui::after{left:23px}
.bg12-toggle input:focus-visible + .bg12-toggle-ui{outline:0;box-shadow:0 0 0 3px #2275d780}
.bg12-subtabs{display:flex;background:#f7f9fa;border-radius:99px;padding:3px;gap:2px;margin-bottom:14px}
.bg12-subtab{flex:1;border:0;background:transparent;color:#454545;font-family:inherit;font-weight:700;font-size:.875rem;padding:8px 6px;border-radius:99px;cursor:pointer;transition:.15s}
.bg12-subtab.on{background:#fff;color:#454545;box-shadow:0 2px 8px rgba(0,0,0,.10)}
.bg12-photogrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.bg12-phototile{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;border:2px solid transparent;padding:0;cursor:pointer;background:#f7f9fa;transition:.15s}
.bg12-phototile img{width:100%;height:100%;object-fit:cover;display:block}
.bg12-phototile:hover{border-color:#86aed8}
.bg12-phototile.on{border-color:#0f70e6;box-shadow:0 0 0 2px #aae1ffd9}
.bg12-tile-add{display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;color:#54616c;font-family:inherit;font-weight:700;font-size:12px;background:#f7f9fa;border:2px dashed #dee2e6}
.bg12-tile-add .ic{width:20px;height:20px}
.bg12-tile-orig{display:grid;place-items:center;color:#454545;font-family:inherit;font-weight:700;font-size:12.5px;background:#f7f9fa}
#bgPhotoSearch{margin-bottom:10px}
.bg12-colorgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.bg12-colortile{aspect-ratio:1;border-radius:8px;border:1px solid #6f6f6f;cursor:pointer;padding:0;display:grid;place-items:center;color:#747474;background:#fff;transition:.15s}
.bg12-colortile[data-color="transparent"]{background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7.937 7.938' width='30' height='30'%3E%3Cg fill='%23eeeff0'%3E%3Cpath d='M.014.014H3.97V3.97H.014zM3.97 3.968h3.954v3.955H3.97z'/%3E%3C/g%3E%3C/svg%3E");background-size:15px 15px}
.bg12-colortile:hover{transform:scale(1.08)}
.bg12-colortile.on{border-color:#0f70e6;box-shadow:0 0 0 2px #0f70e6}
.bg12-colortile .ic{width:20px;height:20px}
.bg12-wheel{background:conic-gradient(#F44336,#FFEB3B,#4CAF50,#2196F3,#9C27B0,#F44336)}
.bg12-picker{margin-top:14px;border:1px solid #dee2e6;border-radius:1rem;padding:15px;background:#fff}
.bg12-picker-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.bg12-picker-head strong{font-size:.875rem;color:#454545}
.bg12-picker-head button{border:0;background:transparent;font-size:20px;line-height:1;color:#747474;cursor:pointer;padding:2px 6px}
#bgPickWell{width:100%;height:44px;border:1px solid #dee2e6;border-radius:.25rem;padding:2px;background:#fff;cursor:pointer}
.bg12-pickmodes{display:flex;gap:4px;margin:12px 0 10px}
.bg12-pickmodes button{flex:1;border:1px solid #dee2e6;background:#fff;color:#454545;font-family:inherit;font-weight:700;font-size:12px;padding:7px 4px;border-radius:.25rem;cursor:pointer;transition:.15s}
.bg12-pickmodes button.on{background:#0f70e6;border-color:#0f70e6;color:#fff}
#bgPickRgbRow input,#bgPickHslRow input{flex:1;min-width:0}
.bg12-filters{display:flex;flex-wrap:wrap;gap:8px}
.bg12-filterbtn{border:1px solid #dee2e6;background:#fff;color:#454545;font-family:inherit;font-weight:700;font-size:.875rem;padding:8px 14px;border-radius:99px;cursor:pointer;transition:.15s}
.bg12-filterbtn:hover{border-color:#86aed8}
.bg12-filterbtn.on{background:#0f70e6;border-color:#0f70e6;color:#fff}
.bg12-seg{display:flex;background:#f7f9fa;border-radius:99px;padding:3px;gap:2px}
.bg12-seg button{flex:1;border:0;background:transparent;color:#454545;font-family:inherit;font-weight:700;font-size:.875rem;padding:8px 6px;border-radius:99px;cursor:pointer;transition:.15s}
.bg12-seg button.on{background:#fff;color:#454545;box-shadow:0 2px 8px rgba(0,0,0,.10)}
#bgBlurRow input:disabled,#bgShadowRow input:disabled{opacity:.4}
.bg12-upload:focus-visible,.bg12-sample:focus-visible,.bg12-tab:focus-visible,.bg12-iconbtn:focus-visible,.bg12-dlmain:focus-visible,.bg12-dlchev:focus-visible,.bg12-dlrow:focus-visible,.bg12-fmtbtns button:focus-visible,.bg12-phototile:focus-visible,.bg12-colortile:focus-visible,.bg12-brushbtn:focus-visible,.bg12-filterbtn:focus-visible,.bg12-subtab:focus-visible,.bg12-seg button:focus-visible,.bg12-magnify:focus-visible,.bg-titem:focus-visible,.bg12-trayadd:focus-visible,.bg12-traymenubtn:focus-visible,.bg12-traymenu button:focus-visible,.bg12-pickmodes button:focus-visible{outline:0;box-shadow:0 0 0 3px #2275d780}
.bg12-panelpage input:focus-visible,.bg12-urlrow input:focus-visible,.bg12-modelbar select:focus-visible{outline:0;border-color:#0f70e6;box-shadow:0 0 0 .2rem #3385ea80}

/* ===== v14: Studio dashboard — modern compact UI (scoped to #page-team) ===== */
/* Linear / Raycast-style density: smaller cards, tighter rhythm, softer
   surfaces, refined type. Brand (midnight/violet) unchanged. Every rule
   is scoped under #page-team so no other page is affected. The v13 BG
   Remover pixel-match section above is untouched; only the shared
   tool-view chrome (.tool-shell / .tool-head / .crumbs / back button)
   is compacted, and the v13.1 footer block is preserved exactly. */

/* --- denser tool grid: 2 cols from 640px, up to 6 on very wide screens --- */
#page-team .tools-grid{gap:12px;margin-top:14px}
@media(min-width:640px){#page-team .tools-grid,#page-team .recent-row .tools-grid,#page-team .fav-row .tools-grid,#page-team .popular-row .tools-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){#page-team .tools-grid,#page-team .recent-row .tools-grid,#page-team .fav-row .tools-grid,#page-team .popular-row .tools-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1100px){#page-team .tools-grid,#page-team .recent-row .tools-grid,#page-team .fav-row .tools-grid,#page-team .popular-row .tools-grid{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1300px){#page-team .tools-grid,#page-team .recent-row .tools-grid,#page-team .fav-row .tools-grid,#page-team .popular-row .tools-grid{grid-template-columns:repeat(5,1fr)}}
@media(min-width:1500px){#page-team .tools-grid,#page-team .recent-row .tools-grid,#page-team .fav-row .tools-grid,#page-team .popular-row .tools-grid{grid-template-columns:repeat(6,1fr)}}

/* --- compact tool cards: 14px padding, 40px icon tile, 2-line clamp --- */
#page-team .tool-card{border-radius:14px;padding:14px;min-height:0;box-shadow:0 1px 2px rgba(0,0,0,.05),0 4px 14px rgba(0,0,0,.06);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
#page-team .tool-card::before{display:none}
#page-team .tool-card:hover,#page-team .tool-card:active{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.10),0 0 0 1px color-mix(in srgb,var(--lime) 25%,transparent)}
#page-team .tool-card .ticon{width:40px;height:40px;border-radius:11px;margin-bottom:10px;box-shadow:0 6px 14px rgba(139,124,255,.30)}
#page-team .tool-card .ticon svg{width:21px;height:21px}
#page-team .tool-card:hover .ticon{transform:scale(1.06)}
#page-team .tool-card h3{font-size:15px;margin-bottom:4px;line-height:1.3}
#page-team .tool-card p{font-size:12.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#page-team .tool-meta{margin-top:10px;font-size:11px}
#page-team .fav-btn{top:8px;right:8px;width:28px;height:28px}
#page-team .fav-btn svg{width:15px;height:15px}
#page-team .featured-tool .fav-btn{top:10px;right:10px}

/* --- sleek Studio hero: smaller heading, tighter spacing --- */
#page-team .page-hero{padding-top:calc(var(--header) + var(--sat,0px) + 18px);padding-bottom:20px}
#page-team .dash-head h1{font-size:clamp(26px,4.5vw,36px)}
#page-team .dash-head p{font-size:14px}
#page-team .user-chip{padding:6px 12px 6px 6px;font-size:13px;gap:8px}
#page-team .user-chip .avatar{width:36px;height:36px}

/* --- refined search + filter chips --- */
#page-team .dash-sticky{padding:10px 2px 8px}
#page-team .studio-search{border-radius:12px;padding:4px 6px 4px 12px;gap:8px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
#page-team .studio-search input{min-height:34px;font-size:14px}
#page-team .studio-search .ss-ic svg{width:17px;height:17px}
#page-team .ss-clear{width:30px;height:30px}
#page-team .ss-clear svg{width:15px;height:15px}
#page-team .ss-kbd{padding:3px 7px;font-size:10.5px}
#page-team .filter-chips{margin-top:10px;gap:6px}
#page-team .fchip{padding:7px 12px;min-height:32px;font-size:12.5px}

/* --- section headers + rows: small refined labels, tighter rhythm --- */
#page-team .studio-head{margin:26px 0 2px;gap:10px;align-items:center}
#page-team .studio-head .sh-icon{width:36px;height:36px;border-radius:10px;box-shadow:0 6px 14px rgba(139,124,255,.30)}
#page-team .studio-head .sh-icon svg{width:20px;height:20px}
#page-team .studio-head h2{font-size:clamp(18px,3vw,22px)}
#page-team .studio-head p{font-size:13px;margin:2px 0 0}
#page-team .recent-title{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase}
#page-team .recent-title svg{width:15px;height:15px}
#page-team .recent-row,#page-team .fav-row,#page-team .popular-row{margin-top:14px}
#page-team .recent-row .tools-grid,#page-team .fav-row .tools-grid,#page-team .popular-row .tools-grid{margin-top:10px}

/* --- compact premium hero banner --- */
#page-team .prem-hero{padding:18px 20px;border-radius:16px;box-shadow:0 12px 32px rgba(0,0,0,.35)!important}
#page-team .prem-hero h2{font-size:clamp(19px,3vw,24px)}
#page-team .prem-hero p{font-size:13.5px}
#page-team .prem-stats{margin-top:12px;gap:8px}
#page-team .prem-stats span{padding:7px 11px;font-size:12px}

/* --- compact featured banners --- */
#page-team .featured-tool{padding:16px 18px;border-radius:16px;margin-top:14px;gap:14px;box-shadow:0 12px 32px rgba(0,0,0,.32)}
#page-team .featured-tool .ft-icon{width:48px;height:48px;border-radius:13px;box-shadow:0 8px 18px rgba(139,124,255,.35)}
#page-team .featured-tool .ft-icon svg{width:26px;height:26px}
#page-team .featured-tool h3{font-size:clamp(18px,3vw,22px)}
#page-team .featured-tool p{font-size:13px}
#page-team .featured-tool .ft-tags span{padding:5px 10px;font-size:11px}
#page-team .featured-tool .ft-go{padding:9px 16px;font-size:13px}

/* --- sleek tool-view chrome (shared header / shell / crumbs / back) --- */
#page-team .tool-shell{border-radius:18px;padding:16px;box-shadow:0 12px 32px rgba(0,0,0,.22)}
#page-team .tool-shell h2{font-size:clamp(20px,3.5vw,26px)}
#page-team .tool-head{gap:12px;margin:10px 0 4px}
#page-team .tool-head .th-icon{width:44px;height:44px;border-radius:12px;box-shadow:0 8px 18px rgba(139,124,255,.30)}
#page-team .tool-head .th-icon svg{width:22px;height:22px}
#page-team .tool-head h2{font-size:clamp(20px,3.5vw,26px)}
#page-team .tool-head p{font-size:13.5px}
#page-team .tool-shell [data-back]{min-height:32px;padding:6px 12px;font-size:12.5px;border-radius:999px}
#page-team .crumbs{margin-bottom:10px;font-size:13px}
#page-team .steps-bar{margin:14px 0 16px;padding:10px;border-radius:12px}

/* --- compact Command Center (team) --- */
#page-team .kpi-grid{gap:10px}
#page-team .kpi{padding:14px;border-radius:14px}
#page-team .kpi strong{font-size:clamp(19px,3vw,24px)}
#page-team .kpi .k-ic svg{width:19px;height:19px}
#page-team .cc-grid{gap:12px;margin-top:12px}
#page-team .cc-card{padding:14px;border-radius:14px}
#page-team .cc-card h3{font-size:15px;margin-bottom:8px}
#page-team .qa-grid{gap:8px;margin-top:12px}
#page-team .qa-btn{min-height:56px;padding:10px 8px;font-size:12.5px;border-radius:12px}
#page-team .qa-btn span{margin-bottom:4px}
#page-team .qa-btn svg{width:19px;height:19px}

/* --- compact admin Tool Access panel --- */
#page-team .acc-panel{padding:18px;border-radius:16px;margin-bottom:18px}
#page-team .acc-head{margin-bottom:14px;gap:10px;align-items:center}
#page-team .acc-head .sh-icon{width:36px;height:36px;border-radius:10px}
#page-team .acc-head .sh-icon svg{width:20px;height:20px}
#page-team .acc-head h2{font-size:18px;margin:0 0 4px}
#page-team .acc-head p{font-size:13px}
#page-team .acc-group{margin-top:14px}
#page-team .acc-row{padding:7px 0}
#page-team .acc-select{min-height:34px;min-width:120px;font-size:13px}
#page-team .acc-actions{margin-top:14px}

/* --- compact empty state --- */
#page-team .no-results{padding:32px 16px}
#page-team .no-results .ic{width:36px;height:36px}
#page-team .no-results b{font-size:17px}
#page-team .no-results p{font-size:13.5px}

/* --- v14 contrast: search placeholder, Ctrl+K hint and crumb separator
   used --muted2, which is only 3.39:1 in light theme — switch them to
   --muted (6.19:1 light / 9.05:1 dark) so the Studio chrome stays
   readable in both themes. No new colours introduced. --- */
#page-team .studio-search input::placeholder{color:var(--muted)}
#page-team .ss-kbd{color:var(--muted)}
#page-team .crumb-sep{color:var(--muted)}

/* ===== v14.1: Studio top-area rebuild + premium pass (scoped to #page-team) ===== */
/* User feedback 18 Nov: unstick the search bar, make the hero / search /
   chips smaller, and make the whole Studio feel properly premium. The
   v14 compaction was too subtle — this round rebuilds the top area and
   flattens the cards (solid surfaces, soft-tint icon tiles) for a
   modern SaaS feel. BG Remover view + v13.1 footer untouched. */

/* --- search bar is NO LONGER sticky: it scrolls away with the page --- */
#page-team .dash-sticky{position:static;top:auto;z-index:auto;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:0;padding:0;margin:0 0 2px}

/* --- hero: tighter, smaller, one clean unit + a whisper of violet --- */
#page-team .page-hero{padding-top:calc(var(--header) + var(--sat,0px) + 12px);padding-bottom:14px;background:linear-gradient(180deg,color-mix(in srgb,var(--lime) 6%,var(--bg2)),var(--bg2))}
#page-team .dash-head{gap:10px}
#page-team .dash-head h1{font-size:clamp(24px,3.5vw,30px);letter-spacing:-.02em}
#page-team .dash-head p{font-size:13.5px;margin-top:6px}
#page-team .tag-pill{font-size:10px;letter-spacing:.12em;padding:5px 10px;background:var(--lime-soft);color:#8B7CFF;border:1px solid color-mix(in srgb,var(--lime) 30%,transparent)}
html[data-theme="light"] #page-team .tag-pill{color:#4A3BC2}
@media(prefers-color-scheme:light){#page-team .tag-pill{color:#4A3BC2}}
#page-team .dash-head .btn-sm{min-height:36px;padding:8px 14px;font-size:13px}

/* --- search + chips: slimmer and more refined --- */
#page-team .studio-search{border-radius:10px;padding:3px 5px 3px 11px;gap:7px}
#page-team .studio-search input{min-height:30px;font-size:13.5px}
#page-team .studio-search .ss-ic svg{width:16px;height:16px}
#page-team .ss-clear{width:26px;height:26px}
#page-team .ss-clear svg{width:13px;height:13px}
#page-team .ss-kbd{padding:2px 6px;font-size:9.5px}
#page-team .filter-chips{margin-top:8px;gap:5px}
#page-team .fchip{padding:5px 11px;min-height:28px;font-size:12px}
#page-team .fchip .ic{width:13px;height:13px}

/* --- premium cards: flat solid surfaces, soft-tint icon tiles --- */
#page-team .tool-card{background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.04)}
#page-team .tool-card:hover{box-shadow:0 8px 22px rgba(0,0,0,.08),0 0 0 1px color-mix(in srgb,var(--lime) 30%,transparent)}
#page-team .tool-card .ticon{width:38px;height:38px;border-radius:10px;background:var(--lime-soft);color:var(--lime);box-shadow:none}
#page-team .tool-card .ticon svg{width:20px;height:20px}
#page-team .tool-card h3{font-size:14.5px}
/* section + tool-view header icons get the same soft-tint treatment */
#page-team .studio-head .sh-icon,#page-team .acc-head .sh-icon,#page-team .tool-head .th-icon{background:var(--lime-soft);color:var(--lime);box-shadow:none}

/* ===== v14.2: home hero — remove the black gap above the slider ===== */
/* BUG: .hero (98px top padding, 110px on desktop) + .hero-slider (68px
   top padding) stacked a double header offset, leaving a ~98-110px
   solid-black band between the fixed header and the hero image.
   Fix: the slider is full-bleed from the very top (image behind the
   translucent header); only the CONTENT keeps header clearance. */
#page-home .hero{padding-top:0}
#page-home .hero-slider{padding-top:0}
#page-home .hs-content{padding-top:calc(var(--header) + var(--sat,0px) + 30px)}
@media(max-width:700px){#page-home .hs-content{padding-top:calc(var(--header) + var(--sat,0px) + 24px)}}

/* ===== v14.4: Our Work detail cards — image treatment ===== */
/* The three detailed case cards had no image at all (only the summary
   grid above them did). Same inset treatment as .svc-img: rounded,
   2:1 frame, image covers the frame. */
.case-img{border-radius:14px;overflow:hidden;margin-bottom:16px;aspect-ratio:16/8;background:var(--surface2)}
.case-img img{width:100%;height:100%;object-fit:cover}

/* ===== v14.5: desktop zoom-out — everything a touch smaller ===== */
/* The whole site read too big on desktop (large fonts, large chrome).
   A uniform zoom-out on desktop only — phones keep their own sizing.
   Safe: no full-bleed 100vw element exists (the only 100vw uses are
   max-width caps), vh uses are min/max-heights, and all fixed chrome
   (header, floats, overlays) scales with the document. */
@media(min-width:1024px){html{zoom:.85}}

/* ===== v15: premium hero slider — glass card, Ken Burns, counter ===== */
/* Replaces the bare-text hero: content now sits in a frosted-glass
   card, the active image slowly zooms (Ken Burns), card content
   staggers in per slide, and the dots become a counter + segmented
   autoplay-progress indicator. JS hooks unchanged (#heroSlider,
   .hs-slide/.hs-dot/.hs-prev/.hs-next); main.js only gains a
   1-line counter update. */
#page-home .hs-slides{min-height:620px}
#page-home .hs-card{max-width:660px;background:linear-gradient(135deg,rgba(10,14,28,.74),rgba(10,14,28,.56));backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);border:1px solid rgba(255,255,255,.14);border-radius:26px;padding:34px 36px 30px;box-shadow:0 30px 70px rgba(0,0,0,.45)}
#page-home .hs-card h1,#page-home .hs-card h2{font-size:clamp(34px,5.2vw,56px);margin:18px 0 14px}
#page-home .hs-card .hero-lead{font-size:clamp(15.5px,1.6vw,18px)}
#page-home .hs-card .trust{margin-top:20px;gap:16px}
#page-home .hs-slide .hs-card>*{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
#page-home .hs-slide.active .hs-card>*{opacity:1;transform:none}
#page-home .hs-slide.active .hs-card>:nth-child(1){transition-delay:.05s}
#page-home .hs-slide.active .hs-card>:nth-child(2){transition-delay:.15s}
#page-home .hs-slide.active .hs-card>:nth-child(3){transition-delay:.25s}
#page-home .hs-slide.active .hs-card>:nth-child(4){transition-delay:.35s}
#page-home .hs-slide.active .hs-card>:nth-child(5){transition-delay:.45s}
#page-home .hs-slide.active .hs-img img{animation:hsKenBurns 7s ease-out forwards}
@keyframes hsKenBurns{from{transform:scale(1)}to{transform:scale(1.08)}}
#page-home .hs-arrow{width:52px;height:52px;background:rgba(10,12,20,.5);border:1px solid rgba(255,255,255,.22)}
#page-home .hs-arrow:hover{background:rgba(139,124,255,.6);border-color:rgba(139,124,255,.7);transform:translateY(-50%) scale(1.06)}
#page-home .hs-controls{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:18px;z-index:3}
#page-home .hs-count{font-family:Sora;font-weight:800;font-size:15px;color:#fff;letter-spacing:.08em;white-space:nowrap}
#page-home .hs-count .hs-total{color:rgba(255,255,255,.55);font-size:13px;margin-left:4px}
#page-home .hs-dots{position:static;transform:none;display:flex;gap:8px}
#page-home .hs-dot{width:56px;height:4px;border-radius:99px;background:rgba(255,255,255,.25);overflow:hidden;padding:0}
#page-home .hs-dot i{display:block;height:100%;width:0;background:#A78BFA;border-radius:99px}
#page-home .hs-dot.active{width:56px;background:rgba(255,255,255,.25)}
#page-home .hs-dot.active i{animation:hsFill 6s linear forwards}
#page-home .hero-slider:hover .hs-dot.active i{animation-play-state:paused}
@keyframes hsFill{from{width:0}to{width:100%}}
@media(max-width:700px){#page-home .hs-slides{min-height:560px}#page-home .hs-card{padding:24px 20px;border-radius:20px}#page-home .hs-controls{bottom:18px;gap:12px}#page-home .hs-dot{width:40px}}
@media(prefers-reduced-motion:reduce){#page-home .hs-slide.active .hs-img img{animation:none}#page-home .hs-slide .hs-card>*{opacity:1;transform:none;transition:none}#page-home .hs-dot.active i{animation:none;width:100%}}

/* ===== v15.1: hero slide height — active slide in flow ===== */
/* BUG (seen on a live 1600px screenshot): .hs-slide is absolute, so
   it never sets .hs-slides' height — the slider stays at min-height
   while tall content spills past it, and the stats bar clips the
   lead text / the dots overlap the text. Fix: the ACTIVE slide is
   position:relative, so it sits in normal flow and the slider grows
   to fit the tallest card; inactive slides stay absolute for the
   crossfade. min-height remains as the floor for short slides. */
#page-home .hs-slide.active{position:relative}

/* ===== v16: split hero (text left, image right) + stretched header ===== */
/* The hero slider becomes a two-column split: text on the left,
   vertically centred, image on the right in a rounded frame. Pure
   CSS restructure — home.php markup and the slider JS are untouched
   (same #heroSlider/.hs-slide/.hs-dot hooks, same counter). The
   glass card is retired: text sits on a fixed dark slide
   background. The v15.1 active-slide-in-flow rule stays and now
   drives the split height. Below 900px the layout stacks with the
   image on top. The header stretches full-width (site-wide). */
#page-home .hs-slide{display:grid;grid-template-columns:1.02fr .98fr;padding:calc(var(--header) + var(--sat,0px) + 28px) 28px 96px;background:radial-gradient(600px 300px at 12% 20%,rgba(139,124,255,.16),transparent 60%),linear-gradient(135deg,#0A0E1C,#050810)}
#page-home .hero-slider .hs-content{grid-column:1;width:auto;max-width:none;margin:0;padding:0;align-self:center}
#page-home .hero-slider .hs-card{background:none;border:0;box-shadow:none;padding:0;backdrop-filter:none;-webkit-backdrop-filter:none;max-width:640px}
#page-home .hs-img{position:relative;inset:auto;grid-column:2;border-radius:24px;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.08);min-height:420px}
#page-home .hs-controls{left:28px;transform:none}
@media(max-width:900px){#page-home .hs-slide{grid-template-columns:1fr;padding:calc(var(--header) + var(--sat,0px) + 20px) 16px 84px}#page-home .hero-slider .hs-content{grid-column:auto}#page-home .hs-img{grid-column:auto;min-height:240px}#page-home .hs-controls{left:50%;transform:translateX(-50%)}}
/* Stretched header (site-wide): the header's inner wrap spans the
   full viewport width instead of stopping at 1180px. */
header .wrap{width:100%;padding:0 28px}
@media(max-width:700px){header .wrap{padding:0 16px}}

/* ===== v16.1: hero arrows move to the bottom-right ===== */
/* On the split hero the mid-side arrows overlapped the text
   column, so they now sit as a pair at the bottom-right, above
   the image, balancing the counter + progress at bottom-left.
   Hidden on small screens, where the progress segments are the
   navigation. */
#page-home .hs-arrow{top:auto;bottom:26px;transform:none}
#page-home .hs-arrow:hover{transform:scale(1.06)}
#page-home .hs-prev{left:auto;right:96px}
#page-home .hs-next{left:auto;right:28px}
@media(max-width:900px){#page-home .hs-arrow{display:none}}

/* ===== v16.2: hero top-space fix ===== */
/* ROOT CAUSE (live-site diagnosis): the v15 home.php was never
   uploaded, so the live markup has no .hs-card wrappers — the
   56px heading rule never matched and the heading rendered at the
   92px base size, pushing the text column down. This version ships
   that home.php (and the v15 footer.php) so the dependency is
   repaired. ALSO: the slide image was in-flow (its base rule has
   no position), which let it size the grid row unpredictably — it
   is now absolute inside its frame, both cells are vertically
   centred, and the slide padding is tightened. */
#page-home .hs-img img{position:absolute;inset:0}
#page-home .hs-slide{align-items:center;padding-top:calc(var(--header) + var(--sat,0px) + 16px);padding-bottom:80px}

/* ===== v17: flex hero + premium everywhere ===== */
/* A. HERO — the v16 grid stacked the text under the image on the
   live site even though every static check passed (structure and
   rules verified correct). Flexbox replaces it: a flex row with
   no wrapping cannot stack, so the split is now deterministic. */
#page-home .hs-slide{display:flex;align-items:center;gap:32px}
#page-home .hero-slider .hs-content{flex:1 1 0;min-width:0}
#page-home .hs-img{flex:0 0 46%;min-width:0}
@media(max-width:900px){
#page-home .hs-slide{flex-direction:column;align-items:stretch;gap:18px}
#page-home .hs-img{flex:none;width:100%}
}
/* B. SERVICES PAGE — 3 cards per line + premium cards. The
   #page-services scope beats responsive.css (2 cols >=800px). */
@media(min-width:1100px){#page-services .services-full{grid-template-columns:repeat(3,minmax(0,1fr))}}
#page-services .services-full{gap:18px}
#page-services .svc-full{padding:20px;border-radius:18px;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
#page-services .svc-full:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(0,0,0,.10);border-color:color-mix(in srgb,var(--lime) 35%,var(--line))}
#page-services .svc-img{margin-bottom:14px;border-radius:12px}
#page-services .svc-full h2,#page-services .svc-full h3{font-size:21px}
/* C. SITE-WIDE COMPACT PREMIUM — tighter headings and cards so
   every page reads premium at the 85% desktop zoom. No colour
   changes, so contrast is untouched. */
.page-hero h1{font-size:clamp(30px,4.5vw,44px)}
.sec-head h2{font-size:clamp(26px,3.5vw,36px)}
.sec-head{margin-bottom:22px}
.svc{padding:20px;min-height:0;border-radius:18px}
.svc h3{font-size:18px}
.work{border-radius:18px}
.work-body{padding:18px}
.case-card{padding:20px;border-radius:18px}
.cap{padding:20px;border-radius:18px}
.adv{padding:20px;border-radius:18px}
.step{padding:20px;border-radius:18px}
.info-card{padding:18px}
details{border-radius:14px}

/* ===== v18: hero image back to full-bleed background ===== */
/* The split (v16/v17) put the image in a right-hand frame. The
   image now returns to a full-bleed background with the text on
   the left in the v15 frosted-glass card. The base ::after
   overlay (dark left, light right) still applies, so the text
   stays readable. Controls stay bottom-left / bottom-right. */
#page-home .hs-slide{display:block;padding:0;background:#050810}
#page-home .hs-img{position:absolute;inset:0;grid-column:auto;flex:none;border-radius:0;box-shadow:none;overflow:hidden;min-height:0}
#page-home .hero-slider .hs-content{position:relative;z-index:2;width:min(1180px,100% - 40px);max-width:920px;margin:0 auto;padding:calc(var(--header) + var(--sat,0px) + 30px) 0 96px;align-self:auto;flex:none;grid-column:auto}
#page-home .hero-slider .hs-card{max-width:660px;background:linear-gradient(135deg,rgba(10,14,28,.74),rgba(10,14,28,.56));backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);border:1px solid rgba(255,255,255,.14);border-radius:26px;padding:34px 36px 30px;box-shadow:0 30px 70px rgba(0,0,0,.45);margin:0}
@media(max-width:700px){#page-home .hero-slider .hs-card{padding:24px 20px;border-radius:20px}}

/* ===== v19: inner pages stretched wider ===== */
/* The 1180px content column left ~300px empty on each side at
   the 85% desktop zoom. Inner pages now use a 1360px column
   (modest stretch, 28px side gutters like the header). Home is
   untouched (hero card position), and the header/footer live
   outside the page divs so they are unaffected. */
#page-services .wrap,#page-work .wrap,#page-about .wrap,#page-faq .wrap,#page-contact .wrap,#page-team .wrap,#page-login .wrap{width:min(1360px,100% - 56px)}

/* ===== v20: hero card to the right ===== */
/* The glass card moves to the right side of the background
   image: the content column spans the full wrap and the card is
   pushed to its right edge. The legibility overlay is flipped
   with it (dark right, light left) so the image shows on the
   empty left side. Text inside the card stays left-aligned. */
#page-home .hero-slider .hs-content{max-width:none}
#page-home .hero-slider .hs-card{margin-left:auto}
#page-home .hs-img::after{background:linear-gradient(180deg,rgba(5,8,16,.55),rgba(5,8,16,.45) 45%,#050810),linear-gradient(90deg,rgba(5,8,16,.15),rgba(5,8,16,.85)),radial-gradient(700px 420px at 82% 8%,rgba(139,124,255,.30),transparent 60%)}

/* ===== v21: hero card back to the left ===== */
/* Reverts the v20 right alignment: the content column is 920px
   again, the card hugs the left edge, and the overlay is dark
   on the left again (the v18 look). */
#page-home .hero-slider .hs-content{max-width:920px}
#page-home .hero-slider .hs-card{margin-left:0}
#page-home .hs-img::after{background:linear-gradient(180deg,rgba(5,8,16,.55),rgba(5,8,16,.45) 45%,#050810),linear-gradient(90deg,rgba(5,8,16,.85),rgba(5,8,16,.15)),radial-gradient(700px 420px at 82% 8%,rgba(139,124,255,.30),transparent 60%)}

/* ===== v22: hero card close to the left edge ===== */
/* The centred 1180px wrap left ~300px of empty space on the
   card's left. The hero content now spans the full slide width
   with a 28px gutter (matching the stretched header), so the
   card sits near the left edge. */
#page-home .hero-slider .hs-content{width:100%;max-width:none;margin:0;padding:calc(var(--header) + var(--sat,0px) + 30px) 28px 96px}

/* ===== v23: Service Builders (admin-only drag-and-drop tools) ===== */
/* Three-column builder: block palette | canvas | settings. All
   colours come from the theme variables so both themes work. */
#page-team .bld-toolbar{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end;margin-bottom:16px}
#page-team .bld-client{flex:1;min-width:220px}
#page-team .bld-client label{font-weight:800;font-size:13px;display:block;margin-bottom:5px}
#page-team .bld-client input{width:100%;min-height:46px;border-radius:11px;border:1px solid var(--line);background:var(--surface2);color:var(--text);padding:10px 12px;font-size:14.5px}
#page-team .bld-actions{flex:none}
#page-team .bld-wrap{display:grid;grid-template-columns:220px minmax(0,1fr) 260px;gap:16px;align-items:start}
#page-team .bld-col-h{font-family:"Sora";font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 10px;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
#page-team .bld-count{text-transform:none;letter-spacing:0;font-family:"Inter";font-weight:700;font-size:12px}
#page-team .bld-palette{display:grid;gap:8px}
#page-team .bld-pal{display:flex;gap:10px;align-items:center;text-align:left;background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:10px 12px;cursor:grab;color:var(--text);width:100%}
#page-team .bld-pal:hover{border-color:var(--lime)}
#page-team .bld-pal.dragging{opacity:.5}
#page-team .bld-pal-ic{width:32px;height:32px;flex:none;display:grid;place-items:center;background:var(--lime-soft);color:var(--lime);border-radius:9px}
#page-team .bld-pal-ic .ic{width:18px;height:18px}
#page-team .bld-pal-tx{flex:1;min-width:0}
#page-team .bld-pal-tx b{display:block;font-size:13.5px}
#page-team .bld-pal-tx small{display:block;font-size:11.5px;color:var(--muted);line-height:1.35}
#page-team .bld-pal-add{color:var(--muted);font-weight:900;font-size:18px;margin-left:auto;flex:none}
#page-team .bld-canvas{min-height:320px;background:var(--surface2);border:1.5px dashed var(--line);border-radius:14px;padding:12px;display:grid;gap:10px;align-content:start}
#page-team .bld-canvas.drag-over{border-color:var(--lime);background:var(--lime-soft)}
#page-team .bld-empty{text-align:center;padding:48px 16px;color:var(--muted)}
#page-team .bld-empty-ic{width:44px;height:44px;margin:0 auto 12px;display:grid;place-items:center;background:var(--lime-soft);color:var(--lime);border-radius:12px}
#page-team .bld-empty-ic .ic{width:22px;height:22px}
#page-team .bld-empty b{display:block;color:var(--text);font-size:15px;margin-bottom:6px}
#page-team .bld-empty p{margin:0;font-size:13px;line-height:1.6}
#page-team .bld-item{display:flex;gap:10px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;cursor:grab}
#page-team .bld-item.sel{border-color:var(--lime);box-shadow:0 0 0 3px var(--lime-soft)}
#page-team .bld-item.dragging{opacity:.5}
#page-team .bld-item.drop-before{box-shadow:0 -2px 0 var(--lime)}
#page-team .bld-item.drop-after{box-shadow:0 2px 0 var(--lime)}
#page-team .bld-grip{color:var(--muted2);line-height:1.5;flex:none}
#page-team .bld-num{font-family:"Sora";font-weight:800;font-size:11px;color:var(--lime);background:var(--lime-soft);width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex:none}
#page-team .bld-item-ic{width:30px;height:30px;flex:none;display:grid;place-items:center;background:var(--lime-soft);color:var(--lime);border-radius:9px}
#page-team .bld-item-ic .ic{width:17px;height:17px}
#page-team .bld-item-tx{flex:1;min-width:0}
#page-team .bld-item-title{display:block;font-size:13.5px}
#page-team .bld-item-type{display:block;font-size:10.5px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:1px 0 3px}
#page-team .bld-item-detail{display:block;font-size:12.5px;color:var(--muted);line-height:1.5}
#page-team .bld-pick{display:inline-block;margin-top:5px;color:var(--text);background:var(--lime-soft);padding:2px 8px;border-radius:99px;font-size:11px;font-weight:800}
#page-team .bld-item-btns{display:flex;gap:4px;flex:none}
#page-team .bld-mini{width:28px;height:28px;padding:0;border:1px solid var(--line);background:var(--surface2);color:var(--muted);border-radius:8px;cursor:pointer;display:grid;place-items:center}
#page-team .bld-mini .ic{width:15px;height:15px}
#page-team .bld-mini:hover{color:var(--text);border-color:var(--lime)}
#page-team .bld-mini.danger:hover{color:var(--err);border-color:var(--err)}
#page-team .bld-trash{margin-top:10px;border:1px dashed var(--line);border-radius:12px;padding:12px;display:flex;gap:8px;align-items:center;justify-content:center;color:var(--muted);font-size:13px;font-weight:700}
#page-team .bld-trash .ic{width:18px;height:18px}
#page-team .bld-trash.drag-over{border-color:var(--err);color:var(--err);background:rgba(255,90,90,.08)}
#page-team .bld-settings{background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:14px;display:grid;gap:12px}
#page-team .bld-set-head{display:flex;gap:10px;align-items:center}
#page-team .bld-set-ic{width:34px;height:34px;flex:none;display:grid;place-items:center;background:var(--lime-soft);color:var(--lime);border-radius:10px}
#page-team .bld-set-ic .ic{width:18px;height:18px}
#page-team .bld-set-head b{display:block;font-size:14px}
#page-team .bld-set-head small{display:block;font-size:12px;color:var(--muted)}
#page-team .bld-field label{font-weight:800;font-size:13px;display:block;margin-bottom:5px}
#page-team .bld-field input[type=text],#page-team .bld-field select,#page-team .bld-field textarea{width:100%;min-height:46px;border-radius:11px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:10px 12px;font-size:14.5px}
#page-team .bld-field textarea{min-height:80px;resize:vertical;font-family:"Inter"}
#page-team .bld-set-empty{color:var(--muted);font-size:13.5px;line-height:1.6;padding:8px 2px}
#page-team .bld-set-empty b{display:block;color:var(--text);font-size:14px;margin-bottom:4px}
#page-team .bld-set-empty p{margin:0}
@media(max-width:900px){#page-team .bld-wrap{grid-template-columns:1fr}#page-team .bld-palette{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#page-team .bld-palette{grid-template-columns:1fr}}
/* v23 contrast: --lime text on the soft tile is 4.02:1 in light theme
   (fails AA) — use the darker --lime-d there (6.67:1). Same for the
   trash drag-over red: --err is 2.86:1 on light surface2, #D92D20
   is 4.52:1. Dark theme keeps --lime (4.78:1) and --err (5.65:1). */
html[data-theme="light"] #page-team .bld-num{color:var(--lime-d)}
html[data-theme="light"] #page-team .bld-trash.drag-over{color:#D92D20}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .bld-num{color:var(--lime-d)}html:not([data-theme="dark"]) #page-team .bld-trash.drag-over{color:#D92D20}}

/* ===== v24: Advanced Studio — admin shell, marketplace, video rail,
   image enhance, voiceover, builder mobile fix ===== */
/* --- admin shell (admin-only: the #adminShell markup renders only
   for the admin; public/team never receive it) --- */
#page-team.admin-shell .page-hero{display:none}
#page-team.admin-shell .prem-hero,#page-team.admin-shell .featured-tool{display:none}
#page-team.admin-shell .fchip[data-filter="builder"]{display:none}
#page-team .admin-shell{display:flex;gap:20px;align-items:start}
#page-team .admin-side{position:sticky;top:88px;width:232px;flex:none;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:var(--shadow)}
#page-team .admin-side-brand{display:flex;gap:10px;align-items:center;padding:4px 6px 14px;border-bottom:1px solid var(--line);margin-bottom:12px}
#page-team .admin-side-mark{width:38px;height:38px;flex:none;display:grid;place-items:center;background:var(--lime-soft);color:var(--lime);border-radius:11px}
#page-team .admin-side-mark .ic{width:20px;height:20px}
#page-team .admin-side-brand b{display:block;font-family:"Sora";font-size:15px}
#page-team .admin-side-brand small{display:block;font-size:10.5px;font-weight:800;letter-spacing:.1em;color:var(--muted)}
#page-team .admin-nav{display:grid;gap:6px}
#page-team .admin-nav-btn{display:flex;gap:11px;align-items:center;width:100%;text-align:left;background:transparent;border:1px solid transparent;color:var(--muted);border-radius:12px;padding:11px 12px;font-weight:800;font-size:14px;cursor:pointer}
#page-team .admin-nav-btn .ic{width:19px;height:19px;flex:none}
#page-team .admin-nav-btn:hover{color:var(--text);background:var(--surface2)}
#page-team .admin-nav-btn.active{color:var(--text);background:var(--lime-soft);border-color:var(--line)}
#page-team .admin-side-foot{border-top:1px solid var(--line);margin-top:12px;padding-top:12px;display:grid;gap:8px}
#page-team .admin-side-foot .hint{margin:0}
#page-team .admin-main{flex:1;min-width:0}
#page-team .admin-section{display:none}
#page-team .admin-section.active{display:block;animation:fade .25s ease}
body.tool-open #page-team.admin-shell .admin-section{display:none}
#page-team .admin-sec-head{margin-bottom:16px}
#page-team .admin-sec-head h2{font-size:clamp(22px,4vw,28px)}
#page-team .admin-sec-head p{color:var(--muted);font-size:14px;margin:6px 0 0}
#page-team .admin-stats{display:grid;gap:12px;grid-template-columns:1fr 1fr}
@media(min-width:900px){#page-team .admin-stats{grid-template-columns:repeat(4,1fr)}}
#page-team .admin-stat{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--shadow)}
#page-team .admin-stat strong{display:block;font-family:"Sora";font-size:30px;line-height:1}
#page-team .admin-stat label{display:block;font-size:11.5px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:8px 0 3px}
#page-team .admin-stat span{font-size:12.5px;color:var(--muted)}
#page-team .admin-qa{display:grid;gap:10px;grid-template-columns:repeat(2,1fr);margin:16px 0}
@media(min-width:900px){#page-team .admin-qa{grid-template-columns:repeat(4,1fr)}}
#page-team .admin-set-grid{display:grid;gap:14px}
@media(min-width:900px){#page-team .admin-set-grid{grid-template-columns:1fr 1fr}}
#page-team .admin-set-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--shadow)}
#page-team .admin-set-card h3{font-size:15px;margin-bottom:6px}
#page-team .admin-set-card p{color:var(--muted);font-size:13.5px;margin:0 0 12px}
#page-team .admin-set-card p b{color:var(--text)}
#page-team .admin-set-card .hint{margin:10px 0 0}
#page-team .admin-set-card label{font-weight:800;font-size:13px;display:block;margin-bottom:5px}
#page-team .admin-set-card input[type=file]{width:100%;font-size:13.5px;margin-bottom:10px}
#page-team .admin-set-card .ctl-row{margin-bottom:10px}
@media(max-width:900px){
#page-team .admin-shell{flex-direction:column}
#page-team .admin-side{position:static;width:100%;padding:10px}
#page-team .admin-side-brand,#page-team .admin-side-foot{display:none}
#page-team .admin-nav{display:flex;overflow-x:auto;padding-bottom:2px}
#page-team .admin-nav-btn{flex:none;width:auto;white-space:nowrap;padding:9px 13px}
#page-team .mkt-hero{flex-direction:column;align-items:flex-start}
}
/* --- marketplace --- */
#page-team .mkt-hero{display:flex;gap:16px;align-items:center;background:linear-gradient(135deg,var(--lime-soft),transparent 60%),var(--surface);border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:var(--shadow)}
#page-team .mkt-hero-ic{width:64px;height:64px;flex:none;display:grid;place-items:center;background:var(--lime-soft);color:var(--lime);border-radius:16px}
#page-team .mkt-hero-ic .ic{width:32px;height:32px}
#page-team .mkt-hero-body h3{font-size:20px;margin:8px 0 6px}
#page-team .mkt-hero-body p{color:var(--muted);font-size:14px;margin:0 0 12px}
/* badges sit in the card flow (under the meta row) so they never
   collide with the favourite star, which is absolute top-right */
#page-team .mkt-card:hover{transform:translateY(-3px)}
#page-team .mkt-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
#page-team .mkt-badge{display:inline-flex;align-items:center;background:var(--lime-soft);color:var(--lime);border-radius:99px;padding:3px 9px;font-size:10.5px;font-weight:900;letter-spacing:.08em}
html[data-theme="light"] #page-team .mkt-badge{color:var(--lime-d)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .mkt-badge{color:var(--lime-d)}}
#page-team .mkt-trend{border-left:3px solid var(--lime)}
#page-team #adminMktTrendWrap{margin-top:20px}
#page-team #adminMktTrendWrap .tools-grid{margin-top:12px}
#page-team .mkt-grid{margin-top:20px}
@media(min-width:1100px){#page-team .admin-main .tools-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1500px){#page-team .admin-main .tools-grid{grid-template-columns:repeat(4,1fr)}}
/* --- video editor: CapCut-style — preview first, rail under it.
   The stage background is fixed dark (#070B14) in both themes, so
   rail/aspect text uses fixed light colours, not theme variables. --- */
#page-team .ve-layout .tool-layout .stage{order:-1}
#page-team .ve-layout .stage{display:grid;gap:12px;grid-template-columns:minmax(0,1fr);align-content:start}
#page-team .ve-layout .ve-aspect-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center}
#page-team .ve-aspect-label{font-size:12px;font-weight:800;color:#A7AEC4;letter-spacing:.06em;text-transform:uppercase}
#page-team .ve-aspect-btn{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#E8EAF6;border-radius:99px;padding:7px 13px;font-weight:800;font-size:12.5px;cursor:pointer;min-height:36px}
#page-team .ve-aspect-btn.active{background:rgba(139,124,255,.3);border-color:#8B7CFF;color:#fff}
#page-team .ve-layout .vid-wrap{margin:0 auto}
#page-team .ve-layout .vid-wrap.ve-ar-169{aspect-ratio:16/9;max-width:100%}
#page-team .ve-layout .vid-wrap.ve-ar-916{aspect-ratio:9/16;max-width:280px;max-height:520px}
#page-team .ve-layout .vid-wrap.ve-ar-11{aspect-ratio:1/1;max-width:420px}
#page-team .ve-layout .vid-wrap.ve-ar-45{aspect-ratio:4/5;max-width:340px;max-height:520px}
#page-team .ve-layout .vid-wrap.ve-ar-orig{aspect-ratio:16/9}
#page-team .ve-layout .ve-upload{justify-self:center;color:#F2F4FA;border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.06)}
#page-team .ve-rail{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
#page-team .ve-rail-btn{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:68px;padding:10px 8px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#E8EAF6;cursor:pointer;font-weight:800;font-size:11.5px}
#page-team .ve-rail-btn .ic{width:20px;height:20px}
#page-team .ve-rail-btn.active{background:rgba(139,124,255,.3);border-color:#8B7CFF;color:#fff}
#page-team .ve-layout .tl-track{height:44px}
#page-team .ve-flash{animation:veflash 1.6s ease}
@keyframes veflash{0%,100%{box-shadow:none}25%,75%{box-shadow:0 0 0 3px var(--lime-soft)}}
/* --- image editor: auto enhance box --- */
#page-team .img-auto-box{display:grid;gap:10px;background:var(--lime-soft);border:1px solid var(--line);border-radius:14px;padding:14px}
#page-team .img-auto-box .btn-lime{justify-self:start}
#page-team .img-auto-box .hint{margin:0}
/* --- voiceover: per-line play rows --- */
#page-team .vo-line{display:flex;gap:10px;align-items:center;justify-content:space-between;background:var(--surface2);border:1px solid var(--line);border-radius:11px;padding:9px 12px;margin-bottom:8px}
#page-team .vo-line span{flex:1;min-width:0;font-size:13.5px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#page-team .vo-line .mini-btn{flex:none}
/* v35.3: the script textarea holds Urdu scripts too — 14.5px in the
   Latin stack reads cramped for Nastaleeq/Naskh. 17px + a stack whose
   first Latin font (Inter) has no Arabic glyphs, so Urdu falls
   through to Nastaleeq (when installed) / Noto Naskh / system Arabic
   while Latin stays in Inter. No direction:rtl — the same box holds
   English scripts; browsers bidi-shape per paragraph. */
#page-team #tool-voice #voText{font-size:17px;line-height:1.8;font-family:Inter,"Jameel Noori Nastaleeq","Noto Sans Arabic","Noto Naskh Arabic",system-ui,sans-serif}
/* --- v35.3: Voiceover Studio premium look (Aurora standard) ---
   Scoped to #tool-voice. The tool view redefines the tokens to
   dark Aurora glass in BOTH themes (style.css:2514), so these
   rules render identically in light and dark mode. */
#page-team #tool-voice .controls{background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.03));border:1px solid rgba(139,124,255,.28);border-radius:22px;box-shadow:0 24px 60px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.09)}
#page-team #tool-voice .controls>div>label{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
#page-team #tool-voice .controls>div>label span{color:var(--lime);letter-spacing:0;text-transform:none;font-size:13px}
#page-team #tool-voice .th-icon{background:linear-gradient(135deg,rgba(139,124,255,.35),rgba(139,124,255,.12));border:1px solid rgba(139,124,255,.45);box-shadow:0 8px 24px rgba(124,108,240,.35)}
#page-team #tool-voice #voText{background:rgba(5,8,16,.55);border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:14px 16px;box-shadow:inset 0 2px 10px rgba(0,0,0,.35)}
#page-team #tool-voice #voText:focus{outline:none;border-color:rgba(139,124,255,.7);box-shadow:0 0 0 3px rgba(139,124,255,.25),inset 0 2px 10px rgba(0,0,0,.35)}
#page-team #tool-voice select{background:rgba(5,8,16,.55);border:1px solid rgba(255,255,255,.14);border-radius:12px}
#page-team #tool-voice .preset-btn{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease}
#page-team #tool-voice .preset-btn:hover{transform:translateY(-1px);border-color:rgba(139,124,255,.6);background:rgba(139,124,255,.16)}
#page-team #tool-voice .preset-btn.active{background:linear-gradient(135deg,#6558E8,#5B4BDB);border-color:#8B7CFF;box-shadow:0 8px 20px rgba(124,108,240,.45)}
#page-team #tool-voice input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:20px;background:transparent;outline:none;cursor:pointer}
#page-team #tool-voice input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:99px;background:linear-gradient(90deg,#8B7CFF var(--vo-fill,50%),rgba(255,255,255,.14) var(--vo-fill,50%))}
#page-team #tool-voice input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;margin-top:-7px;border-radius:50%;background:#fff;border:2px solid #8B7CFF;box-shadow:0 2px 10px rgba(0,0,0,.5);cursor:pointer}
#page-team #tool-voice input[type=range]::-moz-range-track{height:6px;border-radius:99px;background:rgba(255,255,255,.14)}
#page-team #tool-voice input[type=range]::-moz-range-progress{height:6px;border-radius:99px;background:#8B7CFF}
#page-team #tool-voice input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid #8B7CFF;box-shadow:0 2px 10px rgba(0,0,0,.5);cursor:pointer}
#page-team #tool-voice .vo-dl-btn{flex:1;justify-content:center;padding:13px 16px;border-radius:13px;font-size:14.5px}
#page-team #tool-voice .vo-dl-btn:hover{filter:brightness(1.08)}
#page-team #tool-voice .vo-dl-btn:disabled{opacity:.6;cursor:wait}
#page-team #tool-voice #voDlNote{margin-top:-4px}
#page-team #tool-voice #voDlNote a{color:var(--lime);font-weight:800;text-decoration:underline}
#page-team #tool-voice .vo-line{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.1);transition:border-color .15s ease}
#page-team #tool-voice .vo-line:hover{border-color:rgba(139,124,255,.45)}
#page-team #tool-voice .vo-line span{font-size:14px;line-height:1.6;font-family:Inter,"Jameel Noori Nastaleeq","Noto Sans Arabic","Noto Naskh Arabic",system-ui,sans-serif}
#page-team #tool-voice .stage{background:radial-gradient(600px 300px at 50% 30%,rgba(139,124,255,.16),transparent 70%),linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));border:1px solid rgba(139,124,255,.22);border-radius:22px;box-shadow:0 24px 60px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.08)}
#page-team #tool-voice .stage>div>div:first-child{display:grid;place-items:center;width:104px;height:104px;margin:0 auto 14px;border-radius:50%;background:radial-gradient(circle at 35% 30%,rgba(139,124,255,.35),rgba(139,124,255,.12));border:1px solid rgba(139,124,255,.45);box-shadow:0 0 0 8px rgba(139,124,255,.08),0 16px 40px rgba(124,108,240,.35)}
#page-team #tool-voice #voNow{font-size:22px}
/* --- builders v24: tap-first + mobile fix --- */
#page-team .bld-pal-add{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--lime-soft);color:var(--lime);font-weight:900;font-size:18px;line-height:1;margin-left:auto;flex:none}
html[data-theme="light"] #page-team .bld-pal-add{color:var(--lime-d)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .bld-pal-add{color:var(--lime-d)}}
#page-team .bld-guide{display:flex;gap:8px 18px;flex-wrap:wrap;background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:16px}
#page-team .bld-guide span{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:700;color:var(--text)}
#page-team .bld-guide b{width:22px;height:22px;flex:none;display:grid;place-items:center;background:var(--lime-soft);color:var(--lime);border-radius:50%;font-size:11px;font-family:"Sora"}
html[data-theme="light"] #page-team .bld-guide b{color:var(--lime-d)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .bld-guide b{color:var(--lime-d)}}
#page-team .bld-brief{margin-top:16px;background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:16px}
#page-team .bld-brief-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
#page-team .bld-brief-head h3{font-size:15px}
#page-team .bld-brief-text{white-space:pre-wrap;word-break:break-word;font-family:"Inter";font-size:13px;line-height:1.65;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0;max-height:260px;overflow:auto}
#page-team .bld-brief .hint{margin:10px 0 0}
#page-team .bld-error{border:1px solid var(--err);border-radius:12px;padding:14px;color:var(--err)}
#page-team .bld-error b{display:block;font-size:14px;margin-bottom:4px}
#page-team .bld-error p{margin:0;font-size:13px;color:var(--muted)}
html[data-theme="light"] #page-team .bld-error{color:#D92D20;border-color:#D92D20}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .bld-error{color:#D92D20;border-color:#D92D20}}
#page-team .bld-add-more{display:none}
@media(max-width:900px){
#page-team .bld-wrap{grid-template-columns:1fr}
#page-team .bld-palette{grid-template-columns:repeat(2,minmax(0,1fr))}
#page-team .bld-canvas{min-height:240px}
#page-team .bld-add-more{display:inline-flex}
#page-team .bld-toolbar{flex-direction:column;align-items:stretch}
#page-team .bld-client{min-width:0}
}
@media(max-width:420px){#page-team .bld-palette{grid-template-columns:1fr}}
/* --- services page: admin-only builder link (sits next to the
   WhatsApp CTA; same text-link style, only the spacing is new) --- */
#page-services .svc-cta-build{margin-left:20px}
@media(max-width:640px){#page-services .svc-cta-build{margin-left:0}}

/* ============ v24.1: Video Editor premium + drag-and-drop ============
   Scoped under #page-team so only the Studio video view changes.
   The stage is fixed dark (#070B14) in BOTH themes (base .stage
   rule), so all text sitting directly on it uses fixed light
   colours: #F2F4FA headings / #E8EAF6 body / #A7AEC4 muted
   (contrast vs #070B14: 16.4 / 14.9 / 8.9 — all ≥ 4.5:1).
   Tray cards use theme-aware var(--surface)/var(--text). */
#page-team .ve-layout .stage{background:linear-gradient(180deg,#0A0F1E,#070B14);border:1px solid rgba(255,255,255,.09);border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.05);padding:16px}
#page-team .ve-layout .vid-wrap{border-radius:18px;box-shadow:0 18px 44px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.08)}
#page-team #veStill{width:100%;height:100%;object-fit:contain;display:none;background:#000}
#page-team .ve-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:12px;padding:9px 12px;min-width:0}
#page-team .ve-meta-name{color:#E8EAF6;font-size:12.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#page-team .ve-meta-dim{color:#A7AEC4;font-size:12px;font-weight:700;flex:none}
#page-team .ve-empty{display:none;text-align:center;border:2px dashed rgba(255,255,255,.22);border-radius:18px;padding:44px 20px;background:rgba(255,255,255,.03)}
#page-team .ve-empty h3{color:#F2F4FA;font-size:19px;margin:14px 0 6px}
#page-team .ve-empty p{color:#A7AEC4;font-size:13.5px;margin:0 0 18px}
#page-team .ve-empty-ic{width:56px;height:56px;margin:0 auto;display:grid;place-items:center;background:var(--lime-soft);color:#A78BFA;border-radius:16px}
#page-team .ve-empty-ic .ic{width:30px;height:30px}
#page-team #tool-video.ve-is-empty .ve-empty{display:block}
#page-team #tool-video.ve-is-empty .ve-when-loaded{display:none}
#page-team .ve-dropzone{display:none}
#page-team #tool-video.ve-drag .ve-dropzone{display:flex;position:fixed;inset:0;z-index:6000;background:rgba(102,74,0,.85);flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;gap:10px;padding:20px}
#page-team .ve-dropzone .ic{width:54px;height:54px}
#page-team .ve-dropzone h3{font-size:26px;color:#fff;margin:0}
#page-team .ve-dropzone p{font-size:15px;color:#fff;margin:0}
#page-team #tool-video .controls .ctl-group{background:color-mix(in srgb,var(--surface) 82%,transparent);backdrop-filter:blur(14px) saturate(1.4);-webkit-backdrop-filter:blur(14px) saturate(1.4);box-shadow:0 10px 28px rgba(0,0,0,.18);transition:border-color .18s ease,box-shadow .18s ease}
#page-team .ve-aspect-btn{transition:all .18s ease}
#page-team .ve-rail-btn{transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
#page-team .ve-rail-btn:hover{transform:translateY(-2px)}
#page-team .ve-rail-btn.active{box-shadow:0 0 0 1px #8B7CFF,0 8px 22px rgba(139,124,255,.45)}
#page-team .ve-layout .tl-wrap{background:color-mix(in srgb,var(--surface) 82%,transparent);backdrop-filter:blur(14px) saturate(1.4);-webkit-backdrop-filter:blur(14px) saturate(1.4)}
#page-team .tl-ruler{position:relative;height:16px;margin-bottom:4px}
#page-team .tl-ruler span{position:absolute;top:0;transform:translateX(-50%);font-size:10.5px;font-weight:700;color:var(--muted);white-space:nowrap}
#page-team .tl-ruler span:first-child{transform:none}
#page-team .tl-ruler span:last-child{transform:translateX(-100%)}
#page-team .tl-strip{position:relative}
#page-team .tl-film{display:flex;gap:2px;height:44px;border-radius:10px;overflow:hidden;margin-bottom:6px;background:var(--surface2)}
#page-team .tl-film:empty{display:none}
#page-team .tl-film img{flex:1;min-width:0;height:100%;object-fit:cover;cursor:pointer}
#page-team .ve-layout .tl-track{height:48px;cursor:pointer}
#page-team .tl-handle{position:absolute;top:0;bottom:0;width:44px;margin-left:-22px;cursor:ew-resize;touch-action:none;z-index:3}
#page-team .tl-handle::after{content:"";position:absolute;left:50%;top:0;bottom:0;width:14px;margin-left:-7px;border-radius:6px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.5),inset 0 0 0 1px rgba(0,0,0,.08)}
#page-team .tl-handle::before{content:"";position:absolute;left:50%;top:50%;width:4px;height:18px;margin:-9px 0 0 -2px;border-radius:2px;background:repeating-linear-gradient(180deg,#8B7CFF 0 2px,transparent 2px 5px);z-index:1}
#page-team .tl-handle.ve-dragging::after{background:var(--lime);box-shadow:0 0 0 3px var(--lime-soft),0 2px 10px rgba(0,0,0,.5)}
#page-team .ve-layout .tl-play{box-shadow:0 0 8px rgba(255,255,255,.9);z-index:2}
#page-team .tl-times{display:flex;justify-content:space-between;font-size:12px;font-weight:800;color:var(--text);margin-top:6px}
#page-team .ve-tray-wrap{border-top:1px solid rgba(255,255,255,.09);padding-top:12px}
#page-team .ve-tray-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
#page-team .ve-tray-head h3{color:#F2F4FA;font-size:15px}
#page-team .ve-tray-head .mini-btn{color:#E8EAF6;border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.06)}
#page-team .ve-tray-head .mini-btn.active{background:rgba(139,124,255,.3);border-color:#8B7CFF;color:#fff}
#page-team .ve-tray{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:thin;scrollbar-color:var(--lime) transparent}
#page-team .ve-tray-item{flex:0 0 132px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface);cursor:pointer;position:relative;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,opacity .18s ease}
#page-team .ve-tray-item.active{border-color:var(--lime);box-shadow:0 0 0 2px var(--lime-soft)}
#page-team .ve-tray-item.ve-dragging{opacity:.6;transform:scale(.96) rotate(1deg)}
#page-team .ve-tray-item.ve-tray-drop{border-color:var(--lime);border-style:dashed;transform:scale(1.03)}
#page-team .ve-tray-thumb{display:block;width:100%;height:74px;object-fit:cover;background:#000;touch-action:none}
#page-team .ve-tray-thumb.ve-tray-thumb-audio,#page-team .ve-tray-thumb.ve-tray-thumb-video{display:grid;place-items:center;color:#A78BFA;background:#131A2E}
#page-team .ve-tray-thumb .ic{width:28px;height:28px}
#page-team .ve-tray-badge{position:absolute;top:6px;left:6px;font-size:9.5px;font-weight:900;background:rgba(5,8,16,.78);color:#fff;border-radius:99px;padding:2px 7px;pointer-events:none}
#page-team .ve-tray-del{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(5,8,16,.78);color:#fff;font-size:16px;line-height:1;cursor:pointer;display:grid;place-items:center}
#page-team .ve-tray-name{font-size:11.5px;font-weight:700;color:var(--text);padding:7px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#page-team .ve-tray-hint{color:#A7AEC4;margin:2px 0 0}
#page-team #vidOverlay{left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:94%}
#page-team #vidOverlay.ve-draggable,#page-team #vidSticker.ve-draggable{pointer-events:auto;touch-action:none;cursor:grab}
#page-team #vidOverlay.ve-dragging,#page-team #vidSticker.ve-dragging{cursor:grabbing;outline:2px dashed rgba(255,255,255,.9);outline-offset:4px;border-radius:8px}

/* ============ v24.1: Image Editor — draggable overlays + full Auto Enhance ============
   Scoped under #page-team #tool-image. All text colours reuse
   existing tokens (var(--text) / var(--muted)) — no new text
   colour, so no new contrast pairs to compute. The selection ring
   is a DOM div over the canvas: it never enters the export. */
#page-team #tool-image #imgCanvas{touch-action:none}
#page-team #tool-image #imgCanvas.img-dragging{cursor:grabbing}
#page-team #tool-image .img-enh-row{display:grid;gap:6px}
#page-team #tool-image .img-enh-row label{font-size:13px;font-weight:800;color:var(--text)}
#page-team #tool-image .img-enh-row label span{color:var(--muted)}
#page-team #tool-image .img-enh-check{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--text);cursor:pointer}
#page-team #tool-image .img-enh-check input{width:18px;height:18px;accent-color:var(--lime);flex:none}
#page-team #tool-image .img-enh-progress{color:var(--text);font-weight:700}
#page-team #tool-image .img-auto-box .btn-lime.is-busy{opacity:.6;pointer-events:none}
#page-team #tool-image .img-ov-bar{display:grid;gap:8px;background:var(--lime-soft);border:1px solid var(--line);border-radius:14px;padding:12px}
#page-team #tool-image .img-ov-sel{font-size:13px;color:var(--muted);line-height:1.5}
#page-team #tool-image .img-ov-sel b{color:var(--text)}
#page-team #tool-image .img-ov-btns{flex-wrap:wrap}
#page-team #tool-image .img-sel-ring{position:absolute;display:none;border:2px dashed var(--lime);border-radius:8px;outline:1px solid rgba(255,255,255,.55);outline-offset:2px;pointer-events:none;z-index:5}

/* ============ v25: Studio fully Canva-like — layout language only ============
   Canva's layout language, NexluneAI's own brand (name, logo, violet
   identity stay — no Canva branding, logo or trademarked assets
   anywhere). DESIGN ROUND: every tool, search, filter, favourite,
   row and view underneath is untouched — only the shell around them
   is re-presented. Scoped under #page-team throughout.
   - Left sidebar nav (#canvaSide) for public/team: sticky rail on
     desktop (flex row with .canva-main), sticky tab bar on mobile
     (see responsive.css). The admin keeps the v24 shell sidebar,
     restyled below + Home/Favourites shortcuts.
   - Search hero (#canvaHero) + quick-create chips; the search input
     itself is the SAME #toolSearch, restyled bigger.
   - Featured spotlight (#canvaSpot): the two existing featured
     banners + Video / Image / Voiceover slides, one at a time.
   - Recent / Favourites / Popular / admin Trending become
     horizontal scroll rows (Canva's "Recent designs" pattern).
   - Tool cards become Canva-style visual cards: bigger, rounder,
     soft shadow, hover lift, and a gradient icon tile tinted PER
     CATEGORY (soft pastel gradient + dark icon — the dark icon on
     the lightest stop is 4.3:1+ everywhere, icons need 3:1).
   - Public/team Marketplace (#canvaMkt) mirrors the admin one;
     #dashHome.mkt-mode hides the home blocks and shows it.
   - Tool views keep their UIs; only the breadcrumb (.crumbs)
     becomes a Canva-style pill bar.
   Contrast (WCAG, computed in Python — see verify_v36.py): active
   pills/nav use #6D5DF0 (dark, white 4.69:1) / #4A3BC2 (light, white
   7.79:1) — NOT var(--lime), which is only 3.27:1 with white in dark
   theme. Spotlight slides are fixed dark in both themes; white text
   on the lightest stop is 13.5:1+. Category tiles are fixed pastel
   in both themes with fixed dark icons. */

/* --- layout: sidebar rail + content column (desktop) --- */
#page-team .canva-side{background:var(--surface);border-right:1px solid var(--line);padding:16px 12px}
#page-team .canva-side-brand{display:flex;gap:10px;align-items:center;padding:4px 8px 14px;border-bottom:1px solid var(--line);margin-bottom:12px}
#page-team .canva-side-mark{width:38px;height:38px;flex:none;display:grid;place-items:center;background:var(--lime-soft);color:var(--lime);border-radius:12px}
#page-team .canva-side-mark .ic{width:20px;height:20px}
#page-team .canva-side-brand b{display:block;font-family:"Sora";font-size:15px}
#page-team .canva-side-brand small{display:block;font-size:10.5px;font-weight:800;letter-spacing:.1em;color:var(--muted)}
#page-team .canva-nav{display:grid;gap:6px}
#page-team .canva-nav-btn{display:flex;gap:11px;align-items:center;width:100%;text-align:left;background:transparent;border:1px solid transparent;color:var(--muted);border-radius:13px;padding:12px 13px;font-weight:800;font-size:14px;cursor:pointer;font-family:inherit}
#page-team .canva-nav-btn .ic{width:19px;height:19px;flex:none}
#page-team .canva-nav-btn:hover{color:var(--text);background:var(--surface2)}
#page-team .canva-nav-btn.active{background:#6D5DF0;border-color:#6D5DF0;color:#fff;box-shadow:0 8px 20px rgba(109,93,240,.35)}
html[data-theme="light"] #page-team .canva-nav-btn.active{background:#4A3BC2;border-color:#4A3BC2}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .canva-nav-btn.active{background:#4A3BC2;border-color:#4A3BC2}}
#page-team .canva-side-foot{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
#page-team .canva-side-foot .hint{margin:0}
@media(min-width:1080px){
#page-team:not(.admin-shell){display:flex;align-items:flex-start}
#page-team:not(.admin-shell) .canva-side{position:sticky;top:calc(var(--header) + var(--sat,0px));width:232px;flex:none;height:calc(100vh - var(--header) - var(--sat,0px));overflow-y:auto;scrollbar-width:thin}
#page-team:not(.admin-shell) .canva-main{flex:1;min-width:0}
}

/* --- search hero + quick-create chips --- */
#page-team .canva-hero{margin:6px 0 18px}
#page-team .canva-hero h2{font-family:"Sora";font-size:clamp(26px,4vw,34px);letter-spacing:-.02em;margin:0 0 6px}
#page-team .canva-hero p{color:var(--muted);font-size:14.5px;margin:0 0 14px}
#page-team .qc-chips{display:flex;gap:8px;flex-wrap:wrap}
#page-team .qc-chip{display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);color:var(--text);border-radius:999px;padding:10px 16px;font-weight:800;font-size:13.5px;cursor:pointer;min-height:44px;box-shadow:0 1px 2px rgba(0,0,0,.04);font-family:inherit;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
#page-team .qc-chip .ic{width:17px;height:17px;color:var(--lime);flex:none}
#page-team .qc-chip:hover{border-color:var(--lime);transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,0,0,.08)}
html[data-theme="light"] #page-team .qc-chip .ic{color:var(--lime-d)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .qc-chip .ic{color:var(--lime-d)}}

/* --- big Canva-style search (same #toolSearch input, same behaviour) --- */
#page-team .studio-search{border-radius:16px;padding:8px 10px 8px 18px;gap:10px;box-shadow:0 2px 6px rgba(0,0,0,.05),0 10px 28px rgba(0,0,0,.06)}
#page-team .studio-search input{min-height:52px;font-size:16px}
#page-team .studio-search .ss-ic svg{width:22px;height:22px}
#page-team .ss-clear{width:34px;height:34px}
#page-team .ss-clear svg{width:16px;height:16px}
#page-team .ss-kbd{padding:4px 8px;font-size:11px}

/* --- category pills, Canva-style (soft tint, violet active fill) --- */
#page-team .filter-chips{margin-top:12px;gap:8px}
#page-team .fchip{padding:9px 16px;min-height:38px;font-size:13px;background:var(--surface2);border-color:transparent}
#page-team .fchip:hover{color:var(--text);border-color:var(--lime);background:var(--surface)}
#page-team .fchip.active{background:#6D5DF0;border-color:#6D5DF0;color:#fff;box-shadow:0 6px 16px rgba(109,93,240,.35)}
html[data-theme="light"] #page-team .fchip.active{background:#4A3BC2;border-color:#4A3BC2}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .fchip.active{background:#4A3BC2;border-color:#4A3BC2}}
#page-team .fchip .ic{width:15px;height:15px}

/* --- featured spotlight: one slide at a time, dots to jump --- */
#page-team .canva-spot{margin-top:18px;position:relative}
#page-team #canvaSpot .featured-tool{display:none;margin-top:0;border-radius:22px;padding:22px 24px;box-shadow:0 18px 44px rgba(0,0,0,.35)}
#page-team #canvaSpot .featured-tool.spot-active{display:flex;animation:fade .4s ease}
#page-team #canvaSpot .featured-tool .ft-icon{width:60px;height:60px;border-radius:17px}
#page-team #canvaSpot .featured-tool .ft-icon svg{width:30px;height:30px}
#page-team #canvaSpot .featured-tool h3{font-size:clamp(20px,3vw,26px)}
#page-team #canvaSpot .featured-tool p{font-size:14px}
#page-team #canvaSpot .ft-go{background:#5B4BDB}
#page-team .featured-tool.spot-video{background:linear-gradient(135deg,#071224,#0E2A4A 55%,#071224);border-color:rgba(125,180,255,.4)}
#page-team .featured-tool.spot-video::after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:#3B82F6;filter:blur(110px);opacity:.28;right:-60px;top:-120px;pointer-events:none}
#page-team .featured-tool.spot-video .ft-icon{background:linear-gradient(135deg,#DBEAFE,#BFDBFE);color:#1E40AF}
#page-team .featured-tool.spot-image{background:linear-gradient(135deg,#160A1E,#3B1145 55%,#160A1E);border-color:rgba(240,180,255,.4)}
#page-team .featured-tool.spot-image::after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:#C026D3;filter:blur(110px);opacity:.28;right:-60px;top:-120px;pointer-events:none}
#page-team .featured-tool.spot-image .ft-icon{background:linear-gradient(135deg,#FCE7F3,#FBCFE8);color:#9D174D}
#page-team .featured-tool.spot-voice{background:linear-gradient(135deg,#07130F,#0C3527 55%,#07130F);border-color:rgba(140,220,180,.4)}
#page-team .featured-tool.spot-voice::after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:#10B981;filter:blur(110px);opacity:.28;right:-60px;top:-120px;pointer-events:none}
#page-team .featured-tool.spot-voice .ft-icon{background:linear-gradient(135deg,#D1FAE5,#A7F3D0);color:#065F46}
#page-team .spot-dots{display:flex;gap:8px;justify-content:center;margin-top:12px}
#page-team .spot-dot{width:9px;height:9px;border-radius:50%;border:0;background:var(--line);cursor:pointer;padding:0;transition:.2s}
#page-team .spot-dot.active{background:var(--lime);width:26px;border-radius:99px}
#page-team.admin-shell #canvaSpot{display:none}

/* --- scroll rows: Recent / Favourites / Popular / admin Trending --- */
#page-team #recentGrid,#page-team #favGrid,#page-team #popularGrid,#page-team #adminMktTrend{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding-bottom:8px;scrollbar-width:thin;margin-top:12px}
#page-team #recentGrid .tool-card,#page-team #favGrid .tool-card,#page-team #popularGrid .tool-card,#page-team #adminMktTrend .tool-card{flex:0 0 240px;scroll-snap-align:start;min-height:0}
#page-team #recentGrid::-webkit-scrollbar,#page-team #favGrid::-webkit-scrollbar,#page-team #popularGrid::-webkit-scrollbar,#page-team #adminMktTrend::-webkit-scrollbar{height:6px}

/* --- tool grid: Canva-style visual cards (supersedes v14 density) --- */
#page-team .tools-grid{gap:16px;margin-top:16px}
@media(min-width:640px){#page-team .tools-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){#page-team .tools-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1300px){#page-team .tools-grid{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1600px){#page-team .tools-grid{grid-template-columns:repeat(5,1fr)}}
#page-team .tool-card{border-radius:18px;padding:20px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.06)}
#page-team .tool-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(0,0,0,.10),0 0 0 1px color-mix(in srgb,var(--lime) 30%,transparent)}
#page-team .tool-card .ticon{width:52px;height:52px;border-radius:15px;margin-bottom:12px;box-shadow:0 8px 18px rgba(20,24,60,.10)}
#page-team .tool-card .ticon svg{width:26px;height:26px}
#page-team .tool-card h3{font-size:16px;margin-bottom:5px}
#page-team .tool-card p{font-size:13px}
#page-team .tool-meta{margin-top:12px}
#page-team .tool-meta .live:not(.new){background:var(--lime-soft);border-radius:999px;padding:3px 9px}
#page-team .fav-btn{top:10px;right:10px;width:30px;height:30px}
/* per-category gradient tiles: one soft gradient per category, fixed
   pastel in both themes, dark icon (3:1+ on the lightest stop) */
#page-team .tool-card[data-cat="video"] .ticon{background:linear-gradient(135deg,#EDE9FE,#DDD6FE);color:#5B21B6}
#page-team .tool-card[data-cat="design"] .ticon{background:linear-gradient(135deg,#FCE7F3,#FBCFE8);color:#9D174D}
#page-team .tool-card[data-cat="business"] .ticon{background:linear-gradient(135deg,#DBEAFE,#BFDBFE);color:#1E40AF}
#page-team .tool-card[data-cat="seo"] .ticon{background:linear-gradient(135deg,#D1FAE5,#A7F3D0);color:#065F46}
#page-team .tool-card[data-cat="ads"] .ticon{background:linear-gradient(135deg,#FEF3C7,#FDE68A);color:#92400E}
#page-team .tool-card[data-cat="email"] .ticon{background:linear-gradient(135deg,#E0E7FF,#C7D2FE);color:#3730A3}
#page-team .tool-card[data-cat="social"] .ticon{background:linear-gradient(135deg,#CCFBF1,#99F6E4);color:#0F766E}
#page-team .tool-card[data-cat="youtube"] .ticon{background:linear-gradient(135deg,#FEE2E2,#FECACA);color:#991B1B}
#page-team .tool-card[data-cat="multi"] .ticon{background:linear-gradient(135deg,#F3E8FF,#E9D5FF);color:#6B21A8}
#page-team .tool-card[data-cat="builder"] .ticon{background:linear-gradient(135deg,#FFEDD5,#FED7AA);color:#9A3412}

/* --- public/team Marketplace (inside #dashHome; mkt-mode swaps it in) --- */
#page-team #canvaMkt{display:none;margin-top:6px}
#page-team #dashHome.mkt-mode > *:not(#canvaMkt){display:none!important}
#page-team #dashHome.mkt-mode #canvaMkt{display:block;animation:fade .25s ease}
#page-team .canva-mkt-head h2{font-family:"Sora";font-size:clamp(22px,4vw,28px)}
#page-team .canva-mkt-head p{color:var(--muted);font-size:14px;margin:6px 0 0}
#page-team #canvaMktTrendWrap{margin-top:20px}
#page-team #canvaMktTrendWrap .tools-grid{margin-top:12px}
#page-team .canva-mkt .mkt-grid{margin-top:20px}

/* --- tool-view breadcrumb becomes a Canva-style pill bar --- */
#page-team .crumbs{background:var(--surface2);border:1px solid var(--line);border-radius:999px;padding:8px 14px;margin-bottom:14px;font-size:13px}
#page-team .crumb{color:var(--lime);font-weight:800}
html[data-theme="light"] #page-team .crumb{color:var(--lime-d)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .crumb{color:var(--lime-d)}}
#page-team .crumb-cur{color:var(--muted)}

/* --- admin shell: the same Canva visual language (structure unchanged) --- */
#page-team .admin-side{border-radius:20px;padding:16px;box-shadow:0 12px 32px rgba(0,0,0,.18)}
#page-team .admin-side-mark{border-radius:12px}
#page-team .admin-nav-btn{border-radius:13px;padding:12px 13px}
#page-team .admin-nav-btn.active{background:#6D5DF0;border-color:#6D5DF0;color:#fff;box-shadow:0 8px 20px rgba(109,93,240,.35)}
html[data-theme="light"] #page-team .admin-nav-btn.active{background:#4A3BC2;border-color:#4A3BC2}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .admin-nav-btn.active{background:#4A3BC2;border-color:#4A3BC2}}
#page-team .admin-stat,#page-team .admin-set-card{border-radius:18px}

/* ============ v26: Video Editor premium rebuild — CapCut Web / Canva /
   Kapwing layout language (our brand, our palette; no copied assets).
   Top bar, left icon rail + contextual panels, centre canvas on a
   dark ground in BOTH themes, right properties panel, multi-track
   timeline. The ENGINE is untouched — only presentation moves.
   Contrast (WCAG, computed in verify_v37): export pill white on
   #6D5DF0 dark 4.69:1 / #0B0E1E light 19.16:1; text pill white on
   #0E7490 5.36:1; rail/panel/timeline text uses var(--text) /
   var(--muted) on var(--surface) / var(--surface2) (6.30–18.07:1);
   canvas text is fixed light on the fixed-dark stage (8.9–16.4:1). */
#page-team #tool-video .tool-shell{display:flex;flex-direction:column;gap:12px;padding:12px}
#page-team #tool-video .ve-topbar{display:flex;align-items:center;gap:10px;padding:2px 2px 10px;border-bottom:1px solid var(--line);flex-wrap:wrap}
#page-team #tool-video .ve-projname{flex:1 1 140px;min-width:0;background:transparent;border:1px solid transparent;border-radius:10px;color:var(--text);font-family:"Sora",sans-serif;font-size:16px;font-weight:800;padding:8px 10px}
#page-team #tool-video .ve-projname:hover{border-color:var(--line)}
#page-team #tool-video .ve-projname:focus{outline:none;border-color:var(--lime);background:var(--surface2)}
#page-team #tool-video .ve-aspect-ind{font-size:12px;font-weight:800;color:var(--muted);background:var(--surface2);border:1px solid var(--line);border-radius:99px;padding:6px 12px;white-space:nowrap}
#page-team #tool-video .ve-export-pill{min-height:44px;padding:10px 20px;font-size:14px;background:#6D5DF0;border-color:#6D5DF0;color:#fff;box-shadow:0 8px 22px rgba(109,93,240,.4)}
#page-team #tool-video .ve-export-pill:disabled{opacity:.65}
html[data-theme="light"] #page-team #tool-video .ve-export-pill{background:#0B0E1E;border-color:#0B0E1E;box-shadow:0 8px 22px rgba(11,14,30,.3)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team #tool-video .ve-export-pill{background:#0B0E1E;border-color:#0B0E1E;box-shadow:0 8px 22px rgba(11,14,30,.3)}}
#page-team #tool-video .ve-body{display:flex;gap:12px;align-items:stretch;min-height:0}
#page-team #tool-video .ve-navrail{display:flex;flex-direction:column;gap:6px;width:72px;flex:none;background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:8px 6px}
#page-team #tool-video .ve-navrail .ve-rail-btn{min-width:0;width:100%;min-height:58px;padding:9px 4px;border-radius:12px;border:1px solid transparent;background:transparent;color:var(--text);font-size:11px;box-shadow:none}
#page-team #tool-video .ve-navrail .ve-rail-btn .ic{width:22px;height:22px}
#page-team #tool-video .ve-navrail .ve-rail-btn:hover{background:var(--glass);transform:none}
#page-team #tool-video .ve-navrail .ve-rail-btn.active{background:var(--lime-soft);border-color:var(--lime);color:var(--text);box-shadow:0 0 0 1px var(--lime)}
#page-team #tool-video .ve-panels{width:320px;flex:none;background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:14px;max-height:600px;overflow-y:auto}
#page-team #tool-video .ve-panels.ve-panels-off{display:none}
#page-team #tool-video .ve-panel{display:none}
#page-team #tool-video .ve-panel.active{display:grid;gap:12px;align-content:start}
#page-team #tool-video .ve-panel>h3{font-size:15px;margin:0}
#page-team #tool-video .ve-panel .ctl-group{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 14px}
#page-team #tool-video .ve-panel .ctl-group>summary{display:none}
#page-team #tool-video .ve-panel .ctl-group .ctl-body{display:grid;gap:12px;padding:14px 0}
#page-team #tool-video .ve-panel .controls{background:var(--surface)}
#page-team #tool-video .ve-panel .ve-tray-wrap{border-top:0;padding-top:0}
#page-team #tool-video .ve-panel .ve-tray-head h3{color:var(--text)}
#page-team #tool-video .ve-panel .ve-tray-head .mini-btn{color:var(--text);border-color:var(--line);background:var(--surface)}
#page-team #tool-video .ve-panel .ve-tray-hint{color:var(--muted)}
#page-team #tool-video .ve-panel .ve-upload{color:var(--text);border-color:var(--line);background:var(--surface);justify-self:stretch}
#page-team #tool-video .ve-canvas{flex:1 1 auto;min-width:0;min-height:420px}
#page-team #tool-video .ve-empty-plus{width:72px;height:72px;margin:0 auto 4px;border:0;border-radius:50%;background:#6D5DF0;color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 12px 32px rgba(109,93,240,.45);transition:transform .18s ease}
#page-team #tool-video .ve-empty-plus:hover{transform:scale(1.06)}
#page-team #tool-video .ve-empty-plus .ic{width:32px;height:32px}
#page-team #tool-video .ve-aratio-cards{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
#page-team #tool-video .ve-aratio-card{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:64px;min-height:44px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:10px 12px 8px;color:#E8EAF6;font-size:12px;font-weight:800;cursor:pointer}
#page-team #tool-video .ve-aratio-card.active{background:rgba(139,124,255,.3);border-color:#8B7CFF;color:#fff}
#page-team #tool-video .ve-aratio-box{display:block;border:2px solid currentColor;border-radius:3px}
#page-team #tool-video .ve-aratio-orig{width:26px;height:16px;border-style:dashed}
#page-team #tool-video .ve-aratio-169{width:28px;height:16px}
#page-team #tool-video .ve-aratio-916{width:14px;height:24px}
#page-team #tool-video .ve-aratio-11{width:20px;height:20px}
#page-team #tool-video .ve-aratio-45{width:16px;height:20px}
#page-team #tool-video .ve-props{width:280px;flex:none;background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:14px;display:grid;gap:16px;align-content:start;max-height:600px;overflow-y:auto}
#page-team #tool-video .ve-props.ve-props-closed{display:none}
#page-team #tool-video .ve-props-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
#page-team #tool-video .ve-props-head h3{font-size:15px;margin:0}
#page-team #tool-video .ve-props-close{width:32px;height:32px;flex:none;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center}
#page-team #tool-video .ve-props-sec{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:12px}
#page-team #tool-video .ve-props-sec:first-of-type{border-top:0;padding-top:0}
#page-team #tool-video .ve-props-sec h4{font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0}
#page-team #tool-video .ve-props-ov{font-size:13px;color:var(--text);line-height:1.5;margin:0;word-break:break-word}
#page-team #tool-video .ve-props-meta{margin:0}
#page-team #tool-video .ve-timeline{background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:12px;display:grid;gap:10px}
#page-team #tool-video .ve-tl-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#page-team #tool-video .ve-tl-play{width:44px;height:44px;flex:none;border:0;border-radius:50%;background:var(--lime);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(139,124,255,.4)}
#page-team #tool-video .ve-tl-play .ic{width:20px;height:20px}
#page-team #tool-video .ve-tl-ic-pause{display:none}
#page-team #tool-video .ve-tl-play.is-playing .ve-tl-ic-play{display:none}
#page-team #tool-video .ve-tl-play.is-playing .ve-tl-ic-pause{display:block}
#page-team #tool-video .ve-tl-time{font-size:13px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
#page-team #tool-video .ve-tl-spacer{flex:1}
#page-team #tool-video .ve-tl-zoom{display:flex;align-items:center;gap:6px}
#page-team #tool-video .ve-tl-zoom button{width:44px;height:44px;flex:none;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;font-size:20px;line-height:1;cursor:pointer;display:grid;place-items:center}
#page-team #tool-video .ve-tl-zoom input{width:110px;accent-color:var(--lime)}
#page-team #tool-video .ve-timeline .tl-wrap{background:transparent;border:0;padding:0;backdrop-filter:none;-webkit-backdrop-filter:none}
#page-team #tool-video .ve-tl-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--lime) transparent}
#page-team #tool-video .ve-tl-inner{position:relative;min-width:100%;width:100%}
#page-team #tool-video .ve-tl-playhead{position:absolute;top:0;bottom:0;left:0;width:2px;background:#fff;box-shadow:0 0 8px rgba(255,255,255,.9);z-index:5;pointer-events:none}
#page-team #tool-video .ve-tl-playhead::before{content:"";position:absolute;top:-1px;left:-4px;width:10px;height:10px;background:#fff;transform:rotate(45deg);border-radius:2px}
#page-team #tool-video .ve-tl-empty{display:none;align-items:center;justify-content:center;min-height:120px;border:2px dashed var(--line);border-radius:12px;color:var(--muted);font-size:13.5px;font-weight:700}
#page-team #tool-video.ve-is-empty .ve-tl-empty{display:flex}
#page-team #tool-video .ve-tl-row{display:flex;gap:10px;align-items:stretch;min-height:48px;margin-top:8px}
#page-team #tool-video .ve-tl-label{width:56px;flex:none;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);display:flex;align-items:center}
#page-team #tool-video .ve-tl-row .tl-strip{flex:1;min-width:0}
#page-team #tool-video .ve-tl-textpill{flex:1;min-width:0;min-height:40px;background:#0E7490;color:#fff;border-radius:10px;padding:0 12px;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}
#page-team #tool-video .ve-tl-textpill[hidden]{display:none}
#page-team #tool-video .ve-tl-textpill-ic{width:22px;height:22px;flex:none;border-radius:50%;background:rgba(255,255,255,.22);display:grid;place-items:center;font-weight:900;font-size:13px}
#page-team #tool-video .ve-tl-textpill-txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#page-team #tool-video .ve-tl-rowhint{font-size:12.5px;color:var(--muted);display:flex;align-items:center}
#page-team #tool-video .ve-tl-audiobar{flex:1;min-width:0;min-height:40px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:0 12px;display:flex;align-items:center;gap:10px;overflow:hidden}
#page-team #tool-video .ve-tl-audiobar[hidden]{display:none}
#page-team #tool-video .ve-tl-audio-waves{width:110px;height:20px;flex:none;border-radius:4px;background:repeating-linear-gradient(90deg,var(--lime) 0 2px,transparent 2px 6px);opacity:.75}
#page-team #tool-video .ve-tl-audio-name{font-size:12.5px;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#page-team #tool-video .ve-tl-foot{display:grid;gap:6px;margin-top:10px}
#page-team #tool-video .ve-tl-foot .tl-times{margin-top:0}
@media(max-width:1200px){
#page-team #tool-video .ve-panels{width:280px}
#page-team #tool-video .ve-props{position:fixed;top:96px;right:12px;bottom:12px;width:min(320px,calc(100vw - 24px));max-height:none;z-index:40;box-shadow:0 24px 60px rgba(0,0,0,.45)}
}

/* ============ v27: full-screen tool workspace + premium UI system ============
   Every tool opens full-screen: while a tool is open the Studio
   shell (sidebar, hero, grid) hides and the tool view takes the
   full viewport width. A shared sticky top bar (injected by
   tools.js, v27) gives every tool back + icon + name + favourite
   star. The component system below upgrades inputs, sliders,
   buttons and cards across all 68 tools + 8 builders — presentation
   only, the engines are untouched. The Video Editor keeps its own
   v26 top bar (it only gains the star); BG Remover keeps its
   pixel-match remove.bg design and is excluded from the component
   restyle. No display:none rule here outranks .tool-view.active —
   the v24.2 specificity guard covers it. */
/* --- full-screen workspace: shell hides, view goes full-bleed.
   v27.2: the site header is hidden in tool-open mode (see the v27.2
   section at the end), so the shell takes the FULL viewport height —
   no --header subtraction any more. --- */
body.tool-open #page-team .canva-side{display:none}
body.tool-open #page-team.admin-shell .admin-side{display:none}
body.tool-open #page-team .page-hero{display:none}
body.tool-open #page-team .canva-main>section{padding:0!important}
body.tool-open #page-team .wrap{width:100%;max-width:none}
body.tool-open #page-team .tool-view.active .tool-shell{border:0;border-radius:0;box-shadow:none;background:var(--bg);padding:0 28px 44px;min-height:calc(100vh - var(--sat,0px))}
/* --- shared top bar (injected; video uses its own ve-topbar).
   v27.1: NOT sticky — the user asked for the header to scroll away
   with the page, so position:sticky/top/z-index were removed. --- */
#page-team .tool-topbar{position:static;display:flex;align-items:center;gap:12px;padding:10px 0;background:var(--bg);border-bottom:1px solid var(--line)}
#page-team .tool-topbar .ttb-back{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 14px 8px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-weight:800;font-size:13.5px;cursor:pointer;transition:border-color .18s ease,color .18s ease}
#page-team .tool-topbar .ttb-back:hover{border-color:var(--lime);color:var(--lime)}
#page-team .tool-topbar .ttb-back .ic{width:18px;height:18px}
#page-team .tool-topbar .ttb-icon{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--lime-soft);color:var(--lime)}
#page-team .tool-topbar .ttb-icon .ic{width:20px;height:20px}
#page-team .tool-topbar .ttb-name{font-family:"Sora";font-size:17px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#page-team .tool-topbar .ttb-fav{position:static;margin-left:auto;width:40px;height:40px;flex:none}
#page-team .tool-topbar .ttb-fav svg{width:20px;height:20px}
/* --- superseded chrome: crumbs (the top bar replaces them) --- */
#page-team .tool-view .crumbs{display:none}
/* v31.2 (D-T5): the static back button stays VISIBLE by default — it is the
   no-JS fallback. tools.js hides it once it injects the premium top bar,
   so a tools.js failure never strands users without a way back. */
#page-team .tool-view .tool-shell>[data-back]{margin-bottom:12px}
/* --- video top bar (v27.1: stickiness removed with the shared bar;
   the background stays so the bar reads as one clean row) --- */
#page-team #tool-video .ve-topbar{background:var(--bg)}
/* --- premium two-column layout: controls card + stage --- */
#page-team .tool-layout>.controls{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px}
#page-team .tool-layout>.stage{border:1px solid var(--line);border-radius:20px}
/* --- single-column tools: centred premium content column --- */
#page-team #tool-palette .tool-shell,#page-team #tool-ytbest .tool-shell,#page-team #tool-ytrpm .tool-shell,#page-team #tool-ytcheck .tool-shell,#page-team #tool-mpbest .tool-shell,#page-team #tool-mpcal .tool-shell,#page-team #tool-ideabank .tool-shell{max-width:960px;margin-inline:auto}
/* --- premium components: text inputs, selects, textareas --- */
#page-team .tool-view:not(#tool-bgremove) input[type=text],#page-team .tool-view:not(#tool-bgremove) input[type=number],#page-team .tool-view:not(#tool-bgremove) input[type=url],#page-team .tool-view:not(#tool-bgremove) input[type=email],#page-team .tool-view:not(#tool-bgremove) input[type=password],#page-team .tool-view:not(#tool-bgremove) input[type=search],#page-team .tool-view:not(#tool-bgremove) input[type=tel],#page-team .tool-view:not(#tool-bgremove) input[type=date],#page-team .tool-view:not(#tool-bgremove) input[type=time],#page-team .tool-view:not(#tool-bgremove) input[type=datetime-local],#page-team .tool-view:not(#tool-bgremove) input[type=month],#page-team .tool-view:not(#tool-bgremove) select,#page-team .tool-view:not(#tool-bgremove) textarea{width:100%;min-height:48px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);color:var(--text);padding:11px 13px;font-size:14.5px;transition:border-color .18s ease,box-shadow .18s ease}
#page-team .tool-view:not(#tool-bgremove) input[type=text]:focus,#page-team .tool-view:not(#tool-bgremove) input[type=number]:focus,#page-team .tool-view:not(#tool-bgremove) input[type=url]:focus,#page-team .tool-view:not(#tool-bgremove) input[type=email]:focus,#page-team .tool-view:not(#tool-bgremove) input[type=password]:focus,#page-team .tool-view:not(#tool-bgremove) input[type=search]:focus,#page-team .tool-view:not(#tool-bgremove) input[type=tel]:focus,#page-team .tool-view:not(#tool-bgremove) input[type=date]:focus,#page-team .tool-view:not(#tool-bgremove) input[type=time]:focus,#page-team .tool-view:not(#tool-bgremove) input[type=datetime-local]:focus,#page-team .tool-view:not(#tool-bgremove) input[type=month]:focus,#page-team .tool-view:not(#tool-bgremove) select:focus,#page-team .tool-view:not(#tool-bgremove) textarea:focus{border-color:var(--lime);box-shadow:0 0 0 3px var(--lime-soft)}
/* --- premium components: range sliders (custom track + thumb) --- */
#page-team .tool-view:not(#tool-bgremove) input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:99px;background:var(--line);cursor:pointer}
#page-team .tool-view:not(#tool-bgremove) input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;border:2px solid #6D5DF0;box-shadow:0 2px 8px rgba(0,0,0,.35);cursor:pointer}
#page-team .tool-view:not(#tool-bgremove) input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid #6D5DF0;box-shadow:0 2px 8px rgba(0,0,0,.35);cursor:pointer}
#page-team .tool-view:not(#tool-bgremove) input[type=range]::-moz-range-track{height:6px;border-radius:99px;background:var(--line)}
/* --- premium components: checkboxes, radios, file buttons --- */
#page-team .tool-view input[type=checkbox],#page-team .tool-view input[type=radio]{accent-color:#6D5DF0;width:18px;height:18px;flex:none;cursor:pointer}
#page-team .tool-view input[type=file]::file-selector-button{border:0;border-radius:999px;background:#6D5DF0;color:#fff;font-weight:800;font-size:13px;padding:8px 14px;margin-right:10px;cursor:pointer}
/* --- premium components: contrast fixes (white on #6D5DF0 is 4.69:1;
   white on the dark-theme --lime #8B7CFF was only 3.27:1) --- */
#page-team .preset-btn.active{background:#6D5DF0;border-color:#6D5DF0;color:#fff}
#page-team .step-chip i{background:#6D5DF0}
#page-team .mini-btn:hover{border-color:var(--lime)}
#page-team .preset-btn:hover{border-color:var(--lime)}
/* --- builders: wider columns on the full-screen workspace --- */
@media(min-width:1200px){#page-team .bld-wrap{grid-template-columns:240px minmax(0,1fr) 300px}}

/* ============ v27.1: video top bar fixed + file inputs hidden ============
   The user sent a live screenshot (19 Nov): the Export pill read
   "Export Edited Vid" with the favourite star sitting ON it, the
   project title was a big white input box, the Media panel showed
   the browser's raw "Choose File" control, and the sticky header
   was unwanted. Root causes, all measured in the visual harness
   (visual_test.py): the star is position:absolute (base .fav-btn)
   and .ve-topbar is a positioned ancestor, so it lands on the pill;
   the v27 component input rule (2,2,1) outranks the v26 title rule
   (2,1,0) and boxes the title. Fixes below — every rule here is
   ordered AFTER the v27 rules it overrides, so same-specificity
   ties resolve in v27.1's favour. */
/* --- video top bar: one clean row, never wraps, 12px gaps --- */
#page-team #tool-video .ve-topbar{flex-wrap:nowrap;gap:12px}
/* --- video star: own flex slot right after the title (tools.js
   inserts it after .ve-projname) — position:static beats the base
   absolute .fav-btn rule; it can never cover the Export pill --- */
#page-team #tool-video .ve-topbar .fav-btn.ttb-fav{position:static;flex:none;width:36px;height:36px;margin:0}
/* --- project title: borderless text, edit affordance only on
   hover/focus. (2,2,1) ties the v27 component rule; later wins. --- */
#page-team #tool-video .ve-topbar input.ve-projname{background:transparent;border:1px solid transparent;width:auto;min-height:40px;padding:8px 10px;font-size:16px;font-weight:800;flex:1 1 140px;min-width:0;text-overflow:ellipsis}
#page-team #tool-video .ve-topbar input.ve-projname:hover{background:var(--surface2)}
#page-team #tool-video .ve-topbar input.ve-projname:focus{background:var(--surface2);border-color:var(--line);box-shadow:none;outline:none}
/* --- Export pill: full text, never shrinks, never wraps --- */
#page-team #tool-video .ve-export-pill{flex:none;white-space:nowrap}
/* --- back button: text hides on phones (icon only, ≤560px rule in
   responsive.css); the button itself never shrinks --- */
#page-team #tool-video .ve-topbar>[data-back]{flex:none}
/* --- Properties toggle: icon-only button (markup: sliders SVG +
   sr-only text; id vePropsToggle unchanged) --- */
#page-team #tool-video .ve-props-toggle{padding:8px 10px}
#page-team #tool-video .ve-props-toggle .ic{width:18px;height:18px}
/* --- sr-only: visually hidden but available to screen readers
   (used by the icon-only Properties toggle) --- */
#page-team .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}
/* --- Media panel: the Clips + Play-all row gets breathing room --- */
#page-team .ve-tray-head{margin-top:18px;margin-bottom:8px}
/* --- file inputs: visually hidden but fully functional (the engine
   reads .files and buttons call .click() — display:none would break
   the picker on some browsers, so the standard 1px pattern is used).
   !important beats the v27 component input rules at any specificity.
   BG Remover's inputs keep their own display:none (working, untouched). --- */
#page-team .nx-file-hidden{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;opacity:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
/* --- styled trigger for a hidden file input (a <label for="id">):
   dashed premium drop-target look, full-width like other inputs --- */
#page-team .nx-file-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:10px 14px;border:1.5px dashed var(--line);border-radius:12px;background:var(--surface);color:var(--text);font-weight:700;font-size:14px;cursor:pointer;transition:border-color .18s ease,background .18s ease}
#page-team .nx-file-btn:hover{border-color:var(--lime);background:var(--lime-soft)}
#page-team .nx-file-btn:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
#page-team .nx-file-btn .ic{width:18px;height:18px;flex:none}

/* ============ v27.2: tool top bars no longer hide under the site header ============
   A live browser diagnostic (19 Nov, admin session) found the Video
   Editor's top bar INVISIBLE and UNCLICKABLE: v27.1 removed
   position:sticky from both top bars, but the site header is
   position:fixed — and the v27 full-screen rules remove the
   clearance that normally clears it (hero hidden, section padding
   0), so the tool view starts at y=0 with its top bar UNDER the
   68px header. The visual harness missed it because its doc had an
   artificial body padding-top of 68px (fixed in visual_test.py —
   the doc now replicates the real page structure, and the harness
   FAILS on v27.1 sources: 60 failures, all header/coverage).
   Fix: in tool-open mode the site header (and the mobile menu
   overlay, defensively — it can only be open via keyboard while a
   tool is open) hide entirely — the tool IS the full screen,
   consistent with v27. The top bars stay NON-sticky (the user's
   wish) and scroll naturally. Back/ESC call showTool(null), which
   removes body.tool-open, so the header returns. The theme toggle
   + logout live in the header, so they are unreachable while a
   tool is open — same as v27, where the page-hero logout +
   sidebars were already hidden in tool-open; back/ESC restores
   everything. No display:none rule here matches a tool-view (the
   v24.2 specificity guard covers it). */
body.tool-open>header{display:none}
body.tool-open .mmenu{display:none}

/* ============ v30.6: studio top bars must not cover the docked tool's top bar ============
   22:45 harness (19 Nov): at 390px the sticky studio topbar is ~122px tall
   (the search wraps to its own full-width row at <=560px) and covers the
   docked tool's own top bar — BG/QR back buttons, the Video theme toggle
   and the Export pill were visible but NOT tappable (6 failures).
   Fix (same pattern as v27.2, which hides the site header in tool-open
   mode): in studio tool-open mode the studio top bar hides entirely —
   the tool IS the screen; its own back button restores the studio.
   Media signals on #mediaStudio.ms-tool-open (toggled in msSyncMediaUI,
   tools.js — body.tool-open is deliberately NOT set in studio mode, see
   the harness 'studio mode does NOT set body.tool-open' assertion);
   Tools signals on #toolsStudio.ts-tool-open (tsSyncStudioUI). */
#mediaStudio.ms-tool-open .ms-topbar,
#toolsStudio.ts-tool-open .ts-topbar{display:none}

/* ============ v28: Video Editor ADVANCED-LEVEL look ============
   The user called the v26/v27 look "classic" and asked for a
   genuinely advanced-level look. This is a presentation rebuild
   of the Video Editor ONLY — layout, engine and all 62 control
   ids are untouched. Direction: dark premium pro-studio (Linear /
   Figma-dark / CapCut Pro dark), NOT a flat clean look.
   - The editor is a DARK pro workspace in BOTH themes: the theme
     tokens are redefined at the #tool-video scope (2,0,0 beats the
     html-level light rules for this subtree), so every v26/v27 rule
     inside the editor reads dark surfaces/text automatically.
   - Glassmorphism: rail / panels / properties / timeline / top bar
     get translucent gradients + backdrop blur + fine borders +
     inset top highlights.
   - Gradient glow accents in NexluneAI violet: Export pill, active
     rail button, play button and "+" use linear-gradient(135deg,
     #5B4BDB, #6D5DF0) — BOTH ends are AA-safe for white text
     (6.04:1 / 4.69:1, computed in verify_v41), so the gradient
     never drops below AA. The v26 light-theme black Export pill
     is overridden in both light paths (data-theme + media query).
   - Micro-interactions: hover lifts, glow focus rings, a soft
     pulsing ring on the empty-state "+" (killed under
     prefers-reduced-motion by the global rule), rotating close
     button. No layout or behaviour change anywhere.
   - NEW: a theme toggle button (.nx-theme-btn) on the tool top
     bars — v27.2 left the header #themeBtn unreachable while a
     tool is open (the header hides). Wired in tools.js (v28
     block): it forwards a click to #themeBtn and keeps its own
     moon/sun icon in sync. The video bar's button is static
     markup in studio.php; the shared bars get it from the v27
     injection. Contrast (verify_v41, all AA): text #F2F4FA on
     #070A12/#11151F/#161B29 18.00/16.59/15.62:1; muted #A7AEC4
     8.95/8.25/7.76:1; muted2 #7C86A3 on #161B29 4.74:1. */
/* --- scoped dark tokens: the editor is dark in both themes --- */
#page-team #tool-video{--bg:#070A12;--bg2:#0A0E1A;--surface:#11151F;--surface2:#161B29;--line:rgba(255,255,255,.09);--text:#F2F4FA;--muted:#A7AEC4;--muted2:#7C86A3;--lime:#8B7CFF;--lime-d:#6D5DF0;--lime-soft:rgba(139,124,255,.16);--glass:rgba(255,255,255,.06);--shadow:0 20px 50px rgba(0,0,0,.5);color:#F2F4FA}
/* --- glass surfaces: rail, panels, properties, timeline --- */
#page-team #tool-video .ve-navrail,#page-team #tool-video .ve-panels,#page-team #tool-video .ve-props,#page-team #tool-video .ve-timeline{background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.028));border:1px solid rgba(255,255,255,.09);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);box-shadow:0 18px 40px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.07)}
/* --- top bar: floating glass bar (was a flat row with a bottom border).
   Position stays static (v27.1 user wish); padding grows 2px->8px top
   but the bar's top edge is unchanged (shell padding decides it). --- */
#page-team #tool-video .ve-topbar{background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:8px 10px;box-shadow:0 14px 34px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08),0 0 0 1px rgba(139,124,255,.06);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4)}
/* --- title: Sora 17px, still borderless at rest (harness checks it) --- */
#page-team #tool-video .ve-topbar input.ve-projname{font-size:17px;letter-spacing:-.01em;color:#fff}
#page-team #tool-video .ve-topbar input.ve-projname:hover{background:rgba(255,255,255,.06);border-color:rgba(139,124,255,.45)}
#page-team #tool-video .ve-topbar input.ve-projname:focus{background:rgba(255,255,255,.06);border-color:rgba(139,124,255,.6);box-shadow:0 0 0 3px rgba(139,124,255,.2);outline:none}
/* --- back button: glass pill with violet hover glow --- */
#page-team #tool-video .ve-topbar>[data-back]{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease}
#page-team #tool-video .ve-topbar>[data-back]:hover{border-color:rgba(139,124,255,.55);background:rgba(139,124,255,.14);box-shadow:0 0 0 3px rgba(139,124,255,.14);color:#fff}
/* --- star: glass circle, violet hover glow; active = gradient.
   Position untouched (static, v27.1) — it can never cover Export. --- */
#page-team #tool-video .ve-topbar .fav-btn.ttb-fav{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#C9C2FF;transition:border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease}
#page-team #tool-video .ve-topbar .fav-btn.ttb-fav:hover{border-color:rgba(139,124,255,.6);background:rgba(139,124,255,.16);transform:scale(1.08);box-shadow:0 0 16px rgba(139,124,255,.35)}
#page-team #tool-video .ve-topbar .fav-btn.ttb-fav.active{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);border-color:transparent;color:#fff}
/* --- aspect indicator: violet-tinted glass pill --- */
#page-team #tool-video .ve-aspect-ind{background:rgba(139,124,255,.14);border-color:rgba(139,124,255,.35);color:#C9C2FF}
/* --- Properties toggle: 36px glass circle like the star --- */
#page-team #tool-video .ve-props-toggle{width:36px;height:36px;min-height:36px;flex:none;display:grid;place-items:center;padding:0;border-radius:50%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:var(--text);transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}
#page-team #tool-video .ve-props-toggle:hover{border-color:rgba(139,124,255,.55);background:rgba(139,124,255,.14);box-shadow:0 0 0 3px rgba(139,124,255,.14)}
/* --- theme toggle (all tool top bars): glass circle, theme-aware
   outside the editor (var(--surface)/var(--line) so it stays visible
   on light bars) and glass inside it. Icon rotates on hover. --- */
#page-team .nx-theme-btn{width:36px;height:36px;flex:none;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--text);display:grid;place-items:center;cursor:pointer;padding:0;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease}
#page-team .nx-theme-btn:hover{border-color:rgba(139,124,255,.55);background:rgba(139,124,255,.14);box-shadow:0 0 0 3px rgba(139,124,255,.14)}
#page-team .nx-theme-btn:active{transform:scale(.94)}
#page-team .nx-theme-btn .ic{width:18px;height:18px;transition:transform .3s ease}
#page-team .nx-theme-btn:hover .ic{transform:rotate(20deg)}
#page-team .nx-theme-btn:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
#page-team #tool-video .nx-theme-btn{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
/* --- shared bar: the name must shrink (min-width:0) so a long tool
   name truncates with an ellipsis instead of pushing the theme
   button + star past the viewport edge on phones --- */
#page-team .tool-topbar .ttb-name{min-width:0}
/* --- Export pill: violet gradient + glow + hover lift. The light-theme
   black pill (v26) is overridden in BOTH light paths — the editor is
   dark in both themes now, so Export is the gradient everywhere. --- */
#page-team #tool-video .ve-export-pill{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);border-color:transparent;color:#fff;box-shadow:0 10px 28px rgba(109,93,240,.45),inset 0 1px 0 rgba(255,255,255,.28);transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
#page-team #tool-video .ve-export-pill:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 16px 34px rgba(109,93,240,.55),inset 0 1px 0 rgba(255,255,255,.28);filter:brightness(1.06)}
#page-team #tool-video .ve-export-pill:active:not(:disabled){transform:translateY(0) scale(.98)}
html[data-theme="light"] #page-team #tool-video .ve-export-pill{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);border-color:transparent;box-shadow:0 10px 28px rgba(109,93,240,.45),inset 0 1px 0 rgba(255,255,255,.28)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team #tool-video .ve-export-pill{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);border-color:transparent;box-shadow:0 10px 28px rgba(109,93,240,.45),inset 0 1px 0 rgba(255,255,255,.28)}}
/* --- rail buttons: hover lift; active = gradient + glow (was a flat
   soft tint). White text on the gradient is AA at both ends. --- */
#page-team #tool-video .ve-navrail .ve-rail-btn{transition:background .2s ease,transform .2s ease,box-shadow .2s ease,color .2s ease}
#page-team #tool-video .ve-navrail .ve-rail-btn:hover{background:rgba(255,255,255,.07);transform:translateY(-1px)}
#page-team #tool-video .ve-navrail .ve-rail-btn.active{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);border-color:transparent;color:#fff;box-shadow:0 8px 22px rgba(109,93,240,.45),inset 0 1px 0 rgba(255,255,255,.25)}
/* --- panel typography: Sora headings, refined small labels (the
   :not(.nx-file-btn) guard keeps the styled file trigger a flex
   button — without it this rule would flatten it to a block label) --- */
#page-team #tool-video .ve-panel>h3{font-family:"Sora",sans-serif;font-size:16px;letter-spacing:-.01em}
#page-team #tool-video .ve-panel label:not(.nx-file-btn),#page-team #tool-video .ve-props label:not(.nx-file-btn),#page-team #tool-video .ve-tl-foot label{display:block;font-size:12.5px;font-weight:800;color:var(--muted);letter-spacing:.02em;margin-bottom:6px}
#page-team #tool-video .ve-panel label span,#page-team #tool-video .ve-props label span{color:var(--text)}
/* --- control groups + upload button: glass cards, violet hover --- */
#page-team #tool-video .ve-panel .ctl-group{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
#page-team #tool-video .ve-panel .ve-upload{transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease}
#page-team #tool-video .ve-panel .ve-upload:hover{border-color:rgba(139,124,255,.55);background:rgba(139,124,255,.12);box-shadow:0 0 0 3px rgba(139,124,255,.12);transform:translateY(-1px)}
/* --- file trigger inside the editor: violet-tinted dashed target --- */
#page-team #tool-video .nx-file-btn{border-color:rgba(139,124,255,.4);background:rgba(139,124,255,.07)}
#page-team #tool-video .nx-file-btn:hover{border-color:#8B7CFF;background:rgba(139,124,255,.16);box-shadow:0 0 0 3px rgba(139,124,255,.14)}
/* --- canvas: deeper shadow + violet ambient halo; meta pill blurs --- */
#page-team #tool-video .stage.ve-canvas{border-color:rgba(255,255,255,.12);box-shadow:0 24px 60px rgba(0,0,0,.5),0 0 90px rgba(109,93,240,.14)}
#page-team #tool-video .ve-meta{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-color:rgba(255,255,255,.14)}
/* --- empty state: violet-tinted glass card; "+" pulses softly --- */
#page-team #tool-video .ve-empty{border-color:rgba(139,124,255,.4);background:linear-gradient(180deg,rgba(139,124,255,.08),rgba(255,255,255,.02));box-shadow:0 0 0 1px rgba(139,124,255,.08),0 18px 44px rgba(0,0,0,.35)}
#page-team #tool-video .ve-empty-plus{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);box-shadow:0 12px 32px rgba(109,93,240,.5),0 0 0 0 rgba(139,124,255,.45);animation:vePulse 2.6s ease-out infinite}
#page-team #tool-video .ve-empty-plus:hover{transform:scale(1.07);animation:none}
@keyframes vePulse{0%{box-shadow:0 12px 32px rgba(109,93,240,.5),0 0 0 0 rgba(139,124,255,.4)}70%{box-shadow:0 12px 32px rgba(109,93,240,.5),0 0 0 18px rgba(139,124,255,0)}100%{box-shadow:0 12px 32px rgba(109,93,240,.5),0 0 0 0 rgba(139,124,255,0)}}
/* --- aspect cards + buttons: hover lift + glow; active = gradient --- */
#page-team #tool-video .ve-aratio-card{transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease}
#page-team #tool-video .ve-aratio-card:hover{transform:translateY(-2px);border-color:rgba(139,124,255,.6);background:rgba(139,124,255,.14);box-shadow:0 8px 20px rgba(109,93,240,.3)}
#page-team #tool-video .ve-aratio-card.active{background:linear-gradient(135deg,rgba(91,75,219,.55),rgba(109,93,240,.45));border-color:#8B7CFF;box-shadow:0 0 0 1px #8B7CFF,0 8px 20px rgba(109,93,240,.35)}
#page-team #tool-video .ve-aspect-btn:hover{border-color:rgba(139,124,255,.6);background:rgba(139,124,255,.14)}
#page-team #tool-video .ve-aspect-btn.active{background:linear-gradient(135deg,rgba(91,75,219,.55),rgba(109,93,240,.45));border-color:#8B7CFF;box-shadow:0 0 0 1px #8B7CFF}
/* --- properties panel: Sora heading, close button rotates on hover --- */
#page-team #tool-video .ve-props-head h3{font-family:"Sora",sans-serif;font-size:16px;letter-spacing:-.01em}
#page-team #tool-video .ve-props-close{border-radius:50%;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);transition:border-color .2s ease,background .2s ease,transform .2s ease}
#page-team #tool-video .ve-props-close:hover{border-color:rgba(139,124,255,.55);background:rgba(139,124,255,.14);transform:rotate(90deg)}
/* --- timeline: gradient play button, Sora timecode, glass zoom
   buttons, gradient text pill (lightest end #0E7490 keeps 5.36:1),
   violet-glow playhead, tinted empty strip --- */
#page-team #tool-video .ve-tl-play{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);box-shadow:0 8px 22px rgba(109,93,240,.5),inset 0 1px 0 rgba(255,255,255,.28);transition:transform .2s ease,box-shadow .2s ease}
#page-team #tool-video .ve-tl-play:hover{transform:scale(1.07)}
#page-team #tool-video .ve-tl-play:active{transform:scale(.96)}
#page-team #tool-video .ve-tl-time{font-family:"Sora",sans-serif}
#page-team #tool-video .ve-tl-zoom button{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);transition:border-color .2s ease,background .2s ease}
#page-team #tool-video .ve-tl-zoom button:hover{border-color:rgba(139,124,255,.55);background:rgba(139,124,255,.14)}
#page-team #tool-video .ve-tl-textpill{background:linear-gradient(135deg,#0E7490,#155E75);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 6px 16px rgba(14,116,144,.35)}
#page-team #tool-video .ve-tl-audiobar{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08)}
#page-team #tool-video .ve-tl-playhead{box-shadow:0 0 12px rgba(139,124,255,.9),0 0 4px rgba(255,255,255,.9)}
#page-team #tool-video .ve-tl-empty{border-color:rgba(139,124,255,.35);background:rgba(139,124,255,.05)}
/* --- clip tray: hover lift + violet border --- */
#page-team #tool-video .ve-tray-item:hover{transform:translateY(-2px);border-color:rgba(139,124,255,.5);box-shadow:0 10px 22px rgba(0,0,0,.4)}
/* --- drop overlay: violet, not amber (the brown was a v24 leftover) --- */
#page-team #tool-video.ve-drag .ve-dropzone{background:rgba(43,32,120,.88);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#page-team #tool-video.ve-drag .ve-dropzone h3{text-shadow:0 2px 20px rgba(139,124,255,.6)}

/* ============ v28-final: mobile sheet close button ============
   The panels are fixed bottom sheets on mobile — each one gets an
   explicit close button (the tap-active-tab toggle exists, but the
   user must SEE a way out). Hidden here on desktop, where the
   panels are a persistent column, not sheets; responsive.css shows
   it <=900px as a 44px glass circle in the sheet's top-right. */
#page-team #tool-video .ve-sheet-close{display:none}

/* ============ v29: premium dark pro-studio look for ALL tools ============
   v28 gave only the Video Editor the advanced dark pro-studio look;
   the user asked for the same on every other tool ("jese apne video
   editor bnaya hai premium look me aese hi baki bhi bna den"). This
   is the SAME treatment applied to the SHARED chrome, so all 64
   tools + 8 builders inherit it — no tool is restyled one by one.
   - The v28 scoped-token trick, widened: the dark tokens are
     redefined at #page-team .tool-view (1,1,0), so every var-based
     rule inside any tool view reads dark surfaces/text in BOTH
     themes. The video editor's own (2,0,0) rule still wins there
     with identical values — v28 is untouched.
   - The shared top bar becomes the v28 floating glass bar; the
     tool-open shell gains 12px top padding (the video shell
     already has 12px) so the bar floats with dark ground above it.
     (A margin on the bar would collapse through the shell and show
     a light strip in light theme — padding cannot collapse.)
   - Glass surfaces: controls cards, steps bar, ctl-groups, ai-out,
     hex/kv rows, empty states, dropzones, file triggers, builder
     canvas/settings/items. Inputs get the glass gradient (same
     selector as the v27 component rule, later wins). Sliders keep
     the v27 premium track/thumb (already glass-ready via tokens).
     No backdrop-filter on the shared cards: over the flat dark
     ground blur is invisible, and a filter would make the card the
     containing block for any fixed descendant (the v28-final
     lesson). The top bar keeps its blur (no fixed descendants).
   - Active/selected states use the v28 gradient
     linear-gradient(135deg,#5B4BDB,#6D5DF0) — white text is AA at
     both ends (6.04:1 / 4.69:1): preset buttons, step chips, added
     suggestion chips. .btn-lime is NOT touched (its site-wide
     gradient contrast is a separate future job).
   - BG Remover keeps its pixel-match remove.bg design (hard-coded
     light colours; v27 excluded it from the component restyle and
     v29 does the same): the :not(#tool-bgremove) guard on the
     mini-btn / btn-ghost / input / color-scheme rules keeps light
     text off its white cards. It still inherits the dark shell
     ground + glass top bar + theme toggle like every tool.
   - Light-path overrides: the v23/v24 builder rules that switch
     .bld-num/.bld-pal-add/.bld-guide b to var(--lime-d) and
     .bld-error/.bld-trash to #D92D20 in light theme would drop
     below AA on the dark tool ground — inside tool views they keep
     the dark-theme values (var(--lime) / var(--err)) in BOTH light
     paths. Same for the light-only .serp title (#1a56c4),
     .fallback-note and .prio-* pastels (dark variants forced).
   - color-scheme:dark inside tool views (except BG Remover) so
     native controls — date/time icons (3 date + 1 time input in
     the tools), select dropdowns, scrollbars — render dark in
     both themes instead of dark-on-dark.
   Contrast (verify_v44, all AA): text #F2F4FA on #070A12/#11151F/
   #161B29 18.00/16.59/15.62:1; muted #A7AEC4 8.95/8.25/7.76:1;
   muted2 #7C86A3 on #161B29 4.74:1; #C9C2FF on #11151F 10.99:1;
   #8B7CFF on the lime-soft tile 4.51:1; #ff5a5a on #11151F 5.96:1;
   #7aa5ff on #11151F 7.52:1; #ffd98a on #2a1a05 12.45:1. (Without
   the light-path overrides, #6D5DF0 on #11151F would be 3.89:1
   and #D92D20 3.78:1 — both below AA for normal text.) */
/* --- scoped dark tokens: every tool view is dark in both themes --- */
#page-team .tool-view{--bg:#070A12;--bg2:#0A0E1A;--surface:#11151F;--surface2:#161B29;--line:rgba(255,255,255,.09);--text:#F2F4FA;--muted:#A7AEC4;--muted2:#7C86A3;--lime:#8B7CFF;--lime-d:#6D5DF0;--lime-soft:rgba(139,124,255,.16);--glass:rgba(255,255,255,.06);--shadow:0 20px 50px rgba(0,0,0,.5);color:#F2F4FA}
#page-team .tool-view:not(#tool-bgremove){color-scheme:dark}
/* --- tool-open shell: violet ambient glow + 12px top padding so the
   floating top bar has dark ground above it (the video shell already
   has 12px; its (2,1,0) rule still wins there) --- */
body.tool-open #page-team .tool-view.active .tool-shell{background:radial-gradient(900px 500px at 85% -5%,rgba(139,124,255,.10),transparent 60%),var(--bg);padding-top:12px}
/* --- shared top bar: floating glass bar, like the video bar --- */
#page-team .tool-topbar{margin:0 0 4px;padding:8px 10px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.1);border-radius:16px;box-shadow:0 14px 34px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08),0 0 0 1px rgba(139,124,255,.06);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4)}
/* --- back button: glass pill with violet hover glow --- */
#page-team .tool-topbar .ttb-back{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}
#page-team .tool-topbar .ttb-back:hover{border-color:rgba(139,124,255,.55);background:rgba(139,124,255,.14);box-shadow:0 0 0 3px rgba(139,124,255,.14);color:#fff}
/* --- bar icon: violet gradient tile; name: white Sora --- */
#page-team .tool-topbar .ttb-icon{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);color:#fff;box-shadow:0 8px 18px rgba(109,93,240,.4),inset 0 1px 0 rgba(255,255,255,.25)}
#page-team .tool-topbar .ttb-name{letter-spacing:-.01em;color:#fff}
/* --- bar star: glass circle, violet hover glow; active = gradient --- */
#page-team .tool-topbar .fav-btn.ttb-fav{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#C9C2FF;transition:border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease}
#page-team .tool-topbar .fav-btn.ttb-fav:hover{border-color:rgba(139,124,255,.6);background:rgba(139,124,255,.16);transform:scale(1.08);box-shadow:0 0 16px rgba(139,124,255,.35)}
#page-team .tool-topbar .fav-btn.ttb-fav.active{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);border-color:transparent;color:#fff}
/* --- theme toggle: glass in every tool view (was video-only) --- */
#page-team .tool-view .nx-theme-btn{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
/* --- tool-head: white Sora title, muted tagline, gradient icon tile --- */
#page-team .tool-view .tool-head h2{letter-spacing:-.02em;color:#fff}
#page-team .tool-view .tool-head p{color:var(--muted)}
#page-team .tool-view .tool-head .th-icon{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);color:#fff;box-shadow:0 10px 24px rgba(109,93,240,.45),inset 0 1px 0 rgba(255,255,255,.3)}
/* --- glass surfaces: controls cards, steps bar, stage halo --- */
#page-team .tool-view .controls,#page-team .tool-view .steps-bar{background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.028));border:1px solid rgba(255,255,255,.09);box-shadow:0 18px 40px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.07)}
#page-team .tool-view .stage{box-shadow:0 24px 60px rgba(0,0,0,.5),0 0 90px rgba(109,93,240,.14),inset 0 1px 0 rgba(255,255,255,.06)}
#page-team .tool-view .controls .ctl-group{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
#page-team .tool-view .controls .ctl-group[open]{border-color:color-mix(in srgb,var(--lime) 40%,var(--line))}
/* --- AI output textarea: glass (focus ring re-asserted — this rule
   ties the v27 :focus rule at (2,3,1) and would otherwise win it) --- */
#page-team .tool-view:not(#tool-bgremove) textarea.ai-out{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));border-color:rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
#page-team .tool-view:not(#tool-bgremove) textarea.ai-out:focus{border-color:var(--lime);box-shadow:0 0 0 3px var(--lime-soft)}
/* --- small rows: hex items + kv pairs get the glass gradient --- */
#page-team .tool-view .hex-item,#page-team .tool-view .kv{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));border-color:rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
/* --- empty states: violet-tinted glass, like the video empty state --- */
#page-team .tool-view .nx-empty{border-color:rgba(139,124,255,.4);background:linear-gradient(180deg,rgba(139,124,255,.08),rgba(255,255,255,.02));box-shadow:0 0 0 1px rgba(139,124,255,.08),0 18px 44px rgba(0,0,0,.35)}
/* --- dropzones + file triggers: violet-tinted dashed targets --- */
#page-team .tool-view .dropzone{border-color:rgba(139,124,255,.35);background:linear-gradient(180deg,rgba(139,124,255,.06),rgba(255,255,255,.02))}
#page-team .tool-view .dropzone:hover,#page-team .tool-view .dropzone.drag{border-color:#8B7CFF;background:rgba(139,124,255,.14);box-shadow:0 0 0 3px rgba(139,124,255,.12)}
#page-team .tool-view .nx-file-btn{border-color:rgba(139,124,255,.4);background:rgba(139,124,255,.07)}
#page-team .tool-view .nx-file-btn:hover{border-color:#8B7CFF;background:rgba(139,124,255,.16);box-shadow:0 0 0 3px rgba(139,124,255,.14)}
/* --- inputs/selects/textareas: glass gradient. Same selector as the
   v27 component rule, ordered after it, so the tie resolves here;
   the v27 :focus rule (one pseudo-class higher) still wins on focus. --- */
#page-team .tool-view:not(#tool-bgremove) input[type=text],#page-team .tool-view:not(#tool-bgremove) input[type=number],#page-team .tool-view:not(#tool-bgremove) input[type=url],#page-team .tool-view:not(#tool-bgremove) input[type=email],#page-team .tool-view:not(#tool-bgremove) input[type=password],#page-team .tool-view:not(#tool-bgremove) input[type=search],#page-team .tool-view:not(#tool-bgremove) input[type=tel],#page-team .tool-view:not(#tool-bgremove) input[type=date],#page-team .tool-view:not(#tool-bgremove) input[type=time],#page-team .tool-view:not(#tool-bgremove) input[type=datetime-local],#page-team .tool-view:not(#tool-bgremove) input[type=month],#page-team .tool-view:not(#tool-bgremove) select,#page-team .tool-view:not(#tool-bgremove) textarea{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));border-color:rgba(255,255,255,.12)}
/* The video title is borderless text at rest (v28) — the input rule
   above ties its (2,2,1) specificity (:not(#tool-bgremove) counts
   its ID) and would give it a glass border + gradient. Re-assert
   transparent here; :hover/:focus (one pseudo-class higher) still win. */
#page-team #tool-video .ve-topbar input.ve-projname{background:transparent;border-color:transparent}
/* --- secondary buttons: glass pills with violet hover (BG Remover
   excluded — its mini-btns sit on white cards) --- */
#page-team .tool-view:not(#tool-bgremove) .mini-btn{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}
#page-team .tool-view:not(#tool-bgremove) .mini-btn:hover{border-color:rgba(139,124,255,.55);background:rgba(139,124,255,.14);box-shadow:0 0 0 3px rgba(139,124,255,.12);color:#fff}
#page-team .tool-view:not(#tool-bgremove) .btn-ghost{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
#page-team .tool-view:not(#tool-bgremove) .btn-ghost:hover{background:rgba(139,124,255,.14);border-color:rgba(139,124,255,.55)}
/* --- active/selected states: the v28 gradient (white text AA at both ends) --- */
#page-team .tool-view .preset-btn{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
#page-team .tool-view .preset-btn:hover{border-color:rgba(139,124,255,.55);background:rgba(139,124,255,.14)}
#page-team .tool-view .preset-btn.active{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);border-color:transparent;color:#fff;box-shadow:0 8px 22px rgba(109,93,240,.45),inset 0 1px 0 rgba(255,255,255,.25)}
#page-team .tool-view .step-chip i{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);box-shadow:0 4px 12px rgba(109,93,240,.4)}
#page-team .tool-view .chip{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
#page-team .tool-view .chip:hover{border-color:rgba(139,124,255,.55);background:rgba(139,124,255,.14)}
#page-team .tool-view .chip.added{background:linear-gradient(135deg,#5B4BDB,#6D5DF0);border-color:transparent;color:#fff}
/* --- builders: glass canvas/settings/brief/items (drag + drop states
   re-asserted — the rest rules tie or beat them) --- */
#page-team .tool-view .bld-canvas{border-color:rgba(139,124,255,.4);background:linear-gradient(180deg,rgba(139,124,255,.06),rgba(255,255,255,.02))}
#page-team .tool-view .bld-canvas.drag-over{border-color:#8B7CFF;background:rgba(139,124,255,.16)}
#page-team .tool-view .bld-settings,#page-team .tool-view .bld-brief{background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.028));border-color:rgba(255,255,255,.09);box-shadow:0 18px 40px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.07)}
#page-team .tool-view .bld-item{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
#page-team .tool-view .bld-item.sel{border-color:#8B7CFF;box-shadow:0 0 0 3px rgba(139,124,255,.16)}
#page-team .tool-view .bld-item.drop-before{box-shadow:0 -2px 0 var(--lime)}
#page-team .tool-view .bld-item.drop-after{box-shadow:0 2px 0 var(--lime)}
/* --- light-path overrides: the v23/v24 builder rules switch these to
   dark-on-light values in light theme, which drop below AA on the
   dark tool ground — inside tool views they keep the dark values in
   BOTH light paths (data-theme + media query). --- */
html[data-theme="light"] #page-team .tool-view .bld-num,html[data-theme="light"] #page-team .tool-view .bld-pal-add,html[data-theme="light"] #page-team .tool-view .bld-guide b{color:var(--lime)}
html[data-theme="light"] #page-team .tool-view .bld-trash.drag-over{color:var(--err)}
html[data-theme="light"] #page-team .tool-view .bld-error{color:var(--err);border-color:var(--err)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .tool-view .bld-num,html:not([data-theme="dark"]) #page-team .tool-view .bld-pal-add,html:not([data-theme="dark"]) #page-team .tool-view .bld-guide b{color:var(--lime)}html:not([data-theme="dark"]) #page-team .tool-view .bld-trash.drag-over{color:var(--err)}html:not([data-theme="dark"]) #page-team .tool-view .bld-error{color:var(--err);border-color:var(--err)}}
/* --- light-only colours forced back to their dark variants inside
   tool views: the SERP title, the amber fallback note and the
   Kanban priority pastels would all fail on the dark ground. --- */
#page-team .tool-view .serp .s-title{color:#7aa5ff}
#page-team .tool-view .fallback-note{background:#2a1a05;border-color:#b97e00;color:#ffd98a}
#page-team .tool-view .prio-high{background:#3a0d0d;color:#ff9a9a}
#page-team .tool-view .prio-med{background:#3a2c05;color:#ffd98a}
#page-team .tool-view .prio-low{background:#0d2b12;color:#8ae89a}

/* ============ v29 — AI MODEL PRELOADER INDICATOR ============
   Slim fixed pill (model-preload.js injects it). OPAQUE dark
   background — NOT translucent glass: it floats over any page in
   either theme, and a translucent pill over the light theme would
   leave white text on a light ground. Text #F2F4FA on #11151F =
   16.59:1. z-index 98 sits above overlays (<=95) but below the
   toast (99). Mobile bottom offset (88px) lives in responsive.css
   — just above the fixed bottom bar (~76px), so on phones it
   covers lower-priority content instead of mid-screen primary
   actions. It can briefly overlap the transient toast
   (bottom:110px), but the toast sits above it (z-99) and stays
   fully readable. */
.nx-preload{position:fixed;right:16px;bottom:24px;z-index:98;width:min(340px,calc(100vw - 32px));background:linear-gradient(180deg,#1B2132,#11151F);border:1px solid rgba(255,255,255,.16);border-radius:16px;box-shadow:0 18px 40px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.12);padding:12px 14px;color:#F2F4FA;font-size:13px;line-height:1.4}
.nx-preload-row{display:flex;align-items:center;gap:8px}
.nx-preload-dot{width:8px;height:8px;border-radius:50%;background:#8B7CFF;flex:none;animation:nxPreloadPulse 1.2s ease-in-out infinite}
@keyframes nxPreloadPulse{0%,100%{box-shadow:0 0 0 0 rgba(139,124,255,.55)}50%{box-shadow:0 0 0 6px rgba(139,124,255,0)}}
.nx-preload-text{flex:1;min-width:0}
.nx-preload-x{flex:none;width:26px;height:26px;border-radius:8px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);color:#F2F4FA;font-size:16px;line-height:1;cursor:pointer;padding:0}
.nx-preload-x:hover{background:rgba(255,255,255,.14)}
.nx-preload-track{height:6px;border-radius:99px;background:rgba(255,255,255,.12);margin-top:10px;overflow:hidden}
.nx-preload-fill{height:100%;width:0%;border-radius:99px;background:linear-gradient(135deg,#5B4BDB,#6D5DF0);transition:width .3s ease}

/* ================= v30 — TWO STUDIOS ================= */
/* --- shell: entering a studio hides the site header + the classic
   Studio shell (canva-side / canva-main) and shows the studio. The
   tool IS the full screen (v27.2 pattern). --- */
#mediaStudio,#toolsStudio{display:none}
body.media-studio>header,body.tools-studio>header{display:none}
body.media-studio .mmenu,body.tools-studio .mmenu{display:none}
body.media-studio #page-team .canva-side,body.media-studio #page-team .canva-main,
body.tools-studio #page-team .canva-side,body.tools-studio #page-team .canva-main{display:none}
body.media-studio #mediaStudio{display:flex}
body.tools-studio #toolsStudio{display:flex}
/* v30.1: the studios are flex items of #page-team (like .canva-main)
   — without flex:1 they shrink-wrap their content (the Tools Studio
   measured 1051px in a 1425px page) instead of filling the page. */
#mediaStudio,#toolsStudio{flex:1;min-width:0}
/* v30.4: the Studio is a full-screen app — no site footer in it
   (landing, both studios, tool-open). Other pages keep their footer.
   v30.5: the site Call/WhatsApp bar is hidden there too (the landing
   has its own bottom menu), and the landing menu hides once a studio
   opens — each studio has its own bottom nav. */
body:has(#page-team) .site-footer,body:has(#page-team) .bottom-bar{display:none}
/* v31: the site-wide bottom menu never shows on the Studio page —
   the Studio keeps its own #stBottomNav. */
body:has(#page-team) .site-bottomnav{display:none}
body.media-studio .st-bottomnav,body.tools-studio .st-bottomnav{display:none}
/* v30: the BG Remover's sticky right panel is tuned for the fixed
   site header (top:68px+16px) — with the header hidden in studio
   mode it would float 84px down. Reset it while a tool is docked. */
body.media-studio #tool-bgremove .bg12-panel{top:16px;max-height:calc(100vh - 48px)}
/* --- studio entry cards (landing) + Tools Studio banner --- */
.studio-pick{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:6px 0 18px}
.studio-card{display:flex;gap:16px;align-items:flex-start;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:20px;cursor:pointer;color:var(--text);box-shadow:var(--shadow);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.studio-card:hover{transform:translateY(-2px);border-color:rgba(139,124,255,.55);box-shadow:0 24px 50px rgba(20,24,60,.16)}
.studio-card.media{background:linear-gradient(150deg,var(--surface),rgba(109,93,240,.10))}
.studio-card .sc-icon{width:56px;height:56px;flex:none;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,#6D5DF0,#8B7CFF);color:#fff;box-shadow:0 12px 26px rgba(109,93,240,.4)}
.studio-card.tools .sc-icon{background:linear-gradient(145deg,#0F766E,#14B8A6);box-shadow:0 12px 26px rgba(20,184,166,.35)}
.studio-card .sc-icon .ic{width:28px;height:28px}
.studio-card .sc-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.studio-card .sc-tag{font-size:11px;font-weight:900;letter-spacing:.12em;color:var(--lime-d)}
html[data-theme="dark"] .studio-card .sc-tag{color:#B7AEFF}
.studio-card .sc-title{font-size:22px;font-weight:900;line-height:1.15}
.studio-card .sc-sub{font-size:13.5px;color:var(--muted);line-height:1.5}
.studio-card .sc-meta{display:flex;gap:10px;align-items:baseline;margin-top:6px;font-size:12.5px;color:var(--muted2);flex-wrap:wrap}
.studio-card .sc-meta b{color:var(--text);font-size:14px}
.studio-card .sc-go{flex:none;align-self:center;background:var(--lime);color:#fff;font-weight:800;font-size:13.5px;padding:11px 16px;border-radius:999px;white-space:nowrap}
.studio-card.tools .sc-go{background:#0F766E}
.studio-banner{display:none;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:var(--lime-soft);border:1px solid rgba(139,124,255,.35);border-radius:14px;padding:11px 16px;margin:0 0 14px;font-size:14px}
.studio-banner .sb-text b{font-weight:900}
.studio-banner .sb-actions{display:flex;gap:8px;flex-wrap:wrap}
/* v30: a studio-hidden featured slide must never show, even when the
   spotlight rotation marks it .spot-active (specificity tie with
   line 1965 — the !important settles it). */
#page-team #canvaSpot .featured-tool.hide{display:none!important}
/* --- v30 Part 2: BG Remover — the ORIGINAL photo must never be
   long-press-saveable. #bgOrigImg is shown by hold-to-compare (the
   hold is on a separate button, so pointer-events:none is safe);
   tray clicks are delegated on #bgQueue via closest('[data-bg-item]'),
   so pointer-events:none on the thumb still selects the item. --- */
#tool-bgremove #bgOrigImg,#tool-bgremove .bg-tthumb{pointer-events:none;-webkit-touch-callout:none;-webkit-user-drag:none;user-select:none}

/* ================= v30 — MEDIA STUDIO (Studio 1) ================= */
#mediaStudio{flex-direction:row;align-items:stretch;min-height:100vh;background:var(--bg)}
/* --- dark sidebar (dark in BOTH themes, like the reference) --- */
.ms-side{width:240px;flex:none;background:#0B0F1E;color:#E8EAF6;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;padding:16px 14px;z-index:60}
.ms-side .ic{width:20px;height:20px;flex:none}
.ms-back{display:flex;align-items:center;gap:8px;background:none;border:1px solid rgba(255,255,255,.14);color:#C9CFE8;border-radius:10px;padding:8px 12px;font-size:13px;font-weight:700;cursor:pointer;margin-bottom:14px}
.ms-back:hover{background:rgba(255,255,255,.07);color:#fff}
.ms-back .ic{width:16px;height:16px}
.ms-brand{display:flex;align-items:center;gap:10px;padding:4px 8px 16px}
.ms-brand .ms-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#6D5DF0,#8B7CFF);display:grid;place-items:center;color:#fff;flex:none}
.ms-brand .ms-mark .ic{width:22px;height:22px}
.ms-brand b{display:block;font-size:17px;line-height:1.1;letter-spacing:.02em}
.ms-brand small{font-size:10px;letter-spacing:.18em;color:#9AA3C0;font-weight:800}
.ms-nav{display:flex;flex-direction:column;gap:3px}
.ms-nav-btn{display:flex;align-items:center;gap:11px;background:none;border:none;color:#C9CFE8;border-radius:11px;padding:10px 12px;font-size:14px;font-weight:600;cursor:pointer;text-align:left;width:100%}
.ms-nav-btn:hover{background:rgba(255,255,255,.06);color:#fff}
.ms-nav-btn.active{background:#6D5DF0;color:#fff;box-shadow:0 8px 20px rgba(109,93,240,.45)}
.ms-upgrade{margin-top:auto;background:linear-gradient(150deg,#4A3BC2,#6D5DF0);border-radius:16px;padding:16px 14px;text-align:center;color:#fff}
.ms-upgrade .ms-crown{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.16);display:grid;place-items:center;margin:0 auto 8px}
.ms-upgrade .ms-crown .ic{width:22px;height:22px;color:#FFC53D}
.ms-crown.big{width:52px;height:52px;border-radius:16px;background:linear-gradient(145deg,#4A3BC2,#6D5DF0);display:grid;place-items:center;margin:0 auto 12px}
.ms-crown.big .ic{width:28px;height:28px;color:#FFC53D}
.ms-upgrade b{display:block;font-size:14.5px}
.ms-upgrade p{font-size:12px;color:rgba(255,255,255,.82);margin:4px 0 10px;line-height:1.45}
.ms-go-premium{background:#FFC53D;color:#231603;border:none;border-radius:999px;padding:9px 16px;font-weight:900;font-size:13px;cursor:pointer}
.ms-go-premium:hover{filter:brightness(1.06)}
.ms-side-foot{padding:14px 8px 2px;text-align:center}
.ms-side-foot b{font-size:12px;letter-spacing:.22em;color:#8B93B8}
.ms-side-foot small{display:block;font-size:11px;color:#6E7699;margin-top:2px}
/* --- main column + top bar --- */
.ms-main{flex:1;min-width:0;padding:18px 28px 48px;display:flex;flex-direction:column}
.ms-topbar{display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:10px 0 12px;margin-bottom:6px}
.ms-burger{display:none;width:40px;height:40px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);cursor:pointer;place-items:center;flex:none}
.ms-burger .ic{width:20px;height:20px}
.ms-search{flex:1;display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 8px 0 16px;min-width:0;box-shadow:0 6px 18px rgba(20,24,60,.05)}
.ms-search .ss-ic{color:var(--muted2);flex:none;display:grid;place-items:center}
.ms-search .ss-ic .ic{width:18px;height:18px}
.ms-search input{flex:1;min-width:0;border:none;background:none;outline:none;color:var(--text);font-size:14.5px;padding:12px 0;font-family:inherit}
.ms-search input::placeholder{color:var(--muted2)}
.ss-clear{display:none;width:28px;height:28px;border:none;border-radius:50%;background:var(--surface2);color:var(--muted);cursor:pointer;place-items:center;flex:none}
.ss-clear .ic{width:14px;height:14px}
.ms-search input:not(:placeholder-shown)+.ss-clear{display:grid}
.ms-top-actions{display:flex;align-items:center;gap:10px;flex:none}
.ms-premium-btn{display:flex;align-items:center;gap:7px;background:linear-gradient(135deg,#4A3BC2,#6D5DF0);color:#fff;border:none;border-radius:999px;padding:10px 16px;font-weight:800;font-size:13.5px;cursor:pointer;box-shadow:0 10px 22px rgba(109,93,240,.35)}
.ms-premium-btn .ic{width:16px;height:16px;color:#FFC53D}
.ms-bell{position:relative;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text);cursor:pointer;display:grid;place-items:center}
.ms-bell .ic{width:19px;height:19px}
.ms-bell-dot{position:absolute;top:8px;right:9px;width:9px;height:9px;border-radius:50%;background:#FF5A5A;border:2px solid var(--surface)}
.ms-avatar{width:40px;height:40px;border-radius:50%;border:none;background:linear-gradient(145deg,#6D5DF0,#8B7CFF);color:#fff;font-weight:900;font-size:16px;cursor:pointer;flex:none}
.ms-pop{position:absolute;top:calc(100% + 6px);right:0;width:320px;max-width:calc(100vw - 32px);background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:8px;z-index:50}
#msBellPop{right:56px}
.ms-pop-item{padding:10px 12px;border-radius:11px}
.ms-pop-item+.ms-pop-item{border-top:1px solid var(--line)}
.ms-pop-item b{display:block;font-size:13.5px}
.ms-pop-item span{font-size:12.5px;color:var(--muted);line-height:1.45}
.ms-pop-btn{display:block;width:100%;margin-top:8px;background:var(--lime);color:#fff;border:none;border-radius:11px;padding:11px;font-weight:800;font-size:14px;cursor:pointer}
/* --- views --- */
.ms-view{display:none}
.ms-view.active{display:block}
.ms-view-head{margin:6px 0 16px}
.ms-view-head h2{margin:0;font-size:24px}
.ms-view-head p{margin:4px 0 0;color:var(--muted);font-size:14px}
/* --- hero --- */
.ms-hero{position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(115deg,#3D2FA8 0%,#4A3BC2 38%,#6D5DF0 72%,#8B7CFF 100%);color:#fff;padding:34px 36px;min-height:196px;display:flex;align-items:center}
.ms-hero-text{position:relative;z-index:2;max-width:560px}
.ms-hero-text h2{margin:0;font-size:clamp(26px,3.4vw,38px);line-height:1.12;font-weight:900}
.ms-hero-text h2 span{color:#FFC53D}
.ms-hero-text p{margin:10px 0 18px;font-size:15.5px;color:rgba(255,255,255,.88)}
.ms-start{background:#fff;color:#4A3BC2;border:none;border-radius:999px;padding:12px 22px;font-weight:900;font-size:14.5px;cursor:pointer;box-shadow:0 12px 26px rgba(0,0,0,.25)}
.ms-start:hover{filter:brightness(.97)}
.ms-hero-icons{position:absolute;inset:0;pointer-events:none}
.ms-float{position:absolute;display:grid;place-items:center;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(6px);border-radius:16px;color:#fff;font-weight:900;box-shadow:0 12px 26px rgba(0,0,0,.18);animation:msfloat 5.5s ease-in-out infinite}
.ms-float .ic{width:26px;height:26px}
.ms-float.f1{width:64px;height:64px;right:16%;top:18%}
.ms-float.f2{width:56px;height:56px;right:30%;bottom:14%;animation-delay:.8s}
.ms-float.f3{width:52px;height:52px;right:6%;bottom:22%;font-size:26px;animation-delay:1.6s}
.ms-float.f4{width:60px;height:60px;right:24%;top:8%;animation-delay:2.2s}
.ms-float.f5{width:48px;height:48px;right:38%;top:44%;animation-delay:2.9s}
.ms-float.f5 .ic{width:24px;height:24px}
@keyframes msfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
/* --- category cards (tinted, like the reference) --- */
.ms-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:18px}
.ms-cat{border-radius:20px;padding:16px;border:1px solid var(--line)}
/* v30.3: dark is the :root DEFAULT (no data-theme on first visit),
   so the DARK tints are the base and light is the override — the old
   pattern (light base + html[data-theme="dark"] override) left light
   cards + light text = invisible titles for every first-time visitor. */
.ms-cat.cat-video{background:rgba(46,204,153,.12)}
.ms-cat.cat-images{background:rgba(139,124,255,.13)}
.ms-cat.cat-audio{background:rgba(255,170,60,.12)}
.ms-cat.cat-design{background:rgba(255,110,160,.12)}
html[data-theme="light"] .ms-cat.cat-video{background:#EAF6F1}
html[data-theme="light"] .ms-cat.cat-images{background:#F3EDFF}
html[data-theme="light"] .ms-cat.cat-audio{background:#FFF3E2}
html[data-theme="light"] .ms-cat.cat-design{background:#FFE9F2}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) .ms-cat.cat-video{background:#EAF6F1}
html:not([data-theme="dark"]) .ms-cat.cat-images{background:#F3EDFF}
html:not([data-theme="dark"]) .ms-cat.cat-audio{background:#FFF3E2}
html:not([data-theme="dark"]) .ms-cat.cat-design{background:#FFE9F2}}
.ms-cat-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.ms-cat-ic{width:40px;height:40px;flex:none;border-radius:12px;display:grid;place-items:center;color:#fff}
.cat-video .ms-cat-ic{background:linear-gradient(145deg,#0F766E,#14B8A6)}
.cat-images .ms-cat-ic{background:linear-gradient(145deg,#6D5DF0,#8B7CFF)}
.cat-audio .ms-cat-ic{background:linear-gradient(145deg,#D97706,#F59E0B)}
.cat-design .ms-cat-ic{background:linear-gradient(145deg,#DB2777,#F472B6)}
.ms-cat-ic .ic{width:21px;height:21px}
.ms-cat-head h3{margin:0;font-size:16.5px;line-height:1.15}
.ms-cat-head p{margin:2px 0 0;font-size:11.5px;color:var(--muted)}
.ms-cat-more{margin-left:auto;width:30px;height:30px;border:none;border-radius:50%;background:rgba(255,255,255,.10);color:var(--text);font-size:20px;line-height:1;cursor:pointer;flex:none;box-shadow:0 4px 10px rgba(20,24,60,.10)}
html[data-theme="light"] .ms-cat-more{background:rgba(255,255,255,.75)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) .ms-cat-more{background:rgba(255,255,255,.75)}}
.ms-cat-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ms-tile{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:13px;padding:11px 10px;cursor:pointer;color:var(--text);font-size:12.5px;font-weight:700;line-height:1.3}
html[data-theme="light"] .ms-tile{background:rgba(255,255,255,.82);border-color:rgba(11,14,30,.06)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) .ms-tile{background:rgba(255,255,255,.82);border-color:rgba(11,14,30,.06)}}
.ms-tile:hover{border-color:rgba(109,93,240,.5);box-shadow:0 8px 18px rgba(20,24,60,.10)}
.ms-tile-ic{width:30px;height:30px;border-radius:9px;background:var(--lime-soft);color:var(--lime-d);display:grid;place-items:center;font-size:11px;font-weight:900}
html[data-theme="dark"] .ms-tile-ic{color:#B7AEFF}
.ms-tile-ic .ic{width:17px;height:17px}
.ms-no-match{margin:16px 0 0;color:var(--muted);font-size:14.5px}
#msViewHome.searching .ms-hero,#msViewHome.searching .ms-workspace{display:none}
/* --- workspace --- */
.ms-workspace{display:grid;grid-template-columns:272px minmax(0,1fr) 236px;gap:16px;margin-top:20px;align-items:start}
.ms-ws-left,.ms-ws-right{position:sticky;top:84px}
.ms-tabs{display:flex;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:5px;margin-bottom:12px;flex-wrap:wrap}
.ms-tab{flex:1;border:none;background:none;color:var(--muted);border-radius:9px;padding:8px 4px;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.ms-tab.active{background:var(--lime);color:#fff}
.ms-panel{display:none;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px}
.ms-panel.active{display:block}
.ms-panel .hint{font-size:12.5px;color:var(--muted);margin:0 0 10px;line-height:1.5}
.ms-tpl-search{display:flex;align-items:center;gap:8px;background:var(--surface2);border:1px solid var(--line);border-radius:999px;padding:0 12px;margin-bottom:10px}
.ms-tpl-search .ss-ic{color:var(--muted2);display:grid;place-items:center;flex:none}
.ms-tpl-search .ss-ic .ic{width:16px;height:16px}
.ms-tpl-search input{flex:1;min-width:0;border:none;background:none;outline:none;color:var(--text);font-size:13px;padding:9px 0;font-family:inherit}
.ms-tpl-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.ms-tchip{border:1px solid var(--line);background:var(--surface2);color:var(--muted);border-radius:999px;padding:6px 11px;font-size:12px;font-weight:700;cursor:pointer}
.ms-tchip.active{background:var(--lime);border-color:var(--lime);color:#fff}
.ms-tpl-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ms-tpl-grid.big{grid-template-columns:repeat(3,1fr);gap:14px}
.ms-tpl-card{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--surface);cursor:pointer;padding:0;text-align:left;color:var(--text)}
.ms-tpl-card:hover{border-color:rgba(109,93,240,.5);box-shadow:0 10px 22px rgba(20,24,60,.10)}
.ms-tpl-art{position:relative;display:grid;place-items:center;aspect-ratio:4/3;color:#fff;font-weight:900;font-size:16px;text-align:center;padding:10px;text-shadow:0 2px 10px rgba(0,0,0,.35);line-height:1.2}
.ms-tpl-art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.32));pointer-events:none}
.ms-tpl-art{isolation:isolate}
.tpl-sunset .ms-tpl-art{background:linear-gradient(135deg,#E85D3F,#C2185B)}
.tpl-sale .ms-tpl-art{background:linear-gradient(135deg,#D32F2F,#8E1616)}
.tpl-grow .ms-tpl-art{background:linear-gradient(135deg,#1B7A43,#0D5C2E)}
.tpl-ramadan .ms-tpl-art{background:linear-gradient(135deg,#4A2C82,#241245)}
.tpl-cutout .ms-tpl-art{background:linear-gradient(135deg,#1565C0,#0D3B7A)}
.tpl-pop .ms-tpl-art{background:linear-gradient(135deg,#6A1B9A,#3D0F5E)}
.ms-tpl-name{display:block;font-size:13px;font-weight:800;padding:9px 10px 0}
.ms-tpl-sub{display:block;font-size:11.5px;color:var(--muted);padding:1px 10px 10px}
.ms-shape-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ms-shape{border:1px solid var(--line);background:var(--surface2);border-radius:12px;padding:10px 4px;cursor:pointer;color:var(--text);font-size:11.5px;font-weight:700;display:flex;flex-direction:column;gap:6px;align-items:center}
.ms-shape:hover{border-color:rgba(109,93,240,.5)}
.ms-shape span{width:30px;height:30px;display:grid;place-items:center;color:var(--lime-d)}
html[data-theme="dark"] .ms-shape span{color:#B7AEFF}
.ms-shape svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ms-text-list{display:flex;flex-direction:column;gap:8px}
.ms-text-item{border:1px solid var(--line);background:var(--surface2);border-radius:11px;padding:11px 12px;cursor:pointer;color:var(--text);font-size:14px;font-weight:800;text-align:left}
.ms-text-item:hover{border-color:rgba(109,93,240,.5)}
.ms-lib-list{display:flex;flex-direction:column;gap:8px}
.ms-lib-item{display:grid;grid-template-columns:46px minmax(0,1fr) auto auto auto;gap:8px;align-items:center;background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:8px}
.ms-lib-item img{width:46px;height:46px;object-fit:cover;border-radius:9px;display:block}
.ms-lib-ic{width:46px;height:46px;border-radius:9px;background:var(--lime-soft);color:var(--lime-d);display:grid;place-items:center;font-size:20px}
.ms-lib-name{font-size:12.5px;font-weight:700;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-lib-name small{display:block;font-weight:500;color:var(--muted);font-size:11px}
.ms-lib-tool{max-width:130px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:9px;padding:7px 6px;font-size:12px;font-family:inherit}
.ms-lib-del{width:28px;height:28px;border:none;border-radius:8px;background:none;color:var(--muted);cursor:pointer;font-size:14px}
.ms-lib-del:hover{background:rgba(255,90,90,.12);color:#D92D20}
.ms-proj-list .ms-group-h{margin:2px 0 10px}
.ms-proj-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.ms-proj-chip{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--surface2);border-radius:999px;padding:8px 12px;cursor:pointer;color:var(--text);font-size:12.5px;font-weight:700}
.ms-proj-chip:hover{border-color:rgba(109,93,240,.5)}
.ms-proj-chip span{width:22px;height:22px;display:grid;place-items:center;color:var(--lime-d)}
html[data-theme="dark"] .ms-proj-chip span{color:#B7AEFF}
.ms-proj-chip .ic{width:16px;height:16px}
.ms-proj-chip b{font-size:10px}
.ms-design-list{display:flex;flex-direction:column;gap:8px}
.ms-design-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:13.5px;font-weight:700}
/* center canvas */
.ms-ws-center{min-width:0}
.ms-canvas-bar{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.ms-switcher{display:flex;gap:6px;overflow-x:auto;flex:1;min-width:0;padding-bottom:2px;scrollbar-width:thin}
.ms-sw-btn{display:flex;align-items:center;gap:7px;flex:none;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:999px;padding:8px 13px;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.ms-sw-btn:hover{color:var(--text);border-color:rgba(109,93,240,.5)}
.ms-sw-btn.active{background:var(--lime);border-color:var(--lime);color:#fff}
.ms-sw-ic{width:20px;height:20px;display:grid;place-items:center;flex:none}
.ms-sw-ic .ic{width:16px;height:16px}
.ms-sw-ic b{font-size:9px}
.ms-canvas-home{flex:none;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:999px;padding:8px 13px;font-size:12.5px;font-weight:700;cursor:pointer}
.ms-canvas-home:hover{color:var(--text)}
.ms-canvas-host{min-height:560px;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:visible}
.ms-canvas-empty{padding:64px 24px;text-align:center}
.ms-empty-art{width:84px;height:84px;border-radius:24px;background:var(--lime-soft);color:var(--lime-d);display:grid;place-items:center;margin:0 auto 16px}
html[data-theme="dark"] .ms-empty-art{color:#B7AEFF}
.ms-empty-art .ic{width:42px;height:42px}
.ms-canvas-empty h3{margin:0 0 6px;font-size:22px}
.ms-canvas-empty p{margin:0 0 18px;color:var(--muted);font-size:14.5px}
.ms-empty-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
/* a docked tool view fills the host; its own top bar stays at the top */
#msCanvasHost .tool-view.active{border:none;border-radius:20px;box-shadow:none}
#msCanvasHost .tool-view .tool-topbar,#msCanvasHost .tool-view .ve-topbar{border-radius:20px 20px 0 0}
/* focused mode: panels hide, center expands to ~1100px */
.ms-workspace.tool-open{grid-template-columns:minmax(0,1100px);justify-content:center}
.ms-workspace.tool-open .ms-ws-left,.ms-workspace.tool-open .ms-ws-right{display:none}
.ms-transport{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:9px 14px;margin-top:12px}
.ms-tp-play{width:36px;height:36px;border:none;border-radius:50%;background:var(--lime);color:#fff;font-size:14px;cursor:pointer;flex:none;display:grid;place-items:center}
.ms-tp-play .ic{width:16px;height:16px}
.ms-qa-head h3 .ic{width:16px;height:16px;vertical-align:-3px}
.ms-tp-time{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.ms-tp-seek{flex:1;min-width:60px;accent-color:var(--lime)}
.ms-tp-name{font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}
/* quick access + promo */
.ms-qa{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:14px}
.ms-qa-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.ms-qa-head h3{margin:0;font-size:14.5px}
.ms-qa-head button{border:none;background:none;color:var(--lime-d);font-size:12px;font-weight:800;cursor:pointer}
html[data-theme="dark"] .ms-qa-head button{color:#B7AEFF}
.ms-qa-item{display:flex;align-items:center;gap:10px;width:100%;border:1px solid var(--line);background:var(--surface2);border-radius:12px;padding:10px 12px;margin-bottom:8px;cursor:pointer;color:var(--text);font-size:13.5px;font-weight:700;text-align:left}
.ms-qa-item:last-child{margin-bottom:0}
.ms-qa-item:hover{border-color:rgba(109,93,240,.5)}
.ms-qa-ic{width:32px;height:32px;flex:none;border-radius:9px;background:var(--lime-soft);color:var(--lime-d);display:grid;place-items:center;font-size:14px;font-weight:900}
html[data-theme="dark"] .ms-qa-ic{color:#B7AEFF}
.ms-qa-ic .ic{width:17px;height:17px}
.ms-promo{background:linear-gradient(150deg,#3D2FA8,#6D5DF0);border-radius:18px;padding:18px 16px;color:#fff}
.ms-promo b{display:block;font-size:15.5px;line-height:1.3}
.ms-promo p{margin:6px 0 12px;font-size:12.5px;color:rgba(255,255,255,.85)}
.ms-promo button{border:none;background:#fff;color:#4A3BC2;border-radius:999px;padding:9px 15px;font-weight:900;font-size:12.5px;cursor:pointer}
/* --- all-tools grid / groups / swatches / settings / help --- */
.ms-group-h{font-size:16px;margin:20px 0 12px}
.ms-group-h:first-child{margin-top:2px}
.ms-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.ms-card{display:flex;flex-direction:column;gap:6px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px;cursor:pointer;color:var(--text);box-shadow:0 8px 20px rgba(20,24,60,.05)}
.ms-card:hover{border-color:rgba(109,93,240,.5);transform:translateY(-2px);box-shadow:0 16px 32px rgba(20,24,60,.10)}
.ms-card-ic{width:46px;height:46px;border-radius:13px;background:var(--lime-soft);color:var(--lime-d);display:grid;place-items:center;font-size:15px;font-weight:900;margin-bottom:4px}
html[data-theme="dark"] .ms-card-ic{color:#B7AEFF}
.ms-card-ic .ic{width:24px;height:24px}
.ms-card b{font-size:15.5px;line-height:1.25}
.ms-card>span:nth-child(3){font-size:13px;color:var(--muted);line-height:1.5;flex:1}
.ms-card .open{font-size:12.5px;font-weight:800;color:var(--lime-d);margin-top:6px}
html[data-theme="dark"] .ms-card .open{color:#B7AEFF}
.ms-swatches{display:flex;flex-wrap:wrap;gap:12px}
.ms-swatch{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:12px;cursor:pointer;color:var(--text);font-size:12.5px;font-weight:700;text-align:left;line-height:1.4;min-width:130px}
.ms-swatch span{display:block;height:40px;border-radius:9px;margin-bottom:8px;border:1px solid rgba(11,14,30,.08)}
.ms-swatch small{color:var(--muted);font-weight:600}
.ms-lib-bar{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.ms-lib-bar .hint{font-size:13px;color:var(--muted)}
.ms-lib-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.ms-set-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ms-set-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px}
.ms-set-card h3{margin:0 0 6px;font-size:16px}
.ms-set-card p{margin:0 0 10px;font-size:13.5px;color:var(--muted);line-height:1.55}
.ms-set-card p b{color:var(--text)}
.ms-set-card .hint{font-size:12px;margin:10px 0 0}
.ms-help-list{display:flex;flex-direction:column;gap:12px;max-width:760px}
.ms-help-item{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px}
.ms-help-item h3{margin:0 0 6px;font-size:15.5px}
.ms-help-item p{margin:0 0 8px;font-size:13.5px;color:var(--muted);line-height:1.6}
.ms-help-item p:last-child{margin-bottom:0}
.ms-help-item p b{color:var(--text)}
/* search filtering */
.ms-tile.hide,.ms-card.hide,.ms-tpl-card.hide,.ms-cat.hide{display:none!important}
/* premium modal (shared honest message — everything is already free) */
.ms-modal{position:fixed;inset:0;background:rgba(3,5,12,.62);display:flex;align-items:center;justify-content:center;z-index:200;padding:16px}
.ms-modal-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);max-width:460px;width:100%;padding:28px 24px;text-align:center}
.ms-modal-card h3{margin:0 0 8px;font-size:20px}
.ms-modal-card p{margin:0 0 12px;font-size:14px;color:var(--muted);line-height:1.6}
.ms-modal-card .ctl-row{justify-content:center;margin-top:16px}
.ms-modal-x{position:absolute;top:12px;right:12px;width:32px;height:32px;border:none;border-radius:50%;background:var(--surface2);color:var(--muted);cursor:pointer;font-size:15px}
/* mobile bottom nav (≤900px in responsive.css) */
.ms-bottomnav,.st-bottomnav{display:none}
/* v31: site-wide bottom menu — hidden on desktop, shown ≤899px
   (responsive.css). */
.site-bottomnav{display:none}

/* ================= v30 — TOOLS STUDIO (Studio 2) ================= */
#toolsStudio{flex-direction:row;align-items:stretch;min-height:100vh;background:var(--bg)}
.ts-side{width:240px;flex:none;background:#0B0F1E;color:#E8EAF6;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;padding:16px 14px;z-index:60}
.ts-side .ic{width:20px;height:20px;flex:none}
.ts-back{display:flex;align-items:center;gap:8px;background:none;border:1px solid rgba(255,255,255,.14);color:#C9CFE8;border-radius:10px;padding:8px 12px;font-size:13px;font-weight:700;cursor:pointer;margin-bottom:14px}
.ts-back:hover{background:rgba(255,255,255,.07);color:#fff}
.ts-back .ic{width:16px;height:16px}
.ts-brand{display:flex;align-items:center;gap:10px;padding:4px 8px 16px}
.ts-brand .ts-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#6D5DF0,#8B7CFF);display:grid;place-items:center;color:#fff;flex:none}
.ts-brand .ts-mark .ic{width:22px;height:22px}
.ts-brand b{display:block;font-size:17px;line-height:1.1}
.ts-brand small{font-size:10px;letter-spacing:.18em;color:#9AA3C0;font-weight:800}
.ts-nav{display:flex;flex-direction:column;gap:3px}
.ts-nav-btn{display:flex;align-items:center;gap:11px;background:none;border:none;color:#C9CFE8;border-radius:11px;padding:9px 12px;font-size:14px;font-weight:600;cursor:pointer;text-align:left;width:100%}
.ts-nav-btn:hover{background:rgba(255,255,255,.06);color:#fff}
.ts-nav-btn.active{background:#6D5DF0;color:#fff;box-shadow:0 8px 20px rgba(109,93,240,.45)}
.ts-upgrade{margin-top:auto;background:linear-gradient(150deg,#4A3BC2,#6D5DF0);border-radius:16px;padding:16px 14px;text-align:center;color:#fff}
.ts-upgrade .ts-crown{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.16);display:grid;place-items:center;margin:0 auto 8px}
.ts-upgrade .ts-crown .ic{width:22px;height:22px;color:#FFC53D}
.ts-upgrade b{display:block;font-size:14.5px}
.ts-upgrade p{font-size:12px;color:rgba(255,255,255,.82);margin:4px 0 10px;line-height:1.45}
.ts-go-premium{background:#FFC53D;color:#231603;border:none;border-radius:999px;padding:9px 16px;font-weight:900;font-size:13px;cursor:pointer}
.ts-profile{display:flex;align-items:center;gap:10px;padding:12px 8px 2px;border-top:1px solid rgba(255,255,255,.09);margin-top:12px}
.ts-profile .ts-ava{width:38px;height:38px;flex:none;border-radius:50%;background:linear-gradient(145deg,#6D5DF0,#8B7CFF);color:#fff;display:grid;place-items:center;font-weight:900;font-size:15px}
.ts-profile b{display:block;font-size:13.5px;line-height:1.2}
.ts-profile small{font-size:11.5px;color:#9AA3C0}
.ts-profile .ts-prof-btn{margin-left:auto;border:1px solid rgba(255,255,255,.16);background:none;color:#C9CFE8;border-radius:9px;padding:6px 10px;font-size:12px;font-weight:700;cursor:pointer;flex:none}
.ts-main{flex:1;min-width:0;padding:18px 28px 48px;display:flex;flex-direction:column}
.ts-topbar{display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:10px 0 12px;margin-bottom:6px}
.ts-burger{display:none;width:40px;height:40px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);cursor:pointer;place-items:center;flex:none}
.ts-burger .ic{width:20px;height:20px}
.ts-search{flex:1;display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 8px 0 16px;min-width:0;box-shadow:0 6px 18px rgba(20,24,60,.05)}
.ts-search .ss-ic{color:var(--muted2);flex:none;display:grid;place-items:center}
.ts-search .ss-ic .ic{width:18px;height:18px}
.ts-search input{flex:1;min-width:0;border:none;background:none;outline:none;color:var(--text);font-size:14.5px;padding:12px 0;font-family:inherit}
.ts-search input::placeholder{color:var(--muted2)}
.ts-search kbd{flex:none;font-family:inherit;font-size:11px;color:var(--muted2);border:1px solid var(--line);border-radius:6px;padding:2px 6px;background:var(--surface2)}
.ts-top-actions{display:flex;align-items:center;gap:10px;flex:none}
.ts-create{display:flex;align-items:center;gap:6px;background:linear-gradient(135deg,#4A3BC2,#6D5DF0);color:#fff;border:none;border-radius:999px;padding:11px 18px;font-weight:800;font-size:13.5px;cursor:pointer;box-shadow:0 10px 22px rgba(109,93,240,.35)}
.ts-bell{position:relative;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text);cursor:pointer;display:grid;place-items:center}
.ts-bell .ic{width:19px;height:19px}
.ts-bell-dot{position:absolute;top:8px;right:9px;width:9px;height:9px;border-radius:50%;background:#FF5A5A;border:2px solid var(--surface)}
.ts-avatar{width:40px;height:40px;border-radius:50%;border:none;background:linear-gradient(145deg,#6D5DF0,#8B7CFF);color:#fff;font-weight:900;font-size:16px;cursor:pointer;flex:none}
.ts-pop{position:absolute;top:calc(100% + 6px);right:0;width:320px;max-width:calc(100vw - 32px);background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:8px;z-index:50}
#tsBellPop{right:56px}
.ts-pop-item{padding:10px 12px;border-radius:11px}
.ts-pop-item+.ts-pop-item{border-top:1px solid var(--line)}
.ts-pop-item b{display:block;font-size:13.5px}
.ts-pop-item span{font-size:12.5px;color:var(--muted);line-height:1.45}
.ts-pop-btn{display:block;width:100%;margin-top:8px;background:var(--lime);color:#fff;border:none;border-radius:11px;padding:11px;font-weight:800;font-size:14px;cursor:pointer}
.ts-create-pop{position:absolute;top:calc(100% + 6px);right:100px;width:360px;max-width:calc(100vw - 32px);max-height:min(70vh,560px);overflow-y:auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:12px;z-index:50}
.ts-create-pop h4{margin:8px 6px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted2)}
.ts-create-pop h4:first-child{margin-top:2px}
.ts-create-item{display:flex;align-items:center;gap:10px;width:100%;border:none;background:none;border-radius:11px;padding:9px 10px;cursor:pointer;color:var(--text);font-size:13.5px;font-weight:600;text-align:left}
.ts-create-item:hover{background:var(--lime-soft)}
.ts-create-item span{width:30px;height:30px;flex:none;border-radius:9px;background:var(--lime-soft);color:var(--lime-d);display:grid;place-items:center}
html[data-theme="dark"] .ts-create-item span{color:#B7AEFF}
.ts-create-item .ic{width:16px;height:16px}
.ts-view{display:none}
.ts-view.active{display:block}
.ts-view-head{margin:6px 0 16px}
.ts-view-head h2{margin:0;font-size:24px}
.ts-view-head p{margin:4px 0 0;color:var(--muted);font-size:14px}
/* home: hero + groups (left) + rail (right) */
.ts-home-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.ts-hero{position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(115deg,#0B1030 0%,#1B1440 42%,#2A1B6B 74%,#4A3BC2 100%);color:#fff;padding:32px 34px;min-height:188px;display:flex;align-items:center;margin-bottom:18px}
.ts-hero-text{position:relative;z-index:2;max-width:560px}
.ts-hero-text h2{margin:0;font-size:clamp(24px,3vw,33px);line-height:1.14;font-weight:900}
.ts-hero-text h2 span{color:#B7AEFF}
.ts-hero-text .ts-tagline{font-size:17px;font-weight:800;margin:6px 0 4px;color:#fff}
.ts-hero-text p{margin:0 0 16px;font-size:14px;color:rgba(255,255,255,.82)}
.ts-explore{background:#fff;color:#2A1B6B;border:none;border-radius:999px;padding:12px 22px;font-weight:900;font-size:14.5px;cursor:pointer;box-shadow:0 12px 26px rgba(0,0,0,.3)}
.ts-hero-icons{position:absolute;inset:0;pointer-events:none}
.ts-float{position:absolute;display:grid;place-items:center;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.24);backdrop-filter:blur(6px);border-radius:16px;color:#fff;box-shadow:0 12px 26px rgba(0,0,0,.22);animation:msfloat 5.5s ease-in-out infinite}
.ts-float .ic{width:24px;height:24px}
.ts-float.f1{width:60px;height:60px;right:15%;top:16%}
.ts-float.f2{width:52px;height:52px;right:29%;bottom:12%;animation-delay:.9s}
.ts-float.f3{width:56px;height:56px;right:5%;bottom:20%;animation-delay:1.7s}
.ts-float.f4{width:48px;height:48px;right:24%;top:8%;animation-delay:2.4s}
.ts-float.f5{width:44px;height:44px;right:37%;top:46%;animation-delay:3s}
.ts-float.f5 .ic{width:20px;height:20px}
/* group cards (2 rows x 3) — Studio 2 tools ONLY */
.ts-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ts-group{border-radius:20px;padding:16px;border:1px solid var(--line)}
.ts-group.g-ai{background:rgba(139,124,255,.13)}
.ts-group.g-seo{background:rgba(46,204,153,.12)}
.ts-group.g-biz{background:rgba(255,170,60,.12)}
.ts-group.g-email{background:rgba(80,140,255,.13)}
.ts-group.g-utils{background:rgba(255,110,160,.12)}
.ts-group.g-brand{background:rgba(20,184,166,.13)}
html[data-theme="light"] .ts-group.g-ai{background:#F3EDFF}
html[data-theme="light"] .ts-group.g-seo{background:#EAF6F1}
html[data-theme="light"] .ts-group.g-biz{background:#FFF3E2}
html[data-theme="light"] .ts-group.g-email{background:#E8F1FF}
html[data-theme="light"] .ts-group.g-utils{background:#FFE9F2}
html[data-theme="light"] .ts-group.g-brand{background:#E6F7F5}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) .ts-group.g-ai{background:#F3EDFF}
html:not([data-theme="dark"]) .ts-group.g-seo{background:#EAF6F1}
html:not([data-theme="dark"]) .ts-group.g-biz{background:#FFF3E2}
html:not([data-theme="dark"]) .ts-group.g-email{background:#E8F1FF}
html:not([data-theme="dark"]) .ts-group.g-utils{background:#FFE9F2}
html:not([data-theme="dark"]) .ts-group.g-brand{background:#E6F7F5}}
.ts-group-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.ts-group-ic{width:40px;height:40px;flex:none;border-radius:12px;display:grid;place-items:center;color:#fff}
.g-ai .ts-group-ic{background:linear-gradient(145deg,#6D5DF0,#8B7CFF)}
.g-seo .ts-group-ic{background:linear-gradient(145deg,#0F766E,#14B8A6)}
.g-biz .ts-group-ic{background:linear-gradient(145deg,#D97706,#F59E0B)}
.g-email .ts-group-ic{background:linear-gradient(145deg,#3B82F6,#60A5FA)}
.g-utils .ts-group-ic{background:linear-gradient(145deg,#DB2777,#F472B6)}
.g-brand .ts-group-ic{background:linear-gradient(145deg,#0D9488,#2DD4BF)}
.ts-group-ic .ic{width:21px;height:21px}
.ts-group-head h3{margin:0;font-size:15.5px;line-height:1.2}
.ts-group-head p{margin:2px 0 0;font-size:11.5px;color:var(--muted)}
.ts-view-all{margin-left:auto;border:none;background:rgba(255,255,255,.10);color:var(--text);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800;cursor:pointer;flex:none;box-shadow:0 4px 10px rgba(20,24,60,.08);white-space:nowrap}
html[data-theme="light"] .ts-view-all{background:rgba(255,255,255,.75)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) .ts-view-all{background:rgba(255,255,255,.75)}}
.ts-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ts-tile{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:13px;padding:11px 4px;cursor:pointer;color:var(--text);font-size:11px;font-weight:700;line-height:1.3;min-height:82px;min-width:0;overflow-wrap:break-word}
html[data-theme="light"] .ts-tile{background:rgba(255,255,255,.85);border-color:rgba(11,14,30,.06)}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) .ts-tile{background:rgba(255,255,255,.85);border-color:rgba(11,14,30,.06)}}
.ts-tile:hover{border-color:rgba(109,93,240,.5);box-shadow:0 8px 18px rgba(20,24,60,.10)}
.ts-tile-ic{width:32px;height:32px;border-radius:10px;background:var(--lime-soft);color:var(--lime-d);display:grid;place-items:center;font-size:12px;font-weight:900;flex:none}
html[data-theme="dark"] .ts-tile-ic{color:#B7AEFF}
.ts-tile-ic .ic{width:18px;height:18px}
/* group focus ("View All" expands one group; others hide) */
.ts-groups.focused .ts-group{display:none}
.ts-groups.focused .ts-group.focus{display:block;grid-column:1/-1}
.ts-groups.focused .ts-group.focus .ts-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.ts-group.flash{animation:tsflash .9s ease 2}
@keyframes tsflash{0%{box-shadow:0 0 0 0 rgba(109,93,240,.55)}100%{box-shadow:0 0 0 14px rgba(109,93,240,0)}}
.ts-showall{display:none;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:10px 14px;margin-bottom:14px;font-size:13.5px;font-weight:700}
.ts-showall button{margin-left:auto;border:none;background:var(--lime);color:#fff;border-radius:999px;padding:8px 14px;font-weight:800;font-size:12.5px;cursor:pointer}
.ts-no-match{margin:16px 0 0;color:var(--muted);font-size:14.5px}
.ts-builders{margin-top:16px;border-radius:20px;padding:16px;border:1px dashed rgba(139,124,255,.5);background:color-mix(in srgb,var(--lime-soft) 55%,var(--surface))}
.ts-builders .ts-group-head{margin-bottom:12px}
.ts-builders .ts-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.ts-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}
.ts-strip-card{display:flex;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px}
.ts-strip-ic{width:42px;height:42px;flex:none;border-radius:12px;display:grid;place-items:center;background:var(--lime-soft);color:var(--lime-d)}
html[data-theme="dark"] .ts-strip-ic{color:#B7AEFF}
.ts-strip-ic .ic{width:22px;height:22px}
.ts-strip-card b{display:block;font-size:14px;line-height:1.25}
.ts-strip-card span{font-size:12px;color:var(--muted)}
.ts-classic{margin-top:16px;text-align:center}
.ts-classic button{border:none;background:none;color:var(--lime-d);font-size:13.5px;font-weight:800;cursor:pointer}
html[data-theme="dark"] .ts-classic button{color:#B7AEFF}
/* right rail */
.ts-rail{display:flex;flex-direction:column;gap:16px;position:sticky;top:84px}
.ts-rail-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px}
.ts-rail-card h3{margin:0 0 4px;font-size:15.5px;display:flex;align-items:center;gap:8px}
.ts-rail-card h3 .ic{width:19px;height:19px;color:var(--lime-d)}
html[data-theme="dark"] .ts-rail-card h3 .ic{color:#B7AEFF}
.ts-rail-card .ts-rail-sub{font-size:12.5px;color:var(--muted);margin:0 0 12px}
.ts-growth-num{font-size:30px;font-weight:900;line-height:1.1}
.ts-growth-num small{font-size:13px;font-weight:700;color:var(--muted)}
.ts-bar-row{display:flex;align-items:center;gap:9px;margin-top:9px;font-size:12.5px;font-weight:600}
.ts-bar-row .ts-bar-label{width:118px;flex:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ts-bar-track{flex:1;height:8px;border-radius:99px;background:var(--line);overflow:hidden}
.ts-bar-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#6D5DF0,#8B7CFF)}
.ts-bar-row .ts-bar-n{width:26px;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}
.ts-qa-btn{display:flex;align-items:center;gap:10px;width:100%;border:1px solid var(--line);background:var(--surface2);border-radius:12px;padding:11px 12px;margin-bottom:8px;cursor:pointer;color:var(--text);font-size:13.5px;font-weight:700;text-align:left}
.ts-qa-btn:last-child{margin-bottom:0}
.ts-qa-btn:hover{border-color:rgba(109,93,240,.5)}
.ts-qa-btn span{width:30px;height:30px;flex:none;border-radius:9px;background:var(--lime-soft);color:var(--lime-d);display:grid;place-items:center}
html[data-theme="dark"] .ts-qa-btn span{color:#B7AEFF}
.ts-qa-btn .ic{width:16px;height:16px}
.ts-promo{background:linear-gradient(150deg,#0B1030,#2A1B6B);border-radius:18px;padding:18px 16px;color:#fff;position:relative;overflow:hidden}
.ts-promo::after{content:"↗";position:absolute;right:12px;bottom:2px;font-size:64px;font-weight:900;color:rgba(255,255,255,.12);line-height:1}
.ts-promo b{display:block;font-size:17px;line-height:1.3}
.ts-promo p{margin:6px 0 12px;font-size:12.5px;color:rgba(255,255,255,.82)}
.ts-promo button{border:none;background:#FFC53D;color:#231603;border-radius:999px;padding:10px 16px;font-weight:900;font-size:13px;cursor:pointer}
/* workspace (tool open: views hide, workspace shows) */
.ts-workspace{display:none}
#toolsStudio.ts-tool-open .ts-views{display:none}
#toolsStudio.ts-tool-open .ts-workspace{display:block}
.ts-canvas-bar{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.ts-tool-select{flex:1;min-width:220px;max-width:420px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:10px 14px;font-size:13.5px;font-weight:700;font-family:inherit;cursor:pointer}
.ts-canvas-home{flex:none;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:999px;padding:10px 15px;font-size:12.5px;font-weight:700;cursor:pointer}
.ts-canvas-home:hover{color:var(--text)}
.ts-canvas-host{position:relative;min-height:560px;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
#tsCanvasHost .tool-view.active{border:none;border-radius:20px;box-shadow:none}
#tsCanvasHost .tool-view .tool-topbar{border-radius:20px 20px 0 0}
/* analytics / projects / templates / brand kit / settings (Tools Studio) */
.ts-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}
.ts-stat{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px}
.ts-stat strong{display:block;font-size:30px;line-height:1.1}
.ts-stat label{display:block;font-size:13px;font-weight:800;margin-top:4px}
.ts-stat span{font-size:12.5px;color:var(--muted)}
.ts-proj-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.ts-proj-chip{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--surface2);border-radius:999px;padding:8px 12px;cursor:pointer;color:var(--text);font-size:12.5px;font-weight:700}
.ts-proj-chip:hover{border-color:rgba(109,93,240,.5)}
.ts-proj-chip span{width:22px;height:22px;display:grid;place-items:center;color:var(--lime-d)}
html[data-theme="dark"] .ts-proj-chip span{color:#B7AEFF}
.ts-proj-chip .ic{width:16px;height:16px}
.ts-xlink{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px;max-width:640px;text-align:center}
.ts-xlink h3{margin:0 0 8px;font-size:18px}
.ts-xlink p{margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.6}
.ts-swatches{display:flex;flex-wrap:wrap;gap:12px}
.ts-swatch{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:12px;cursor:pointer;color:var(--text);font-size:12.5px;font-weight:700;text-align:left;line-height:1.4;min-width:130px}
.ts-swatch span{display:block;height:40px;border-radius:9px;margin-bottom:8px;border:1px solid rgba(11,14,30,.08)}
.ts-swatch small{color:var(--muted);font-weight:600}
.ts-set-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ts-set-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px}
.ts-set-card h3{margin:0 0 6px;font-size:16px}
.ts-set-card p{margin:0 0 10px;font-size:13.5px;color:var(--muted);line-height:1.55}
.ts-set-card p b{color:var(--text)}
.ts-set-card .hint{font-size:12px;margin:10px 0 0}
.ts-tile.hide,.ts-group.hide{display:none!important}
.ts-bottomnav{display:none}

/* ================= v30 — DRAG & DROP (easy everywhere) ================= */
/* Drop targets get a gradient dashed outline + a floating hint pill
   while a file drag hovers them. pointer-events:none on the pill so
   the tool's own dropzone underneath still receives the drop. */
#msCanvasHost{position:relative}
.ms-drop-ready,.ts-drop-ready{outline:2px dashed var(--lime);outline-offset:-6px}
.ms-drop-ready::after,.ts-drop-ready::after{content:"Drop files to upload";position:absolute;top:14px;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,#4A3BC2,#6D5DF0);color:#fff;font-size:12.5px;font-weight:800;padding:9px 16px;border-radius:999px;z-index:60;pointer-events:none;box-shadow:0 12px 26px rgba(109,93,240,.45);white-space:nowrap}
#msPanelUploads.ms-drop-ready::after{content:"Drop files to add to your library"}
#msViewLibrary.ms-drop-ready::after{content:"Drop files to add to your library"}
.ts-drop-ready::after{content:"Drop a file for this tool"}
/* library-drag drop target highlight (switcher button / tile / canvas) */
.ms-drop-target{outline:2px solid var(--lime)!important;box-shadow:0 0 0 4px rgba(109,93,240,.28)!important;border-radius:13px}
/* floating ghost that follows the pointer during a library drag */
.ms-drag-ghost{position:fixed;left:0;top:0;z-index:300;pointer-events:none;display:flex;align-items:center;gap:9px;background:var(--surface);border:1.5px solid var(--lime);border-radius:13px;padding:9px 13px;box-shadow:0 20px 44px rgba(0,0,0,.38);font-size:12.5px;font-weight:700;color:var(--text);max-width:230px;opacity:.96;transform:translate(-100px,-100px)}
.ms-drag-ghost img{width:34px;height:34px;object-fit:cover;border-radius:8px;flex:none}
.ms-drag-ghost .ms-lib-ic{width:34px;height:34px;font-size:16px}
.ms-drag-ghost span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-lib-item.dragging{opacity:.4}
.ms-lib-grip{width:26px;flex:none;text-align:center;color:var(--muted2);cursor:grab;touch-action:none;font-size:15px;letter-spacing:1px;user-select:none;line-height:1;padding:6px 0}
.ms-lib-grip:active{cursor:grabbing}
.ms-lib-item{grid-template-columns:26px 46px minmax(0,1fr) auto auto auto}
/* "Send cutout to…" menu (BG Remover → image tools) */
.ms-sendto{position:relative;flex:none}
.ms-sendto-btn{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:8px 13px;font-size:12.5px;font-weight:800;cursor:pointer}
.ms-sendto-btn:hover{border-color:rgba(109,93,240,.5)}
.ms-sendto-menu{position:absolute;top:calc(100% + 6px);right:0;width:230px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:6px;z-index:50}
.ms-sendto-menu button{display:flex;align-items:center;gap:9px;width:100%;border:none;background:none;border-radius:10px;padding:9px 10px;cursor:pointer;color:var(--text);font-size:13px;font-weight:700;text-align:left}
.ms-sendto-menu button:hover{background:var(--lime-soft)}
.ms-sendto-menu button span{width:26px;height:26px;flex:none;border-radius:8px;background:var(--lime-soft);color:var(--lime-d);display:grid;place-items:center}
html[data-theme="dark"] .ms-sendto-menu button span{color:#B7AEFF}
.ms-sendto-menu button .ic{width:15px;height:15px}

/* ================= v30 — TOOL INTERIOR POLISH (docked views) ================= */
/* The host is the card — the tool shell inside drops its own double
   card (transparent, no border/shadow) so a docked tool reads as one
   clean surface, not a card inside a card. Padding kept for spacing. */
#msCanvasHost .tool-view .tool-shell,#tsCanvasHost .tool-view .tool-shell{background:transparent;border:none;box-shadow:none;border-radius:0;padding:16px}
/* v30.1: ...but the VIEW itself keeps its dark backing in BOTH
   themes. Every .tool-view scopes --bg to #070A12 (v29), and the top
   bar / title / steps / hints are light text — on the light-theme
   host (#fff) they were invisible without it (the light docked QR
   screenshot showed a blank top bar + title). The host stays the
   card (border + shadow); the view is the dark surface inside it. */
#msCanvasHost .tool-view,#tsCanvasHost .tool-view{background:var(--bg);border-radius:19px}
/* gradient accent line under each studio's canvas bar */
.ms-canvas-bar,.ts-canvas-bar{position:relative}
.ms-canvas-bar::after,.ts-canvas-bar::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;border-radius:2px;background:linear-gradient(90deg,#6D5DF0,#8B7CFF,#14B8A6);opacity:.85}
/* docked tools glide in (beats the base .tool-view.active fade) */
#msCanvasHost .tool-view.active,#tsCanvasHost .tool-view.active{animation:nxdock .32s ease}
@keyframes nxdock{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
/* glass control panels + visible focus inside docked tools */
#msCanvasHost .tool-layout>.controls,#tsCanvasHost .tool-layout>.controls{background:color-mix(in srgb,var(--surface) 84%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#msCanvasHost :focus-visible,#tsCanvasHost :focus-visible{outline:2px solid var(--lime);outline-offset:2px;border-radius:8px}
#msCanvasHost .btn,#tsCanvasHost .btn{transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
#msCanvasHost .btn-lime:hover,#tsCanvasHost .btn-lime:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(109,93,240,.35)}

/* ================= v33.1 — CHATBOT BUILDER LAUNCH SCREEN ================= */
/* The old bldchat brief-builder is gone; #tool-bldchat is now a premium
   launch screen for the real Chatbot Builder (pages/chatbots/). The
   tool-view re-scopes every theme var to the dark palette (v29, line
   ~2501), so these rules render identically in both site themes.
   Contrast (all AA, computed): text #F2F4FA on #070A12 18.00:1, on
   #161B29 15.62:1; muted #A7AEC4 on #070A12 8.95:1; lime icon #8B7CFF
   on the lime-soft chip 4.17:1 (non-text, 3:1 bar). The CTA reuses the
   v31.2 fixed .btn-lime gradient (#6558E8/#5B4BDB/#4A3BC2) — white on
   its lightest stop is 5.10:1. */
#page-team #tool-bldchat .cb-launch{max-width:640px;margin:18px 0 8px}
#page-team #tool-bldchat .cb-launch-lead{font-size:16.5px;line-height:1.65;color:var(--text);margin:0 0 20px}
#page-team #tool-bldchat .cb-launch-list{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:12px}
#page-team #tool-bldchat .cb-launch-list li{display:flex;gap:12px;align-items:flex-start;background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:13px 15px;font-size:14.5px;line-height:1.55;color:var(--text)}
#page-team #tool-bldchat .cb-launch-list li b{font-weight:800}
#page-team #tool-bldchat .cb-launch-ic{width:26px;height:26px;flex:none;border-radius:50%;background:var(--lime-soft);color:var(--lime);display:grid;place-items:center;margin-top:1px}
#page-team #tool-bldchat .cb-launch-ic .ic{width:14px;height:14px}
#page-team #tool-bldchat .cb-launch-cta{min-height:56px;padding:15px 26px;font-size:16px}
#page-team #tool-bldchat .cb-launch-note{color:var(--muted);font-size:13px;margin:16px 0 0}
@media(max-width:560px){
  #page-team #tool-bldchat .cb-launch-lead{font-size:15.5px}
  #page-team #tool-bldchat .cb-launch-list li{padding:12px 13px;font-size:14px}
  #page-team #tool-bldchat .cb-launch-cta{width:100%}
}

/* ============ v34.1: AURORA STUDIO — the Studio look redesign (D1) ============
   LOOK-ONLY release: no behaviour, no tool logic, no IDs / data-attrs /
   JS hooks touched. The v25 Canva-like flat look (pastel tiles, plain
   hero, full-width bottom bar) is replaced by one coherent premium
   system built from the OFFICIAL icon's own palette — the ribbon's
   cyan -> violet -> fuchsia aurora:
   - New tokens --nx-*: the aurora gradient (decorative hairlines,
     glows, blobs) and the violet-range fill gradient (every
     text-bearing fill: active chips/nav, CTAs, icon tiles).
     Text-bearing fills stay in the violet range ON PURPOSE: white on
     cyan #22D3EE is 1.9:1 — cyan appears only decoratively or behind
     dark text. The fill's worst stop is #6D5DF0 at 4.69:1 (AA).
   - Header: the premium logo lockup (cropped ribbon-N mark + HTML
     "NexLune AI" wordmark, gradient "AI") + aurora top hairline.
   - Landing: the page hero becomes a fixed-dark aurora banner (navy
     gradient + drifting cyan/fuchsia blobs, gradient display word);
     the greeting becomes a glass panel with an aurora hairline; the
     search becomes a floating glass bar with an aurora focus glow;
     tool cards become glass with an aurora top hairline on hover and
     rich gradient icon tiles (white icons, 3.68:1+ on every tile).
   - Tool-view chrome: the v29 dark glass base stays; the accents move
     to the aurora fill + a cyan ambient radial in the shell.
   - Bottom menus become floating glass docks (responsive.css).
   - Micro-interactions are CSS-only: card lift + glow, icon-tile
     scale/rotate on hover, drifting hero blobs (killed by the global
     prefers-reduced-motion rule, line 42), gradient focus glows.
   Contrast: 76 pairs computed in Python (studio-look/d1_contrast.py),
   0 failures — worst text pair 4.69:1 (white on #6D5DF0), worst icon
   pair 3.68:1 vs the 3.0 bar. Two pre-existing sub-AA values are fixed
   here: .sc-meta moves --muted2 -> --muted (3.9:1 -> 6.68:1 light) and
   .ms-side-foot small #6E7699 -> #8B93B8 (4.28:1 -> 6.32:1). */
:root{--nx-cyan:#22D3EE;--nx-violet:#6D5DF0;--nx-fuchsia:#C026D3;--nx-fill:linear-gradient(135deg,#4A3BC2,#6D5DF0 55%,#7C3AED);--nx-aurora:linear-gradient(90deg,#22D3EE,#6D5DF0 45%,#C026D3);--nx-word:linear-gradient(90deg,#67E8F9,#C4B5FD,#F0ABFC);--nx-hero:#0B1030}

/* --- premium logo lockup (JOB 3): the cropped ribbon-N mark in a dark
   tile + the HTML wordmark. The mark PNG is 505x295 (9x the 56px
   display width); object-fit:cover crops only dark navy edges. The
   !important flags beat the v-premium .logo-mark rule (line 561). --- */
.logo-mark{width:56px;height:36px;border-radius:11px;overflow:hidden;padding:0;background:#0A0F24!important;box-shadow:0 6px 18px rgba(10,15,36,.45),0 0 0 1px rgba(139,124,255,.28),inset 0 1px 0 rgba(255,255,255,.14)!important;color:#fff!important;flex:none}
.logo-mark img{width:100%;height:100%;object-fit:cover;display:block}
.logo-word{font-family:"Sora",sans-serif;font-weight:800;font-size:19px;letter-spacing:-.02em;line-height:1.05;white-space:nowrap}
.logo-word .lw-grad{background:linear-gradient(90deg,#67E8F9,#A78BFA,#F0ABFC);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#A78BFA}
html[data-theme="light"] .logo-word .lw-grad{background:linear-gradient(90deg,#0E7490,#4A3BC2,#A21CAF);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#4A3BC2}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) .logo-word .lw-grad{background:linear-gradient(90deg,#0E7490,#4A3BC2,#A21CAF);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#4A3BC2}}
/* sidebar brand marks (Studio + admin + Media/Tools studios): the same
   cropped mark, smaller tile. The old moon SVG is gone from the markup. */
#page-team .canva-side-mark,#page-team .admin-side-mark{width:46px;height:30px;border-radius:9px;overflow:hidden;padding:0;background:#0A0F24;box-shadow:0 4px 12px rgba(10,15,36,.4),0 0 0 1px rgba(139,124,255,.25);flex:none}
#page-team .canva-side-mark img,#page-team .admin-side-mark img{width:100%;height:100%;object-fit:cover;display:block}
.ms-brand .ms-mark,.ts-brand .ts-mark{width:46px;height:30px;border-radius:9px;overflow:hidden;padding:0;background:#0A0F24;box-shadow:0 4px 12px rgba(0,0,0,.4),0 0 0 1px rgba(139,124,255,.25);flex:none}
.ms-brand .ms-mark img,.ts-brand .ts-mark img{width:100%;height:100%;object-fit:cover;display:block}

/* --- aurora hero: the Studio page-hero becomes a fixed-dark banner
   (same in both themes) with drifting cyan/fuchsia blobs at the right,
   away from the left-aligned heading. Blob alphas are capped (.16/.18)
   so text over a blob still clears AA (d1_contrast.py). --- */
#page-team .page-hero{position:relative;overflow:hidden;background:linear-gradient(120deg,#070A1A 0%,#0B1030 42%,#1B1440 78%,#241547 100%);border-bottom:1px solid rgba(139,124,255,.28);padding-bottom:26px}
#page-team .page-hero::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:#22D3EE;filter:blur(130px);opacity:.16;right:-80px;top:-230px;pointer-events:none;animation:nxdrift 14s ease-in-out infinite alternate}
#page-team .page-hero::after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;background:#C026D3;filter:blur(130px);opacity:.18;right:16%;bottom:-290px;pointer-events:none;animation:nxdrift 18s ease-in-out infinite alternate-reverse}
@keyframes nxdrift{from{transform:translate3d(0,0,0)}to{transform:translate3d(-26px,18px,0)}}
#page-team .page-hero .wrap{position:relative;z-index:1}
#page-team .page-hero h1{color:#fff}
#page-team .page-hero h1 em{background:var(--nx-word);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
#page-team .page-hero p{color:rgba(255,255,255,.84)}
#page-team .page-hero .tag-pill{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
#page-team .page-hero .user-chip{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);color:#fff;box-shadow:none}
#page-team .page-hero .user-chip .avatar{background:var(--nx-fill);color:#fff}
#page-team .page-hero .btn-ghost{color:#fff;border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.08)}
#page-team .page-hero .btn-ghost:hover{border-color:rgba(255,255,255,.6);background:rgba(255,255,255,.14)}

/* --- glass greeting panel + quick-create chips --- */
#page-team .canva-hero{position:relative;overflow:hidden;background:color-mix(in srgb,var(--surface) 78%,transparent);backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);border:1px solid var(--line);border-radius:22px;padding:22px 24px;box-shadow:0 18px 44px rgba(0,0,0,.10)}
#page-team .canva-hero::before{content:"";position:absolute;inset:0 0 auto 0;height:2px;background:var(--nx-aurora);opacity:.9}
#page-team .canva-hero h2{letter-spacing:-.025em}
#page-team .qc-chip:hover{border-color:rgba(109,93,240,.6);box-shadow:0 8px 20px rgba(109,93,240,.18),0 0 0 3px rgba(139,124,255,.10)}
#page-team .qc-chip:active{transform:translateY(0) scale(.98)}

/* --- floating glass search + aurora focus glow --- */
#page-team .studio-search{border-radius:18px;background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 12px 32px rgba(0,0,0,.08)}
#page-team .studio-search:focus-within{border-color:rgba(109,93,240,.65);box-shadow:0 0 0 4px rgba(109,93,240,.14),0 0 24px rgba(34,211,238,.12),0 12px 32px rgba(0,0,0,.08)}

/* --- filter chips: active = the aurora fill in BOTH themes (the v25
   light-theme overrides are re-asserted here — same specificity, later
   wins — so light no longer falls back to flat #4A3BC2). --- */
#page-team .fchip.active{background:var(--nx-fill);border-color:transparent;color:#fff;box-shadow:0 8px 20px rgba(109,93,240,.4)}
html[data-theme="light"] #page-team .fchip.active{background:var(--nx-fill);border-color:transparent}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .fchip.active{background:var(--nx-fill);border-color:transparent}}

/* --- glass sidebar rails; active nav = the aurora fill (both themes) --- */
#page-team .canva-side{background:color-mix(in srgb,var(--surface) 82%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
#page-team .canva-nav-btn{border-radius:12px}
#page-team .canva-nav-btn.active{background:var(--nx-fill);border-color:transparent;color:#fff;box-shadow:0 8px 20px rgba(109,93,240,.4)}
html[data-theme="light"] #page-team .canva-nav-btn.active{background:var(--nx-fill);border-color:transparent}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .canva-nav-btn.active{background:var(--nx-fill);border-color:transparent}}
#page-team .admin-nav-btn.active{background:var(--nx-fill);border-color:transparent;color:#fff;box-shadow:0 8px 20px rgba(109,93,240,.4)}
html[data-theme="light"] #page-team .admin-nav-btn.active{background:var(--nx-fill);border-color:transparent}
@media(prefers-color-scheme:light){html:not([data-theme="dark"]) #page-team .admin-nav-btn.active{background:var(--nx-fill);border-color:transparent}}
#page-team .admin-side{border-radius:22px}

/* --- tool cards: glass + aurora hairline on hover + rich gradient
   tiles with white icons (the v25 pastel tiles are gone). The
   ::before hairline re-enables the v14-hidden base rule. --- */
#page-team .tool-card{background:linear-gradient(165deg,var(--surface),var(--surface2));border-radius:20px;overflow:hidden}
#page-team .tool-card::before{display:block;content:"";position:absolute;inset:0 0 auto 0;height:2px;background:var(--nx-aurora);opacity:0;transition:opacity .25s ease}
#page-team .tool-card:hover::before{opacity:1}
#page-team .tool-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(0,0,0,.12),0 0 0 1px rgba(109,93,240,.35),0 0 32px rgba(109,93,240,.12)}
#page-team .tool-card .ticon{background:var(--nx-fill);color:#fff;border-radius:14px;box-shadow:0 10px 22px rgba(20,24,60,.16);transition:transform .25s ease}
#page-team .tool-card:hover .ticon{transform:scale(1.08) rotate(-3deg)}
#page-team .tool-card[data-cat="video"] .ticon{background:linear-gradient(135deg,#4F46E5,#7C3AED);color:#fff}
#page-team .tool-card[data-cat="design"] .ticon{background:linear-gradient(135deg,#DB2777,#9333EA);color:#fff}
#page-team .tool-card[data-cat="business"] .ticon{background:linear-gradient(135deg,#1E40AF,#0E7490);color:#fff}
#page-team .tool-card[data-cat="seo"] .ticon{background:linear-gradient(135deg,#047857,#0D9488);color:#fff}
#page-team .tool-card[data-cat="ads"] .ticon{background:linear-gradient(135deg,#92400E,#B45309);color:#fff}
#page-team .tool-card[data-cat="email"] .ticon{background:linear-gradient(135deg,#3730A3,#4F46E5);color:#fff}
#page-team .tool-card[data-cat="social"] .ticon{background:linear-gradient(135deg,#0E7490,#0891B2);color:#fff}
#page-team .tool-card[data-cat="youtube"] .ticon{background:linear-gradient(135deg,#B91C1C,#DC2626);color:#fff}
#page-team .tool-card[data-cat="multi"] .ticon{background:linear-gradient(135deg,#6D28D9,#9333EA);color:#fff}
#page-team .tool-card[data-cat="builder"] .ticon{background:linear-gradient(135deg,#9A3412,#C2410C);color:#fff}
#page-team .recent-title{color:var(--text);font-size:13px;letter-spacing:.08em}
#page-team .spot-dot.active{background:var(--nx-fill)}

/* --- studio entry cards: glass + aurora hairline; CTA = aurora fill.
   The Tools card keeps its solid teal CTA (#0F766E, 5.36:1) — a teal
   gradient's light stop would drop white text below AA. .sc-meta moves
   --muted2 -> --muted (3.9:1 -> 6.68:1 in light theme). --- */
.studio-card{position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(160deg,var(--surface),var(--surface2))}
.studio-card::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:var(--nx-aurora);opacity:.85}
.studio-card.media{background:linear-gradient(150deg,var(--surface),rgba(109,93,240,.12))}
.studio-card.tools{background:linear-gradient(150deg,var(--surface),rgba(20,184,166,.10))}
.studio-card:hover{transform:translateY(-3px);border-color:rgba(109,93,240,.55);box-shadow:0 24px 54px rgba(20,24,60,.18),0 0 32px rgba(109,93,240,.12)}
.studio-card .sc-icon{background:var(--nx-fill)}
.studio-card .sc-go{background:var(--nx-fill);box-shadow:0 8px 20px rgba(109,93,240,.4)}
.studio-card .sc-meta{color:var(--muted)}
.studio-banner{background:linear-gradient(90deg,rgba(109,93,240,.14),rgba(34,211,238,.10));border:1px solid rgba(109,93,240,.4);border-radius:16px}

/* --- empty state: aurora-tinted glass --- */
#page-team .no-results{background:linear-gradient(180deg,rgba(139,124,255,.07),rgba(255,255,255,.02));border:1px dashed rgba(139,124,255,.4);border-radius:20px;margin-top:16px}

/* --- primary buttons inside the Studio: the aurora fill. Scoped to
   #page-team so the site-wide .btn-lime (and v51's contrast pin on its
   base gradient) is untouched. !important beats the base !important
   rules (lines 568/824) on specificity (1,1,0) > (0,1,0). --- */
#page-team .btn-lime{background:var(--nx-fill)!important;box-shadow:0 12px 28px rgba(109,93,240,.45),inset 0 1px 0 rgba(255,255,255,.3)}
#page-team .btn-lime:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(109,93,240,.55),inset 0 1px 0 rgba(255,255,255,.3)}

/* --- tool-view chrome: v29 dark glass base + aurora accents. The shell
   gains a cyan ambient radial; the top-bar / tool-head icon tiles and
   every active/selected state move to the aurora fill. --- */
body.tool-open #page-team .tool-view.active .tool-shell{background:radial-gradient(900px 500px at 85% -5%,rgba(139,124,255,.12),transparent 60%),radial-gradient(700px 400px at 8% -10%,rgba(34,211,238,.08),transparent 55%),var(--bg)}
#page-team .tool-topbar{border:1px solid rgba(139,124,255,.22);box-shadow:0 14px 34px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08),0 0 0 1px rgba(139,124,255,.08),0 0 28px rgba(34,211,238,.06)}
#page-team .tool-topbar .ttb-icon{background:var(--nx-fill)}
#page-team .tool-view .tool-head .th-icon{background:var(--nx-fill)}
#page-team .tool-topbar .fav-btn.ttb-fav.active{background:var(--nx-fill)}
#page-team #tool-video .ve-topbar .fav-btn.ttb-fav.active{background:var(--nx-fill)}
#page-team .tool-view .preset-btn.active{background:var(--nx-fill)}
#page-team .tool-view .step-chip i{background:var(--nx-fill)}
#page-team .tool-view .chip.added{background:var(--nx-fill)}
#page-team .tool-view .nx-empty{background:linear-gradient(180deg,rgba(139,124,255,.09),rgba(34,211,238,.03) 55%,rgba(255,255,255,.02));border-color:rgba(139,124,255,.45)}
#page-team .tool-view .dropzone{border-color:rgba(139,124,255,.4);background:linear-gradient(180deg,rgba(139,124,255,.07),rgba(34,211,238,.03))}
#page-team .crumbs{border:1px solid rgba(139,124,255,.25)}

/* --- Media / Tools studios: aurora active nav + focus glow; the
   sidebar foot small brightens to #8B93B8 (was #6E7699, 4.28:1). --- */
.ms-nav-btn.active,.ts-nav-btn.active{background:var(--nx-fill);box-shadow:0 8px 20px rgba(109,93,240,.45)}
.ms-side-foot small{color:#8B93B8}
.ms-search:focus-within,.ts-search:focus-within{border-color:rgba(109,93,240,.65);box-shadow:0 0 0 4px rgba(109,93,240,.14),0 0 24px rgba(34,211,238,.10)}
.ms-premium-btn,.ts-create{background:var(--nx-fill)}
