:root{color-scheme:dark;font:12px/16px "Segoe UI",Arial,sans-serif;background:#111820;color:#e6edf7}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{display:flex;align-items:center;gap:4px;flex:none;overflow-x:auto;min-height:32px;padding:4px;white-space:nowrap;background:#18212b}header strong{width:64px;flex:none}button,select,header a{font:600 11px/16px "Segoe UI",Arial,sans-serif;height:16px;width:64px;min-width:64px;padding:0 4px;border:0;border-radius:0;color:inherit;background:#283747;text-align:center;cursor:pointer;white-space:nowrap}button,header a{clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,8px 100%,0 50%)}button:hover,select:hover,header a:hover{background:#385a70}button:disabled{opacity:.35;cursor:default}button:focus-visible,select:focus-visible,header a:focus-visible{outline:1px solid #8ed1ff;outline-offset:-1px}header a,#undo,#redo{width:32px;min-width:32px;text-decoration:none}#count{width:64px}#arrangement{width:32px;min-width:32px}label{display:flex;align-items:center;gap:2px;flex:none;white-space:nowrap}input[type=color]{width:32px;height:16px;border:0;padding:0;background:none;cursor:pointer}main{position:relative;flex:1;min-height:0;overflow:hidden;background:#080c12}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}canvas[data-tool=brush],canvas[data-tool=fill],canvas[data-tool=erase],canvas[data-tool=add]{cursor:crosshair}canvas.dragging{cursor:grabbing}#status{margin:0;padding:4px 8px;min-height:24px;flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#status.error{color:#ffb4a8}footer{flex:none;padding:4px 8px;background:#18212b;white-space:nowrap;overflow-x:auto;font-size:11px;line-height:16px}

#zoomOut,#zoomIn{width:32px;min-width:32px}header input[type=checkbox]{margin:0;width:16px;height:16px}dialog.glyph-pendulum{max-width:512px;width:calc(100vw - 32px);border:1px solid #607990;background:#17212e;color:#e6edf7;padding:16px;font:12px/16px system-ui}.glyph-pendulum::backdrop{background:#0009}.glyph-pendulum form{display:grid;gap:8px}.glyph-pendulum label{display:flex;justify-content:space-between;gap:8px;white-space:nowrap}.glyph-pendulum select{width:256px;height:32px;font-size:12px}.glyph-pendulum input[type=number]{width:128px;height:32px}.glyph-pendulum p{margin:4px 0}.glyph-pendulum .dialog-actions{display:flex;gap:4px}.glyph-pendulum .dialog-actions button{width:128px;height:32px;font-size:12px}.glyph-pendulum [hidden]{display:none!important}

.rotation-colours{display:inline-flex;align-items:center;gap:4px;flex:none}.rotation-colours[hidden]{display:none}.rotation-colours label{gap:2px;font-size:11px}
