@font-face{font-family:'ChiKareGo2';src:url('/fonts/ChiKareGo2.woff2') format('woff2');font-display:swap}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#008080}
body{padding:6px;font-family:"Pixelated MS Sans Serif",Arial,sans-serif}
.app{height:100%;display:flex;flex-direction:column}
.title-bar-text{font-family:'ChiKareGo2','Pixelated MS Sans Serif',sans-serif;font-size:14px;font-weight:400}
.menubar{display:flex;padding:1px 2px;border-bottom:1px solid #808080;box-shadow:0 1px #fff}
.mi{position:relative}.mb{min-width:0;min-height:0;box-shadow:none;background:none;padding:3px 8px}
.mi.open .mb,.mb:hover{background:#000080;color:#fff}
.menu{display:none;position:absolute;left:0;top:100%;z-index:60;background:#c0c0c0;min-width:230px;padding:2px;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #dfdfdf,inset -2px -2px #808080,inset 2px 2px #fff}
.mi.open .menu{display:block}
.menu a,.menu button{display:flex;justify-content:space-between;width:100%;text-align:left;padding:4px 18px;color:#000;text-decoration:none;background:none;box-shadow:none;min-height:0;font:inherit}
.menu a:hover,.menu button:hover{background:#000080;color:#fff}
.menu hr{border:0;border-top:1px solid #808080;border-bottom:1px solid #fff;margin:3px 2px}
kbd{font:inherit;opacity:.7;margin-left:16px}
.cols{flex:1;display:grid;grid-template-columns:minmax(300px,330px) minmax(380px,1fr) minmax(340px,420px);gap:6px;margin:6px;min-height:0}
.pane{display:flex;flex-direction:column;min-height:0}
.pane>.window-body{flex:1;overflow:auto;margin:6px}
.sunken{background:#fff;box-shadow:inset -1px -1px #fff,inset 1px 1px #808080,inset -2px -2px #dfdfdf,inset 2px 2px #0a0a0a;padding:3px}
.tabbody{margin-top:-2px}
.field-row{flex-wrap:wrap;gap:4px;margin:4px 0}.field-row>*+*{margin-left:0}
.field-row.right{justify-content:flex-end}
button{min-width:0;padding:0 8px}
.lbl{color:#222}
.note{color:#404040;font-size:11px;margin:6px 0}
.swatches{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:6px}
.sw{display:flex;flex-direction:column;align-items:center;font-size:10px}
.sw input[type=color]{width:34px;height:24px;padding:0;border:0;box-shadow:inset -1px -1px #fff,inset 1px 1px #0a0a0a;background:#c0c0c0}
.tilelist{display:flex;flex-wrap:wrap;gap:2px;max-height:120px;overflow:auto;margin:4px 0}
.tilelist canvas{width:24px;height:24px;image-rendering:pixelated;cursor:pointer;outline:1px solid #c0c0c0}
.tilelist canvas.sel{outline:2px solid #000080}
.pxrow{display:flex;gap:6px;align-items:flex-start}
.pxed{image-rendering:pixelated;cursor:crosshair;background:#fff;box-shadow:inset -1px -1px #fff,inset 1px 1px #808080;max-width:220px}
.inks{display:flex;flex-direction:column;gap:3px}
.ink{width:26px;height:20px;border:0;min-height:0;padding:0;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px #808080,inset 2px 2px #dfdfdf}
.ink.sel{outline:2px solid #000080;outline-offset:1px}
.ink.tr{background:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%) 0 0/8px 8px!important}
.bgwrap{overflow:auto;max-height:300px}
#bgEd{image-rendering:pixelated;cursor:crosshair;display:block}
.aclist{width:100%;height:auto}
.stage{display:flex;justify-content:center;align-items:center;background:#000;padding:8px}
#stage{image-rendering:pixelated;width:480px;max-width:100%;aspect-ratio:10/9;cursor:default}
#stage.hi{aspect-ratio:8/7}
#stage.dragok{cursor:move}
.transport input[type=range]{flex:1;min-width:120px}
.scriptbody{display:flex;flex-direction:column}
.events{flex:1;overflow:auto;padding:4px;min-height:200px}
.ev{background:#c0c0c0;margin:0 0 4px;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #dfdfdf,inset -2px -2px #808080,inset 2px 2px #fff;padding:4px 6px 6px}
.ev.sel{box-shadow:inset 0 0 0 2px #000080,inset -3px -3px #808080}
.ev.run>.evh{background:#000080;color:#fff}
.evh{display:flex;align-items:center;gap:4px;margin:-2px -4px 4px;padding:2px 4px;background:linear-gradient(90deg,#808080,#b5b5b5);color:#fff}
.evh b{flex:1;font-weight:700}
.evh .cat{font-size:10px;opacity:.85;margin-right:4px}
.evh button{min-height:18px;height:18px;padding:0 5px;font-size:10px;color:#000}
.evh label{color:inherit;font-size:10px;display:flex;align-items:center;gap:2px}
.evf{display:grid;grid-template-columns:auto 1fr;gap:3px 6px;align-items:center}
.evf input:not([type=checkbox]),.evf select{width:100%}
.evf input[type=checkbox]{position:static;opacity:1;appearance:auto;-webkit-appearance:auto;width:13px;height:13px}
.kids{margin:6px 0 0 10px;padding:4px;border-left:2px solid #000080;background:#d4d0c8}
.kids .field-row{margin:0 0 4px}
.dlg{position:fixed;left:50%;top:12%;transform:translateX(-50%);width:min(560px,94vw);z-index:80;max-height:80vh;overflow:auto}
.tablewrap{max-height:180px;overflow:auto}
table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:2px 6px}tbody tr:hover{background:#000080;color:#fff}
.helpwrap{max-height:50vh;overflow:auto;padding:6px}.helpwrap dt{font-weight:700;margin-top:6px}.helpwrap dd{margin:0 0 0 12px}
input[type=checkbox]+span{margin-left:2px}
/* 98.css hides checkboxes and draws its own via input+label; our labels wrap the input, so use native boxes */
label>input[type=checkbox]{position:static;opacity:1;appearance:auto;-webkit-appearance:auto;width:13px;height:13px;margin:0 4px 0 0;accent-color:#000080}
@media (max-width:1100px){.cols{grid-template-columns:1fr;overflow:auto}.pane{min-height:420px}}
[hidden]{display:none!important}
