:root{--font-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--type-caption: 10px;--type-label: 11px;--type-body: 12px;--type-title: 13px;--type-ui: 14px;--type-name: 15px;--type-dialog: 19px;--type-display: 35px;--weight-medium: 500;--weight-semibold: 600;--canvas: #fafaf7;--surface: #ffffff;--surface-raised: #fdfdfb;--surface-hover: #f1f3ef;--surface-pressed: #e8ece7;--text: #202b27;--text-secondary: #68756e;--muted: #78857e;--text-faint: #8a958e;--accent: #236a55;--accent-dark: #174c3c;--accent-subtle: #eaf2ec;--accent-hover: #e1ece4;--accent-border: #b7cdbf;--border: #e0e5df;--border-strong: #cbd3ca;--danger: #a4483e;--danger-subtle: #f8eeeb;--focus: #236a55;--grid-dot: #c6ccc6;--grid-fine: #deded9;--grid-major: #adafa8;--grid-ruled: #aeb6ad;--shadow: 0 1px 2px #202b2708, 0 4px 14px #202b2708;--shadow-dock: 0 1px 2px #202b270a, 0 6px 20px #202b2710;--shadow-dialog: 0 2px 6px #202b2710, 0 16px 48px #202b271c;--shadow-inset: inset 0 1px 0 #ffffffb3;--radius-panel: 12px;--radius-control: 7px;--duration-fast: .12s;--ease: cubic-bezier(.2, .7, .2, 1)}:root{font-family:var(--font-ui);color:var(--text);background:var(--canvas);font-synthesis:none;font-size:var(--type-ui);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}button{border:0;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-control);transition:background var(--duration-fast) var(--ease),color var(--duration-fast) var(--ease),box-shadow var(--duration-fast) var(--ease)}button:hover{background:var(--surface-hover)}button:disabled{opacity:.35;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:3px}svg{width:21px;height:21px;flex-shrink:0}button svg{pointer-events:none}input[type=checkbox]{accent-color:var(--accent);width:17px;height:17px;cursor:pointer}input[type=range]{accent-color:var(--accent);width:100%;height:4px;cursor:pointer;margin:14px 0 8px}input[type=number],select{border:1px solid var(--border);border-radius:7px;background:var(--surface);padding:7px;max-width:160px}input[type=number]{width:78px}input[type=color]{border:0;padding:0;background:transparent;cursor:pointer;width:32px;height:30px}input[type=color]::-webkit-color-swatch-wrapper{padding:3px}input[type=color]::-webkit-color-swatch{border-radius:5px;border:1px solid #202b271a}kbd{font-family:inherit;font-size:var(--type-label);background:var(--surface-raised);border:1px solid var(--border);border-radius:4px;padding:2px 5px;color:var(--text-secondary);white-space:nowrap}[hidden]{display:none!important}canvas{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none}#overlay{pointer-events:none}#ui{position:relative;z-index:2;pointer-events:none}#ui>*{pointer-events:auto}.topbar{position:fixed;top:20px;left:24px;right:24px;height:68px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-panel);box-shadow:var(--shadow);display:flex;align-items:center;padding:0 16px;gap:12px}.brand{width:40px;height:40px;background:var(--surface-raised);border-radius:10px;display:grid;place-items:center;color:var(--accent)}.brand svg{width:29px;height:29px}.board-heading{min-width:140px}.board-heading input{font-weight:var(--weight-semibold);font-size:var(--type-name);border:0;background:transparent;outline:none;width:205px;text-overflow:ellipsis;padding:1px 0}.save-status{display:flex;align-items:center;font-size:var(--type-caption);gap:5px;color:var(--muted);margin-top:5px}.save-status i{height:5px;width:5px;background:var(--accent);border-radius:50%}.topbar button{height:36px;min-width:36px}.top-divider{width:1px;height:25px;background:var(--border);margin:0 5px}.local-badge{font-size:var(--type-label);color:var(--muted);letter-spacing:.15px}.top-actions{margin-left:auto;display:flex;gap:7px;align-items:center}.top-actions .export-button{background:var(--accent);color:#fff;padding:0 15px;gap:8px;font-size:var(--type-body);margin-left:5px}.export-button svg{width:16px;height:16px}.export-button:hover{background:var(--accent-dark)}.toolrail{position:fixed;left:50%;bottom:20px;transform:translate(-50%);width:max-content;max-width:calc(100vw - 32px);padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-panel);box-shadow:var(--shadow);display:flex;flex-direction:row;gap:4px;overflow:visible}.toolrail button{position:relative;flex-shrink:0;width:44px;height:44px;color:var(--text-secondary)}.toolrail button.active{background:var(--accent-subtle);color:var(--accent)}.toolrail button.active:before{content:"";position:absolute;left:50%;bottom:-8px;width:18px;height:3px;transform:translate(-50%);background:var(--accent);border-radius:3px 3px 0 0}.rail-divider{width:1px;height:28px;align-self:center;background:var(--border);margin:0 6px}.tool-tip{visibility:hidden;opacity:0;pointer-events:none;position:absolute;left:50%;bottom:calc(100% + 10px);transform:translate(-50%);white-space:nowrap;background:var(--text);color:#fff;padding:8px 11px;font-size:var(--type-label);border-radius:6px;display:flex;gap:12px;align-items:center;transition:opacity .1s;box-shadow:var(--shadow)}.tool-tip kbd{background:#ffffff15;border-color:#ffffff25;color:#e0e7e1}.toolrail button:hover .tool-tip{visibility:visible;opacity:1}.panel{position:fixed;background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius-panel);box-shadow:var(--shadow);width:236px;padding:18px}.properties{right:24px;top:112px}.panel-title{display:flex;align-items:center;gap:9px;margin-bottom:22px}.panel-title h2{font-size:var(--type-title);font-weight:var(--weight-semibold);margin:0}.panel-title svg{width:17px;height:17px;color:var(--text-secondary)}.panel-title>button{margin-left:auto;width:23px;height:23px}.small-label{font-size:var(--type-caption);color:var(--muted);margin-left:auto}.field-label{display:flex;align-items:center;justify-content:space-between;font-size:var(--type-label);font-weight:var(--weight-medium);color:var(--text-secondary)}.field-label output{font-size:var(--type-caption);color:var(--muted);font-variant-numeric:tabular-nums}.spaced{margin-top:20px}.palette{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:13px}.palette>button,.recent-colors button{width:26px;height:26px;border-radius:50%;background:var(--swatch);border:1px solid #202b271a;position:relative;margin:auto}.palette>button.active:after{content:"";position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:1px solid var(--accent);border-radius:50%}.palette>button:hover{transform:scale(1.1)}.custom-color{width:27px;height:27px;border:1px dashed var(--border-strong);border-radius:50%;display:grid;place-items:center;position:relative;cursor:pointer}.custom-color svg{width:15px;height:15px;color:var(--muted)}.custom-color input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;width:100%;height:100%}.recent-colors{display:flex;gap:9px;margin-top:12px}.recent-colors button{width:15px;height:15px;margin:0}.width-presets{display:flex;gap:6px;margin-top:11px}.width-presets button{height:36px;flex:1;border:1px solid var(--border);gap:7px}.width-presets button.active{border-color:var(--accent-border);background:var(--accent-subtle)}.width-presets i{border-radius:50%;background:var(--text-secondary)}.width-presets span{font-size:var(--type-caption);color:var(--muted)}.fill-row{display:flex;justify-content:space-between;gap:12px;margin-top:9px;align-items:center}.fill-row button{font-size:var(--type-label);border:1px solid var(--border);padding:7px 12px}.recognition-note{margin-top:24px;display:flex;gap:7px;align-items:center;font-size:var(--type-caption);color:var(--muted);line-height:1.5;border-top:1px solid var(--border);padding-top:15px}.recognition-note svg{width:15px;height:15px}.microcopy{font-size:var(--type-caption);color:var(--muted);line-height:1.7;margin:15px 0 0}.panel-divider{height:1px;background:var(--border);margin:16px 0}.selection-actions{display:flex;gap:7px}.selection-actions button{width:36px;height:32px;border:1px solid var(--border)}.selection-actions svg{width:16px;height:16px}.instrument-panel{right:24px;bottom:83px}.instrument-panel .panel-title{margin-bottom:15px}.selection-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}#selection-menu{position:fixed;top:96px;right:16px;max-width:calc(100vw - 32px);background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius-panel);box-shadow:var(--shadow)}#selection-menu summary{min-height:44px;padding:12px;cursor:pointer;color:var(--text-secondary)}.selection-menu-content{width:min(350px,calc(100vw - 34px));max-height:calc(100dvh - 250px);overflow:auto;padding:12px}#selection-menu .setting{min-height:44px;margin:0}#selection-menu .selection-actions{flex-wrap:wrap}#selection-style-content .palette{display:flex;flex-wrap:wrap}#selection-style-content .palette>button,#selection-style-content .custom-color{width:44px;height:44px;margin:0}#selection-style-content .tool-option{margin:12px 0}@media(max-width:760px){#selection-menu{top:132px}}.instrument-command,.selection-command{min-height:44px;padding:8px 12px;border:1px solid var(--border)}#instrument-panel input:disabled{opacity:.5;cursor:not-allowed}.instrument-command[aria-pressed=true],.selection-command[aria-pressed=true]{background:var(--accent-subtle);color:var(--accent)}#selection-readout{display:block;min-height:24px;margin-bottom:6px;font-variant-numeric:tabular-nums;font-size:13px}#compact-selection{margin-bottom:8px;gap:8px}#compact-selection button{gap:6px;touch-action:none}#compact-selection .numeric-field{margin:0}.transform-modifiers{margin-bottom:8px}.transform-modifiers .setting{gap:10px}.selection-options select,.selection-options button{min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:8px}.selection-options button[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-subtle);color:var(--accent)}.selection-hint{margin:8px 0;font-size:12px;color:var(--text-secondary)}.numeric-field{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:var(--type-body);margin:12px 0}.numeric-field>div{display:flex;align-items:center;gap:5px}.numeric-field>div>span{font-size:var(--type-label);color:var(--muted)}.instrument-panel input[type=number]{width:70px}.angle-presets{display:flex;gap:3px}.angle-presets button{font-size:var(--type-caption);padding:5px;border:1px solid var(--border);flex:1}.welcome{position:fixed;top:43%;left:calc(50% - 70px);transform:translate(-50%,-50%);text-align:center;pointer-events:none!important;-webkit-user-select:none;user-select:none;min-width:440px}.eyebrow{font-size:9px;letter-spacing:3px;color:var(--muted);font-weight:var(--weight-semibold)}.welcome h1{font-size:var(--type-display);font-weight:var(--weight-medium);letter-spacing:-1.3px;color:var(--text);margin:18px 0 15px}.welcome p{font-size:var(--type-title);color:var(--text-secondary);line-height:1.85}.welcome-shortcuts{display:flex;gap:20px;margin-top:31px;justify-content:center;color:var(--muted);font-size:var(--type-caption);align-items:center}.welcome-shortcuts span{display:flex;gap:5px;align-items:center}.welcome kbd{background:var(--surface-raised);color:var(--text-secondary);border-color:var(--border)}footer{position:fixed;left:24px;right:24px;bottom:20px;display:flex;align-items:center;justify-content:space-between;pointer-events:none!important}footer>div{pointer-events:auto}.bottom-left{pointer-events:none}.bottom-left button{pointer-events:auto}.bottom-left{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:var(--type-caption)}.bottom-left button{width:37px;height:37px;border:1px solid var(--border);background:var(--surface);border-radius:10px}.bottom-left svg{width:17px;height:17px;color:var(--text-secondary)}.bottom-hint{display:none}.zoom-control{display:flex;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:11px;height:43px;padding:4px;box-shadow:var(--shadow)}.zoom-control button{height:33px;width:33px;color:var(--text-secondary)}.zoom-control svg{width:16px;height:16px}.zoom-control #zoom-value{width:50px;font-size:var(--type-label);font-variant-numeric:tabular-nums}.zoom-divider{height:19px;width:1px;background:var(--border);margin:0 5px}#toast{position:fixed;bottom:80px;left:50%;transform:translate(-50%);padding:12px 22px;border:1px solid var(--accent-border);box-shadow:var(--shadow);background:var(--surface-raised);border-radius:10px;font-size:var(--type-body);color:var(--accent-dark);max-width:80vw}dialog{border:1px solid var(--border);border-radius:var(--radius-panel);box-shadow:var(--shadow-dialog);background:var(--surface-raised);padding:26px;width:min(490px,calc(100vw - 32px));max-height:calc(100dvh - 60px);color:inherit}dialog::backdrop{background:#202b2733}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.dialog-heading h2{font-size:var(--type-dialog);font-weight:var(--weight-semibold);margin:0;letter-spacing:-.4px}.dialog-heading button{height:29px;width:29px}.dialog-heading svg{width:18px;height:18px}.dialog-intro{font-size:var(--type-body);line-height:1.8;color:var(--text-secondary);margin:0 0 20px}.menu-list{display:flex;flex-direction:column;gap:5px}.menu-list button{padding:12px;gap:12px;justify-content:flex-start;font-size:var(--type-title)}.menu-list svg{width:18px;height:18px}.danger{color:var(--danger)}.setting{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:var(--type-body);margin:16px 0}.setting small{display:block;font-size:var(--type-caption);color:var(--muted);line-height:1.6;margin-top:3px}.settings-scroll h3{font-size:var(--type-label);text-transform:uppercase;letter-spacing:1.5px;color:var(--muted);border-top:1px solid var(--border);padding-top:20px;margin-top:25px}.settings-scroll h3:first-child{border:0;margin-top:0;padding-top:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.dialog-actions button{padding:10px 16px;background:var(--surface-hover)}.export-options{display:flex;gap:12px}.export-options button{flex:1;border:1px solid var(--border);padding:23px 10px;flex-direction:column;gap:8px}.export-options strong{font-size:20px;font-weight:var(--weight-medium);color:var(--accent)}.export-options span{font-size:var(--type-caption);color:var(--muted)}.library-list{display:flex;flex-direction:column;gap:10px}.library-list button{border:1px solid var(--border);padding:15px;text-align:left;align-items:flex-start;flex-direction:column;gap:7px}.library-list strong{font-size:var(--type-title)}.library-list small{font-size:var(--type-caption);color:var(--muted)}.shortcut-list{display:flex;flex-direction:column;gap:12px}.shortcut-list>div{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:var(--type-label)}.text-editor{position:fixed;z-index:5;min-width:280px;min-height:100px;max-width:80vw;background:var(--surface);border:1px solid var(--accent-border);outline:2px solid #236a551a;box-shadow:var(--shadow);border-radius:4px;padding:10px;resize:both;font-size:24px;line-height:1.3}@media(max-height:850px)and (min-width:761px){.properties{top:100px;padding:15px}.panel-title{margin-bottom:16px}.spaced{margin-top:12px}.recognition-note{margin-top:13px;padding-top:10px}.instrument-panel{bottom:72px}.microcopy{margin-top:10px}}@media(max-width:1000px){.local-badge{display:none}.topbar>.top-divider{display:none}.properties,.instrument-panel{width:205px;right:16px}.palette{gap:8px}.welcome{left:calc(50% - 40px);min-width:330px}.welcome h1{font-size:29px}.bottom-hint{display:none}.toolrail{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.tool-tip{display:none}.zoom-control{position:fixed;right:16px;bottom:82px}.welcome-shortcuts{gap:10px}}@media(max-width:760px){.topbar{top:10px;left:10px;right:10px;height:58px;padding:0 9px;gap:7px}.brand{width:32px;height:32px}.brand svg{width:24px}.board-heading{min-width:0}.board-heading input{font-size:var(--type-body);width:120px}.save-status{font-size:8px}.topbar>.top-divider,.top-actions .top-divider{display:none}.topbar button{min-width:27px;width:27px}.top-actions{gap:1px}.top-actions .export-button{min-width:28px;padding:6px;margin:0}.export-button span{display:none}.toolrail{left:50%;right:auto;top:auto;bottom:10px;padding:6px;gap:2px;max-width:calc(100vw - 20px)}.toolrail button{width:42px;height:42px}.rail-divider{margin:0 4px}.properties{top:auto;bottom:76px;left:10px;right:10px;width:auto;padding:10px 12px}.properties .panel-title,.properties .field-label,.width-presets,.properties .microcopy,.recognition-note,#recent-colors,#fill-controls{display:none}.palette{display:flex;gap:8px;margin:0}.palette>button{width:22px;height:22px;margin:0}.palette .custom-color{width:22px;height:22px}.palette svg{width:13px}#drawing-properties{display:grid;grid-template-columns:1fr;gap:5px}#stroke-width{width:100%;margin:10px 0 4px}#opacity{display:none}.selection-actions{gap:7px}.panel-divider{margin:8px 0}.instrument-panel{right:10px;bottom:190px;width:208px;padding:13px}.welcome{left:calc(50% + 15px);top:40%;min-width:0;width:calc(100% - 100px)}.welcome h1{font-size:25px}.eyebrow{font-size:8px;letter-spacing:1.4px}.welcome p{font-size:var(--type-label)}.welcome-shortcuts{display:none}footer{bottom:auto;top:80px;left:10px;right:10px}.bottom-left{display:none}.zoom-control{top:80px;right:10px;bottom:auto}.bottom-left>span{display:none}.zoom-control{height:38px}.zoom-control button{width:29px;height:29px}.bottom-left button{width:33px;height:33px}#toast{bottom:175px;font-size:var(--type-label)}.shortcut-list>div{font-size:var(--type-caption)}.shortcut-list kbd{font-size:9px}}.has-instrument .properties{display:none}.instrument-panel{top:112px;bottom:auto}.instrument-colors{padding-top:14px;border-top:1px solid var(--border)}@media(max-width:760px){.instrument-panel{top:82px;bottom:auto;width:190px}.instrument-panel .microcopy{font-size:9px}.instrument-panel .palette{gap:10px}.instrument-panel .numeric-field{font-size:var(--type-label)}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}#instrument-panel.instrument-panel{left:auto;right:12px;top:94px;bottom:auto;transform:none;width:max-content;max-width:min(760px,calc(100vw - 24px));max-height:min(360px,calc(100dvh - 400px));overflow:auto;transition:none}#instrument-panel .panel-title{margin-bottom:0;gap:8px}#instrument-panel .panel-title h2{flex:1}#instrument-panel .panel-title button{min-width:44px;min-height:44px}#instrument-panel .instrument-main,#instrument-panel .instrument-extras{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}#instrument-panel .numeric-field{min-width:0;gap:6px}#instrument-panel .instrument-main>.numeric-field{flex-direction:column;align-items:flex-start;gap:2px}#instrument-panel .instrument-main select{width:150px}#instrument-panel .setting{display:inline-flex;gap:8px;min-height:44px;margin:0}#instrument-panel .setting input{flex:0 0 auto;margin:0}#instrument-panel .selection-hint{flex-basis:100%;margin:4px 0}#instrument-panel summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--muted)}#instrument-panel summary{position:absolute;top:8px;right:108px;font-size:12px}#instrument-panel .panel-title h2{margin-right:118px}#instrument-panel summary:before{content:"+";margin-right:8px}#instrument-panel details[open]>summary:before{content:"−"}#instrument-panel .instrument-colors{margin:0;padding:0;border:0}@media(max-width:760px){#instrument-panel.instrument-panel{top:132px}}.properties,.instrument-panel{left:50%;right:auto;top:auto;bottom:96px;transform:translate(-50%);width:max-content;max-width:calc(100vw - 32px);max-height:min(300px,calc(100dvh - 190px));overflow:auto;padding:8px 10px;transition:opacity .12s ease,transform .12s ease,visibility .12s}.properties.collapsed,.instrument-panel.collapsed{opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,6px)}.properties[hidden],.instrument-panel[hidden],#drawing-properties[hidden],#fill-controls[hidden],#recognition-note[hidden]{display:none}.properties .panel-title,.instrument-panel .panel-title{display:flex;margin-bottom:4px}#drawing-properties,.instrument-options{display:flex;align-items:flex-start;gap:10px}.tool-option{flex:0 0 auto}.color-option{width:230px}.width-option{width:232px}.opacity-option{width:150px}.properties .field-label{display:flex;margin:0 0 4px}.properties .palette,.instrument-panel .palette{display:flex;flex-wrap:wrap;gap:2px;margin:0}.palette>button,.recent-colors>button{position:relative;width:44px;height:44px;margin:0;background:transparent;border:0;box-shadow:none}.palette>button:before,.recent-colors>button:before{content:"";position:absolute;top:10px;right:10px;bottom:10px;left:10px;border-radius:50%;background:var(--swatch);border:1px solid #202b2726}.palette>button.active,.recent-colors>button.active{outline:2px solid var(--accent);outline-offset:-5px}.palette .custom-color{width:44px;height:44px;flex:0 0 44px}.width-presets{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;margin:0}.properties .recent-colors{margin-top:2px;gap:2px}.properties .recent-colors:empty{display:none}.width-presets button{min-width:44px;min-height:44px}.width-presets button i{max-width:18px;max-height:18px}.properties input[type=range],.instrument-panel input[type=range]{display:block;height:44px;width:100%;margin:0}input[type=range]::-webkit-slider-thumb{width:26px;height:26px}input[type=range]::-moz-range-thumb{width:26px;height:26px}.properties .recognition-note{display:flex;flex-direction:column;width:200px;padding:0;margin:0;background:none}.setting{min-height:44px;cursor:pointer}.properties .setting,.instrument-panel .setting{gap:12px;margin:0}.properties .setting input,.instrument-panel .setting input{flex-shrink:0}.properties #tool-description,.properties .microcopy,.properties .panel-divider{display:none}.properties #fill-controls{display:block}.fill-row button,.fill-row input,.selection-actions button{min-height:44px}.instrument-options{align-items:center;flex-wrap:wrap;max-width:1040px}.instrument-panel .numeric-field{margin:0;min-width:106px}.instrument-panel .numeric-field input{min-width:80px;width:84px;min-height:44px;font-size:16px}.instrument-panel select{min-height:44px;font-size:var(--type-ui)}.instrument-panel .angle-presets{display:flex;flex-wrap:wrap;gap:4px;max-width:210px;margin:0}.angle-presets button{min-width:44px;min-height:44px}.instrument-panel .microcopy{font-size:var(--type-body)}.instrument-panel .instrument-colors{padding-top:6px;margin-top:6px}.toolrail [data-action=clear]{color:var(--danger);margin-left:6px}.toolrail button{min-width:44px;min-height:44px}#eraser-properties{min-width:300px}@media(max-width:1000px){#drawing-properties{flex-wrap:wrap}.properties,.instrument-panel{width:min(720px,calc(100vw - 32px))}}@media(max-width:760px){.properties,.instrument-panel{bottom:76px;max-height:270px;padding:10px}#drawing-properties{gap:10px}.properties .panel-title{display:none}.color-option,.width-option{width:100%}.width-presets{grid-template-columns:repeat(4,1fr)}.opacity-option{width:100%}.toolrail{gap:4px}}.brand{color:var(--text);border-radius:8px;box-shadow:inset 0 0 0 1px #202b271a,0 1px 2px #202b2710}.topbar,.panel,.zoom-control{box-shadow:var(--shadow),var(--shadow-inset)}.toolrail{box-shadow:var(--shadow-dock),var(--shadow-inset)}.topbar button,.zoom-control button{color:var(--text-secondary)}.topbar .export-button{color:var(--surface);background:var(--accent);box-shadow:inset 0 1px #ffffff18,0 1px 2px #174c3c20}.topbar .export-button:hover{background:var(--accent-dark)}.topbar .export-button:active:not(:disabled){background:var(--accent-dark);color:var(--surface);box-shadow:inset 0 1px 3px #102e2433}button:active:not(:disabled){background:var(--surface-pressed);box-shadow:inset 0 1px 2px #202b2710}button:disabled:hover{background:transparent}.toolrail button.active{background:var(--accent-subtle);color:var(--accent-dark);box-shadow:inset 0 0 0 1px #236a5520,inset 0 1px #ffffffb3}.toolrail button.active:hover{background:var(--accent-hover)}.toolrail button.active:active{background:var(--accent-hover);box-shadow:inset 0 1px 2px #174c3c20}.toolrail button.active:before{height:2px;border-radius:2px}.toolrail button:focus-visible .tool-tip{visibility:visible;opacity:1}.tool-tip{box-shadow:0 2px 6px #202b2718;font-weight:var(--weight-medium)}.toolrail [data-action=clear]:hover,.danger:hover{background:var(--danger-subtle);color:var(--danger)}.board-heading input:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:2px}.custom-color:focus-within{outline:2px solid var(--focus);outline-offset:3px}.palette>button.active:after{content:none}.palette>button:hover,.recent-colors>button:hover{transform:none;background:var(--surface-hover)}.palette>button.active,.recent-colors>button.active{outline-width:1.5px}.width-presets button.active{box-shadow:inset 0 0 0 1px #236a5510}.width-presets button.active span,.field-label output,.zoom-control #zoom-value{color:var(--text)}input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--border-strong);border-radius:4px;background:var(--surface);flex-shrink:0}input[type=checkbox]:checked{border-color:var(--accent);background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 2.5 2.5L12 5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent}input[type=range]::-webkit-slider-runnable-track{height:4px;background:var(--border-strong);border-radius:2px}input[type=range]::-moz-range-track{height:4px;background:var(--border-strong);border-radius:2px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;margin-top:-5px;border:1px solid var(--accent-dark);border-radius:50%;background:var(--accent);box-shadow:0 1px 2px #174c3c20}input[type=range]::-moz-range-thumb{width:12px;height:12px;border:1px solid var(--accent-dark);border-radius:50%;background:var(--accent)}input[type=range]:hover::-webkit-slider-thumb{background:var(--accent-dark)}kbd{box-shadow:0 1px #202b2708;font-variant-numeric:tabular-nums}.eyebrow{color:var(--accent)}.welcome h1{text-wrap:balance}.export-options button:hover,.library-list button:hover{border-color:var(--accent-border);background:var(--accent-subtle)}.dialog-actions button.danger{background:var(--danger-subtle)}.dialog-actions button.danger:hover{background:var(--danger);color:var(--surface)}@media(min-width:1001px){.toolrail:hover,.toolrail:focus-within{z-index:1}}@media(min-width:761px)and (max-width:1399px){footer{bottom:90px}.zoom-control{position:static}.properties,.instrument-panel{bottom:145px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}.pwa-status{position:fixed;top:max(88px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));z-index:40;display:flex;align-items:flex-end;flex-direction:column;gap:8px;max-width:min(340px,calc(100vw - 32px));pointer-events:none;font-size:13px}.pwa-status [hidden]{display:none}.pwa-offline,.pwa-update,.pwa-message{background:var(--surface-raised);color:var(--text);border:1px solid var(--border);border-radius:var(--radius-panel);padding:8px 12px;box-shadow:var(--shadow)}.pwa-update{display:flex;align-items:center;gap:12px;pointer-events:auto}.pwa-update button{min-height:44px;padding:8px 14px;color:var(--accent)}
