:root{color-scheme:dark}body{background:#202126}#main-wrapper{top:52px}.studio-bar,.studio-bar *,#sheet-dialog,#sheet-dialog *{box-sizing:border-box}.studio-bar{position:relative;z-index:2;min-height:46px;padding:6px 12px;background:#17181b;border-bottom:1px solid #34353a;color:#eee;display:flex;justify-content:space-between;align-items:center;gap:12px;font:500 14px/1.25 system-ui,sans-serif}.studio-bar strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:36%;font-size:14px}.studio-bar nav,.sheet-foot{display:flex;align-items:center;gap:6px}.studio-bar button,#sheet-dialog button{appearance:none;background:#303136;border:1px solid #4a4b51;color:#fff;border-radius:6px;font:500 14px/1.2 system-ui,sans-serif;padding:7px 10px;cursor:pointer}.studio-bar button:hover,#sheet-dialog button:hover:enabled{background:#494a52}.studio-bar button:focus-visible,#sheet-dialog :focus-visible{outline:2px solid #ffd84d;outline-offset:2px}.piskel-name-saving{color:#ffb43f}.sheet-primary,.studio-bar button[data-command=slice]{border-color:#bf9736!important}.studio-bar button[data-command=slice]{color:#ffda63}
#sheet-dialog{padding:0;width:min(830px,calc(100% - 20px));max-height:calc(100% - 16px);border:1px solid #414249;border-radius:12px;background:#1e1f23;color:#f5f6f7;font:14px/1.4 system-ui,sans-serif;box-shadow:0 18px 80px #0009;overflow:auto}#sheet-dialog::backdrop{background:#090a0dc9}.sheet-head,.sheet-foot{padding:14px 18px;background:#25262a}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sheet-head h2{margin:0;font-size:18px;color:#fff}.sheet-body{padding:14px;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,270px);gap:16px}.sheet-board{min-height:210px;border:1px solid #42434b;border-radius:6px;display:grid;place-items:center;position:relative;background-color:#292a2e;background-image:conic-gradient(#323338 25%,transparent 0 50%,#323338 0 75%,transparent 0);background-size:16px 16px;overflow:hidden}.sheet-board canvas{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;image-rendering:pixelated}.sheet-board [hidden]{display:none}.sheet-settings{display:flex;flex-direction:column;gap:10px}.sheet-file,.sheet-pair label{display:grid;gap:4px}.sheet-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.sheet-settings input{font:inherit;color:inherit;min-width:0}.sheet-pair input{border:1px solid #4f5055;border-radius:4px;background:#131417;padding:5px 8px;width:100%}.sheet-file input::file-selector-button{color:#fff;background:#34363b;border:1px solid #515359;padding:6px;border-radius:4px}.sheet-foot{justify-content:flex-end;flex-wrap:wrap}.sheet-foot output{margin-right:auto}.sheet-foot .sheet-primary{color:#17181a!important;background:#f7c438!important}.sheet-foot button:disabled{opacity:.45;cursor:default!important}#sheet-count,#sheet-status{color:#c9cbd0}
@media(max-width:650px){.studio-bar{gap:3px;padding:5px}.studio-bar nav{gap:3px}.studio-bar button{font-size:12px;padding:6px}.studio-bar strong{max-width:20%}.sheet-head,.sheet-foot{padding:9px}.sheet-body{padding:9px;grid-template-columns:1fr}.sheet-board{min-height:120px;max-height:22vh}.sheet-pair{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.sheet-pair span{font-size:12px}.sheet-foot{gap:5px}}

.compact-panels{display:none}
@media(max-width:760px){.studio-bar{padding:5px 6px;min-height:44px}.studio-bar strong{display:none}.studio-bar nav{max-width:100%;overflow-x:auto;white-space:nowrap}.studio-bar button{flex-shrink:0}.compact-panels{display:inline-block}.right-column{display:none;position:fixed;right:44px;top:51px;bottom:4px;z-index:800;background:#27282c;border:1px solid #47484e;border-radius:6px;max-height:calc(100% - 60px);padding:4px;overflow:auto}.compact-panels-open .right-column{display:flex}.compact-panels-open .studio-bar button.compact-panels{color:#ffda63}.sheet-foot .sheet-primary{white-space:normal}}

#sheet-status a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
