/* MEKI AI · unified creative tool interiors · v1
   Keeps every functional control and page-specific editor layout intact. */
body.meki-workspace-tool{
 --field-bg:#110e1b;--field-border:#514268;--field-border-hover:#8064b4;
 --surface:#1b1628;--surface-line:#423550;--surface-raised:#211b31;
 --accent:#ae8bfa;--accent-light:#d7bfff;--content-width:1160px;
 max-width:none;margin:0;padding:0;width:100%;min-height:100vh;
 background:#0d0a14;color:#f5f1ff;font:15px/1.58 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;
}
.meki-workspace-tool .meki-workspace-header{box-sizing:border-box}
.meki-workspace-tool main,
.meki-workspace-tool>form,
.meki-workspace-tool>.hero,
.meki-workspace-tool>section,
.meki-workspace-tool>p:not([role="status"]),
.meki-workspace-tool>footer{
 box-sizing:border-box;width:calc(100% - 44px);max-width:var(--content-width);margin-inline:auto;
}
.meki-workspace-tool main{padding:26px 0 64px;max-width:var(--content-width)}
.meki-workspace-tool>.hero{margin-top:26px}
.meki-workspace-tool>form{margin-top:14px;margin-bottom:60px}
.meki-workspace-tool>section{margin-top:18px;margin-bottom:18px}
.meki-workspace-tool>footer{padding:14px 0 30px;color:#a79bb8;font-size:13px}
.meki-workspace-tool .hero{
 box-sizing:border-box;position:relative;isolation:isolate;overflow:hidden;
 background:radial-gradient(ellipse at 90% 9%,rgba(135,82,216,.38),transparent 55%),linear-gradient(132deg,#352248,#17121e 83%);
 border:1px solid #60457f;border-radius:23px;
 padding:clamp(24px,4.8vw,48px);margin-bottom:20px;
 box-shadow:0 14px 42px rgba(0,0,0,.17)
}
.meki-workspace-tool .hero h1{max-width:860px;font-size:clamp(32px,5.3vw,59px);line-height:1.1;letter-spacing:-.042em;font-weight:770;margin:9px 0 13px}
.meki-workspace-tool .hero p{max-width:750px;font-size:15px;line-height:1.65;color:#d3c5e3}
.meki-workspace-tool :is(.eyebrow,.hero>small){font-weight:760;text-transform:uppercase;letter-spacing:.14em;color:#cba9ff;font-size:11px}
.meki-workspace-tool .hero :is(.tag,.pill,.hero>strong){
 display:inline-flex;align-items:center;max-width:100%;font-size:12px;line-height:1.45;
 border-radius:100px;background:rgba(22,14,36,.48);color:#e0d1f5;
 border:1px solid #8665b05e;padding:6px 12px;margin-top:10px;font-weight:650
}
.meki-workspace-tool :is(.panel,form>section,body>section){
 background:var(--surface);border:1px solid var(--surface-line);
 border-radius:18px;padding:clamp(16px,2.5vw,23px);
 box-shadow:0 10px 30px rgba(0,0,0,.1)
}
.meki-workspace-tool>section{background:var(--surface);border:1px solid var(--surface-line);border-radius:18px;padding:clamp(16px,2.5vw,23px)}
.meki-workspace-tool .panel{margin-block:18px}
.meki-workspace-tool :is(h2,h3){letter-spacing:-.025em;line-height:1.26}
.meki-workspace-tool h2{font-size:clamp(19px,2.7vw,23px);font-weight:720;margin:0 0 13px}
.meki-workspace-tool h3{font-size:17px;font-weight:690}
.meki-workspace-tool :is(label){color:#e3d8f2;font-size:13px;font-weight:650;letter-spacing:.005em}
.meki-workspace-tool :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){
 box-sizing:border-box;background:var(--field-bg);color:#f9f5ff;border:1px solid var(--field-border);
 border-radius:12px;padding:11px 13px;min-height:43px;line-height:1.45;
 max-width:100%;accent-color:var(--accent)
}
.meki-workspace-tool input[type=file]{max-width:100%;color:#d5c4ed}
.meki-workspace-tool :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea):hover:not(:disabled){border-color:var(--field-border-hover)}
.meki-workspace-tool :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea):focus-visible{
 border-color:#b696fb;outline:3px solid #9275de60;outline-offset:1px
}
.meki-workspace-tool :is(input::placeholder,textarea::placeholder){color:#9e92ae;opacity:1}
.meki-workspace-tool :is(input[type=checkbox],input[type=radio]){accent-color:var(--accent)}
.meki-workspace-tool :is(.toolbar,.bar,.actions,.buttons){display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.meki-workspace-tool :is(.toolbar,.bar,.actions,.buttons) button{margin:0}
.meki-workspace-tool :is(button,.btn,.action){
 box-sizing:border-box;min-height:43px;border-radius:11px;border:1px solid #665181;
 background:#30243f;color:#f6efff;font-size:13px;font-weight:670;
 line-height:1.32;padding:10px 15px;cursor:pointer;white-space:normal
}
.meki-workspace-tool :is(button,.btn,.action):not(:disabled):hover{background:#403053;border-color:#9375bc}
.meki-workspace-tool :is(button,.btn,.action):disabled{cursor:not-allowed;opacity:.48}
.meki-workspace-tool :is(button,.btn,.action):not(:disabled):active{transform:translateY(1px)}
.meki-workspace-tool :is(button.primary,button[type=submit],button#save,.btn.primary){
 border-color:#9c77ee;background:linear-gradient(128deg,#9468e5,#754dca);color:#fff
}
.meki-workspace-tool :is(button.primary,button[type=submit],button#save,.btn.primary):not(:disabled):hover{
 background:linear-gradient(128deg,#a27af4,#865bdc);border-color:#b695fa
}
.meki-workspace-tool :is(button.secondary,button#clear,button#reset,button#delete){background:#241c31;border-color:#554468}
.meki-workspace-tool :is(.stats>div,.stat,.card,.shot,.item,.target){
 border-radius:14px;border-color:#4c3b5c;background:#211a2c
}
.meki-workspace-tool .stats{gap:12px}
.meki-workspace-tool .stats strong{font-variant-numeric:tabular-nums}
.meki-workspace-tool :is(.notice,.status,[role="status"]){overflow-wrap:anywhere}
.meki-workspace-tool :is(.notice,.status){color:#d4bdf4}
.meki-workspace-tool :is(.muted,.small,small,p){overflow-wrap:break-word}
.meki-workspace-tool :is(button,a,input,select,textarea):focus-visible{
 outline:3px solid #c9b0ff;outline-offset:2px
}
@media(max-width:760px){
 .meki-workspace-tool main,.meki-workspace-tool>form,.meki-workspace-tool>.hero,
 .meki-workspace-tool>section,.meki-workspace-tool>p:not([role="status"]),
 .meki-workspace-tool>footer{width:calc(100% - 28px)}
 .meki-workspace-tool main{padding:17px 0 46px}
 .meki-workspace-tool>.hero{margin-top:17px}
 .meki-workspace-tool .hero{padding:23px 19px;border-radius:20px}
 .meki-workspace-tool :is(.panel,form>section){padding:17px}
 .meki-workspace-tool .hero h1{font-size:clamp(30px,8vw,43px)}
 .meki-workspace-tool :is(button,.btn,.action){min-height:44px}
 .meki-workspace-tool :is(.toolbar,.bar,.actions,.buttons){gap:8px}
}
@media(max-width:420px){
 .meki-workspace-tool .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .meki-workspace-tool :is(.toolbar,.bar,.actions,.buttons) button{max-width:100%}
 .meki-workspace-tool .hero p{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
 .meki-workspace-tool :is(button,.btn,.action){transition:none!important;transform:none!important}
}
