:root{color:#22211e;background:#ece9e0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--paper: #fffef9;--ink: #24231f;--muted: #74716a;--line: #d7d2c7;--grid-line: #eeeae1;--grid-major: #e3ded3;--accent: #e7653d;--accent-dark: #b94122;--accent-soft: #fff0e9}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;height:100%;margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit}button:focus-visible,a:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 42%,transparent);outline-offset:2px}.app-shell{display:grid;grid-template-rows:68px minmax(0,1fr) 38px;width:100%;height:100%;overflow:hidden;background:#ece9e0}.topbar{position:relative;z-index:2;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;padding:0 22px;border-bottom:1px solid #d8d3c8;background:#faf8f1f0;box-shadow:0 2px 12px #3530260a;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.brand{display:inline-flex;align-items:center;gap:10px;width:max-content;color:var(--ink);font-size:17px;font-weight:700;letter-spacing:-.035em;text-decoration:none}.brand-mark{display:grid;width:31px;height:31px;place-items:center;border-radius:9px;color:#fff;background:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:15px;font-weight:500}.tool-group{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #d9d4c9;border-radius:12px;background:#efede6}.draw-control{position:relative;display:flex}.draw-main{border-radius:8px 0 0 8px}.draw-chevron{width:25px;justify-content:center;padding:0 5px;border-left:1px solid #d9d4c9;border-radius:0 8px 8px 0}.draw-menu{position:absolute;top:calc(100% + 10px);left:0;z-index:20;display:grid;width:210px;padding:7px;border:1px solid #d8d2c6;border-radius:12px;background:var(--paper);box-shadow:0 14px 38px #2b271f2e}.draw-menu button{display:grid;min-height:34px;grid-template-columns:24px 1fr auto;align-items:center;gap:8px;padding:5px 8px;border:0;border-radius:7px;color:#57534c;background:transparent;cursor:pointer;text-align:left;font-size:12px}.draw-menu button:hover:not(:disabled),.draw-menu button.selected{color:var(--ink);background:#f3f0e8}.draw-menu button:disabled{color:#aaa69e;cursor:not-allowed}.draw-menu small{padding:2px 5px;border-radius:4px;background:#efebe3;font-size:9px;font-weight:700;text-transform:uppercase}.shape-swatch{display:block;width:18px;height:14px;border:2px solid currentColor}.shape-swatch.line{height:2px;border:0;background:currentColor;transform:rotate(-25deg)}.shape-swatch.circle{width:16px;height:16px;border-radius:50%}.shape-swatch.ellipse{border-radius:50%}.shape-swatch.pentagon{clip-path:polygon(50% 0,100% 38%,82% 100%,18% 100%,0 38%);background:currentColor;border:0}.shape-swatch.hexagon{clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);background:currentColor;border:0}.shape-swatch.parallelogram{transform:skew(-18deg)}.shape-swatch.trapezium{clip-path:polygon(25% 0,75% 0,100% 100%,0 100%);background:currentColor;border:0}.text-icon,.angle-icon{width:18px;font-family:Georgia,serif;font-size:18px;text-align:center}.tool{display:flex;min-height:39px;align-items:center;gap:8px;padding:0 10px;border:0;border-radius:8px;color:#65615a;background:transparent;cursor:pointer;font-size:13px;font-weight:600}.tool:hover{color:var(--ink);background:#fff9}.tool.active{color:var(--ink);background:var(--paper);box-shadow:0 1px 4px #2d281e1f}.pointer-icon{width:18px;font-size:22px;font-weight:400;line-height:1;transform:translateY(-1px)}.line-icon{position:relative;width:18px;height:18px}.line-icon:before{position:absolute;top:8px;left:1px;width:17px;height:2px;border-radius:2px;background:currentColor;content:"";transform:rotate(-40deg)}kbd{display:grid;min-width:20px;height:20px;place-items:center;border:1px solid #ded9ce;border-radius:5px;color:#928e86;background:#f8f6f0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;font-weight:500}.toolbar-actions,.history-group{display:flex;align-items:center;gap:5px}.toolbar-actions{justify-self:end;gap:11px}.export-control{position:relative;display:flex}.export-button,.export-settings-button{height:38px;border:1px solid var(--ink);color:#fff;background:var(--ink);cursor:pointer}.export-button{display:flex;align-items:center;gap:7px;padding:0 12px;border-radius:9px 0 0 9px;font-size:13px;font-weight:650}.export-settings-button{display:grid;width:31px;place-items:center;border-left-color:#514f49;border-radius:0 9px 9px 0;font-size:16px}.export-button:hover,.export-settings-button:hover,.export-settings-button[aria-expanded=true]{background:#3a3934}.export-icon{font-size:18px;line-height:1;transform:translateY(-1px)}.export-menu{position:absolute;top:calc(100% + 9px);right:0;z-index:12;width:286px;padding:8px;border:1px solid #d8d2c6;border-radius:12px;color:var(--ink);background:var(--paper);box-shadow:0 14px 38px #2b271f2e}.export-menu-heading{display:flex;align-items:baseline;justify-content:space-between;padding:7px 8px 10px}.export-menu-heading strong{font-size:13px}.export-menu-heading span{color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:9px}.export-format{display:grid;min-height:38px;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:5px 8px;font-size:12px;font-weight:650}.export-format select{min-width:88px;height:29px;padding:0 27px 0 9px;border:1px solid #d8d2c6;border-radius:7px;color:var(--ink);background:#fffef9;font:inherit}.export-option{display:grid;min-height:34px;grid-template-columns:18px 1fr auto;align-items:center;gap:8px;padding:5px 8px;border-radius:7px;cursor:pointer;font-size:12px}.export-option:hover{background:#f3f0e8}.export-option.disabled-option{cursor:not-allowed;opacity:.48}.export-option.disabled-option:hover{background:transparent}.export-option input{width:15px;height:15px;margin:0;accent-color:var(--accent)}.export-option small{padding:2px 5px;border-radius:4px;color:#928c82;background:#efebe3;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.export-suboption{margin-left:24px;color:#6f6a62}.export-suboption:has(input:disabled){cursor:not-allowed;opacity:.48}.export-menu-divider{height:1px;margin:6px 8px;background:#e4dfd5}.help-wrapper{position:relative}.icon-button{display:grid;width:38px;height:38px;place-items:center;border:1px solid transparent;border-radius:9px;color:#4d4943;background:transparent;cursor:pointer;font-family:system-ui,sans-serif;font-size:23px}.icon-button:hover:not(:disabled){border-color:#ddd8ce;background:var(--paper)}.icon-button:disabled{color:#c4c0b8;cursor:not-allowed}.help-button{font-size:17px;font-weight:700}.help-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:10;width:min(360px,calc(100vw - 24px));padding:18px;border:1px solid #d5d0c5;border-radius:13px;color:var(--ink);background:var(--paper);box-shadow:0 18px 45px #2d281e2e,0 3px 8px #2d281e14}.help-popover:before{position:absolute;right:0;bottom:100%;width:48px;height:12px;content:""}.help-heading{display:flex;align-items:flex-start;gap:11px}.help-heading>div{display:flex;flex-direction:column;gap:3px}.help-heading strong{font-size:15px}.help-heading span:last-child{color:var(--muted);font-size:12px;line-height:1.45}.help-spark{display:grid;width:31px;height:31px;flex:0 0 auto;place-items:center;border-radius:9px;color:var(--accent-dark);background:var(--accent-soft);font-size:17px}.help-steps{display:grid;gap:7px;margin:15px 0;padding-left:23px;color:#57534c;font-size:12px;line-height:1.45}.help-steps li::marker{color:var(--accent-dark);font-weight:700}.mcp-url-row{display:flex;gap:7px;padding:6px;border:1px solid #ddd8ce;border-radius:9px;background:#f6f3ec}.mcp-url-row code{min-width:0;padding:6px 4px;overflow:hidden;color:#4d4943;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.copy-button{min-width:61px;margin-left:auto;padding:0 9px;border:0;border-radius:6px;color:#fff;background:var(--ink);cursor:pointer;font-size:11px;font-weight:700}.copy-button:hover{background:#3d3b36}.private-warning,.example-prompt{margin:11px 0 0;font-size:11px;line-height:1.45}.private-warning{color:#9b4b32}.example-prompt{padding-top:10px;border-top:1px solid #ebe7de;color:var(--muted)}.workspace{min-height:0;padding:22px;overflow:auto}.canvas-frame{position:relative;width:min(100%,1200px);min-width:620px;margin:0 auto;overflow:hidden;border:1px solid #d5d0c5;border-radius:7px;background:var(--paper);box-shadow:0 18px 48px #342f251a,0 2px 6px #342f250d}.drawing-canvas{display:block;width:100%;height:auto;aspect-ratio:3 / 2;touch-action:none;-webkit-user-select:none;user-select:none}.tool-select{cursor:default}.tool-draw,.tool-text{cursor:crosshair}.canvas-background{fill:var(--paper)}.drawn-line{stroke:var(--ink);stroke-linecap:round;stroke-width:3;vector-effect:non-scaling-stroke}.drawn-curve{fill:none;stroke:var(--ink);stroke-width:3;vector-effect:non-scaling-stroke}.drawn-curve.selected{stroke:var(--accent);stroke-width:4}.curve-hitbox{fill:none;stroke:transparent;stroke-width:24;cursor:grab}.preview-shape{fill:none;stroke:var(--accent);stroke-width:3;stroke-dasharray:9 7;vector-effect:non-scaling-stroke}.canvas-text{fill:var(--ink);font-family:Inter,ui-sans-serif,sans-serif;font-size:18px;text-anchor:middle;dominant-baseline:middle;cursor:grab;-webkit-user-select:none;user-select:none}.canvas-text.selected{fill:var(--accent-dark);font-weight:700}.attached-label{paint-order:stroke;stroke:var(--paper);stroke-width:5px;stroke-linejoin:round}.angle-path{fill:none;stroke:var(--accent);stroke-width:3;vector-effect:non-scaling-stroke}.angle-mark.candidate .angle-path{stroke:#aaa69e;stroke-dasharray:5 4}.angle-hitbox{fill:none;stroke:transparent;stroke-width:18;cursor:pointer}.angle-text{fill:var(--accent-dark);font-size:16px}.inline-text-editor{position:absolute;z-index:9;width:min(220px,calc(100% - 24px));min-width:120px;padding:6px 8px;border:2px solid var(--accent);border-radius:7px;background:var(--paper);box-shadow:0 6px 18px #2b271f29;font-size:16px;transform:translate(-50%,-50%)}.inline-text-editor::placeholder{color:#928e86;opacity:1}.tool-text .line-hitbox,.tool-text .point-hitbox,.tool-text .canvas-text{cursor:text}.curve-toolbar{position:absolute;z-index:8;display:flex;gap:6px;padding:6px;border:1px solid #d8d2c6;border-radius:9px;background:var(--paper);box-shadow:0 7px 22px #2b271f29;transform:translate(-50%,-100%)}.curve-toolbar fieldset{display:flex;gap:2px;margin:0;padding:0;border:0}.curve-toolbar legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.curve-toolbar button{padding:5px 7px;border:0;border-radius:5px;color:#69655e;background:#efede6;cursor:pointer;font-size:10px;text-transform:capitalize}.curve-toolbar button.active{color:#fff;background:var(--ink)}.drawn-line.selected{stroke:var(--accent);stroke-width:4}.line-hitbox{stroke:transparent;stroke-width:24;cursor:grab}.line-hitbox:active{cursor:grabbing}.point-hitbox{fill:transparent;cursor:grab}.point-hitbox:active{cursor:grabbing}.point{fill:var(--paper);stroke:var(--ink);stroke-width:3;vector-effect:non-scaling-stroke}.point.selected{fill:var(--accent-soft);stroke:var(--accent);stroke-width:4}.preview-line{stroke:var(--accent);stroke-dasharray:9 7;stroke-linecap:round;stroke-width:3;vector-effect:non-scaling-stroke}.start-point{fill:var(--paper);stroke:var(--accent);stroke-width:4;vector-effect:non-scaling-stroke}.empty-hint{position:absolute;top:50%;left:50%;display:flex;align-items:center;flex-direction:column;gap:7px;width:290px;padding:24px;color:var(--muted);pointer-events:none;text-align:center;transform:translate(-50%,-50%)}.empty-hint strong{color:#4e4a43;font-size:15px;font-weight:600}.empty-hint span:last-child{font-size:12px;line-height:1.5}.hint-line{position:relative;display:block;width:60px;height:34px;margin-bottom:5px}.hint-line:before{position:absolute;top:16px;left:4px;width:52px;height:2px;background:#aaa59b;content:"";transform:rotate(-25deg)}.hint-line:after{position:absolute;right:1px;bottom:4px;width:7px;height:7px;border:2px solid #aaa59b;border-radius:50%;background:var(--paper);box-shadow:-51px -24px 0 -2px var(--paper),-51px -24px #aaa59b;content:""}.statusbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 22px;border-top:1px solid #d6d1c6;color:#706c64;background:#f5f2e9;font-size:11px}.status-tool,.status-count{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-tool{display:flex;align-items:center;gap:8px}.status-dot{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#77736b}.status-dot.draw,.status-dot.text,.status-dot.angles{background:var(--accent)}.export-error{margin-left:auto;color:#b1482d;font-weight:650}.status-count{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px}@media(max-width:700px){.app-shell{grid-template-rows:61px minmax(0,1fr) 36px}.topbar{grid-template-columns:auto 1fr auto;gap:9px;padding:0 12px}.brand>span:last-child,.tool kbd{display:none}.tool-group{justify-self:center}.tool{min-height:37px;padding:0 9px}.icon-button{width:32px;height:36px}.toolbar-actions{gap:4px}.export-button{width:38px;justify-content:center;padding:0;border-radius:9px}.export-button>span:last-child,.export-settings-button,.history-group>.icon-button{display:none}.workspace{padding:12px}.statusbar{padding:0 12px}.status-count{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
