:root{--bg:#f4f2fb;--ink:#1f1b3a;--mute:#6b6891;--line:#e7e4f4;--brand:#6d3df5;--grad:linear-gradient(135deg,#6d3df5,#ff5ea8);--sh:0 12px 32px rgba(70,45,160,.16)}
*{box-sizing:border-box}html,body{margin:0;height:100%}
body{font:13px/1.4 "Segoe UI",system-ui,-apple-system,Arial,sans-serif;background:var(--bg);color:var(--ink);display:flex;flex-direction:column;overflow:hidden}
button,select,input{font:inherit;color:inherit}
button{background:#fff;border:1px solid var(--line);border-radius:10px;padding:7px 11px;cursor:pointer;transition:.15s}
button:hover{background:#f0ecff;border-color:#d9d0ff}button.on{background:#ece6ff;border-color:var(--brand);color:var(--brand)}
button.pri{background:var(--grad);border:0;color:#fff;font-weight:600;box-shadow:0 4px 14px rgba(109,61,245,.35)}button.pri:hover{filter:brightness(1.08)}
select,input[type=number],input[type=text]{background:#f6f4ff;border:1px solid var(--line);border-radius:10px;padding:7px 9px;outline:0}
select:focus,input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(109,61,245,.15)}
input[type=color]{width:34px;height:30px;padding:2px;border:1px solid var(--line);border-radius:8px;background:#fff}input[type=range]{accent-color:var(--brand)}
#top{display:flex;gap:8px;align-items:center;padding:0 16px;height:58px;background:#fff;border-bottom:1px solid var(--line);flex:none;overflow-x:auto}
.logo{display:flex;align-items:center;gap:9px;margin-right:6px}.logo i{width:30px;height:30px;border-radius:9px;background:var(--grad);display:block;position:relative}.logo i:after{content:"";position:absolute;inset:8px;border:2.5px solid #fff;border-radius:50% 50% 50% 4px}.logo b{font-size:17px;letter-spacing:-.02em}
.sp{flex:1}#top a{color:var(--mute);text-decoration:none;white-space:nowrap}
#main{flex:1;display:flex;min-height:0}
#tools{width:92px;background:#fff;border-right:1px solid var(--line);padding:10px;display:flex;flex-direction:column;gap:6px;overflow:auto}
#tools button{border:0;background:transparent;padding:10px 4px;font-size:12px;border-radius:12px}#tools button:hover,#tools button.on{background:#f0ecff}#tools button.pri{background:var(--grad);color:#fff}
#stage{flex:1;overflow:auto;background:#e9e6f7 radial-gradient(#d2cdef 1px,transparent 1px) 0 0/18px 18px;display:flex;flex-direction:column;align-items:center;padding:16px 24px 90px}
#side{width:300px;background:#fff;overflow:auto;padding:12px 14px;border-left:1px solid var(--line)}#side h3{margin:16px 0 6px;font-size:11px;letter-spacing:.12em;color:var(--mute);text-transform:uppercase}
.row{display:flex;gap:6px;align-items:center;margin:6px 0;flex-wrap:wrap}.row label{width:70px;color:var(--mute)}.row input[type=range]{flex:1}
#layers{max-height:200px;overflow:auto}.ly{display:flex;gap:6px;padding:6px 8px;border-radius:8px;cursor:pointer}.ly:hover{background:#f6f4ff}.ly.sel{background:#ece6ff}.ly span{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ly i{font-style:normal}
.pw{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:16px}.ph{display:flex;gap:5px;align-items:center;width:100%;color:var(--mute)}.ph span{flex:1;font-weight:600}.ph button{padding:2px 9px;background:#fff}
.cw{box-shadow:0 12px 34px rgba(60,40,140,.22);line-height:0;outline:3px solid transparent;border-radius:2px}.pw.act .cw{outline-color:var(--brand)}.addp{width:100%;border:2px dashed #cfc6f5;background:rgba(255,255,255,.6);padding:9px;color:var(--brand);font-weight:600}
#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:9px 18px;border-radius:99px;display:none;z-index:50;box-shadow:var(--sh)}
#tpl{display:none;position:fixed;inset:0;background:rgba(31,27,58,.5);backdrop-filter:blur(4px);place-items:center;z-index:30}#tpl.show{display:grid}
#tpl>div{background:#fff;padding:22px;border-radius:22px;width:min(880px,94vw);max-height:86vh;overflow:auto;box-shadow:var(--sh)}
.th{display:flex;gap:10px;align-items:center;margin-bottom:14px}.th b{font-size:20px}.tchips{display:flex;gap:6px;flex-wrap:wrap;flex:1}.tchips button,#hchips button{border-radius:999px;padding:6px 14px}
#hgrid,#tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:20px;margin-top:16px}
.tc{cursor:pointer;display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:600}.tc small{display:block;font-weight:400;color:var(--mute);margin-top:2px}
.tc img{width:100%;aspect-ratio:1/1;object-fit:contain;border-radius:16px;background:#eeeaff;padding:14px;box-shadow:0 2px 8px rgba(70,45,160,.08);transition:.2s}.tc:hover img{transform:translateY(-5px);box-shadow:var(--sh)}
.sk{background:linear-gradient(90deg,#eeeaff,#faf8ff,#eeeaff)!important;background-size:200% 100%;animation:sh 1.2s infinite}@keyframes sh{to{background-position:-200% 0}}
#home{position:fixed;inset:0;z-index:20;background:var(--bg);overflow:auto}#home.hide{display:none}
.hn{display:flex;align-items:center;gap:12px;padding:0 28px;height:64px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:3}.hn .logo b{font-size:19px}
.hw{max-width:1120px;margin:0 auto;padding:28px 24px 90px}.hw h2{font-size:22px;margin:40px 0 4px;letter-spacing:-.02em}
.hero{position:relative;overflow:hidden;border-radius:30px;padding:58px 54px;min-height:340px;background:linear-gradient(120deg,#2f1a9e 0%,#6d3df5 48%,#ff5ea8 100%);color:#fff;box-shadow:0 22px 54px rgba(109,61,245,.38)}
.ht{max-width:560px;position:relative;z-index:2}.hk{font-size:12px;letter-spacing:.18em;font-weight:700;opacity:.85;margin:0}
.hero h1{font-size:52px;line-height:1.03;margin:12px 0 14px;letter-spacing:-.035em}.hsub{opacity:.92;font-size:16px;margin:0 0 26px;max-width:470px}
.sb{display:flex;background:#fff;border-radius:18px;padding:6px;box-shadow:0 12px 30px rgba(0,0,0,.22)}.sb input{flex:1;border:0;background:transparent;padding:13px 14px;font-size:16px;color:var(--ink);box-shadow:none!important}.sb button{border-radius:13px;padding:0 24px}
.hv{position:absolute;right:0;top:0;bottom:0;width:44%;z-index:1}.hv>*{position:absolute;display:block}
.hv .c1{right:210px;top:46px;width:150px;height:200px;background:#fff;border-radius:16px;transform:rotate(-9deg);box-shadow:0 20px 44px rgba(0,0,0,.3)}.c1 u{display:block;height:10px;border-radius:5px;background:#e5def9;margin:14px 16px 0;text-decoration:none}.c1 u:first-child{height:34px;background:linear-gradient(135deg,#6d3df5,#a78bfa);margin-top:16px}.c1 u:last-child{width:60%}
.hv .c2{right:60px;top:92px;width:180px;height:180px;background:linear-gradient(135deg,#ffd166,#ff8a5c);border-radius:20px;transform:rotate(8deg);box-shadow:0 20px 44px rgba(0,0,0,.3)}.c2:after{content:"";position:absolute;left:34px;top:34px;width:112px;height:112px;border-radius:50%;background:rgba(255,255,255,.85)}
.hv .c3{right:230px;bottom:-34px;width:210px;height:120px;background:#22d3ee;border-radius:18px;transform:rotate(-4deg);box-shadow:0 20px 44px rgba(0,0,0,.28)}
.hv .b1{right:-50px;top:-50px;width:190px;height:190px;border-radius:50%;background:rgba(255,255,255,.13)}.hv .b2{right:360px;top:-20px;width:70px;height:70px;border-radius:50%;background:rgba(255,255,255,.18)}
#tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:14px;margin-top:18px}
.tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 8px 14px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:0 2px 8px rgba(70,45,160,.06);text-align:center}.tile:hover{transform:translateY(-4px);box-shadow:var(--sh);border-color:#d9d0ff}
.ti{width:66px;height:66px;border-radius:19px;display:grid;place-items:center;color:#fff;font-size:28px;font-weight:700;box-shadow:0 6px 14px rgba(70,45,160,.22)}.ti em{display:block;background:rgba(255,255,255,.96);border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.tile b{font-size:13px}.tile small{color:var(--mute);font-size:11px;min-height:14px}
.hh{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:40px}.hh h2{margin:0}#hchips{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:820px){#side{width:210px}#tools{width:68px}.hero{padding:34px 24px}.hero h1{font-size:34px}.hv{display:none}}

/* SPA9 workspace: original OfficeToPDF interface, no remote assets. */
:root{--bg:#f4f6f7;--ink:#18332e;--mute:#63756f;--line:#e0e7e4;--brand:#17634e;--panel:#fff;--soft:#edf5f0;--stage:#e9eeec;--grad:linear-gradient(125deg,#165c49,#287b61);--sh:0 12px 32px #153f2615}
body{font-size:13px}button{border-radius:7px;min-height:32px}button:hover{background:var(--soft);border-color:#9cb8ac}button.on{background:var(--soft);border-color:var(--brand);color:var(--brand)}button.pri{box-shadow:none}select,input[type=number],input[type=text],input:not([type]){background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:8px;color:var(--ink)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #4fa4e7;outline-offset:2px}input[type=color]{background:var(--panel);border-color:var(--line)}[hidden]{display:none!important}
#top{height:66px;padding:0 20px;gap:9px;overflow:visible;background:var(--panel)}.brand{display:flex;align-items:center;gap:9px;color:var(--ink)!important;font-size:12px;line-height:1.3;flex-shrink:0}.brand b{display:block;font-size:14px}.brand-mark{width:32px;height:36px;background:var(--brand);border-radius:8px 8px 14px 8px;display:grid;place-items:center;color:white;font-size:21px;font-weight:800}.top-divider{height:28px;width:1px;background:var(--line);margin:0 9px}#docname{border:0;background:transparent;width:210px;font-weight:600;min-width:70px}#saveState{font-size:11px;color:var(--mute);white-space:nowrap}#top button{white-space:nowrap}#top #export{padding:10px 18px;font-weight:700}#top #undo,#top #redo,#theme{font-size:19px;padding:4px 9px;background:transparent;border-color:transparent}
#tools{width:76px;padding:16px 6px;gap:7px;flex-shrink:0;background:var(--panel)}#tools button{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;font-size:10px;color:var(--mute);min-height:62px;padding:6px 2px;border-radius:9px}#tools button span{font-size:23px;line-height:1.1;font-weight:600}#tools button.on{color:var(--brand);background:var(--soft)}#library{width:276px;flex-shrink:0;background:var(--panel);border-right:1px solid var(--line);overflow:auto;padding:20px 17px}.panel-heading{display:flex;align-items:center;justify-content:space-between}.panel-heading small{font-size:9px;letter-spacing:1.5px;font-weight:700;color:var(--mute)}.panel-heading h2{font-size:19px;margin:6px 0 0;letter-spacing:-.5px}.panel-heading button{display:none}.panel-intro{font-size:12px;line-height:1.65;color:var(--mute);margin:16px 0}.wide{width:100%;margin:6px 0;padding:11px}.subtle{color:var(--brand);background:var(--soft);border:0}.info-card{border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:22px;font-size:12px;color:var(--mute);line-height:1.7}.info-card b{color:var(--ink)}.info-card p{margin:6px 0 0}#quickTemplates{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px}#quickTemplates button{padding:0;border:0;background:transparent;text-align:left;min-width:0}#quickTemplates img{display:block;width:100%;aspect-ratio:794/1123;object-fit:cover;border-radius:5px;box-shadow:0 3px 9px #122c201b;border:1px solid var(--line)}#quickTemplates span{display:block;font-size:10px;margin-top:8px;font-weight:600;line-height:1.5}#quickTemplates button:hover img{outline:2px solid var(--brand)}.field{display:block;margin:18px 0;font-size:12px;font-weight:600}.field input{display:block;width:100%;margin-top:7px}.element-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.element-grid button{font-size:33px;height:90px;background:var(--bg)}.element-grid small{display:block;font-size:11px;margin-top:7px}.text-preset{font-size:22px;font-weight:700}.upload-card{border:2px dashed var(--line);border-radius:12px;padding:20px 12px;text-align:center;margin-top:20px}.upload-card>span{font-size:38px;color:var(--brand)}.upload-card h3{font-size:16px}.upload-card p{font-size:11px;color:var(--mute)}#dividerTitle{width:100%;font-size:11px}#stylePalettes button{display:flex;gap:10px;align-items:center;width:100%;padding:12px;margin:10px 0}#stylePalettes i{display:block;width:24px;height:24px;border-radius:50%}
#workspace{flex:1;min-width:0;display:flex;flex-direction:column}#contextbar{min-height:49px;background:var(--panel);border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 22px;font-size:11px}#contextbar>div{display:flex;align-items:center;gap:9px}.status-dot{width:6px;height:6px;background:#269b71;border-radius:50%}.context-note{color:var(--mute)}#size{max-width:170px;font-size:11px;padding:5px}#mobileLibrary,#mobileProperties{display:none}#stage{padding:22px 36px 30px;min-height:80px;background:var(--stage);background-image:radial-gradient(#b9c8c0 0.6px,transparent .6px);background-size:12px 12px}.pw{margin-bottom:24px;flex-shrink:0}.cw{box-shadow:0 7px 26px #143b2520;outline-width:2px}.ph{font-size:10px}.ph button{min-height:23px;font-size:11px;padding:1px 7px}.pw .addp{display:none}#pagebar{height:102px;flex-shrink:0;background:var(--panel);border-top:1px solid var(--line);display:flex;align-items:center;gap:14px;padding:10px 20px;font-size:11px}#pageStrip{display:flex;gap:12px;overflow:auto;min-width:0;align-items:center;padding:4px;flex:1}#pageStrip button{flex-shrink:0;width:48px;height:72px;position:relative;padding:3px;border:1px solid var(--line);background:var(--bg)}#pageStrip button.on{border:2px solid var(--brand)}#pageStrip img{width:100%;height:54px;object-fit:contain;display:block}#pageStrip span{font-size:9px;display:block}#workspaceFooter{height:40px;padding:0 18px;display:flex;align-items:center;gap:8px;background:var(--panel);border-top:1px solid var(--line);font-size:10px;color:var(--mute);flex-shrink:0}#workspaceFooter button{min-height:25px;padding:0 7px;font-size:12px}.footer-tip{margin-left:16px}#zl{min-width:35px;text-align:center}
#side{width:256px;flex-shrink:0;padding:18px 16px;background:var(--panel)}.inspector-title{display:flex;align-items:center;justify-content:space-between;font-size:14px}#closeInspector{display:none}#selectionHint{font-size:11px;color:var(--mute);padding-bottom:16px;border-bottom:1px solid var(--line)}#side h3{font-size:10px;letter-spacing:1px;margin-top:23px;color:var(--mute)}#side .row{gap:5px;font-size:11px}#side .row label{width:48px;color:var(--mute)}#side button{font-size:11px;padding:4px 8px}#side .row input[type=range]{min-width:50px;width:70px}#side select{max-width:150px}#layers{max-height:220px;margin-top:10px}#layers .ly{border:1px solid var(--line);border-radius:5px;margin:5px 0;padding:8px;font-size:11px}.ly:hover,.ly.sel{background:var(--soft)}#toast{background:#143c30;color:white}#home{background:var(--bg)}.hn{background:var(--panel)}.hero{background:linear-gradient(125deg,#0d342d,#17634e 65%,#4c8e76);box-shadow:none}.hero h1{font-size:46px}.hero .c1 u:first-child{background:var(--grad)}.hero .c2{background:#d9bd84}.hero .c3{background:#91b7a5}.tile,.tc img{background:var(--panel)}.tc img{border:1px solid var(--line);border-radius:8px}.tc small{color:var(--mute)}#tpl>div{background:var(--panel)}.th{flex-wrap:wrap}.tchips button.on{background:var(--soft)}.sb input{color:#18332e!important}.logo i{background:var(--grad)}.palette-dot{border:1px solid #0001}
html[data-studio-theme=dark]{--bg:#13201e;--ink:#e3eee9;--mute:#a1b5ab;--line:#334840;--brand:#72c7a4;--panel:#1b2b26;--soft:#2b4137;--stage:#101b18;--grad:linear-gradient(125deg,#246c51,#328366)}html[data-studio-theme=dark] button{background:var(--panel)}html[data-studio-theme=dark] button.pri{background:var(--grad);color:white}html[data-studio-theme=dark] #tools button{background:transparent}html[data-studio-theme=dark] #tools button.on{background:var(--soft)}html[data-studio-theme=dark] #stage{background-image:radial-gradient(#3b5045 .6px,transparent .6px)}html[data-studio-theme=dark] .ph button{background:var(--panel)}html[data-studio-theme=dark] .tc img{background:#293a32}html[data-studio-theme=dark] .sb{background:white}html[data-studio-theme=dark] .tile:hover,html[data-studio-theme=dark] .ly:hover{background:var(--soft)}
@media(min-width:1600px){#library{width:310px}#side{width:286px}}
@media(max-width:1250px){#saveState,.context-note,.footer-tip{display:none}#docname{width:160px}#library{width:234px}#side{width:225px}#top{padding:0 12px;gap:6px}#stage{padding-left:22px;padding-right:22px}}
@media(max-width:1050px){#side{display:none;position:fixed;right:0;top:66px;bottom:0;z-index:12;width:270px;box-shadow:-10px 0 30px #0002}#side.open{display:block}#closeInspector{display:block}#mobileProperties{display:block}#docname{width:140px}.brand>span:last-child{font-size:10px}.brand b{font-size:12px}#top #save{font-size:11px;padding:6px}#top #open{display:none}#contextbar{padding:8px 14px}}
@media(max-width:740px){#top{height:60px;padding:0 10px}.brand>span:last-child,.top-divider,#docname,#top #save,#top #fmt{display:none}#top .sp{display:block}#top #export{font-size:11px;padding:8px 10px}#tools{width:62px;padding:10px 4px}#tools button{min-height:54px;font-size:9px}#tools button span{font-size:21px}#library{display:none;position:fixed;left:62px;top:60px;bottom:0;z-index:11;width:min(276px,calc(100vw - 62px));box-shadow:10px 0 30px #0003}#library.open{display:block}.panel-heading button{display:block}#mobileLibrary{display:block}#side{top:60px}#contextbar{padding:6px 9px;min-height:46px}#contextbar>div:first-child{display:none}#contextbar>div:last-child{width:100%;justify-content:space-between}#size{max-width:130px}#contextbar button{font-size:10px;padding:4px 6px}#stage{padding:14px 10px 24px}#pagebar{height:88px;padding:6px 10px;gap:8px}#pagebar>b{display:none}#pageStrip button{height:66px;width:43px}#pageStrip img{height:48px}#workspaceFooter{padding:0 8px}#workspaceFooter #pageCount{font-size:9px}#top button{min-height:30px}#home .hn{padding:0 12px}#home .hw{padding:18px 14px 50px}.hero h1{font-size:32px}#hchips{gap:4px}#hchips button{font-size:11px;padding:5px 10px}.hw h2{font-size:19px}#hgrid,#tgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hero{padding:28px 22px}.sb input{min-width:0;width:0;font-size:12px;padding:8px}.sb button{padding:0 12px}.th b{font-size:16px}.th .tchips{order:3;flex-basis:100%}#tpl>div{padding:15px}}

.mobile-project{display:none}@media(max-width:740px){.mobile-project{display:flex;gap:5px;flex-wrap:wrap;margin-top:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}.mobile-project button,.mobile-project select{font-size:10px;padding:6px;flex:1;white-space:nowrap}}

/* Colour accents for SPA9 Studio. Document colours stay user controlled. */
:root{--brand:#6941c6;--soft:#f1ebff;--grad:linear-gradient(125deg,#7045cc,#4767dc);--stage:#f0eff8}
#top{position:relative;border-bottom-color:#e6e1f3}
#top:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#8053d8,#4c85e8 28%,#20b8a6 53%,#f0ba55 75%,#e976a7)}
.brand-mark{background:linear-gradient(145deg,#8053d8,#4c85e8);color:#fff}
.brand b{color:#6540b4}
#top #export{background:linear-gradient(115deg,#7045cc,#4668d9);box-shadow:0 3px 10px #7045cc24}
#tools{background:linear-gradient(180deg,#faf8ff,#f6faff)}
#tools button{--tool:#6941c6;--toolbg:#eee7ff;--toolDark:#c6adff;--toolDarkBg:#392a54}
#tools button[data-panel=candidate]{--tool:#2367b7;--toolbg:#e4f0ff;--toolDark:#94c6ff;--toolDarkBg:#213d55}
#tools button[data-panel=text]{--tool:#b23979;--toolbg:#fce8f3;--toolDark:#f3a6cf;--toolDarkBg:#4b2a40}
#tools button[data-panel=elements]{--tool:#9d570b;--toolbg:#fff0d8;--toolDark:#f6c77a;--toolDarkBg:#493924}
#tools button[data-panel=uploads]{--tool:#137767;--toolbg:#def5ec;--toolDark:#8ce1cb;--toolDarkBg:#20463b}
#tools button[data-panel=styles]{--tool:#b1423c;--toolbg:#ffe9e5;--toolDark:#ffafa4;--toolDarkBg:#4c2e2b}
#tools button span{background:var(--toolbg);color:var(--tool);width:34px;height:32px;border-radius:10px;display:grid;place-items:center;font-size:21px}
#tools button.on{color:var(--tool);background:var(--toolbg)}
#tools button:hover{background:var(--toolbg)}
.panel-heading small{color:#7854b4}.panel-heading h2{color:#55308e}
.info-card{background:linear-gradient(125deg,#f5efff,#edf6ff);border-color:#e5dcf3}
#quickTemplates button:nth-child(1) img{border:2px solid #c7e5d8}
#quickTemplates button:nth-child(2) img{border:2px solid #ceddfa}
#quickTemplates button:nth-child(3) img{border:2px solid #efdfbd}
#quickTemplates button:nth-child(4) img{border:2px solid #e3d4f3}
#quickTemplates button:nth-child(1) span{color:#246249}
#quickTemplates button:nth-child(2) span{color:#315d9e}
#quickTemplates button:nth-child(3) span{color:#80602d}
#quickTemplates button:nth-child(4) span{color:#775197}
#stage{background-color:#f1f0f8;background-image:radial-gradient(#d5cce9 .7px,transparent .7px),linear-gradient(135deg,#f5edfc99,#eaf5ff66 50%,#e9f7f066);background-size:12px 12px,100% 100%}
#contextbar{background:linear-gradient(90deg,#faf7ff,var(--panel) 70%)}
.status-dot{background:#8860d0}
#pagebar{background:linear-gradient(90deg,#faf7ff,var(--panel) 70%)}
#pageStrip button.on{background:#ede6fc;border-color:#8053c6}
.upload-card{background:linear-gradient(150deg,#effaf5,#f2f3ff);border-color:#c8ddda}
.element-grid button:nth-child(3n+1){background:#f0e8fc;color:#6b3eae}
.element-grid button:nth-child(3n+2){background:#e4f1fc;color:#245f99}
.element-grid button:nth-child(3n){background:#fff0da;color:#8c580e}
.hero{background:linear-gradient(120deg,#5031a0,#6d4dcc 50%,#377bd0);box-shadow:0 12px 32px #6844bf20}
.hero .c2{background:linear-gradient(145deg,#ffd582,#f5aa9d)}.hero .c3{background:#7bd7c3}
.hero .c1 u:first-child{background:linear-gradient(135deg,#8559d5,#5288dc)}
html[data-studio-theme=dark]{--brand:#c5a6ff;--soft:#382d4f;--stage:#1b1b29;--grad:linear-gradient(125deg,#7952c9,#4c70d2)}
html[data-studio-theme=dark] #top{border-bottom-color:#49415c}
html[data-studio-theme=dark] .brand-mark{color:#fff}
html[data-studio-theme=dark] .brand b{color:#d0b6ff}
html[data-studio-theme=dark] #tools{background:linear-gradient(180deg,#272238,#1e2c33)}
html[data-studio-theme=dark] #tools button span{color:var(--toolDark);background:var(--toolDarkBg)}
html[data-studio-theme=dark] #tools button.on,html[data-studio-theme=dark] #tools button:hover{color:var(--toolDark);background:var(--toolDarkBg)}
html[data-studio-theme=dark] .panel-heading small{color:#baa1e3}
html[data-studio-theme=dark] .panel-heading h2{color:#dfcbff}
html[data-studio-theme=dark] .info-card{background:linear-gradient(130deg,#342b46,#233a40);border-color:#514664}
html[data-studio-theme=dark] #quickTemplates button:nth-child(1) span{color:#a4dfbd}
html[data-studio-theme=dark] #quickTemplates button:nth-child(2) span{color:#adccff}
html[data-studio-theme=dark] #quickTemplates button:nth-child(3) span{color:#e6c68a}
html[data-studio-theme=dark] #quickTemplates button:nth-child(4) span{color:#d1b4ee}
html[data-studio-theme=dark] #stage{background-color:#1c1c2b;background-image:radial-gradient(#514761 .6px,transparent .6px),linear-gradient(135deg,#34243b66,#24334655);background-size:12px 12px,100% 100%}
html[data-studio-theme=dark] #contextbar,html[data-studio-theme=dark] #pagebar{background:linear-gradient(90deg,#30273e,var(--panel) 80%)}
html[data-studio-theme=dark] #pageStrip button.on{background:#3b2e54;border-color:#c5a6ff}
html[data-studio-theme=dark] .upload-card{background:linear-gradient(130deg,#254039,#2e2b45);border-color:#4c685e}
html[data-studio-theme=dark] .element-grid button:nth-child(3n+1){background:#392c50;color:#cfadff}
html[data-studio-theme=dark] .element-grid button:nth-child(3n+2){background:#273d53;color:#a8d3ff}
html[data-studio-theme=dark] .element-grid button:nth-child(3n){background:#493b27;color:#f0cd90}
@media(max-width:740px){#tools button span{width:30px;height:28px;border-radius:8px;font-size:19px}}

/* Vivid original SVG tool illustrations and inline add-page controls. */
#tools{width:82px;gap:9px;padding:12px 6px;background:linear-gradient(180deg,#f0e4ff,#e8f2ff 50%,#e1faf1)}
#tools button{min-height:65px;border:1px solid transparent;font-weight:650;color:#4a3471}
#tools button span{width:44px;height:40px;background:linear-gradient(140deg,#a87af0,#7350cf);color:#fff;box-shadow:0 4px 10px #8052c62b;border-radius:12px}
#tools svg{width:30px;height:30px;display:block;overflow:visible}
#tools button[data-panel=candidate] span{background:linear-gradient(140deg,#69b5ff,#386dd8)}
#tools button[data-panel=text] span{background:linear-gradient(140deg,#f187c9,#cb4298)}
#tools button[data-panel=elements] span{background:linear-gradient(140deg,#a788ed,#6553c9)}
#tools button[data-panel=uploads] span{background:linear-gradient(140deg,#56d5bc,#189e86)}
#tools button[data-panel=styles] span{background:linear-gradient(140deg,#ffb274,#ea6f76)}
#tools button.on{border-color:#d3b5fa;background:#e4d2fd;color:#55209d;box-shadow:0 3px 10px #8965c517}
#tools button:hover{transform:translateY(-1px)}
#library{background:linear-gradient(160deg,#fff7fd,#f3f0ff 48%,#eaf7ff)}
.panel-heading{padding:12px 10px;margin:-4px -4px 8px;border:1px solid #e3c9f9;border-radius:12px;background:linear-gradient(115deg,#efd7ff,#dae9ff)}
.panel-heading h2{color:#6435a3}.panel-heading small{color:#8555a7}
#quickTemplates{gap:14px 10px}#quickTemplates button{padding:7px;border-radius:11px;border:1px solid #e8dbf6;background:#ffffffc9;box-shadow:0 3px 10px #7048a010}
#quickTemplates button:nth-child(1){background:#dcf7eb;border-color:#b4e8d0}#quickTemplates button:nth-child(2){background:#e0ecff;border-color:#bcd3f6}#quickTemplates button:nth-child(3){background:#fff0d7;border-color:#f3d5a0}#quickTemplates button:nth-child(4){background:#f4e2ff;border-color:#dfb9f3}
#quickTemplates img{border-radius:5px}#quickTemplates span{font-weight:700;line-height:1.45}
#stage{padding-top:16px;padding-bottom:16px;background-color:#eee7ff;background-image:radial-gradient(#bfade4 .7px,transparent .7px),linear-gradient(120deg,#eedcffaa,#d9eaffaa 52%,#d8f5e9aa);background-size:12px 12px,100% 100%}
#contextbar{background:linear-gradient(90deg,#f0ddff,#e1ecff 65%,#e3f9f0)}
#pagebar{background:linear-gradient(90deg,#ecdefb,#ddebff 60%,#dff7ed)}
#side h3{padding:8px 10px;border-radius:7px;background:linear-gradient(100deg,#f0e4fc,#e7f0ff);color:#633b93;border-left:3px solid #ac7bdf}
#side h3:nth-of-type(2){background:linear-gradient(100deg,#fbe3f1,#f1e8ff);color:#9d3c7b;border-left-color:#df76b7}
#side h3:nth-of-type(3){background:linear-gradient(100deg,#dbf6ec,#e5f5ff);color:#16745e;border-left-color:#4ac5a1}
#side h3:nth-of-type(4){background:linear-gradient(100deg,#fff0d9,#fce5e2);color:#99551f;border-left-color:#efa85e}
.pw .addp{display:flex;align-items:center;justify-content:center;min-height:36px;padding:7px 14px;margin-top:2px;border:1.5px dashed #b59bdf;border-radius:8px;background:#f9f5ff;color:#6940ae;font-size:12px;font-weight:700;box-shadow:0 3px 8px #5e378511}
.pw .addp:hover{border-style:solid;background:linear-gradient(105deg,#e8d6ff,#dceaff);color:#52288c;box-shadow:0 4px 12px #7143aa25}
.pw .addp:focus-visible{outline:3px solid #65a8ef;outline-offset:3px}
html[data-studio-theme=dark] #tools{background:linear-gradient(180deg,#38264c,#243950 50%,#204136)}
html[data-studio-theme=dark] #tools button span{background:linear-gradient(140deg,#a87af0,#7350cf);color:white}
html[data-studio-theme=dark] #tools button[data-panel=candidate] span{background:linear-gradient(140deg,#69b5ff,#386dd8)}
html[data-studio-theme=dark] #tools button[data-panel=text] span{background:linear-gradient(140deg,#f187c9,#cb4298)}
html[data-studio-theme=dark] #tools button[data-panel=elements] span{background:linear-gradient(140deg,#a788ed,#6553c9)}
html[data-studio-theme=dark] #tools button[data-panel=uploads] span{background:linear-gradient(140deg,#56d5bc,#189e86)}
html[data-studio-theme=dark] #tools button[data-panel=styles] span{background:linear-gradient(140deg,#ffb274,#ea6f76)}
html[data-studio-theme=dark] #tools button{color:#d6c5ee}html[data-studio-theme=dark] #tools button.on{border-color:#80619d;background:#4a3464;color:#f0dfff}
html[data-studio-theme=dark] #library{background:linear-gradient(160deg,#32263d,#262c42 60%,#203a40)}
html[data-studio-theme=dark] .panel-heading{background:linear-gradient(115deg,#4a315f,#2f4565);border-color:#6b4d7b}
html[data-studio-theme=dark] .panel-heading h2{color:#efd9ff}html[data-studio-theme=dark] .panel-heading small{color:#d5b1f1}
html[data-studio-theme=dark] #quickTemplates button:nth-child(1){background:#254638;border-color:#416c58}html[data-studio-theme=dark] #quickTemplates button:nth-child(2){background:#2b3d58;border-color:#47638b}html[data-studio-theme=dark] #quickTemplates button:nth-child(3){background:#493c28;border-color:#79613b}html[data-studio-theme=dark] #quickTemplates button:nth-child(4){background:#443050;border-color:#755185}
html[data-studio-theme=dark] #contextbar,html[data-studio-theme=dark] #pagebar{background:linear-gradient(90deg,#422f55,#2b3e57 65%,#254636)}
html[data-studio-theme=dark] #stage{background-color:#252238;background-image:radial-gradient(#68557d .7px,transparent .7px),linear-gradient(120deg,#492e5266,#2e466566 52%,#2b504166);background-size:12px 12px,100% 100%}
html[data-studio-theme=dark] #side h3{background:linear-gradient(100deg,#403052,#2e3f58);color:#dcc0fa}html[data-studio-theme=dark] #side h3:nth-of-type(2){background:linear-gradient(100deg,#4c2e43,#3c2d52);color:#f0b9dd}html[data-studio-theme=dark] #side h3:nth-of-type(3){background:linear-gradient(100deg,#25493e,#2b4455);color:#a5e9d3}html[data-studio-theme=dark] #side h3:nth-of-type(4){background:linear-gradient(100deg,#493c29,#493234);color:#edc28e}
html[data-studio-theme=dark] .pw .addp{background:#3c2d51;color:#e5caff;border-color:#9274b8}html[data-studio-theme=dark] .pw .addp:hover{background:linear-gradient(105deg,#56376f,#354e72);color:white}
@media(max-width:740px){#tools{width:66px;padding:9px 4px;gap:7px}#tools button{min-height:56px}#tools button span{width:35px;height:32px;border-radius:9px}#tools svg{width:26px;height:26px}#library{left:66px;width:min(276px,calc(100vw - 66px))}.pw .addp{font-size:11px;min-height:34px}.panel-heading{padding:9px 8px}}

.upload-library-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:22px}.upload-library-heading>b{font-size:13px}.upload-library-heading button{font-size:10px;padding:4px 8px}.upload-count{font-size:10px;color:var(--mute);margin:8px 0 12px}.upload-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.upload-item{position:relative;min-width:0;border:1px solid #d6c6f0;border-radius:10px;background:var(--panel);overflow:hidden}.upload-insert{width:100%;border:0;padding:6px;text-align:left;cursor:grab;display:block;min-width:0;background:var(--panel)}.upload-insert:active{cursor:grabbing}.upload-insert img{display:block;width:100%;height:85px;object-fit:contain;border-radius:6px;background:linear-gradient(135deg,#f4ecff,#eaf3fc);user-select:none;pointer-events:none}.upload-insert span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:600;margin-top:7px;padding-right:5px}.upload-insert small{display:block;font-size:9px;color:var(--mute);margin:5px 0}.upload-remove{position:absolute;right:4px;top:4px;padding:0!important;width:23px;min-height:23px!important;border:1px solid var(--line);border-radius:50%;background:var(--panel);font-size:17px!important;box-shadow:0 1px 6px #0002;cursor:pointer}.upload-item.dragging{opacity:.45}.upload-empty{font-size:12px;text-align:center;padding:23px 12px;border:1.5px dashed #d7c5ec;border-radius:10px;color:var(--mute);line-height:1.7}.cw.drop-ready{outline:4px dashed #9263d7;box-shadow:0 0 0 8px #b18ae84d}.image-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:10px;margin:10px 0}.image-dimensions label{min-width:0;color:var(--mute)}.image-dimensions input{display:block;width:100%;margin-top:6px;padding:7px!important}.image-ratio{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--mute)}.image-size-hint{font-size:10px;line-height:1.6;color:var(--mute)}button:disabled,input:disabled{opacity:.5;cursor:default}html[data-studio-theme=dark] .upload-item{border-color:#70558c}html[data-studio-theme=dark] .upload-insert img{background:linear-gradient(135deg,#403249,#293a4b)}html[data-studio-theme=dark] .upload-empty{border-color:#70558c}

/* Restore the design chooser as the Studio entry screen. */
#home{display:flex;background:#fff;color:#253445}
#home.hide{display:none}
.home-rail{position:sticky;top:0;flex-shrink:0;width:82px;height:100vh;padding:17px 7px;display:flex;flex-direction:column;align-items:stretch;gap:13px;background:linear-gradient(180deg,#faf5ff,#f3f5ff);border-right:1px solid #ebe4f7}
.home-brand{width:38px;height:40px;border-radius:12px;margin:0 auto 10px;display:grid;place-items:center;color:white!important;font-size:25px;font-weight:800;background:linear-gradient(140deg,#ae5cff,#5c69d9);text-decoration:none}
.home-rail button,.home-alltools{font-size:10px;line-height:1.3;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:6px 2px;border:0;background:transparent;text-decoration:none;color:#7953a8;border-radius:10px}
.home-rail button span,.home-alltools span{font-size:24px;line-height:1.1}
.home-rail button.on{background:#ede0ff;color:#7541ca}.home-rail button:hover,.home-alltools:hover{background:#e8d8fc}
.home-content{flex:1;min-width:0;background:radial-gradient(ellipse 60% 180px at 80% 0,#d9c4ff 0,transparent 100%),radial-gradient(ellipse 60% 200px at 10% 0,#c3f0ee 0,transparent 100%),#fff}
#home .hn{position:relative;height:70px;background:transparent;border:0;padding:0 32px;backdrop-filter:none}
#home .logo{color:#59358b}#home .logo b{font-size:16px}#home .logo small{display:block;font-size:10px;font-weight:500;color:#80669d;margin-top:2px}
#home .hw{max-width:1500px;padding:8px 32px 70px}
#home .hero{padding:24px 25px 26px;min-height:0;overflow:visible;background:none;color:#253445;box-shadow:none;border-radius:0;text-align:center}
#home .ht{max-width:100%;position:static}#home .hk{color:#8b6aa8;font-size:10px;letter-spacing:1.5px}#home .hero h1{font-size:37px;line-height:1.2;letter-spacing:-1.2px;font-weight:650;margin:12px 0 14px;color:#345bba}#home .hero h1 em{font-style:normal;color:#8339df}#home .hsub{font-size:13px;color:#6d7287;max-width:800px;margin:0 auto 23px}
#home .sb{max-width:810px;min-height:56px;margin:auto;border-radius:18px;border:1px solid #ddc8ff;padding:5px 7px 5px 17px;box-shadow:0 5px 18px #9861d619;gap:10px;align-items:center;background:#fff}#home .sb>span{font-size:28px;color:#7a58ac;line-height:1}#home .sb input{min-width:0;padding:10px 4px;font-size:13px;box-shadow:none;border:0;background:transparent;flex:1;color:#253445!important}#home .sb button{padding:10px 20px;border-radius:11px}
.home-start>h2,.home-start>p{display:none}
#home #tiles{grid-template-columns:repeat(12,minmax(0,1fr));gap:5px;margin:20px 0 30px}
#home .tile{box-shadow:none;border:0;border-radius:12px;background:transparent;padding:10px 4px;gap:10px;min-width:0;color:#3d4561}
#home .tile:hover{background:#f3ecff;transform:translateY(-3px)}#home .ti{width:46px;height:46px;flex-shrink:0;border-radius:50%;box-shadow:none;display:grid;place-items:center}#home .ti svg{width:29px;height:29px;overflow:visible}#home .tile b{font-size:10px;font-weight:500;line-height:1.4}#home .tile small{display:none}
#home .hh{margin:32px 0 15px;align-items:center}#home .hh h2{font-size:23px;color:#263044;font-weight:650;margin:0}#home .hh p{font-size:12px;color:#7b8094;line-height:1.6;margin:7px 0 0}.home-local-badge{color:#218c6f;background:#e8f8f0;border-radius:20px;padding:7px 11px;font-size:10px;white-space:nowrap}
#home #hchips{gap:7px;margin:12px 0 24px}#home #hchips button{background:#fff;border-color:#e0d9ef;color:#706080;border-radius:25px;padding:6px 15px;font-size:11px;min-height:30px}#home #hchips button.on{background:#f0e5ff;border-color:#ba95ef;color:#6d31bc}
#home #hgrid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:23px 20px;align-items:start;margin-top:0}
#home .tc{border:0;padding:0;text-align:left;border-radius:9px;background:transparent;box-shadow:none;color:#313545;font-weight:600;display:flex;min-width:0;align-items:stretch}
#home .tc img{width:100%;aspect-ratio:4/4.8;object-fit:contain;padding:12px;border-radius:12px;background:#f4f3f7;border:1px solid #ebe8ef;box-shadow:none}
#home .tc:nth-child(5n+2) img{background:#f1f6ff}#home .tc:nth-child(5n+3) img{background:#fff4e5}#home .tc:nth-child(5n+4) img{background:#f4edff}#home .tc:nth-child(5n+5) img{background:#ebf8f0}
#home .tc:hover img{transform:translateY(-4px);border-color:#c09ce9;box-shadow:0 7px 20px #875fa61a}#home .tc>span{font-size:11px;line-height:1.6;display:block}#home .tc small{font-size:10px;color:#8a7f9b;font-weight:400}
.current-design{display:flex;align-items:center;gap:17px;padding:12px;border:1px solid #e6d9f5;border-radius:13px;background:#f9f5fe;text-align:left;max-width:500px;width:100%}.current-design img{width:90px;height:100px;object-fit:contain;background:#eee9f5;border-radius:7px}.current-design b{display:block;color:#49345c;font-size:13px}.current-design small{display:block;font-size:10px;color:#8a729d;margin-top:8px}.templates-mode .home-start{display:none}.templates-mode .hero{padding-bottom:8px}
html[data-studio-theme=dark] #home{background:#171827;color:#ebdef8}html[data-studio-theme=dark] .home-rail{background:linear-gradient(180deg,#30233d,#20283c);border-color:#4a365d}html[data-studio-theme=dark] .home-content{background:radial-gradient(ellipse 60% 200px at 80% 0,#4d2c7266,transparent),radial-gradient(ellipse 60% 220px at 10% 0,#235e6b66,transparent),#1a1d2b}html[data-studio-theme=dark] .home-rail button,html[data-studio-theme=dark] .home-alltools{color:#c8a7ec;background:transparent}html[data-studio-theme=dark] .home-rail button.on{background:#4a3165;color:#e3c6ff}html[data-studio-theme=dark] #home .hn{background:transparent}html[data-studio-theme=dark] #home .logo{color:#ead6ff}html[data-studio-theme=dark] #home .logo small,html[data-studio-theme=dark] #home .hk{color:#b99ed3}html[data-studio-theme=dark] #home .hero h1{color:#a6caff}html[data-studio-theme=dark] #home .hero h1 em{color:#cf9dff}html[data-studio-theme=dark] #home .hsub{color:#b8b3ca}html[data-studio-theme=dark] #home .tile{color:#d3c8e3}html[data-studio-theme=dark] #home .tile:hover{background:#3a2b51}html[data-studio-theme=dark] #home .hh h2{color:#eee4f9}html[data-studio-theme=dark] #home .hh p{color:#b9aec9}html[data-studio-theme=dark] #home #hchips button{background:#262235;border-color:#564267;color:#ccb5df}html[data-studio-theme=dark] #home #hchips button.on{background:#503369;border-color:#9e76c4;color:#efdbff}html[data-studio-theme=dark] #home .tc{background:transparent;color:#e4d7ee}html[data-studio-theme=dark] #home .tc img{background:#343344;border-color:#4d465d}html[data-studio-theme=dark] #home .tc small{color:#b8a7c8}html[data-studio-theme=dark] .current-design{background:#32263f;border-color:#624877}html[data-studio-theme=dark] .current-design b{color:#e6cff8}html[data-studio-theme=dark] .current-design small{color:#c0a4d5}html[data-studio-theme=dark] .home-local-badge{color:#a1dfc4;background:#243f37}
@media(min-width:1600px){#home #tiles{gap:15px}#home .ti{width:51px;height:51px}#home .tile b{font-size:11px}#home #hgrid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr))}}
@media(max-width:1000px){#home #tiles{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}#home .hw{padding:0 20px 50px}#home .hn{padding:0 20px}#home .hero h1{font-size:32px}.home-rail{width:70px}}
@media(max-width:600px){.home-rail{width:57px;padding:12px 4px;gap:8px}.home-rail button,.home-alltools{font-size:9px;min-height:54px}.home-brand{width:32px;height:35px;font-size:22px}#home .hn{height:65px;padding:0 12px;gap:6px}#home .hn .logo i{display:none}#home .hn .logo b{font-size:12px}#home .hn .logo small{font-size:8px}#home .hn button{font-size:9px;padding:6px;min-height:28px}#home .hw{padding:0 12px 40px}#home .hero{padding:20px 2px 10px}#home .hero h1{font-size:27px;letter-spacing:-.7px}#home .hero h1 em{display:block}#home .hk{font-size:8px}#home .hsub{font-size:11px;margin-bottom:17px}#home .sb{border-radius:12px;min-height:47px;padding-left:10px;gap:6px}#home .sb input{font-size:10px;width:0}#home .sb button{font-size:10px;padding:8px 10px;border-radius:8px}#home #tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0 24px}#home .tile{padding:7px 1px;gap:7px}#home .tile b{font-size:9px}#home .ti{width:40px;height:40px}#home .ti svg{width:26px;height:26px}#home .hh{margin-top:20px}#home .hh h2{font-size:19px}#home .hh p{font-size:10px}.home-local-badge{display:none}#home #hchips{gap:5px;margin:10px 0 18px}#home #hchips button{padding:5px 9px;font-size:9px;min-height:27px}#home #hgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 10px}#home .tc img{padding:7px}#home .tc>span{font-size:10px}#home .tc small{font-size:8px}.current-design{gap:10px;padding:9px}.current-design img{width:60px;height:75px}.current-design b{font-size:11px}.current-design small{font-size:9px}}

#home{overflow:hidden}.home-content{height:100%;overflow:auto}.home-rail{position:relative}

@font-face{font-family:'Montserrat';src:url('fonts/montserrat.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:block}
@font-face{font-family:'Anton';src:url('fonts/anton.ttf') format('truetype');font-style:normal;font-weight:400;font-display:block}
@font-face{font-family:'Bebas Neue';src:url('fonts/bebasneue.ttf') format('truetype');font-style:normal;font-weight:400;font-display:block}
@font-face{font-family:'Lobster';src:url('fonts/lobster.ttf') format('truetype');font-style:normal;font-weight:400;font-display:block}
@font-face{font-family:'Pacifico';src:url('fonts/pacifico.ttf') format('truetype');font-style:normal;font-weight:400;font-display:block}
@font-face{font-family:'Playfair Display';src:url('fonts/playfairdisplay.ttf') format('truetype');font-style:normal;font-weight:400 900;font-display:block}
.text-search{display:flex;gap:7px;align-items:center;border:1px solid #dfc7f8;border-radius:12px;background:var(--panel);padding:9px 10px;margin:17px 0 8px}.text-search>span{font-size:25px;line-height:1;color:var(--mute)}.text-search input{width:100%;min-width:0;border:0;background:transparent;color:var(--ink);font-size:11px;padding:5px 0;outline:none;box-shadow:none}.text-search:focus-within{outline:2px solid #9a73d1;outline-offset:2px}.add-text-box{font-weight:700;border-radius:10px;padding:11px}.basic-text-styles{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 0;margin:12px 0}.basic-text-styles button{display:block;width:100%;padding:10px 5px;border:0;background:transparent;text-align:left}.basic-text-styles button:nth-child(1){font-size:23px;font-weight:750}.basic-text-styles button:nth-child(2){font-size:17px;font-weight:600}.basic-text-styles button:nth-child(3){font-size:12px;color:var(--mute)}.text-font-quick{display:block;font-size:10px;color:var(--mute);margin:14px 0}.text-font-quick select{display:block;width:100%;margin-top:6px;font-size:11px}.text-section-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:22px;font-size:12px}.text-section-heading span{font-size:8px;letter-spacing:.7px;padding:4px 6px;border-radius:5px;background:#e3f4ed;color:#247757;font-weight:700}.text-categories{display:flex;gap:5px;flex-wrap:wrap;margin-top:13px}.text-categories button{padding:4px 8px;min-height:27px;font-size:9px;border-radius:16px}.text-categories button.on{background:var(--soft);border-color:var(--brand)}#textPresetCount{font-size:10px;color:var(--mute);margin:12px 0}.text-style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 9px}.text-style{padding:0 0 8px;min-width:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;text-align:left;background:var(--panel);box-shadow:0 2px 6px #5539770b}.text-style img{display:block;width:100%;aspect-ratio:5/3;object-fit:contain;background:#f0ecf5}.text-style b{display:block;font-size:10px;font-weight:650;padding:7px 7px 0;line-height:1.5}.text-style small{display:block;font-size:8px;line-height:1.4;color:var(--mute);padding:3px 7px 0;overflow-wrap:anywhere}.text-style:hover{border-color:#a175d8;box-shadow:0 4px 11px #885eb020;transform:translateY(-2px)}.text-preset-note,#textNoResults{font-size:10px;line-height:1.7;color:var(--mute);margin-top:18px}.text-font-source{font-size:10px;color:var(--brand);display:block;line-height:1.6;margin:14px 0 8px}html[data-studio-theme=dark] .text-search{border-color:#806096}html[data-studio-theme=dark] .basic-text-styles button{background:transparent}html[data-studio-theme=dark] .text-style{background:var(--panel)}html[data-studio-theme=dark] .text-section-heading span{background:#284b3b;color:#b1e0c7}html[data-studio-theme=dark] .text-style img{opacity:.96}

.text-basics{margin:10px 0;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:var(--panel)}.text-basics summary{font-size:11px;font-weight:600;cursor:pointer;padding:10px 0;color:var(--mute)}.text-basics[open] summary{color:var(--brand)}.text-basics .basic-text-styles{margin-top:0;border-top:0}.text-basics .text-font-quick{margin:10px 0 14px}

.studio-feature-card{padding:11px;border:1px solid var(--line);border-radius:10px;margin:18px 0;background:var(--panel)}.studio-feature-card summary{font-size:12px;font-weight:700;color:var(--ink);cursor:pointer;line-height:1.6}.feature-help{font-size:10px;line-height:1.7;color:var(--mute);margin:10px 0}.feature-check{font-size:11px;display:flex;align-items:center;gap:6px;margin:12px 0}.kit-sections{display:grid;gap:8px;margin:12px 0}.kit-sections label{font-size:9px;display:flex;align-items:center;gap:6px;line-height:1.5}.studio-feature-card .field{margin:12px 0}.studio-feature-card select,.studio-feature-card input[type=text]{width:100%;font-size:11px}.studio-feature-card button{font-size:11px}.guide-toggle{display:flex;align-items:center;gap:4px;font-size:10px;white-space:nowrap;color:var(--mute)}.guide-toggle input{accent-color:var(--brand)}.crop-actions,.distribution-actions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.crop-actions button,.distribution-actions button{font-size:10px!important;flex:1;white-space:nowrap}.cw{position:relative}.alignment-guides{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;overflow:visible}.icon-options{display:flex;align-items:center;gap:8px}.icon-options select{min-width:0;flex:1;width:100%;font-size:10px}.icon-options label{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--mute)}.icon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0}.icon-tile{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:9px 3px;border:1px solid var(--line);background:var(--panel);border-radius:8px;cursor:grab}.icon-tile img{width:27px;height:27px;pointer-events:none}.icon-tile small{font-size:8px;line-height:1.4;overflow-wrap:anywhere}.icon-tile:hover{background:var(--soft);border-color:#a888d0}.custom-text-card{position:relative;min-width:0}.custom-text-card .text-style{width:100%;cursor:grab}.custom-text-remove{position:absolute;top:4px;right:4px;width:22px;min-height:22px!important;border-radius:50%;padding:0;font-size:16px;box-shadow:0 1px 6px #0002}.crop-dialog{width:min(610px,94vw);max-height:92vh;overflow:auto;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--ink);box-shadow:0 20px 90px #0005}.crop-dialog::backdrop{background:#12182ac9;backdrop-filter:blur(4px)}.crop-heading{display:flex;align-items:flex-start;gap:16px;justify-content:space-between}.crop-heading h2{font-size:20px;margin:0 0 6px}.crop-heading p{font-size:11px;color:var(--mute);line-height:1.6;margin:0 0 13px}.crop-heading button{font-size:20px;padding:0 8px}.crop-dialog canvas{width:100%;height:auto;display:block;border-radius:9px;background:#1d2434;touch-action:none;cursor:grab}.crop-dialog canvas:active{cursor:grabbing}.crop-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}.crop-settings label{font-size:11px;color:var(--mute)}.crop-settings label:last-child{grid-column:1/-1}.crop-settings select,.crop-settings input{width:100%;display:block;margin-top:6px;font-size:12px}.crop-settings input{accent-color:var(--brand)}#pageStrip button.page-dragging{opacity:.4}#pageStrip button.page-drop-before{box-shadow:-5px 0 0 #9e65dc}#pageStrip button.page-drop-after{box-shadow:5px 0 0 #9e65dc}#pageStrip button{cursor:grab}#pageStrip button img,#pageStrip button span{pointer-events:none}#customTextGrid{margin-top:12px}#home #tiles{grid-template-columns:repeat(13,minmax(0,1fr))}html[data-studio-theme=dark] .icon-tile img{background:#f1eafa;border-radius:5px;padding:2px}html[data-studio-theme=dark] .icon-tile{background:var(--panel)}html[data-studio-theme=dark] .crop-dialog{border-color:#685381}html[data-studio-theme=dark] .studio-feature-card{background:#2a2537;border-color:#5a466f}@media(max-width:1250px){#contextbar>div{gap:5px}.guide-toggle{font-size:9px}}@media(max-width:1050px){#home #tiles{grid-template-columns:repeat(6,minmax(0,1fr))}.guide-toggle{font-size:9px}}@media(max-width:740px){.guide-toggle{font-size:8px}#contextbar #size{max-width:100px}.crop-dialog{padding:14px}.crop-heading h2{font-size:16px}.crop-settings{gap:8px}.crop-settings select{font-size:10px}.icon-grid{gap:7px}}@media(max-width:600px){#home #tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Create opens a real, keyboard-accessible design chooser. */
.create-dialog{width:min(760px,94vw);max-height:90vh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);box-shadow:0 20px 90px #0005}.create-dialog::backdrop{background:#12182abf;backdrop-filter:blur(4px)}#createChoices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:10px}#createChoices .tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;padding:14px 6px;min-width:0;white-space:normal;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink)}#createChoices .tile:hover{border-color:var(--brand);background:var(--soft)}#createChoices .ti{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;color:white}#createChoices .ti svg{width:27px;height:27px}#createChoices b{font-size:12px}#createChoices small{font-size:10px;color:var(--mute)}@media(max-width:600px){.create-dialog{padding:16px}#createChoices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}

.openyoudesign-language{max-width:145px;min-height:36px;border:1px solid #b9acd2;border-radius:8px;padding:5px 8px;background:var(--panel,#fff);color:var(--ink,#251b37);font:inherit;font-size:12px}#top .openyoudesign-language{order:-1} .hn .openyoudesign-language{flex-shrink:0}@media(max-width:740px){.hn{flex-wrap:wrap;gap:8px}.openyoudesign-language{max-width:125px}}
