@font-face{font-family:Inter;src:url('assets/inter-latin.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{--ink:#202427;--muted:#626b72;--red:#147c40;--red-hover:#0b5d2d;--red-tint:#eaf5ee;--line:#dde1e2;--paper:#fff;--panel:#f8f9f9;--desk:#e8ebeb;--focus:#2563aa;--radius:8px;color-scheme:light;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--panel);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;min-height:42px;border:1px solid transparent;border-radius:var(--radius);font-weight:600;white-space:nowrap;background:none;color:inherit;padding:9px 12px}button:hover{background:#edf0f0}button:disabled{opacity:.4;cursor:not-allowed}button:active:not(:disabled){transform:translateY(1px)}a{color:var(--red)}input,select,textarea{color:var(--ink);border:1px solid #cbd1d3;border-radius:7px;background:#fff;padding:11px 12px;min-height:44px;caret-color:var(--red)}input,textarea{width:100%}textarea{resize:vertical}label{font-weight:600;display:block;margin:0 0 8px}::selection{background:#c6ead4;color:#104024}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}input:focus-visible,textarea:focus-visible{outline-offset:1px}h1,h2,h3,p{margin:0}h1{font-size:2rem;letter-spacing:-.04em;font-weight:750}h2{font-size:1.35rem;letter-spacing:-.025em}h3{font-size:1.05rem}p{line-height:1.6}small{font-size:12px;color:var(--muted)}svg.icon{width:20px;height:20px;display:block;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.primary{background:var(--red);color:#fff;box-shadow:0 2px 3px #6d151515}.primary:hover{background:var(--red-hover)}.quiet{color:#495157}.quiet:hover{background:#e9edee;color:var(--ink)}.quiet.active{background:var(--red-tint);color:var(--red);border-color:#b9d9c4}.icon-only{padding:10px}.wide{width:100%}.danger{color:#ae2525}.error{color:#ac211d;font-weight:500;font-size:14px;margin-top:12px}.error:empty{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:20px}.brand{padding:0;border-radius:3px;min-height:52px;gap:24px}.brand:hover{background:none}.brand img{width:140px;height:56px;object-fit:contain}.brand>span{border-left:1px solid var(--line);padding-left:24px;font-size:18px;font-weight:700}.topbar-end{display:flex;gap:8px}.login-view{min-height:100dvh;display:grid;place-items:center;padding:32px;background:var(--desk)}.login-card{width:min(100%,430px);padding:38px;background:#fff;border:1px solid #d5dbdc;border-radius:12px;box-shadow:0 12px 42px #3442470a}.login-logo{display:block;width:175px;height:100px;object-fit:contain;margin:0 auto 30px}.login-card h1{font-size:1.6rem;letter-spacing:-.025em;margin-bottom:12px}.login-card>p{color:var(--muted);margin-bottom:28px}.login-card form button{width:100%;margin-top:18px}.private-label{display:flex;gap:7px;align-items:center;justify-content:center;color:var(--muted);font-size:12px;margin-top:26px}.private-label .icon{width:15px;height:15px}.library{max-width:1240px;margin:0 auto;padding:46px 34px}.library-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:35px}.library-heading p{color:var(--muted);margin-top:8px;font-size:16px}.empty-projects{border:1px dashed #b9c2c5;border-radius:12px;background:#fff;min-height:500px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:32px}.empty-drawing{width:240px;margin-bottom:24px}.empty-drawing svg{stroke:#adb7bc;stroke-width:2;fill:none}.empty-drawing .red{stroke:var(--red)}.empty-projects h2{font-size:1.65rem}.empty-projects p{max-width:370px;margin:12px 0 24px;color:var(--muted);font-size:16px}.empty-projects small{margin-top:14px}.project-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.project-card{border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden}.project-card-open{display:flex;flex-direction:column;align-items:stretch;width:100%;padding:0;text-align:left;border-radius:0;white-space:normal}.project-card-open:hover{background:#fcfafa}.project-art{height:132px;background:#f0f2f2;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid var(--line)}.project-art .icon{width:52px;height:52px;stroke:#9aa6ac;stroke-width:1}.file-badge{position:absolute;bottom:15px;left:20px;font-size:11px;font-weight:700;letter-spacing:.06em;background:#fff;border:1px solid var(--line);border-radius:4px;padding:4px 7px}.project-info{padding:20px 20px 12px}.project-info h2{font-size:17px;line-height:1.4;overflow-wrap:anywhere}.project-meta{margin-top:10px;font-size:13px;font-weight:400;color:var(--muted);display:flex;justify-content:space-between}.project-card-footer{display:flex;justify-content:space-between;align-items:center;padding:0 12px 12px 20px;font-size:12px;color:var(--muted)}.project-card-footer button{min-height:34px}.loading-panel{padding:60px;text-align:center;color:var(--muted)}.editor{height:calc(100dvh - 76px);display:flex;flex-direction:column}.projectbar{height:72px;min-height:72px;background:#fff;display:flex;align-items:center;gap:14px;padding:10px 24px;border-bottom:1px solid var(--line)}.project-name-wrap{flex:1;min-width:0;display:flex;align-items:center;gap:16px}.project-name-wrap input{border:1px solid transparent;background:transparent;font-weight:700;font-size:18px;text-overflow:ellipsis;padding:7px 8px;min-width:80px;max-width:460px}.project-name-wrap input:hover{border-color:var(--line)}#save-status{font-size:12px;color:#426154;white-space:nowrap}#save-status.unsaved{color:#995711}#save-status.failed{color:#b0211e}.editor-body{display:flex;min-height:0;flex:1}.tool-panel{width:250px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;padding:22px 16px 0}.panel-title{display:flex;align-items:center;justify-content:space-between;padding:0 3px 18px}.panel-title h2{font-size:17px}#close-tools{display:none}.search-field{position:relative;font-weight:400}.search-field>.icon{position:absolute;top:13px;left:11px;color:#758087;width:17px}.search-field input{padding-left:35px;background:var(--panel);font-size:13px}.tool-tabs{display:flex;border-bottom:1px solid var(--line);margin:6px 0 14px;gap:8px}.tool-tabs button{padding:12px 4px;border-radius:0;font-size:12px;color:var(--muted);border-bottom:2px solid transparent}.tool-tabs button.active{border-bottom-color:var(--red);color:var(--red)}#total-count{font-variant-numeric:tabular-nums;background:#eff1f2;border-radius:4px;min-width:22px;padding:3px 5px}.palette{overflow:auto;flex:1;padding:0 0 20px;scrollbar-width:thin;scrollbar-color:#bcc6ca transparent}.palette h3{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:18px 0 8px 4px}.palette h3:first-child{margin-top:0}.symbol-button{width:100%;display:flex;justify-content:flex-start;font-size:13px;font-weight:500;padding:6px 10px;min-height:47px;gap:13px;margin-bottom:3px}.symbol-button>svg{width:30px;height:30px;flex-shrink:0}.symbol-button.active{background:var(--red-tint);color:#116d37;border-color:#bad9c5}.symbol-button .symbol-count{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--muted);font-size:12px}.palette-foot{display:flex;gap:9px;font-size:12px;line-height:1.5;padding:16px 4px 19px;border-top:1px solid var(--line);color:var(--muted)}.palette-foot .icon{width:16px;height:16px;margin-top:2px}.drawing-area{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}.drawing-toolbar{height:58px;min-height:58px;display:flex;align-items:center;justify-content:space-between;background:var(--panel);border-bottom:1px solid #d4dada;padding:7px 20px}.toolbar-group{display:flex;gap:5px}.drawing-toolbar button{min-height:38px;font-size:13px;padding:7px 10px}.drawing-toolbar .icon{width:18px;height:18px}.history{border-left:1px solid var(--line);padding-left:12px}#toggle-tools{display:none}.stage{flex:1;overflow:hidden;position:relative;background:var(--desk);touch-action:none;user-select:none;min-height:160px;outline-offset:-4px;cursor:default}.stage.pan{cursor:grab}.stage.pan.dragging{cursor:grabbing}.stage.placing{cursor:crosshair}.sheet{position:absolute;top:0;left:0;transform-origin:0 0;background:#fff;box-shadow:0 5px 22px #25353d1a;will-change:transform}.sheet canvas{display:block;width:100%;height:100%;pointer-events:none}#marks{position:absolute;inset:0;width:100%;height:100%;overflow:visible}#annotation-layer [data-id]{cursor:move}#annotation-layer .selection-outline{fill:transparent;stroke:#2369b0;stroke-width:1.5;stroke-dasharray:5 3;vector-effect:non-scaling-stroke}.tool-hint{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);background:#ffffffed;border:1px solid #d8dfe1;border-radius:6px;padding:9px 15px;font-size:12px;color:#4a555b;max-width:90%;white-space:nowrap;pointer-events:none;box-shadow:0 2px 8px #34424708}.plan-loading{position:absolute;inset:0;display:grid;place-items:center;background:#e8ebebed;color:#59666d;z-index:5;font-size:16px}.selection-bar{position:absolute;top:69px;left:50%;transform:translateX(-50%);z-index:8;display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #ced7dc;border-radius:10px;padding:6px 9px;box-shadow:0 6px 22px #3442471a;max-width:calc(100% - 24px)}.selection-bar strong{font-size:12px;white-space:nowrap;margin:0 8px;max-width:150px;text-overflow:ellipsis;overflow:hidden}.selection-bar label{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:500;color:var(--muted)}.selection-bar select{font-size:12px;min-height:35px;padding:7px 4px;max-width:110px}.selection-bar button{font-size:12px;min-height:35px;padding:7px}.selection-bar .icon{width:17px;height:17px}.canvas-footer{height:55px;min-height:55px;display:flex;align-items:center;justify-content:space-between;padding:6px 18px;gap:15px;background:#fff;border-top:1px solid var(--line)}.page-controls,.zoom-controls{display:flex;gap:3px;align-items:center}.canvas-footer button{min-height:35px;padding:7px 8px}.canvas-footer select{min-height:34px;padding:6px 24px 6px 8px;border:0;background:var(--panel);font-size:12px;max-width:160px}.canvas-footer .icon{width:17px;height:17px}.page-count-label{font-size:12px;color:var(--muted)}#zoom-label{font-variant-numeric:tabular-nums;min-width:42px;text-align:center;font-size:12px}.counts-caption{color:var(--muted);font-size:12px;margin:0 0 16px}#counts-panel{overflow:auto;flex:1;padding:0 4px 20px}.count-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf0f0;font-size:12px}.count-row svg{width:28px;height:28px}.count-row strong{margin-left:auto;font-variant-numeric:tabular-nums}.count-total{display:flex;justify-content:space-between;font-size:14px;font-weight:700;margin-top:20px}dialog{color:var(--ink);background:#fff;border:1px solid #d0d8db;border-radius:12px;padding:28px;width:min(480px,calc(100% - 32px));box-shadow:0 20px 70px #15262e29;max-height:calc(100dvh - 50px);overflow:auto}dialog::backdrop{background:#18282f75}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.dialog-heading button{margin:-6px -10px -6px 0}.dialog-heading h2{font-size:21px}.file-drop{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;margin-top:22px;min-height:160px;padding:20px;border:1px dashed #aebbc1;border-radius:8px;background:var(--panel);text-align:center}.file-drop:focus-within{outline:3px solid var(--focus)}.file-drop .icon{width:27px;height:27px;color:var(--red)}.file-drop strong{font-size:14px;overflow-wrap:anywhere}.file-drop span{font-size:12px;font-weight:400;color:var(--muted)}.file-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}.form-help{font-size:12px;color:var(--muted);margin:14px 0 22px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:28px}.help-steps section{display:flex;gap:18px;margin:24px 0}.help-steps section>.icon{color:var(--red);margin-top:2px}.help-steps p{font-size:14px;color:var(--muted);margin-top:6px}.shortcut-help{border-top:1px solid var(--line);font-size:12px;color:var(--muted);padding-top:18px;margin:24px 0}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;background:#233139;color:#fff;border-radius:8px;padding:14px 20px;box-shadow:0 6px 26px #23313930;font-size:14px;max-width:calc(100% - 30px);text-align:center;line-height:1.5}.toast.error-toast{background:#a5221f}
@media(min-width:1700px){.tool-panel{width:280px}.symbol-button{font-size:14px;min-height:51px}}
@media(max-width:1100px){.tool-panel{width:218px;padding:18px 12px 0}.topbar{padding:0 20px;height:66px}.editor{height:calc(100dvh - 66px)}.brand img{width:125px;height:49px}.projectbar{padding:10px 15px;gap:8px}.project-name-wrap{gap:5px;flex-direction:column;align-items:flex-start}.project-name-wrap input{font-size:16px;padding:1px 7px;min-height:28px}.project-name-wrap #save-status{padding-left:8px}.drawing-toolbar{padding:7px 12px}.selection-bar strong{display:none}.project-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.topbar{height:60px;padding:0 13px}.brand img{width:112px;height:44px}.brand{gap:15px;min-height:44px}.brand>span{padding-left:15px;font-size:16px}.compact-hide{display:none}.topbar-end{gap:0}.editor{height:calc(100dvh - 60px)}.projectbar{height:66px;min-height:66px;padding:7px 8px;gap:3px}.projectbar>.primary{font-size:12px;min-height:40px;padding:10px}.projectbar>.quiet{padding:9px}.project-name-wrap input{font-size:14px;width:100%}.project-name-wrap #save-status{font-size:11px}.tool-panel{display:none;position:absolute;top:0;bottom:0;left:0;z-index:20;width:255px;box-shadow:12px 0 30px #34424726}.editor-body{position:relative}.tool-panel.open{display:flex}#close-tools{display:flex}#toggle-tools{display:flex}.drawing-toolbar{height:54px;min-height:54px;padding:6px}.drawing-toolbar button{padding:7px 8px;font-size:12px;gap:5px}.drawing-toolbar .icon{width:17px;height:17px}.history{padding-left:2px}.toolbar-group{gap:1px}.canvas-footer{padding:6px 6px;gap:3px;height:50px;min-height:50px}.page-count-label{display:none}.canvas-footer select{max-width:117px;font-size:11px}.canvas-footer button{padding:7px 6px}.selection-bar{top:65px;gap:2px;padding:6px;max-width:calc(100% - 12px)}.selection-bar select{max-width:92px}.selection-bar label{gap:3px}.tool-hint{font-size:11px;white-space:normal;width:max-content;text-align:center;bottom:12px;padding:8px 10px}.library{padding:30px 18px}.library-heading{align-items:flex-start;gap:15px}.library-heading h1{font-size:25px}.library-heading p{font-size:14px}.library-heading>.primary{font-size:12px;padding:9px}.library-heading>.primary .icon{display:none}.project-list{grid-template-columns:1fr}.empty-projects{min-height:430px;padding:26px 20px}.empty-projects h2{font-size:21px}.empty-projects p{font-size:14px}.login-view{padding:20px}.login-card{padding:28px}.login-card h1{font-size:22px}.login-logo{margin-bottom:22px}.selection-bar button{min-height:40px}.selection-bar select{min-height:40px}dialog{padding:23px}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}.toast{animation:toast-in .18s ease-out}@keyframes toast-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}}

.brand img{width:230px;height:42px}.login-logo{width:280px;height:65px}.login-card{width:min(100%,440px)}@media(max-width:1100px){.brand img{width:215px;height:38px}}@media(max-width:760px){.brand img{width:174px;height:36px}.brand{gap:12px}.brand>span{padding-left:12px}.login-logo{width:min(100%,270px)}}
.symbol-button>span:first-of-type{flex:1;min-width:0;white-space:normal;text-align:left;line-height:1.3}.symbol-button .symbol-count{flex-shrink:0}

/* Per-item appearance controls keep percentages tied to the drawing, not zoom. */
.selection-bar{width:570px;max-width:calc(100% - 24px);display:block;padding:8px 14px 12px}
.selection-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding-bottom:6px;margin-bottom:10px}
.selection-bar .selection-heading strong{display:block;min-width:0;max-width:none;margin:0;font-size:13px}
.selection-actions{display:flex;align-items:center;flex-shrink:0}
.selection-bar button{min-width:40px;min-height:44px;padding:8px}
.selection-properties{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.selection-bar label,.property-label{font-size:12px;font-weight:600;color:var(--ink);margin:0 0 5px}
.size-stepper{display:flex;align-items:center;gap:4px}
.size-value{position:relative;width:90px}
.size-value input{font-size:14px;font-variant-numeric:tabular-nums;min-height:44px;padding:8px 25px 8px 8px;appearance:textfield;-moz-appearance:textfield}
.size-value input::-webkit-inner-spin-button,.size-value input::-webkit-outer-spin-button{appearance:none;margin:0}
.size-value>span{position:absolute;right:9px;top:13px;font-size:13px;color:var(--muted);pointer-events:none}
.size-property small{display:block;font-size:11px;margin-top:5px;color:var(--muted);white-space:nowrap}
.property-label{display:flex;gap:8px;align-items:baseline}
#color-name{font-weight:400;color:var(--muted)}
.mark-colors{display:flex;gap:3px}
.selection-bar .color-swatch{width:40px;min-width:40px;padding:5px;border:1px solid transparent;border-radius:7px}
.color-swatch>span{width:26px;height:26px;display:grid;place-items:center;border-radius:50%}
.color-swatch svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}
.color-swatch[aria-pressed=true]{background:var(--red-tint);border-color:#97b8a5}
.color-swatch[aria-pressed=true] svg{visibility:visible}
.counts-key{margin-top:16px;color:var(--muted);font-size:12px;line-height:1.5}
@media(max-width:760px){.selection-bar{top:62px;padding:6px 10px 10px;max-width:calc(100% - 12px)}.selection-properties{gap:10px}.selection-bar .selection-heading strong{font-size:12px}.selection-actions button{min-width:38px;padding:7px}.color-property{flex:1;min-width:255px}.selection-bar .mark-colors{justify-content:space-between;max-width:300px}}
