*{box-sizing:border-box}body{margin:0;background:#f4f4f5;color:#202024;font:16px system-ui}main{max-width:1100px;margin:auto;padding:24px}header{margin-bottom:24px}h1{margin:0;font-size:28px}small{color:#666}.layout{display:grid;grid-template-columns:290px 1fr;gap:20px}section{background:white;padding:20px;border-radius:14px;box-shadow:0 2px 12px #0001}label{display:block;margin:14px 0 5px;font-weight:600}input:not([type=checkbox]),select,button{width:100%;padding:10px;border:1px solid #ccc;border-radius:8px;font:inherit}input[type=range]{padding:0;accent-color:#bd1423}button{background:#b51220;color:white;border:0;cursor:pointer;margin-top:12px;font-weight:700}button:disabled{opacity:.5;cursor:wait}#progress{font-size:13px;overflow-wrap:anywhere}button.secondary{background:#eee;color:#222}canvas{width:100%;height:auto;display:block;border-radius:4px}p{line-height:1.5}details{margin-top:16px;border:1px solid #ddd;border-radius:8px;padding:12px}summary{cursor:pointer;font-weight:700}h3{font-size:15px;margin:18px 0 0} @media(max-width:760px){.layout{grid-template-columns:minmax(0,1fr)}main{padding:12px}section{min-width:0;padding:14px}}
/* Independent editor scrolling */
@media(min-width:761px){
 body{height:100dvh;overflow:hidden}
 main{height:100dvh;display:flex;flex-direction:column;min-height:0}
 header{flex:none;margin-bottom:16px}
 .layout{flex:1;min-height:0;align-items:start;grid-template-columns:290px minmax(0,1fr)}
 .layout>section:first-child{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
 .layout>section:last-child{max-height:100%;overflow-y:auto;min-width:0}
}
@media(max-width:760px){
 .layout{display:flex;flex-direction:column;gap:12px}
 .layout>section:last-child{order:-1;position:sticky;top:0;z-index:5;width:100%;padding:10px}
 .layout>section:last-child h2{font-size:16px;margin:0 0 8px}
 .layout>section:last-child p{display:none}
 .layout>section:first-child{width:100%}
}
input[type=range]{accent-color:var(--accent,#bd1423)}
