/* Bundled so the board looks the same on every machine; both faces are variable, one file each. */
@font-face{font-family:"Inter";src:url("./fonts/inter-latin.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:block}
@font-face{font-family:"Caveat";src:url("./fonts/caveat-latin.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:block}
:root{color-scheme:light;--white:#fff;--black:#080808;--gray-1:#c0c0c0;--gray-2:#808080;--gray-3:#404040;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}[hidden]{display:none!important}html,body,.workspace{width:100%;height:100%;margin:0;overflow:hidden}body{color:var(--black);background:var(--white)}button,input,textarea{font:inherit}button{color:inherit}#board{display:block;width:100%;height:100%;touch-action:none;outline:none}#board[data-active-tool=select]{cursor:default}#board[data-active-tool=hand]{cursor:grab}#board[data-active-tool=pen],#board[data-active-tool=ai-pen],#board[data-active-tool=marker],#board[data-active-tool=rectangle],#board[data-active-tool=ellipse],#board[data-active-tool=arrow],#board[data-active-tool=lasso],#board[data-active-tool=eraser],#board[data-active-tool=artboard]{cursor:crosshair}#board[data-active-tool=text],#board[data-active-tool=sticky]{cursor:text}
.toolbar,.utility,.prompt-dock,.selection-tools,.review,.activity,.popover,.explanation-controls{position:fixed;z-index:10;border:1px solid var(--black);background:rgba(255,255,255,.97);backdrop-filter:blur(12px)}
.toolbar{top:14px;left:50%;display:flex;align-items:center;gap:3px;width:max-content;max-width:calc(100vw - 330px);height:58px;padding:7px;color:var(--white);background:var(--black);border-radius:20px;box-shadow:0 12px 34px rgba(8,8,8,.2);transform:translateX(-50%);white-space:nowrap}.primary-tools{display:flex;align-items:center;gap:2px}.toolbar-divider{width:1px;height:26px;margin:0 3px;background:#404040;flex:0 0 auto}
button{display:inline-grid;place-items:center;min-width:44px;height:44px;padding:0 10px;border:0;border-radius:13px;background:transparent;cursor:pointer;transition:background-color 120ms,color 120ms,transform 120ms}button:hover,.file-label:hover{background:var(--gray-1)}.toolbar button:hover{background:var(--gray-3)}button:focus-visible,input:focus-visible,textarea:focus-visible,.file-label:focus-within{outline:2px solid var(--black);outline-offset:2px}.toolbar button:focus-visible{outline-color:#fff}.toolbar button.is-active{color:#080808;background:#fff}.toolbar .ai-tool.is-active{box-shadow:0 0 18px rgba(153,207,255,.9),inset 0 0 0 1px #9fd3ff}button:disabled{cursor:not-allowed;opacity:.48}svg{display:block;width:20px;height:20px;min-width:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.color-picker-toggle{position:relative;width:36px;min-width:36px;height:36px;padding:0;border-radius:999px;background:conic-gradient(#c62828,#ffd84d,#16833b,#2457e6,#7c3aed,#c62828)}.color-picker-toggle span{position:absolute;inset:9px;border:2px solid #080808;border-radius:50%;background:#fff}
.prompt-dock{left:50%;bottom:16px;display:flex;align-items:flex-end;gap:8px;width:min(360px,calc(100vw - 28px));min-height:58px;padding:7px;color:#fff;background:#080808;border-radius:21px;box-shadow:0 18px 48px rgba(8,8,8,.24);transform:translateX(-50%);transition:width 160ms ease,border-radius 160ms ease}.prompt-dock.has-prompt{width:min(720px,calc(100vw - 28px));border-radius:22px}.agent-context{display:grid;align-content:center;gap:3px;min-width:112px;max-width:210px;min-height:42px;padding:2px 4px 2px 8px}.dock-label{color:#808080;font-size:9px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}.scope-chips{display:flex;gap:4px;overflow:hidden}.scope-chips span{min-width:0;max-width:150px;overflow:hidden;padding:4px 7px;border:1px solid #404040;border-radius:999px;color:#dedede;background:#151515;font-size:10px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.instruction-control{display:flex;align-items:flex-end;flex:1;min-width:80px;min-height:42px;border:1px solid #404040;border-radius:14px;background:#151515;overflow:hidden}.instruction-control textarea{display:block;width:100%;height:40px;min-height:40px;max-height:112px;resize:none;overflow-y:auto;border:0;padding:10px 12px;color:#fff;background:transparent;line-height:20px;outline:0}.instruction-control textarea::placeholder{color:#808080}.withdraw-turn{width:42px;min-width:42px;height:42px;border-radius:14px!important;color:#dedede;background:#151515!important;border:1px solid #404040!important}.withdraw-turn:hover{color:#fff;background:#404040!important}.submit-arrow{width:42px;min-width:42px;height:42px;border-radius:14px!important;color:#080808;background:#fff!important}.submit-arrow:hover{color:#fff;background:#404040!important}.submit-arrow.is-waiting{animation:waiting 1.4s ease-in-out infinite}@keyframes waiting{50%{box-shadow:0 0 0 5px rgba(255,255,255,.18)}}
.utility{top:14px;right:14px;display:flex;align-items:center;height:56px;padding:6px;border-radius:18px;box-shadow:0 10px 30px rgba(8,8,8,.09);font-size:12px}.utility span{padding:0 6px;color:#404040;font-variant-numeric:tabular-nums}.utility button,.file-label{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:42px;padding:0 9px;border:0;border-radius:12px;background:transparent;cursor:pointer}.file-label input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.popover{z-index:28;padding:12px;border-radius:18px;box-shadow:0 18px 48px rgba(8,8,8,.18)}.tool-popover{top:78px;left:calc(50% - 245px);display:flex;gap:3px}.color-popover{top:78px;left:calc(50% + 120px);display:grid;grid-template-columns:repeat(3,auto);gap:12px}.swatches{grid-column:1/-1;display:flex;gap:8px}.color{position:relative;width:28px;min-width:28px;height:28px;padding:0;border:1px solid #fff;border-radius:999px;background:var(--swatch);box-shadow:0 0 0 1px #c0c0c0}.color[data-color="#080808"]{--swatch:#080808}.color[data-color="#2457e6"]{--swatch:#2457e6}.color[data-color="#c62828"]{--swatch:#c62828}.color[data-color="#16833b"]{--swatch:#16833b}.color[data-color="#7c3aed"]{--swatch:#7c3aed}.color.is-active{box-shadow:0 0 0 2px #fff,0 0 0 3px #080808}.popover label{display:grid;gap:6px;color:#404040;font-size:11px;font-weight:650}.popover input[type=text]{width:88px;height:34px;border:1px solid #c0c0c0;border-radius:9px;padding:0 9px}.popover input[type=color]{width:52px;height:34px;padding:2px;border:1px solid #c0c0c0;border-radius:9px;background:#fff}.popover input[type=range]{width:120px;accent-color:#080808}.settings-popover{top:78px;right:14px;width:310px;display:grid;gap:11px}.settings-popover h2{margin:0 0 4px;font-size:14px}.settings-popover label{display:flex;align-items:center;gap:9px;color:#080808;font-size:12px;font-weight:500}.settings-popover input{accent-color:#080808}.settings-popover p{margin:3px 0 0;color:#808080;font-size:10px;line-height:1.4}.export-popover{top:78px;right:86px;display:grid;gap:5px;width:230px}.export-popover strong{padding:4px 8px;font-size:13px}.export-popover button{display:flex;justify-content:flex-start}.export-popover small{padding:6px 8px;color:#808080;line-height:1.35}
.selection-tools{display:flex;align-items:center;gap:2px;padding:5px;border-radius:14px;transform:translateX(-50%);box-shadow:0 10px 30px rgba(8,8,8,.12)}.selection-tools button{width:36px;min-width:36px;height:36px}.selection-tools .text-actions{display:none;padding-inline:3px;border-inline:1px solid #c0c0c0}.selection-tools.has-text .text-actions{display:inline-flex}.selection-tools .attach-action{display:none}.selection-tools.has-note .attach-action{display:grid}.selection-tools .attach-action.is-active{color:#fff;background:#080808}#delete-selection{color:#c62828}
.review{right:16px;bottom:18px;display:flex;align-items:center;gap:6px;min-height:50px;padding:5px 6px 5px 16px;border-radius:16px;box-shadow:0 12px 36px rgba(8,8,8,.12)}.review>span{margin-right:4px;color:#404040;font-size:12px}.review button{display:inline-flex;gap:6px;border:1px solid #080808;font-size:12px}#accept{color:#fff;background:#080808}
.explanation-controls{left:50%;bottom:calc(var(--prompt-dock-height,58px) + 28px);display:flex;align-items:center;gap:4px;min-height:50px;padding:5px;border-radius:16px;transform:translateX(-50%);box-shadow:0 12px 36px rgba(8,8,8,.12)}.explanation-controls span{min-width:140px;padding:0 10px;text-align:center;font-size:12px}.explanation-controls button{height:38px}
.activity{left:16px;bottom:calc(var(--prompt-dock-height,58px) + 28px);display:flex;gap:6px;border-color:transparent;background:transparent;backdrop-filter:none;color:#404040;font-size:11px}.activity span:not(:empty){display:block;padding:8px 10px;border:1px solid #c0c0c0;border-radius:10px;background:#fff}.agent-marker-tip{position:fixed;z-index:40;pointer-events:none;padding:8px 11px;border:1px solid #e32636;border-radius:999px;color:#080808;background:#fff;box-shadow:0 0 20px rgba(227,38,54,.25);font-size:11px;font-weight:650;white-space:nowrap}.agent-marker-tip span{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#e32636;box-shadow:0 0 10px #e32636}
.text-editor-shell{position:fixed;z-index:50;display:flex;flex-direction:column;min-width:min(260px,calc(100vw - 20px));min-height:116px;max-width:calc(100vw - 20px);max-height:calc(100vh - 20px);overflow:hidden;border:1px solid #080808;border-radius:16px;background:rgba(255,255,255,.99);box-shadow:0 16px 44px rgba(8,8,8,.16);resize:both}.text-editor-shell .text-controls{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:6px;border-bottom:1px solid #dedede;background:#f7f7f7}.text-control-group{display:inline-flex;align-items:center;gap:2px;padding-right:5px;border-right:1px solid #d8d8d8}.text-editor-shell select,.text-editor-shell input[type=number]{height:32px;min-width:86px;border:1px solid #dedede;border-radius:8px;padding:0 7px;color:#080808;background:#fff;font:11px/1 Inter,sans-serif}.text-editor-shell select[aria-label=Schriftart]{min-width:70px}.text-editor-shell input[type=number]{width:54px;min-width:54px}.text-editor-shell input[type=color]{width:32px;height:32px;border:1px solid #d8d8d8;border-radius:8px;padding:3px;background:#fff}.text-editor-shell .text-controls button{width:32px;min-width:32px;height:32px;border-radius:8px;padding:0;background:#fff;font:600 13px/1 Georgia,serif}.text-editor-shell .text-controls button[aria-pressed=true]{color:#fff;background:#080808}.text-editor-shell .text-done{width:auto!important;margin-left:auto;padding:0 11px!important;font-family:Inter,sans-serif!important}.text-editor-shell textarea{display:block;flex:1;width:100%;min-height:58px;resize:none;border:0;padding:12px 14px;color:#080808;background:transparent;font:24px/1.3 Inter,sans-serif;outline:0}
@media(max-width:1420px){.toolbar{left:10px;max-width:calc(100vw - 330px);transform:none}.utility{right:10px}.secondary-divider{display:none}.tool-popover{left:220px}.color-popover{left:auto;right:180px}}
@media(max-width:820px){.toolbar{max-width:calc(100vw - 20px);height:58px;padding:7px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.toolbar::-webkit-scrollbar{display:none}.toolbar>*{flex:0 0 auto}.utility{top:80px;height:48px;padding:3px}.utility span,.utility .file-label{display:none}.toolbar-divider{display:none}.tool-popover,.color-popover{top:82px;left:10px;right:auto}.color-popover{left:auto;right:10px}.settings-popover,.export-popover{top:136px;right:10px}.activity{bottom:calc(var(--prompt-dock-height,58px) + 28px)}.review{bottom:calc(var(--prompt-dock-height,58px) + 28px)}.text-editor-shell .text-control-group:first-child{width:100%}}
@media(max-width:560px){.prompt-dock{align-items:flex-end;width:calc(100vw - 20px);gap:5px;padding:6px}.prompt-dock.has-prompt{width:calc(100vw - 20px)}.agent-context{min-width:88px;max-width:112px;padding-left:5px}.scope-chips span{max-width:100px}.dock-label{font-size:8px}}
@media(max-width:480px){.toolbar{gap:1px;padding:5px 4px}.toolbar button{width:35px;min-width:35px;height:38px;padding:0}.primary-tools button[data-tool=select]{display:none}.instruction-control{min-width:52px}.instruction-control textarea{padding:10px 6px}.submit-arrow{width:35px!important;min-width:35px!important}.explanation-controls{width:calc(100vw - 20px)}.explanation-controls span{min-width:0;flex:1}}

/* A single compact command bar: the file actions stay beside the drawing tools. */
.toolbar{left:14px;max-width:calc(100vw - 28px);transform:none}
.toolbar .utility{position:static;z-index:auto;display:flex;align-items:center;height:44px;padding:0;border:0;border-radius:0;color:#fff;background:transparent;box-shadow:none;backdrop-filter:none;font-size:12px}
.toolbar .utility span{padding:0 5px;color:#c0c0c0}.toolbar .utility button,.toolbar .utility .file-label{min-width:38px;height:42px;color:#fff}.toolbar .utility button:hover,.toolbar .utility .file-label:hover{background:#404040}
.prompt-dock{width:min(250px,calc(100vw - 28px))}.prompt-dock.has-prompt{width:min(720px,calc(100vw - 28px))}
/* overflow must not be visible here: the browser draws no resize grip without clipping, which
   left resize:both above declared but dead. */
.text-editor-shell{min-height:0;border:1px dashed rgba(8,8,8,.45);border-radius:4px;background:transparent;box-shadow:none;overflow:hidden}.text-editor-shell textarea{min-height:0;padding:6px 8px;background:transparent}
@media(max-width:1180px){.toolbar .utility #zoom,.toolbar .utility #revision,.toolbar .utility .file-label{display:none}}
@media(max-width:1050px){.toolbar .utility #fit{display:none}}
@media(max-width:820px){.toolbar .utility{position:static;height:42px;padding:0}.toolbar .utility button{height:38px}.toolbar{left:10px;max-width:calc(100vw - 20px)}}

/* Keep the context visible, but let the chip itself describe what is sent. */
.prompt-dock{width:min(340px,calc(100vw - 28px))}.prompt-dock .scope-chips{align-self:center;min-width:96px;max-width:150px;padding-left:2px}.prompt-dock .scope-chips span{max-width:148px}

/* The same command bar at a denser, tablet-friendly scale. */
.toolbar{height:48px;gap:2px;padding:5px;border-radius:18px}.toolbar button{min-width:36px;width:36px;height:36px;padding:0;border-radius:11px}.toolbar-divider{height:22px;margin:0 2px}.color-picker-toggle{width:32px!important;min-width:32px!important;height:32px!important}.color-picker-toggle span{inset:8px}
.toolbar .utility{height:36px;font-size:11px}.toolbar .utility button,.toolbar .utility .file-label{min-width:34px;width:auto;height:36px;padding:0 7px}.toolbar .utility span{padding:0 4px}
@media(max-width:560px){.prompt-dock .scope-chips{min-width:82px;max-width:104px}.prompt-dock .scope-chips span{max-width:100px}}

/* The guided explanation shows the step text the agent wrote, not only its title. */
.explanation-controls{flex-wrap:wrap;max-width:min(560px,calc(100vw - 28px))}
.explanation-body{flex-basis:100%;margin:0;padding:2px 12px 6px;color:#404040;font-size:12px;line-height:1.45;text-wrap:pretty}
@media(max-width:480px){.toolbar{height:44px}.toolbar button{width:33px;min-width:33px;height:34px}.toolbar .utility button{width:33px;min-width:33px;height:34px;padding:0}.toolbar .utility #export-toggle{font-size:0}.toolbar .utility #export-toggle::after{content:"↗";font-size:18px}.prompt-dock{width:calc(100vw - 20px)}}
