:root{--canvas-bg:#f7f7f8;--grid:#d4d6dc;--surface:#fff;--surface-2:#f2f3f5;--text:#1f1f24;--text-2:#6b6f7a;--border:#1012181a;--shadow:0 2px 8px #10121814, 0 0 0 1px #1012180f;--shadow-lg:0 12px 32px #10121829, 0 0 0 1px #1012180f;--accent:#2f6fd6;--accent-soft:#2f6fd61f;--danger:#d9534f;--radius:10px;--font:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--canvas-bg:#1b1c1f;--grid:#34363c;--surface:#26272b;--surface-2:#303136;--text:#ececef;--text-2:#a2a6b0;--border:#ffffff1a;--shadow:0 2px 8px #00000059, 0 0 0 1px #ffffff0f;--shadow-lg:0 12px 32px #00000080, 0 0 0 1px #ffffff14;--accent:#6b9bf0;--accent-soft:#6b9bf02e;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--canvas-bg:#1b1c1f;--grid:#34363c;--surface:#26272b;--surface-2:#303136;--text:#ececef;--text-2:#a2a6b0;--border:#ffffff1a;--shadow:0 2px 8px #00000059, 0 0 0 1px #ffffff0f;--shadow-lg:0 12px 32px #00000080, 0 0 0 1px #ffffff14;--accent:#6b9bf0;--accent-soft:#6b9bf02e;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}body{background:var(--canvas-bg);color:var(--text);font:14px/1.4 var(--font);-webkit-font-smoothing:antialiased;overscroll-behavior:none;-webkit-user-select:none;user-select:none}button{font:inherit;color:inherit}#app,#board{position:fixed;inset:0}#stage{background-color:var(--canvas-bg);background-image:radial-gradient(circle, var(--grid) 1px, transparent 1.2px);touch-action:none;outline:none;position:absolute;inset:0}#overlay{pointer-events:none;position:absolute;inset:0;overflow:hidden}#overlay>*{pointer-events:auto}.floating{z-index:10;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);position:fixed}#topleft{align-items:center;gap:4px;max-width:calc(100vw - 180px);padding:4px 10px 4px 4px;display:flex;top:12px;left:12px}.brand{letter-spacing:-.01em;white-space:nowrap;padding:0 4px;font-weight:650}.divider{background:var(--border);width:1px;height:20px;margin:0 4px}.board-name{color:var(--text);font:inherit;background:0 0;border:0;border-radius:6px;outline:none;width:22ch;min-width:80px;padding:5px 6px}.board-name:hover{background:var(--surface-2)}.board-name:focus{background:var(--surface-2);box-shadow:0 0 0 2px var(--accent-soft)}.save-status{color:var(--text-2);white-space:nowrap;font-size:12px}.save-status[data-state=error]{color:var(--danger)}#topright{align-items:center;padding:4px;display:flex;top:12px;right:12px}.timer-btn{cursor:pointer;font-variant-numeric:tabular-nums;background:0 0;border:0;border-radius:8px;align-items:center;gap:6px;padding:6px 10px;display:flex}.timer-btn:hover{background:var(--surface-2)}.timer-btn.running{color:var(--accent)}.timer-btn.done{color:var(--danger);animation:.6s 8 blink}@keyframes blink{50%{background:#d9534f2e}}.timer-panel{width:320px}.timer-presets .pill{white-space:nowrap;padding:7px 6px}.timer-adjust{justify-content:space-between;align-items:center;display:flex}.timer-big{font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-size:40px;font-weight:600}.timer-presets{grid-template-columns:repeat(4,1fr);gap:4px;margin:10px 0;display:grid}.timer-controls{justify-content:center;gap:8px;display:flex}.timer-controls .icon-btn.primary{background:var(--accent);color:#fff;width:44px}#toolbar{box-shadow:none;background:0 0;flex-direction:column;gap:8px;display:flex;top:50%;left:12px;transform:translateY(-50%)}.toolbar-group{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:2px;padding:4px;display:flex}.icon-btn{cursor:pointer;width:36px;height:36px;color:var(--text);background:0 0;border:0;border-radius:8px;flex:none;place-items:center;display:inline-grid;position:relative}.icon-btn:hover{background:var(--surface-2)}.icon-btn.active{background:var(--accent-soft);color:var(--accent)}.icon-btn:disabled{opacity:.35;cursor:default;background:0 0}.icon-btn:focus-visible,.pill:focus-visible,.swatch:focus-visible{outline:2px solid var(--accent);outline-offset:1px}#toolbar .icon-btn[title^=Sticky]:after{content:"";background:var(--tool-accent,#fff6a8);border-radius:2px;width:7px;height:7px;position:absolute;bottom:5px;right:5px;box-shadow:0 0 0 1px #00000026}.popover{z-index:50;background:var(--surface);box-shadow:var(--shadow-lg);border-radius:12px;padding:10px;animation:.12s ease-out pop;position:fixed}@keyframes pop{0%{opacity:0;transform:scale(.97)}}.panel{flex-direction:column;gap:8px;display:flex}.swatch-grid{grid-template-columns:repeat(4,30px);gap:6px;display:grid}.swatch{cursor:pointer;border:1px solid #0000001f;border-radius:6px;width:30px;height:30px;padding:0}.sticky-swatch{border-radius:3px;width:44px;height:44px}.swatch-grid:has(.sticky-swatch){grid-template-columns:repeat(2,44px)}.swatch.active{box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--accent)}.swatch.transparent{background:linear-gradient(135deg, transparent 45%, var(--danger) 45%, var(--danger) 55%, transparent 55%), var(--surface)}.pill{cursor:pointer;background:var(--surface-2);border:0;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:7px 12px;font-size:13px;font-weight:500;display:inline-flex}.pill:hover{filter:brightness(.96)}.pill.active{background:var(--accent-soft);color:var(--accent)}.pill svg{width:18px;height:18px}.shape-grid{grid-template-columns:repeat(3,36px);gap:4px;display:grid}.stroke-widths{gap:4px;display:flex}.menu{gap:2px;min-width:260px}.menu-title{text-transform:uppercase;letter-spacing:.06em;color:var(--text-2);padding:6px 8px 2px;font-size:11px}.menu hr{border:0;border-top:1px solid var(--border);width:100%;margin:6px 0}.menu-item{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:space-between;gap:16px;width:100%;padding:7px 8px;display:flex}.menu-item:hover{background:var(--surface-2)}.menu-item.active{color:var(--accent);font-weight:600}.menu-item kbd,kbd{font:12px var(--font);color:var(--text-2)}.board-list{flex-direction:column;max-height:240px;display:flex;overflow:auto}.theme-row{gap:4px;padding:2px 8px 6px;display:flex}.contextbar{z-index:20;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-lg);align-items:center;gap:2px;padding:4px;display:flex;position:absolute;top:0;left:0}.contextbar[hidden]{display:none}.contextbar .icon-btn{width:32px;height:32px}.contextbar .sep{background:var(--border);width:1px;height:20px;margin:0 4px}.color-btn .dot{border:1px solid #0000002e;border-radius:50%;width:18px;height:18px;display:block}.color-btn .dot.ring{background:0 0;border-width:3px}.color-btn .dot.transparent{background:linear-gradient(135deg, transparent 42%, var(--danger) 42%, var(--danger) 58%, transparent 58%)}.font-select{background:var(--surface-2);height:32px;color:var(--text);font:inherit;cursor:pointer;border:0;border-radius:8px;padding:0 6px}.zoombar{z-index:10;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);align-items:center;gap:2px;padding:4px;display:flex;position:absolute;bottom:12px;right:12px}.zoom-pct{cursor:pointer;font-variant-numeric:tabular-nums;background:0 0;border:0;border-radius:8px;min-width:58px;height:36px}.zoom-pct:hover{background:var(--surface-2)}.minimap{z-index:10;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);cursor:pointer;position:absolute;bottom:60px;right:12px}.minimap[hidden]{display:none}.text-editor{transform-origin:0 0;-webkit-user-select:text;user-select:text;white-space:pre-wrap;overflow-wrap:break-word;word-break:break-word;cursor:text;outline:none;position:absolute;top:0;left:0}.text-editor.is-box{align-items:center;display:flex;overflow:hidden}.text-editor-inner{caret-color:currentColor;outline:none;width:100%;min-height:1.25em}.title-editor{font:13px var(--font);border:1px solid var(--accent);background:var(--surface);color:var(--text);border-radius:4px;outline:none;min-width:160px;padding:2px 4px;position:absolute;top:0;left:0}.modal-backdrop{z-index:100;background:#00000052;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);box-shadow:var(--shadow-lg);border-radius:14px;width:100%;max-width:920px;max-height:calc(100vh - 32px);padding:20px 24px;overflow:auto}.modal header{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.modal h2{margin:0;font-size:18px}.modal h3{color:var(--text-2);text-transform:uppercase;letter-spacing:.05em;margin:12px 0 6px;font-size:13px}.help-cols{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:0 28px;display:grid}.help-cols table{border-collapse:collapse;width:100%}.help-cols td{vertical-align:top;padding:4px 0}.help-cols td:first-child{width:45%;padding-right:12px}.help-cols kbd{background:var(--surface-2);color:var(--text);border:1px solid var(--border);white-space:nowrap;border-radius:5px;padding:1px 6px;display:inline-block}.toast{z-index:200;background:var(--text);color:var(--surface);border-radius:8px;padding:8px 14px;transition:opacity .3s;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.toast.out{opacity:0}@media (max-width:600px){.brand,.divider,.save-status{display:none}.board-name{width:14ch}}
