:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#153044;background:#f5f6f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}header{height:76px;background:white;border-bottom:1px solid #e2e7e9;display:flex;align-items:center;justify-content:space-between;padding:0 4vw}.brand{font-size:21px;letter-spacing:-.7px;color:#173346;text-decoration:none;display:flex;gap:7px;align-items:center}.brand-icon{display:grid;place-items:center;background:#143548;color:#fff;width:33px;height:33px;border-radius:8px;font-size:25px;margin-right:5px}.brand b{font-weight:500}.local{font-size:12px;color:#647782}.local i,#status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#739b91;margin-right:8px}main{max-width:1600px;margin:auto;padding:35px 4vw 20px}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#71838b}h1{font-size:34px;font-weight:550;letter-spacing:-1.3px;margin:10px 0}p{font-size:14px;color:#75828a;line-height:1.6;margin:0}.upload{padding:14px 20px;background:#143548;border-radius:8px;font-size:13px;font-weight:600;color:white;cursor:pointer}.upload input{display:none}.workspace{display:grid;grid-template-columns:306px 1fr;background:white;border:1px solid #dde4e6;border-radius:12px;overflow:hidden;box-shadow:0 6px 24px #15304405}aside{padding:24px;border-right:1px solid #dde4e6}.section-title{display:flex;align-items:center;gap:10px}.section-title>span{font:11px ui-monospace,monospace;color:#82949d;border:1px solid #d8e1e4;border-radius:5px;padding:4px}h2{font-size:14px;margin:0;font-weight:650}.hint{font-size:12px;margin:12px 0 25px}.axis-heading{font-size:10px;letter-spacing:1px;font-weight:700;display:flex;justify-content:space-between;margin:21px 0 10px}.axis-heading span{font-weight:400;letter-spacing:0;color:#87949c}.reference{display:flex;align-items:center;gap:10px;width:100%;background:white;text-align:left;border:1px solid #dce4e8;border-radius:7px;margin-bottom:8px;padding:11px 10px;color:#244252;font-size:11px}.reference:hover{background:#f5f8f9;border-color:#8babbc}.ref-icon{width:28px;height:28px;display:grid;place-items:center;background:#edf2f5;color:#426781;border-radius:5px;font:12px ui-monospace,monospace}.reference small{display:block;margin-top:4px;font-size:10px;color:#88979f}.check{margin-left:auto;color:#85969e}.reference.active{border-color:#257cac;background:#eef7fc;box-shadow:0 0 0 2px #257cac15}.reference.done .check{color:#238f72}.reference.done small{color:#23836b}.progress{margin:22px 0 28px}.progress>div:first-child{display:flex;justify-content:space-between;font-size:10px;color:#7a8b94}.track{height:4px;background:#edf1f2;border-radius:5px;margin-top:9px}.track div{height:100%;width:0;background:#308f79;transition:width .2s}.readings{display:flex;gap:10px;margin:14px 0 22px}.readings>div{background:#f5f8f9;flex:1;padding:12px;border-radius:7px;min-width:0}.readings label{font-size:10px;color:#748d9d;display:block}.readings strong{display:block;margin-top:7px;font:22px ui-monospace,monospace;overflow-wrap:anywhere}.options{border-top:1px solid #e7edef;padding-top:15px}.options>label{font-size:11px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;color:#637c89}.options input[type=text],#unit{width:60px;border:1px solid #dde5e8;border-radius:5px;padding:5px;text-align:center;color:#244252}.options span{display:flex;align-items:center;gap:7px}.options input[type=range]{width:80px;accent-color:#246d94}.options output{font-size:10px;width:32px}.reset{background:none;border:0;font-size:11px;color:#85969f;padding:8px 0}.canvas-panel{min-width:0;display:flex;flex-direction:column}.toolbar{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #e3e9ec;font-size:11px;gap:10px}.toolbar>div:first-child{display:flex;align-items:center;gap:9px;min-width:0}.toolbar strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px}.file-icon{font-size:19px;color:#7793a3}.demo-tag{font-size:8px;letter-spacing:1px;background:#edf3f5;color:#738d9b;padding:4px 6px;border-radius:4px}.zoom{display:flex;align-items:center;gap:5px;white-space:nowrap}.zoom button{background:#fff;border:1px solid #e0e7eb;border-radius:5px;min-width:27px;height:27px;color:#597888}.zoom span{font:10px ui-monospace,monospace;min-width:45px;text-align:center}.zoom #fit{font-size:10px;padding:0 9px;margin-left:5px}#stage{position:relative;flex:1;min-height:560px;overflow:hidden;background-color:#fafcfb;background-image:radial-gradient(#d4dfe4 .6px,transparent .6px);background-size:18px 18px;touch-action:none;outline:none}#svg-host{position:absolute;inset:20px}#overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}#highlight{stroke:#1499bf;stroke-width:3;opacity:.8;display:none}#snap{fill:none;stroke:#1187b6;stroke-width:2;display:none}#refs line{stroke:#309c87;stroke-width:1;stroke-dasharray:4 4;opacity:.65}#refs circle{fill:#309c87;stroke:white;stroke-width:2}#refs text{font:10px ui-monospace,monospace;fill:#237761;paint-order:stroke;stroke:#fafcfb;stroke-width:4}#tooltip{position:absolute;pointer-events:none;background:#15384d;color:white;font:11px ui-monospace,monospace;padding:9px 12px;border-radius:6px;box-shadow:0 4px 14px #102b4720;display:none;white-space:nowrap}#drop-hint{display:none;position:absolute;inset:10px;place-items:center;background:#e8f5f9ee;border:2px dashed #428eac;border-radius:8px;color:#235c7d;font-size:24px}#stage.dropping #drop-hint{display:grid}.statusbar{padding:13px 18px;border-top:1px solid #e3e9ec;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#7f919a;min-height:42px}.statusbar>span:first-child{display:flex;align-items:center}#status-dot{flex-shrink:0}.footnote{display:flex;justify-content:space-between;margin:15px 1px;color:#89969b;font-size:10px}dialog{border:1px solid #d8e3e8;border-radius:14px;padding:28px;max-width:390px;width:calc(100% - 32px);color:#244252;box-shadow:0 15px 80px #15304430}dialog::backdrop{background:#15304466;backdrop-filter:blur(3px)}dialog h2{font-size:22px;margin:12px 0}dialog p{font-size:12px;margin-bottom:20px}dialog label{font-size:12px}dialog input{width:100%;padding:13px;border:1px solid #b4c9d4;border-radius:6px;margin:8px 0;outline-color:#257cac}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.dialog-actions button{border:1px solid #d8e3e8;background:white;padding:10px 15px;border-radius:6px;font-size:12px;color:#244252}.dialog-actions button[type=submit]{background:#15384d;color:white}#value-error{color:#ba493c;font-size:11px}button:focus-visible,.upload:focus-within{outline:2px solid #2192c0;outline-offset:3px}@media(max-width:900px){main{padding:25px 18px}.workspace{grid-template-columns:260px 1fr}aside{padding:18px}.toolbar{padding:0 12px;flex-wrap:wrap;height:auto;min-height:58px;padding-block:10px}.toolbar strong{max-width:160px}.footnote{gap:15px}.local{display:none}}@media(max-width:640px){h1{font-size:27px}.intro{align-items:flex-start;gap:15px;flex-direction:column}.workspace{display:flex;flex-direction:column}.canvas-panel{order:-1}#stage{min-height:390px}aside{border-right:0;border-top:1px solid #dde4e6}.footnote{flex-direction:column}.readings strong{font-size:25px}.statusbar{flex-wrap:wrap}}

.auto-calibrate{display:block;width:100%;padding:10px;background:#eff5f7;border:1px solid #d4e2e8;border-radius:6px;color:#345f74;font-size:11px;margin-top:8px}.auto-calibrate:hover{background:#e4f0f5}#snap path{stroke-width:1.5}#highlight line{stroke-linecap:round}

[hidden]{display:none!important}#automatic-summary{margin-bottom:26px}.automatic-badge{font-size:11px;color:#23836b;background:#eff8f4;border:1px solid #dcefe5;padding:10px 12px;border-radius:6px;margin-bottom:10px}#manual-calibration{background:white;border:1px solid #d4e2e8;border-radius:6px;color:#345f74;font-size:11px;padding:10px 12px;width:100%}#manual-calibration:hover{background:#f2f7f9}#calibration-panel{margin-bottom:22px}#calibration-panel .progress{margin-bottom:16px}

.checkbox-row{display:flex;align-items:center;gap:8px;font-size:12px;padding:3px 0 18px;color:#355a70}.checkbox-row input{width:15px;height:15px;accent-color:#246d94;margin:0}.object-section{border-top:1px solid #e1e9ed;padding-top:19px}.object-heading{display:flex;justify-content:space-between;align-items:center}.object-heading>span{font:11px ui-monospace,monospace;background:#eef3f5;color:#6c8795;padding:3px 7px;border-radius:4px}.object-hint{font-size:11px;margin:10px 0;color:#80919b}.add-object{width:100%;background:#15384d;color:white;border:0;border-radius:6px;padding:11px;font-size:12px}.add-object:disabled{background:#c5d0d6;cursor:default}.object-item{border:1px solid #dce6e7;border-left:3px solid #27916e;border-radius:6px;padding:10px;margin-top:10px;background:#f8fbfa}.object-item.blocked{border-left-color:#d65a50;background:#fffafa}.object-item-head{display:flex;align-items:center;justify-content:space-between;gap:5px}.object-item-head strong{font-size:11px;font-weight:600;overflow-wrap:anywhere}.object-remove{background:transparent;border:0;color:#8a9aa2;font-size:19px;line-height:1;padding:3px}.object-remove:hover{color:#c44437}.object-coords{font:9px ui-monospace,monospace;line-height:1.7;color:#83959e;margin-top:5px}.object-state{font-size:10px;color:#298364;margin-top:5px}.object-item.blocked .object-state{color:#be5049}.object-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:9px;color:#80929b;margin-top:14px}.object-legend i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:4px}.green-dot{background:#27916e}.red-dot{background:#d65a50}#advanced-settings{border-top:1px solid #e1e9ed;margin-top:22px;padding-top:17px}#advanced-settings summary{cursor:pointer;font-size:11px;color:#668595}#advanced-settings .options{border-top:0;padding-top:0;margin-top:17px}.advanced-open{display:none}#advanced-settings[open] .advanced-open{display:inline}#advanced-settings[open] .advanced-closed{display:none}#automatic-summary{margin-bottom:0;margin-top:15px}.object-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.object-fields input{margin-bottom:0}#object-error{display:block;color:#ba493c;font-size:11px;margin-top:12px}#object-dialog p{margin-bottom:14px}#objects-overlay polygon{stroke-width:2;stroke-linejoin:round}#objects-overlay text{font:11px ui-sans-serif,sans-serif;paint-order:stroke;stroke:white;stroke-width:3px;stroke-linejoin:round}

.object-values{display:block;width:100%;background:none;border:0;color:#6b8797;font-size:10px;padding:9px;cursor:pointer}.add-object.drawing{background:#277b9c}.object-item.selected{box-shadow:0 0 0 1px #368aaa}.object-edit{background:none;border:0;color:#47768e;font-size:10px;padding:3px;cursor:pointer}.object-item-head strong{cursor:pointer}.object-item-head strong:hover{text-decoration:underline}#object-handles rect{fill:white;stroke:#2c7b9e;stroke-width:1.5}#object-handles{pointer-events:none}.object-item-head{flex-wrap:wrap}.object-item-head strong{margin-right:auto}

.page-nav{display:flex;align-items:center;gap:10px;padding:10px 16px;border-top:1px solid #e3e9ec;border-bottom:1px solid #e3e9ec;background:#f7fafb}.page-nav[hidden]{display:none}.page-nav select{flex:1;min-width:0}.page-nav button{background:white;border:1px solid #cbdce4;border-radius:5px;padding:5px 12px;color:#244252}.page-nav button:disabled{opacity:.4}.page-nav span{font-size:11px;white-space:nowrap}.page-nav select,.language-row select{border:1px solid #cbdce4;border-radius:5px;background:white;color:#244252;padding:6px}.language-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:12px}.storage-hint{font-size:10px;color:#7f919a;line-height:1.5} .axis-heading>span[data-i18n]{font-size:inherit;color:inherit}

/* Keep the drawing viewport independent of object list height. */
.intro{gap:28px;align-items:center}.intro>div{max-width:920px}.upload{flex-shrink:0}.workspace{align-items:start}.workspace.no-sidebar{grid-template-columns:minmax(0,1fr)}.canvas-panel{align-self:start;width:100%}#stage{flex:none;height:clamp(420px,65vh,820px);min-height:0}aside{max-height:calc(65vh + 260px);overflow-y:auto;align-self:stretch}#object-list{max-height:260px;overflow-y:auto;padding:1px}.page-thumbnails{display:flex;gap:10px;overflow-x:auto;padding:12px 16px;background:#f7fafb;border-bottom:1px solid #e3e9ec;flex:none}.page-thumbnail{flex:0 0 126px;width:126px;min-width:0;display:flex;flex-direction:column;gap:7px;padding:7px!important;border:1px solid #d5e1e7;background:white;border-radius:7px;color:#42647a;text-align:left}.page-thumbnail img{display:block;width:110px;height:76px;object-fit:contain;background:white;pointer-events:none}.page-thumbnail span{display:block;font-size:10px;width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-thumbnail.active{border-color:#1789b2;box-shadow:0 0 0 2px #1789b225}.page-thumbnail:disabled{opacity:.7}.page-nav{justify-content:center;min-height:44px}.page-nav span{min-width:100px;text-align:center}#upload-error{color:#ba493c;margin-bottom:16px}#status:empty+#status-dot{display:none}.intro h1{margin-top:0}@media(max-width:640px){.intro{align-items:flex-start;gap:18px}#stage{height:60vh;min-height:350px}aside{max-height:none}#object-list{max-height:230px}.page-thumbnail{flex-basis:112px;width:112px}.page-thumbnail img,.page-thumbnail span{width:96px}.page-thumbnail img{height:64px}}

#drive-loading{margin:0 0 20px;padding:14px 18px;border-radius:8px;color:#355a70;background:#eaf3f7;font-size:13px}
