@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/geist.woff2) format("woff2")}:root{font-family:Geist,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px;line-height:1.5;color-scheme:dark;--bg: #0a0a0a;--surface: #131313;--panel: #171717;--hover: #242424;--active: #252525;--ink: #fafafa;--muted: #a3a3a3;--faint: #686868;--border: #292929;--dot: #242424;--selection: #4c7ef3;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:transparent;transition:background .12s,color .12s}button:disabled{opacity:.35;cursor:default}button:hover:not(:disabled){background:var(--hover)}button:active:not(:disabled){filter:brightness(.9)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--selection);outline-offset:2px}a{color:inherit}button svg{vertical-align:middle;flex-shrink:0;stroke-width:1.6}.app{height:100dvh;overflow:hidden;display:flex;flex-direction:column;background:var(--bg)}.topbar{height:48px;padding:0 16px;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--border);background:var(--surface);z-index:15;flex-shrink:0}.wordmark{font-weight:700;font-size:13px;letter-spacing:.2px;padding:0}.wordmark:hover{background:none!important;opacity:.8}.header-divider{width:1px;height:18px;background:var(--border)}.board-name{border:0;background:transparent;outline:none;font-weight:500;font-size:13px;width:260px;min-width:0;text-overflow:ellipsis}.header-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.header-button{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:#d4d4d4}.file-button{height:32px;border:1px solid var(--border);border-radius:9px;background:var(--panel);padding:0 12px;font-size:12px;font-weight:500;display:flex;align-items:center;gap:6px}.save-status{font-size:10px;color:var(--faint);margin-right:4px}.save-status.error{color:#f08080}.canvas{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;background-color:var(--bg);background-image:radial-gradient(var(--dot) .75px,transparent .75px);-webkit-user-select:none;user-select:none}.world{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0}.tool-text{cursor:text}.tool-draw,.tool-connect,.tool-shape{cursor:crosshair}.panning{cursor:grab!important}.panning:active{cursor:grabbing!important}.panning .board-item{cursor:grab!important}.board-item{position:absolute;touch-action:none;overflow:visible;cursor:default}.board-item.selected{outline:1px solid var(--selection);outline-offset:1px}.board-item.connecting{outline:2px solid var(--selection);outline-offset:2px}.board-item.dimmed{opacity:.2}.board-item>img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.item-note,.item-shape{padding:18px;display:flex;align-items:center;white-space:pre-wrap}.item-note{color:#222}.item-text{padding:4px;white-space:pre-wrap}.card-text{overflow:hidden;width:100%;max-height:100%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4;pointer-events:none}.board-item textarea{display:block;width:100%;height:100%;min-height:30px;resize:none;border:0;background:transparent;padding:0;outline:none;line-height:1.4;color:inherit;-webkit-user-select:text;user-select:text;overflow:auto}.board-item textarea:focus{outline:none}.board-item textarea::placeholder{color:var(--muted)}.board-item.item-note textarea::placeholder{color:#777}.item-drawing>svg{width:100%;height:100%;overflow:visible;pointer-events:none}.item-link{background:var(--panel)}.item-link>iframe{display:block;width:100%;height:calc(100% - 28px);border:0;background:#fff}.embed-footer{height:28px;padding:5px 10px;display:flex;align-items:center;gap:12px;background:#222;color:#ddd;font-size:11px;cursor:move}.embed-footer>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.embed-footer>a{padding:0 2px;line-height:16px}.bookmark{height:calc(100% - 28px);display:flex;align-items:center;padding:20px;gap:14px;border:1px solid var(--border)}.bookmark strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bookmark>a{margin-left:auto;font-size:11px;white-space:nowrap;color:var(--muted)}.item-video>video{width:100%;height:100%;object-fit:contain;background:#111}.item-audio>audio{width:100%;height:100%}.selection-handle{position:absolute;width:7px;height:7px;background:var(--surface);border:1px solid var(--selection);z-index:4;padding:0}.selection-handle.tl{left:-5px;top:-5px}.selection-handle.tr{right:-5px;top:-5px}.selection-handle.bl{left:-5px;bottom:-5px}.selection-handle.br{right:-5px;bottom:-5px;cursor:nwse-resize}.connections{position:absolute;width:1px;height:1px;overflow:visible;pointer-events:none;color:var(--muted)}.connector-line{stroke:var(--muted);stroke-width:2;pointer-events:stroke;cursor:pointer}.connector-line:hover{stroke:var(--selection);stroke-width:4}.marquee{position:absolute;background:#4c7ef31c;border:1px solid #4c7ef3;pointer-events:none}.shape-preview{position:absolute;pointer-events:none;opacity:.8}.empty-board{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;width:95%;color:var(--muted)}.empty-board h1{font-size:18px;line-height:1.4;font-weight:500;margin:0 0 9px;color:var(--ink)}.empty-board p{font-size:13px;margin:0 0 5px}.empty-board small{font-size:12px;color:var(--faint)}.toolbar{position:absolute;left:50%;bottom:18px;transform:translate(-50%);display:flex;align-items:center;padding:5px;gap:4px;border:1px solid var(--border);border-radius:15px;background:var(--surface);box-shadow:0 2px #ffffff04 inset,0 4px 18px #0003;z-index:10}.toolbar>button{position:relative;width:36px;height:36px;display:grid;place-items:center;border-radius:9px;color:var(--muted);border:1px solid transparent}.toolbar>button.active{background:var(--active);border-color:#3a3a3a;color:var(--ink)}.toolbar .locked{position:absolute;right:2px;bottom:2px}.zoom-controls{position:absolute;bottom:18px;right:16px;display:flex;align-items:center;padding:1px 3px;background:var(--surface);border:1px solid var(--border);border-radius:20px;color:#d4d4d4;z-index:9}.zoom-controls>button{height:28px;min-width:28px;line-height:14px;padding:0 8px;font-size:14px;border-radius:20px}.zoom-controls>button:nth-child(2){min-width:56px;font-size:11px}.properties{position:absolute;left:16px;top:16px;display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--border);background:var(--surface);border-radius:12px;box-shadow:0 3px 16px #0002;z-index:10;max-width:calc(100% - 32px)}.property-row{display:flex;align-items:center;gap:5px}.property-row>button{width:28px;height:28px;display:grid;place-items:center;border-radius:6px;color:var(--muted)}.property-row>button.active{background:var(--active);color:var(--ink)}.property-row>select{width:51px;height:28px;border:1px solid var(--border);border-radius:6px;background:var(--panel);font-size:11px;padding-left:4px}.property-rule{height:1px;width:100%;background:var(--border);display:block}.property-row>.property-rule{height:20px;width:1px;margin:0 3px}.swatches>.swatch,.swatches>.no-color{width:20px;height:20px;border-radius:5px;border:1px solid #ffffff20}.swatches>.swatch.active{outline:1px solid var(--ink);outline-offset:2px}.swatches>.no-color{position:relative;background:linear-gradient(135deg,transparent 46%,#e5484d 47%,#e5484d 53%,transparent 54%)}.stroke-preview{width:13px;background:currentColor;border-radius:3px}.selection-actions{border-top:1px solid var(--border);padding-top:7px}.scrim{position:fixed;inset:0;z-index:20}.file-menu,.context-menu{position:fixed;z-index:21;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:6px;box-shadow:0 10px 30px #0004;font-size:13px}.file-menu{top:44px;right:16px;width:300px;max-height:calc(100dvh - 60px);overflow:auto}.file-menu>button,.context-menu>button{display:block;width:100%;text-align:left;border-radius:8px;padding:8px 10px;line-height:1.5}.file-menu small{display:block;font-size:11px;color:var(--muted);margin-top:1px}.file-menu kbd,.context-menu kbd{float:right;font-size:10px;color:var(--faint)}hr{border:0;border-top:1px solid var(--border);margin:5px 3px}.menu-history{display:flex;gap:5px;padding-top:5px;margin-top:4px;border-top:1px solid var(--border)}.menu-history>button{flex:1;padding:7px;border-radius:6px;font-size:11px;display:flex;justify-content:center;align-items:center;gap:6px}.context-menu{width:220px}.context-menu>button{display:flex;align-items:center;gap:9px;font-size:12px}.context-menu kbd{margin-left:auto}.gallery{flex:1;overflow:auto;padding:50px max(32px,calc((100vw - 1100px)/2));background:var(--bg)}.gallery-empty{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:14px}.gallery-empty h1{font-size:18px;font-weight:500;color:var(--muted);margin:0 0 2px}.primary{background:var(--ink);color:var(--bg);border:1px solid var(--ink);border-radius:8px;padding:9px 15px;font-weight:500;font-size:12px}.primary:hover{background:var(--ink)!important;opacity:.85}.secondary{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--border);background:var(--panel);border-radius:8px;padding:8px 12px;font-size:12px}.text-button{font-size:11px;color:var(--faint);padding:6px;border-radius:5px}.gallery-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.gallery-title h1{font-size:22px;font-weight:600;margin:0;letter-spacing:-.5px}.boards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:30px 22px}.board-tile{min-width:0}.board-preview{height:180px;display:block;width:100%;position:relative;overflow:hidden;border:1px solid var(--border);border-radius:10px;background-color:var(--surface);background-image:radial-gradient(var(--dot) .6px,transparent .6px);background-size:16px 16px}.board-preview:hover{border-color:var(--faint);transform:translateY(-2px)}.empty-thumbnail{font-size:12px;color:var(--faint)}.thumbnail-world{position:absolute;top:10px;left:10px;transform-origin:0 0;text-align:left;color:var(--ink)}.thumbnail-world img{width:100%;height:100%;object-fit:cover}.thumb-link{background:var(--panel);height:100%;padding:20px;display:flex;align-items:center;gap:10px}.board-tile-info{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:9px 0 1px}.board-tile-info>button:first-child{font-size:13px;padding:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board-tile-info .icon-button{opacity:.3}.board-tile:hover .icon-button{opacity:1}.board-tile>small{font-size:11px;color:var(--faint)}.icon-button{width:25px;height:25px;border-radius:6px;display:grid;place-items:center}.find-bar{position:absolute;top:12px;right:16px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:7px 8px;display:flex;gap:8px;align-items:center;z-index:12;color:var(--muted);box-shadow:0 5px 16px #0002}.find-bar input{border:0;background:transparent;outline:none;min-width:0;width:160px;font-size:12px}.find-bar input:focus{outline:none}.find-bar>span{font-size:10px;white-space:nowrap}.find-bar>button{min-width:22px;height:25px;border-radius:4px}.modal-backdrop{position:fixed;inset:0;z-index:40;background:#0008;display:flex;align-items:center;justify-content:center;padding:20px}.modal{position:relative;max-width:480px;width:100%;max-height:90dvh;overflow:auto;background:var(--panel);border:1px solid var(--border);border-radius:14px;box-shadow:0 20px 80px #0005;padding:26px}.modal-close{position:absolute;top:15px;right:14px;display:grid;place-items:center;width:25px;height:25px;border-radius:6px;color:var(--muted)}.modal h2{font-size:17px;font-weight:600;letter-spacing:-.3px;margin:0 30px 20px 0}.modal p{color:var(--muted);font-size:12px;line-height:1.7;margin:15px 0 20px}.shortcut-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.shortcut-grid>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--border);font-size:11px}.shortcut-grid kbd{font:10px inherit;color:var(--muted);white-space:nowrap}.modal label{display:block;font-size:12px;margin-bottom:16px}.modal input,.modal textarea{border:1px solid var(--border);border-radius:8px;padding:10px;background:var(--bg);width:100%;display:block;margin-top:7px;resize:vertical;font-size:12px;outline-offset:1px}.modal form>.primary{width:100%;margin-top:8px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.danger{background:#b63838;border-radius:7px;padding:9px 14px;color:#fff;font-size:12px}.danger:hover{background:#9d3030!important}.toast{position:fixed;z-index:60;bottom:78px;left:50%;transform:translate(-50%);padding:10px 16px;border:1px solid var(--border);border-radius:9px;background:var(--panel);box-shadow:0 4px 20px #0004;font-size:12px;max-width:calc(100% - 32px);text-align:center}[data-theme=light]{color-scheme:light;--bg: #fafafa;--surface: #fff;--panel: #fff;--hover: #f1f1f1;--active: #eee;--ink: #0a0a0a;--muted: #737373;--faint: #a3a3a3;--border: #e5e5e5;--dot: #ddd;color:var(--ink);background:var(--bg)}[data-theme=light] .header-button,[data-theme=light] .zoom-controls{color:#525252}[data-theme=light] .toolbar>button.active{border-color:#d5d5d5}[data-theme=light] .swatches>.swatch,[data-theme=light] .swatches>.no-color{border-color:#0002}[data-theme=light] .embed-footer{background:#eee;color:#555}@media(max-width:650px){.topbar{padding:0 12px;gap:10px}.header-actions{gap:7px}.board-name{width:170px;font-size:12px}.save-status{display:none}.header-button{width:27px;height:27px}.file-button{height:30px;padding:0 10px}.empty-board p{font-size:12px;max-width:300px;margin:0 auto 8px}.empty-board h1{font-size:17px}.empty-board small{font-size:11px}.toolbar{bottom:20px;gap:2px;padding:5px}.toolbar>button{width:34px;height:34px}.zoom-controls{bottom:78px;right:12px}.zoom-controls>button{height:26px;min-width:25px;padding:0 6px}.zoom-controls>button:nth-child(2){min-width:43px}.properties{left:12px;top:12px;padding:8px;gap:6px;max-width:calc(100% - 24px)}.file-menu{right:12px;width:290px}.find-bar{right:12px;max-width:calc(100% - 24px)}.find-bar input{width:130px}.shortcut-grid{grid-template-columns:1fr}.modal{padding:24px}.gallery{padding:28px 20px}.boards-grid{grid-template-columns:1fr}.gallery-title h1{font-size:19px}.board-preview{height:200px}.toast{bottom:128px}.board-name{flex:1;width:100px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
