
:root{color-scheme:dark;--bg:#0a1020;--panel:#141e34;--panel2:#1c2741;--line:#34425d;--ink:#eaf0ff;--muted:#9aacca;--accent:#a58aff}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% -10%,#222b52,#0a1020 52%);font:13px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #b8a9ff;outline-offset:2px}
header{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#0d1425d9;backdrop-filter:blur(12px);border-bottom:1px solid #354262;position:sticky;top:0;z-index:20;padding:12px 19px;min-height:67px}
.brand{display:flex;gap:12px;align-items:center}.mark{background:linear-gradient(135deg,#6784fc,#9361f8);padding:11px;border-radius:10px;font-weight:900;box-shadow:0 0 18px #7e67ff77}.brand strong{display:block;font-size:15px}.brand small{display:block;color:#a8b5d1;font-size:10px;margin-top:5px}.header-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
button,.action{border:1px solid #455473;background:#1d2a44;color:#ecf1ff;border-radius:9px;padding:9px 11px;font-size:12px;font-weight:650}.action{display:inline-flex}.primary{background:linear-gradient(120deg,#496bee,#8057e8);border-color:#9e8eff;color:white}.active{border-color:#a29afd!important;background:#333b7d!important}.status{font:10px ui-monospace,monospace;color:#84e2b0;padding:0 10px}.status:before{content:"● ";color:#35d18b}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:calc(100vh - 67px)}main{min-width:0;padding:24px;display:flex;flex-direction:column;gap:17px}.heading{display:flex;justify-content:space-between;align-items:end;gap:16px}.eyebrow{font:10px ui-monospace,monospace;letter-spacing:1.2px;color:#a3b7e5}.heading h1{font-size:27px;letter-spacing:-1px;margin:8px 0}.heading p,.muted{color:#a3b1ce}.heading p{margin:0;font-size:12px;line-height:1.6}
.pane{border:1px solid #3a4767;border-radius:16px;background:#141d32;overflow:hidden}.bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #35415d;font-size:11px;font-weight:750}.bar .right{display:flex;gap:8px;align-items:center}.bar small{color:#9caccc;font-size:10px}.breakpoints{display:flex;gap:4px}
.comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:11px}.comparison.focus{grid-template-columns:1fr}.comparison.focus .original{display:none}
.preview{background:#10182a;border:1px solid #3b4b72;border-radius:12px;overflow:hidden;min-width:0}.preview.live{border-color:#9888ff;box-shadow:0 0 0 1px #9289ff33}.preview-head{height:38px;background:#1c2a45;display:flex;align-items:center;justify-content:space-between;padding:0 13px;font:700 10px ui-monospace,monospace;letter-spacing:.04em}.preview-head span:last-child{color:#9eb0d0}
.viewport{position:relative;height:440px;overflow:hidden;background:#0b1020}.viewport iframe{border:0;position:absolute;top:0;left:0;transform-origin:0 0;max-width:none}.mask{position:absolute;inset:0;z-index:2}.preview-foot{padding:8px 13px;color:#94a7cb;font:10px ui-monospace,monospace}.hint{padding:10px 14px;color:#99acd3;font-size:11px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cols{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}.body{padding:18px}.body h2{font-size:15px;margin:0}.body p{line-height:1.55;color:#abb9d1;font-size:11px}.command{display:flex;gap:8px;margin-top:14px}.command input,.snapshot input,aside input[type=text],aside select,aside textarea{background:#0d1729;border:1px solid #3c4c6c;color:white;border-radius:9px;padding:11px 12px;min-width:0}.command input,.snapshot input{flex:1}.examples{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.examples button{font-size:10px;padding:8px;border-radius:20px}.feedback{color:#91a9d2;font-size:10px;min-height:16px;margin-top:12px}.snapshot{display:flex;gap:8px;margin-top:15px}.saved{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}.saved button{font-size:10px}.codehead{display:flex;justify-content:space-between;gap:12px;align-items:center}.code{background:#080f1e;border:1px solid #2f3c59;border-radius:11px;padding:16px;max-height:245px;overflow:auto;white-space:pre-wrap;word-break:break-word;color:#bcd3ff;font:11px/1.6 ui-monospace,monospace;margin-top:15px}.approve{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:14px;flex-wrap:wrap}.approve span{color:#97a8c6;font-size:11px}.approved{background:#236c50!important}
aside{background:#111a2c;border-left:1px solid #344362;height:calc(100vh - 67px);position:sticky;top:67px;overflow:auto}aside .inspecthead{padding:23px 18px;border-bottom:1px solid #33405c}.inspecthead h2{font-size:21px;margin:6px 0 0}aside .group{padding:21px 18px;border-bottom:1px solid #303f5a}aside .group h3{font-size:12px;margin:0 0 16px}label{font-size:11px;color:#b9c7df}.group select,.group input[type=text],.group textarea{display:block;width:100%;margin-top:7px}.group input[type=range]{width:100%;accent-color:#9b8cff}.rangehead{display:flex;justify-content:space-between;margin:15px 0 8px}.rangehead output{color:#d7e0fd;font:10px ui-monospace,monospace}.swatches{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.swatches button{height:30px;width:30px;border-radius:8px;background:var(--swatch);border:2px solid transparent}.swatches button.active{outline:2px solid white;outline-offset:2px}.swatches input{height:30px;width:33px;padding:0;background:transparent;border:0}.toggle{display:flex;justify-content:space-between;align-items:center;margin:13px 0}.toggle input{accent-color:#a18aff}.smallrow{display:flex;gap:5px;margin-top:12px}.smallrow button{flex:1}.footer{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;color:#8499b9;font-size:10px;padding-bottom:12px}
@media(max-width:1050px){.layout{grid-template-columns:1fr}aside{position:static;height:auto;border-left:0;border-top:1px solid #344362;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.inspecthead{grid-column:1/-1}.header-actions .status{display:none}}
@media(max-width:720px){header{flex-wrap:wrap}.header-actions{width:100%;justify-content:end}main{padding:12px}.comparison{grid-template-columns:1fr}.cols{grid-template-columns:1fr}.heading{flex-direction:column;align-items:start}.viewport{height:350px}aside{grid-template-columns:1fr}.heading h1{font-size:22px}.bar{flex-wrap:wrap}.brand small{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* MAYSON typography v4.1, consistent with portfolio */
:root{--font-ui:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;--font-display:"Onest","Manrope",system-ui,sans-serif}
body{font-family:var(--font-ui);font-size:13px;line-height:1.56;letter-spacing:0}
h1,h2,h3,.brand strong,.inspecthead h2{font-family:var(--font-display);font-weight:750;letter-spacing:-.025em}
.heading h1{font-size:clamp(22px,2.2vw,29px);letter-spacing:-.038em;line-height:1.2}
.brand small,.eyebrow,.preview-head,.preview-foot,.status{font-family:var(--font-ui);letter-spacing:.055em}
.status:before{content:"✓ ";font-weight:800}
button,.action,input,select,textarea{font-family:var(--font-ui)}
.body p,.heading p{line-height:1.65}
@media(max-width:720px){.brand small{font-size:10px}.heading h1{font-size:clamp(22px,6vw,27px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Studio stability: one active preview on touch/mobile. */
#comparison.studio-single-original,#comparison.studio-single-live{grid-template-columns:minmax(0,1fr)}
#comparison.studio-single-original .live,#comparison.studio-single-live .original{display:none!important}
#comparison.studio-single-original .original{display:block!important}
@media(max-width:800px),(pointer:coarse){#mp-atmosphere-v26,#mp-atmosphere-v26 *{animation:none!important;transition:none!important}.viewport{isolation:isolate}}
