:root{color-scheme:dark;--shell:#151515;--board:#252525;--tile:#333333;--ink:#eeeeee;--muted:#949494;--selected:#d8d8d8}*{box-sizing:border-box}body{margin:0;background:var(--shell);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea{font:inherit}button{border:0;cursor:pointer;color:inherit;background:none;transition:background .15s,transform .15s}button:active{transform:scale(.96)}button:disabled{opacity:.3;cursor:default}button:focus-visible,input:focus-visible,canvas:focus-visible,textarea:focus-visible{outline:2px solid #aaa;outline-offset:4px}svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.app{height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px;padding:26px}.board{position:relative;min-width:0;overflow:hidden;background:var(--board);border-radius:38px;box-shadow:0 18px 45px #0002}canvas{width:100%;height:100%;display:block;touch-action:none;outline:none!important}.empty-hint{position:absolute;top:44%;left:0;width:100%;text-align:center;pointer-events:none;user-select:none;color:#666;transition:opacity .25s}.empty-hint span{font-size:24px;font-weight:350;letter-spacing:-.6px}.empty-hint small{display:block;font-size:12px;margin-top:11px;color:#707070;letter-spacing:.2px}.cabinet{min-height:0;display:flex;flex-direction:column;position:relative;padding:0 0 2px}header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:26px;gap:8px}header>div{min-width:0}#boardName{background:none;border:0;color:#eee;font-size:27px;letter-spacing:-1px;font-weight:650;width:100%;padding:0;outline-offset:2px}#saveStatus{font-size:12px;color:var(--muted);margin-top:5px}.icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:14px}.plain:hover{background:#ffffff0b}.scroll-controls{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#484848 transparent;padding:0 1px 2px}h2{font-size:10px;font-weight:650;letter-spacing:1.5px;text-transform:uppercase;margin:0 0 12px;color:#b3b3b3;display:flex;justify-content:space-between;align-items:center;height:22px}h2 span{font-size:10px;letter-spacing:0;text-transform:none;font-weight:400;color:#777}.tools{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.tool{height:60px;border-radius:18px;background:var(--tile);display:flex;align-items:center;justify-content:center}.tool svg{width:29px;height:29px}.tool:hover,.tile:hover{background:#414141}.tool.active{background:var(--selected);color:#202020}.ink-panel{margin-top:22px;background:#303030;border-radius:23px;padding:16px 17px}.ink-panel h2{margin-bottom:10px}.ink-panel input[type=color]{width:19px;height:19px;border:0;border-radius:50%;padding:0;overflow:hidden;cursor:pointer;background:none}.ink-panel input[type=color]::-webkit-color-swatch-wrapper{padding:0}.ink-panel input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}.swatches{display:flex;justify-content:space-between;gap:9px;margin:6px 0 23px}.swatch{width:29px;height:29px;border-radius:50%;position:relative}.swatch.active:after{content:"";position:absolute;width:7px;height:7px;background:#252525;border-radius:50%;left:11px;top:11px;box-shadow:0 0 0 1px #ffffff50}.stroke-heading{display:flex;align-items:center;justify-content:space-between}.stroke-heading h2{margin:0}.stroke-heading output{font-size:12px;color:#ccc}input[type=range]{width:100%;accent-color:#ddd;height:20px;margin:5px 0 0;cursor:pointer}.layers-section{margin-top:23px}.layers-section h2{margin-bottom:6px}.layers-section h2 button{width:28px;height:28px}.layer{display:flex;align-items:center;gap:8px;background:#292929;border-radius:13px;padding:4px 8px;margin-bottom:7px;min-height:43px}.layer.selected{background:#383838}.layer .icon{width:28px;height:30px}.layer svg{width:18px;height:18px}.layer input{min-width:0;flex:1;width:50px;background:none;border:0;color:#ddd;font-size:12px;padding:6px 0}.layer .remove{opacity:.5}.layer .remove:hover{opacity:1}.history{display:flex;gap:10px;margin-top:18px}.tile{background:var(--tile)}.history #deleteSelected{margin-left:auto}footer{margin-top:auto;padding-top:20px}.zoom{background:var(--tile);border-radius:18px;display:flex;align-items:center;justify-content:space-between;height:47px;padding:0 6px}.zoom button{font-size:12px}.zoom svg{width:20px;height:20px}.export{margin-top:15px;width:100%;height:52px;background:#d8d8d8;color:#202020;border-radius:18px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:14px;font-weight:600}.export:hover{background:#eee}.export svg{width:21px;height:21px}.footnote{font-size:9px;text-align:center;color:#737373;margin-top:13px}.footnote span{padding:0 4px}.menu{position:absolute;top:64px;right:0;background:#393939;padding:7px;border-radius:15px;z-index:5;box-shadow:0 10px 30px #0005}.menu button{display:block;text-align:left;padding:11px 14px;width:100%;border-radius:8px;font-size:12px}.menu button:hover{background:#494949}#textEditor{position:absolute;z-index:3;resize:both;min-width:180px;min-height:70px;background:#303030;color:#eee;border:0;border-radius:10px;padding:10px;box-shadow:0 6px 20px #0004}#toast{position:absolute;bottom:23px;left:50%;transform:translateX(-50%);background:#444;color:white;border-radius:20px;padding:10px 17px;font-size:12px;pointer-events:none;opacity:0;transition:opacity .2s;white-space:nowrap}#toast.show{opacity:1}[hidden]{display:none!important}@media(min-height:950px){.tool{height:74px}.tools{gap:12px}.ink-panel{margin-top:28px;padding:20px}.layers-section{margin-top:28px}header{margin-bottom:32px}}@media(max-width:850px){.app{grid-template-columns:minmax(0,1fr) 204px;gap:18px;padding:18px}.tool{height:51px;border-radius:14px}.tool svg{width:25px;height:25px}.tools{gap:7px}.ink-panel{padding:13px}.swatch{width:25px;height:25px}.swatch.active:after{left:9px;top:9px}.board{border-radius:28px}.swatches{gap:6px}#boardName{font-size:23px}.footnote{font-size:8px}}@media(max-width:550px){.app{grid-template-columns:minmax(0,1fr) 142px;padding:10px;gap:12px}.board{border-radius:22px}.tools{gap:5px}.tool{height:40px;border-radius:11px}.tool svg{width:22px;height:22px}#boardName{font-size:20px}header{margin-bottom:14px}#saveStatus{font-size:9px}header>.icon{width:23px;height:28px}.ink-panel{margin-top:15px;padding:10px;border-radius:16px}.swatches{gap:4px;margin-bottom:13px}.swatch{width:20px;height:20px}.swatch.active:after{left:7px;top:7px;width:6px;height:6px}h2{font-size:9px;letter-spacing:1px}.layers-section{margin-top:14px}.layer{padding:3px}.layer input{font-size:10px}.layer .icon{width:21px}.history{gap:5px}.history .icon{width:33px;height:33px}.history svg{width:20px;height:20px}.export{font-size:12px;gap:6px;height:46px}.footnote{display:none}.empty-hint span{font-size:17px}.empty-hint small{font-size:9px}footer{padding-top:12px}}
@media(max-height:800px){header{margin-bottom:16px}.tool{height:46px;border-radius:14px}.tool svg{width:25px;height:25px}.tools{gap:8px}.ink-panel{margin-top:16px;padding:12px 16px}.swatches{margin:4px 0 12px}.layers-section{margin-top:13px}.history{margin-top:10px}footer{padding-top:12px}.export{height:47px;margin-top:11px}.footnote{margin-top:9px}.layers-section h2{margin-bottom:2px}}
@media(max-height:800px){header{margin-bottom:10px}.tool{height:42px}.ink-panel{margin-top:12px;padding:10px 16px}.swatches{margin:0 0 6px}.swatch{width:27px;height:27px}.swatch.active:after{left:10px;top:10px}.layers-section{margin-top:9px}.history .icon{width:34px;height:34px}.history{margin-top:6px}.zoom{height:42px}.export{height:44px}.ink-panel h2{margin-bottom:6px}}
