:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#423224;background:#e9dcc6;font-synthesis:none;--leather:#704d31;--leather-dark:#533820;--ink:#483421;--soft:#8f7b64;--paper:#fcf4e6;--paper-mid:#f5e6ca;--divider:#dfc9a8;--blue:#246cac;--green:#55785f;--shadow:0 13px 35px #4e331b17}*{box-sizing:border-box}html,body,#app{margin:0;width:100%;height:100%;min-height:0}button,input,select,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.4;cursor:default}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #81aece;outline-offset:2px}button{transition:background .12s ease,color .12s ease,transform .12s ease}button:active:not(:disabled){transform:scale(.965)}.shell{height:100dvh;min-height:450px;display:flex;flex-direction:column;overflow:hidden;background:#f1e5d0}.topbar{min-height:72px;display:flex;align-items:center;gap:18px;padding:9px 22px;background:linear-gradient(140deg,#fff6e5,#f7e9d2);box-shadow:0 2px 14px #6a4c2e1c;z-index:9;border-bottom:1px solid #d9c3a2}.brand{display:flex;align-items:center;gap:10px;flex-shrink:0}.brandIcon{width:44px;height:40px;color:#795331;display:grid;place-items:center}.brandIcon svg{width:100%}.brandText{display:flex;flex-direction:column;line-height:1.08}.brandText strong{font-size:23px;letter-spacing:-.7px;color:#654628;font-weight:800}.brandText span{font-family:Georgia,"Times New Roman",serif;letter-spacing:2px;font-size:15px;color:#806246}.projectPill{min-width:215px;max-width:330px;display:flex;align-items:center;text-align:left;gap:10px;border:1px solid #e0ceb4;background:#f0e2ce;border-radius:13px;padding:9px 14px;color:var(--ink)}.pillFolder{font-size:25px;line-height:1}.projectPillText{display:flex;flex-direction:column;min-width:0;flex:1;gap:2px}.projectPillText small{font-size:11px;color:#7d6650}.projectPillText b{font-size:13px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pillArrow{font-size:19px}.topRight{margin-left:auto;display:flex;align-items:center;gap:12px}.saveStatus{white-space:nowrap;color:#847059;font-size:12px;display:inline-flex;align-items:center;gap:6px}.statusDot{height:7px;width:7px;background:#6e9b72;border-radius:50%;box-shadow:0 0 0 3px #6e9b7218}.languagePick{color:var(--ink);border:1px solid #dfccb0;border-radius:9px;background:#fff6e6;padding:8px 8px;font-size:12px}.settingsBtn{color:#704e31;font-size:24px;background:transparent;border:0;padding:3px 7px}.mainLayout{flex:1;display:flex;min-height:0;min-width:0}.workArea{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0}.toolRow{display:flex;align-items:stretch;gap:4px;padding:9px 10px;background:#f3e7d1;border-bottom:1px solid #ddc7a9;box-shadow:0 3px 8px #624b3210;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#b9a78b transparent;z-index:2}.tool{min-width:73px;display:flex;flex-direction:column;gap:1px;justify-content:center;align-items:center;background:transparent;color:#69533c;border:1px solid transparent;border-radius:13px;padding:6px 10px;min-height:58px;flex-shrink:0}.toolIcon{font-size:23px;font-family:Georgia,serif;line-height:1.2;font-weight:600}
/* v0.8.5: vector pictograms with explicit visual bounds; labels/buttons unchanged. */
.toolIcon .toolPictogram{display:block;width:1.38em;height:1.2em;overflow:visible}.tool small{font-size:11px;white-space:nowrap}.tool.active{background:#795636;color:#fff7e9;box-shadow:0 4px 11px #624a3927}.tool:hover:not(.active){background:#e8d8bc}.paperWrap{position:relative;min-height:0;flex:1;overflow:hidden;background:#f9efdf;isolation:isolate}#paperSvg{width:100%;height:100%;display:block;touch-action:none;user-select:none;cursor:crosshair;background:#fbf2e2}#paperSvg:focus-visible{outline:none}.paperShade{position:absolute;pointer-events:none;inset:0;background:radial-gradient(ellipse at 45% 39%,transparent 57%,#9f795118 100%),repeating-linear-gradient(0deg,#a58b5105 0px,#a58b5105 1px,transparent 1px,transparent 5px);mix-blend-mode:multiply}.northArrow{position:absolute;top:18px;left:19px;font-family:Georgia,serif;color:#573e26;font-size:16px;text-align:center;line-height:1.1;pointer-events:none;text-shadow:0 1px 0 #fff9eb}.northArrow span{display:block;font-size:27px;transform:rotate(0deg);font-family:serif;line-height:1}.floatControls{position:absolute;top:22px;right:16px;display:flex;flex-direction:column;gap:8px}.floatControls button{border:1px solid #e0ceaf;box-shadow:0 4px 11px #5d3e2526;background:#fff9efee;color:#65472e;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;font-weight:500;font-size:24px}.floatControls button:hover{background:white}.paperLegend{position:absolute;bottom:17px;left:18px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;max-width:calc(100% - 38px);pointer-events:none;color:#785c42;font-size:11px;text-shadow:0 1px #fff8ec}.paperLegend span:first-child{font-weight:700}.paperHint{position:absolute;left:50%;transform:translateX(-50%);bottom:48px;max-width:calc(100% - 32px);border:1px solid #e9d7bc;background:#fff9eddc;color:#6c5136;box-shadow:0 7px 24px #624b2a1a;padding:10px 13px;border-radius:14px;display:flex;gap:9px;align-items:center;justify-content:center;flex-wrap:wrap;font-size:12px;line-height:1.35;text-align:center;backdrop-filter:blur(8px)}.radiusChip{white-space:nowrap;display:flex;align-items:center;gap:8px;font-weight:700}.radiusChip input{width:77px;border:1px solid #d9b991;border-radius:7px;padding:5px 7px;background:#fff}.hintAction{white-space:nowrap;padding:6px 9px;background:#735132;color:white;border:0;border-radius:7px;font-size:11px}.hintAction.alt{background:#f4e8d5;color:#614329}.mapPoint .pointLabel{font-family:Inter,Arial,sans-serif;font-size:13px;font-weight:750;paint-order:stroke;stroke:#fff7e7;stroke-width:3.5px;stroke-linejoin:round}.dimension{font-family:Arial,sans-serif;font-size:11.5px;fill:#55432f;text-anchor:middle;paint-order:stroke;stroke:#f9efdf;stroke-width:4px;stroke-linejoin:round}.notebookPanel{width:400px;min-width:345px;display:flex;flex-direction:column;background:#fff9ec;box-shadow:-6px 0 22px #6b48231c;z-index:3;border-left:1px solid #d9c5a6;min-height:0}.sheetHandle{display:none}.panelTabs{display:flex;align-items:stretch;border-bottom:1px solid #e9d9c2;min-height:55px;padding:0 13px;gap:4px;overflow-x:auto;scrollbar-width:none}.panelTabs .tab{flex:1;border:0;border-bottom:3px solid transparent;background:transparent;padding:15px 5px 11px;color:#876d52;font-size:13px;font-weight:600;white-space:nowrap}.panelTabs .tab.active{color:#67401f;border-color:#765235}.panelTabs .tab:hover{background:#f7eddc}.panelBody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d5bc99 transparent}.panelSection{padding:16px 18px 30px;min-height:100%}.sectionHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.sectionHeader h2{font-size:19px;margin:0;color:#46311c;letter-spacing:-.4px}.sectionHeader h2 small{font-size:14px;color:#987b60;font-weight:500}.subheading{font-size:11px;color:#9a8065;margin-top:3px;line-height:1.4}.addBtn{background:#715035;color:white;border:0;padding:9px 11px;border-radius:11px;font-size:12px;font-weight:700;white-space:nowrap}.field{display:flex;flex-direction:column;gap:5px;margin-bottom:11px;font-size:12px;color:#78624c;font-weight:600;min-width:0}.field input,.field select,.field textarea,select{min-width:0}.field input,.field select{width:100%;border:1px solid #e3d0b6;background:#fffbf3;color:#4e3826;border-radius:10px;padding:11px 10px;font-size:13px;font-weight:500}.field input::placeholder{color:#b9a58f}.fieldGrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:10px;padding:10px 12px;border:1px solid #dac4a8;background:#f6e9d6;color:#5c432e;font-size:12px;font-weight:700;min-height:39px}.btn.primary{background:#765235;color:#fff7e9;border-color:#765235}.btn.primary:hover{background:#5f4027}.btn.outline{background:#fff9ef;color:#6d5037}.btn.large{width:100%;margin:12px 0;font-size:13px;min-height:45px}.btn.ghostDanger{border:0;color:#a65642;background:#f7e8de}.pointInspector{border:1px solid #eadac1;border-radius:15px;background:linear-gradient(125deg,#fffdf8,#fbf0db);box-shadow:0 4px 12px #77512d0d;padding:13px;margin:0 0 17px}.inspectorHeading{display:flex;gap:9px;align-items:center;margin-bottom:13px;color:#403021}.selectedBullet{color:#2168ae;font-size:21px}.inspectorHeading strong{font-size:19px}.inspectorTag{font-size:11px;background:#e9e0d2;border-radius:6px;padding:5px 7px;color:#81674d}.closeTiny{margin-left:auto;background:#fffaf0;color:#654c35;border:1px solid #e7d7bd;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-size:15px}.inspectorActions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.inspectorActions .btn:first-child{flex:1}.pointList{display:flex;flex-direction:column;gap:4px}.pointItem{width:100%;display:flex;align-items:center;gap:10px;padding:10px;border:1px solid transparent;border-bottom-color:#e8d9c0;background:transparent;text-align:left;min-height:60px;border-radius:8px;color:#543d2a}.pointItem:nth-child(2n){background:#f8efdf}.pointItem:hover,.pointItem.focused{background:#eedecc}.pointItem.picked{border-color:#c0d8e9;background:#ebf2f6}.rowIcon{display:grid;place-items:center;min-width:22px;width:22px;height:22px;color:#567b9a;font-size:18px}.rowIcon.benchmark{color:#6f4a2e}.rowName{flex:1;min-width:0}.rowName b{display:block;font-size:13px}.rowName small{display:block;font-size:11px;color:#907760;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rowCoords{font-size:12px;color:#766454;line-height:1.4;text-align:right;font-variant-numeric:tabular-nums}.rowCoords small{font-size:10px;color:#9a856d}.rowArrow{font-size:21px;color:#b4a087;margin-left:4px}.demoNote{font-size:11px;color:#8a6846;background:#f6e7c9;border-radius:9px;padding:10px 11px;margin-bottom:13px}.emptyList{font-size:13px;color:#9b7e61;line-height:1.5;margin:14px 3px}.pillTag{background:#efe3d2;color:#8b6849;border:1px solid #dfc6a7;border-radius:20px;padding:6px 9px;font-size:11px;font-weight:700}.selectionBox{background:#f8ecd9;border:1px dashed #d7bf9d;border-radius:13px;padding:12px;margin:12px 0}.selectionTitle{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#684930}.linkBtn{background:none;border:0;color:#2b7098;text-decoration:underline;font-size:12px}.pickSequence{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.pickChip{border:1px dashed #bda789;border-radius:8px;min-width:36px;min-height:33px;display:grid;place-items:center;padding:6px 8px;background:#fff8ee;color:#a48b71;font-weight:700;font-size:12px}.pickChip.filled{background:#d8e9f5;border:1px solid #98bfdc;color:#1b5f91}.smallHelp{color:#90755d;line-height:1.5;font-size:11px}.smallHelp b{color:#5c4632}.finePrint{font-size:11px;color:#957e65;line-height:1.5;margin:8px 1px 14px}.warningInline{color:#9a694e}.resultBox{margin:12px 0;background:#edf3ee;border-left:3px solid #73967b;border-radius:10px;padding:13px;color:#36533d;font-size:12px;line-height:1.6;white-space:pre-line;word-break:break-word}.resultBox strong{display:block;margin-bottom:5px}.checkLabel{font-size:12px;display:flex;align-items:center;gap:7px;color:#6c533c}.checkLabel input{accent-color:#765235}.layerList{border:1px solid #e8d7c1;border-radius:13px;overflow:hidden;background:#fffaf2}.layerRow{display:flex;align-items:center;gap:8px;padding:11px;border-bottom:1px solid #eddfcb}.layerRow:last-child{border-bottom:0}.layerSwatch{width:17px;height:17px;border-radius:5px;box-shadow:0 0 0 1px #a48a5d55}.layerName{flex:1;min-width:0}.layerName b{display:block;font-size:12px;color:#543e29;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layerName small{display:block;font-size:10px;color:#997a60;min-height:11px;margin-top:2px}.miniIcon{border:0;background:#f8eddd;color:#8d6d50;font-size:16px;border-radius:8px;width:31px;height:31px;flex-shrink:0;display:grid;place-items:center}.miniIcon.on{background:#6e4c32;color:white}.layerAdd{margin:18px 0;display:grid;grid-template-columns:1fr 62px;gap:7px;align-items:end}.layerAdd .field{margin:0}.layerAdd .btn{grid-column:1/-1}.colorField input{padding:4px;height:41px}.subsection{border-top:1px solid #e9d8c0;margin-top:21px;padding-top:17px}.subsection h3{font-size:14px;color:#573c26;margin:0 0 12px}.circleRow{display:flex;align-items:center;gap:8px;padding:8px;border-bottom:1px solid #f0e1cd;color:#65513d;font-size:12px}.circleRow span{flex:1}.fileActions{display:flex;flex-direction:column;gap:8px}
.kmlOptions{margin:0 2px 7px;padding:9px 11px;border:1px solid #e8d8c0;background:#fffaf2;border-radius:10px}
.kmlOptions>summary{font-size:12px;font-weight:700;color:#624a34;cursor:pointer}
.kmlOptions .field{margin-top:9px}
.kmlSettingsGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.kmlSettingsGrid .field{min-width:0}
.kmlOptions .finePrint{margin-top:8px}

.fileActionGroup{display:flex;align-items:stretch;gap:7px;min-width:0}
.fileActionGroup .fileAction{flex:1;width:auto;min-width:0}
.fileShare{min-width:74px;padding:5px 8px;border:1px solid #e8d8c0;border-radius:12px;background:#fffaf2;color:#624a34;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.fileShare:hover{background:#f4e7d4}
.fileShare>span{font-size:22px;line-height:1}
.fileShare small{font-size:10px;font-weight:700}
.fileAction{width:100%;display:flex;align-items:center;gap:13px;text-align:left;background:#fffaf2;border:1px solid #e8d8c0;border-radius:12px;padding:10px;color:#624a34;font-size:12px}.fileAction:hover{background:#f4e7d4}.fileAction span:nth-child(2){flex:1;font-weight:600}.fileAction b{font-size:20px;color:#8a7155}.fileGlyph{width:51px;text-align:center;font-size:11px;font-weight:800;border-radius:8px;padding:9px 0;background:#e8ddca;color:#5f4229;letter-spacing:.5px}.notice{margin:13px 0;padding:12px;background:#f1ecdE;border-radius:10px;font-size:11px;line-height:1.55;color:#73624c;border:1px solid #e4d7c1}.notice.warning{background:#fff3db;color:#8d6b3e;border-color:#ebd4a9}.themeCard{display:flex;align-items:center;gap:11px;border:1px solid #dfc6a7;border-radius:12px;background:#fff7e8;padding:10px}.themeSwatch{width:47px;height:47px;border-radius:9px;border:3px solid #765235;background:linear-gradient(145deg,#f9e4be,#fff8e6)}.themeCard div:nth-child(2){flex:1}.themeCard b,.themeCard small{display:block}.themeCard b{font-size:12px}.themeCard small{font-size:11px;color:#92765c;margin-top:3px}.buttonStack{display:flex;flex-wrap:wrap;gap:8px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,18px);opacity:0;pointer-events:none;border-radius:12px;background:#4c3827;color:#fff8eb;padding:13px 19px;box-shadow:0 12px 30px #24140750;max-width:min(90vw,530px);z-index:40;text-align:center;font-size:12px;line-height:1.4;transition:opacity .17s ease,transform .17s ease}.toast.show{transform:translate(-50%,0);opacity:1}.toast.bad{background:#9b4e43}.overlay[hidden]{display:none!important}.overlay{position:fixed;inset:0;background:#23180fb5;z-index:30;display:grid;place-items:center;padding:15px;backdrop-filter:blur(3px)}.dialog{width:min(480px,100%);max-height:min(75vh,700px);display:flex;flex-direction:column;overflow:hidden;border-radius:20px;background:#fff7e8;border:1px solid #f7e7cd;box-shadow:0 28px 100px #1a100b55}.dialogTop{display:flex;align-items:center;gap:10px;padding:18px;border-bottom:1px solid #e8d6bb}.dialogTop h2{margin:0 0 4px;font-size:20px;color:#5e3e24}.dialogTop small{color:#997d60}.projectMenu{overflow-y:auto;padding:10px}.projectChoice{width:100%;display:flex;align-items:center;gap:10px;padding:13px 12px;background:transparent;border:1px solid transparent;text-align:left;border-radius:10px;color:#64482e}.projectChoice:hover{background:#f4e7d2}.projectChoice.active{background:#f4e7d2;border-color:#d2b28e}.projectChoice>span:first-child{font-size:24px}.projectChoice>div{flex:1;min-width:0}.projectChoice b{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}.projectChoice small{display:block;color:#927b63;font-size:11px;margin-top:4px}.dialogFoot{border-top:1px solid #e8d6bb;padding:14px;display:flex;gap:10px}.appLoading,.fatal{padding:35px;color:#705138}.fatal{max-width:640px;margin:auto}
@media(min-width:1200px){.topbar{padding:10px 30px}.notebookPanel{width:430px}.tool{min-width:82px}.panelSection{padding:20px 24px 36px}}
@media(max-width:850px){.shell{min-height:0}.topbar{min-height:69px;padding:8px 13px;gap:8px}.brandIcon{width:30px;height:28px}.brandText strong{font-size:18px}.brandText span{font-size:12px;letter-spacing:1.4px}.projectPill{max-width:210px;min-width:0;flex:1;padding:8px 9px}.pillFolder{font-size:20px}.projectPillText b{font-size:12px}.saveStatus{display:none}.topRight{gap:5px;margin-left:2px}.languagePick{font-size:10px;padding:8px 3px}.settingsBtn{display:none}.mainLayout{flex-direction:column}.workArea{min-height:0;flex:1}.toolRow{min-height:64px;padding:4px 7px}.tool{min-width:63px;min-height:54px;padding:5px 7px}.toolIcon{font-size:21px}.tool small{font-size:10px}.notebookPanel{width:100%;min-width:0;height:37%;min-height:185px;max-height:59%;flex-shrink:0;border-left:0;border-top:1px solid #e3d1b7;box-shadow:0 -5px 17px #76502e1e;border-radius:19px 19px 0 0}.sheetHandle{display:block;width:48px;height:5px;background:#c8b29a;border-radius:12px;align-self:center;margin:7px 0 2px}.panelTabs{min-height:44px}.panelTabs .tab{font-size:12px;padding:10px 4px 8px}.panelSection{padding:12px 15px 30px}.sectionHeader{margin-bottom:13px}.sectionHeader h2{font-size:17px}.paperHint{font-size:11px;bottom:41px;padding:7px 10px}.floatControls{top:14px;right:9px;gap:6px}.floatControls button{width:40px;height:40px;font-size:21px}.northArrow{top:10px;left:11px;font-size:12px}.northArrow span{font-size:22px}.paperLegend{bottom:10px;left:12px;font-size:10px}.dialog{max-height:82vh}}
@media(max-width:440px){.brandIcon{width:26px}.brandText strong{font-size:16px}.brandText span{font-size:10px}.topbar{gap:6px;padding:6px 9px}.projectPill{padding:6px}.projectPillText small{font-size:9px}.projectPillText b{font-size:10px}.pillFolder{display:none}.languagePick{font-size:10px}.tool{min-width:62px}.paperHint{max-width:calc(100% - 105px);left:10px;transform:none;bottom:34px}.notebookPanel{height:40%}}
@media(max-height:630px) and (max-width:850px){.topbar{min-height:58px}.toolRow{min-height:53px}.tool{min-height:43px}.toolIcon{font-size:19px}.notebookPanel{height:39%;min-height:160px}.paperHint{display:none}}
.coordEntry{margin:0 0 16px;border:1px solid #e5cfaf;background:#f7ecda;border-radius:13px;overflow:hidden}.coordEntry summary{list-style:none;cursor:pointer;font-size:12px;font-weight:750;color:#6b4d2e;padding:12px 13px}.coordEntry summary::-webkit-details-marker{display:none}.coordEntry[open] summary{border-bottom:1px solid #e4cfb1}.coordEntry form{padding:12px 13px 3px}.coordEntry .btn.large{margin:2px 0 12px}.cogoSlots{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0 2px}.cogoSlots label{font-size:10px;font-weight:800;color:#85694e}.cogoSlots select{display:block;width:100%;border:1px solid #decab1;background:#fff9ed;color:#5a4330;padding:6px 5px;margin-top:4px;border-radius:7px;font-size:11px}

/* v0.2.2: compact reference-symbol palette, usable on mobile without toolbar clutter. */
.workArea{position:relative}
.elementsMenu[hidden]{display:none}
.elementsMenu{position:absolute;top:80px;right:14px;z-index:20;display:flex;flex-direction:column;gap:5px;width:200px;max-width:calc(100vw - 28px);padding:9px;border:1px solid #d9c3a4;border-radius:14px;background:#fff8eb;box-shadow:0 14px 32px #4f352647}
.elementOption{display:flex;align-items:center;gap:12px;min-height:45px;padding:9px 13px;background:transparent;color:#65452d;border:1px solid transparent;border-radius:10px;text-align:left;font-size:13px;font-weight:700}
.elementOption:hover,.elementOption:focus-visible{background:#f1e1c8}
.elementOption.chosen{background:#e7d0ae;border-color:#d7b994}
.elementIcon{display:grid;place-items:center;width:29px;height:27px;font-family:Georgia,serif;font-size:25px}
@media(max-width:850px){.elementsMenu{top:68px;right:9px;width:190px}}
@media(max-height:630px) and (max-width:850px){.elementsMenu{top:57px}}


/* v0.3: precise mobile drag loupe and north direction indicator. */
.northArrow{display:flex;align-items:center;flex-direction:column;gap:1px;line-height:1;color:#64492e}
.northArrow .northLetter{display:block;font-family:Georgia,serif;font-size:13px;font-weight:800;line-height:1;transform:none}
.northArrow svg{display:block;width:16px;height:25px;filter:drop-shadow(0 1px 0 #fff7e9)}
.dragLoupe[hidden]{display:none}
.dragLoupe{position:absolute;z-index:18;width:144px;min-height:134px;padding:6px;border:1.5px solid #b89975;border-radius:15px;background:#fff9ebf5;box-shadow:0 11px 29px #4f362e5c;pointer-events:none;user-select:none;touch-action:none;overflow:hidden;color:#674c30;will-change:left,top}
.dragLoupe.snapped{border-color:#258675;box-shadow:0 10px 26px #17695638}
.dragLoupe svg{width:100%;height:88px;display:block;border-radius:8px;border:1px solid #ddc7a8}
.loupeCaption{font-size:11px;line-height:17px;min-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:800}
.dragLoupe.snapped .loupeCaption{color:#0f7965}
.loupeCoords{font-size:9px;line-height:16px;font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
@media (max-width:850px){.northArrow{top:9px;left:13px}.northArrow .northLetter{font-size:11px}.northArrow svg{width:14px;height:22px}.dragLoupe{width:144px}}


/* v0.4 · Mobile field drafting: precise auxiliary geometry and layer selection. */
.angleDimension{font-family:Arial,sans-serif;font-size:11.5px;font-weight:700;stroke:#fff7e9;stroke-width:4px;stroke-linejoin:round;paint-order:stroke;letter-spacing:.05px}
.layerSelection{background:#f8ecd8;border:1px solid #e6d1b2;border-radius:13px;padding:12px 13px;margin:0 0 16px;display:flex;flex-direction:column;gap:9px}
.layerSelection .selectionTitle{display:flex;align-items:center;justify-content:space-between;gap:12px}
.layerSelection .selectionTitle strong{font-size:13px;color:#65482e}
.layerSelection .finePrint{font-size:11px;margin:0;color:#8c735a;line-height:1.45}
.layerSelection .field{margin:2px 0}
.layerSelection .btn.large{margin:1px 0}
.selectionTokens{display:flex;flex-wrap:wrap;gap:5px;max-height:130px;overflow-y:auto}
.objectToken{border:1px solid #d5b999;border-radius:999px;color:#584333;background:#fff7e9;padding:5px 8px;font-size:10px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.layerSelection .emptyList{padding:10px 0 3px;margin:0;font-size:11px;color:#93795f}
@media(max-width:850px){
  .layerSelection{padding:11px;margin-bottom:13px}
  .selectionTokens{max-height:100px}
  .radiusChip input{max-width:90px;font-size:13px}
}


/* v0.5 · Grouped annotation palette and lightweight map dimensions. */
.annotationMenu[hidden]{display:none}
.annotationMenu{position:absolute;top:80px;right:112px;z-index:20;display:flex;flex-direction:column;gap:5px;width:195px;max-width:calc(100vw - 28px);padding:9px;border:1px solid #d9c3a4;border-radius:14px;background:#fff8eb;box-shadow:0 14px 32px #4f352647}
.measuredDimension{font-size:11.5px;font-weight:700;stroke:#fff7e9;stroke-width:3.5px;paint-order:stroke;stroke-linejoin:round;font-variant-numeric:tabular-nums}
.areaDimension{font-size:11.5px;font-weight:700;stroke:#fff7eb;stroke-width:4px}
@media(max-width:850px){.annotationMenu{top:68px;right:9px;width:190px}.measuredDimension,.areaDimension{font-size:11.5px}}
@media(max-height:630px) and (max-width:850px){.annotationMenu{top:57px}}

/* v0.6 · clearer precision lens and visible circle radius feedback. */
.loupeRadius{font-size:11px;line-height:16px;font-variant-numeric:tabular-nums;text-align:center;font-weight:800;color:#08786d}
.pointDistanceDimension polygon{stroke:none}
.pointDistanceDimension line{stroke-linecap:round}


/* v0.7 precision: preserve full UTM integer digits and show 3/6 decimal X/Y separately. */
.rowCoords{white-space:nowrap;flex-shrink:0;font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.pointInspector input[name="x"],.pointInspector input[name="y"],.pointInspector input[name="z"],
.coordEntry input[name="x"],.coordEntry input[name="y"],.coordEntry input[name="z"]{
 font-variant-numeric:tabular-nums;font-feature-settings:"tnum";letter-spacing:0;min-width:0
}
.loupeCoords{display:flex;flex-direction:column;align-items:center;gap:0;line-height:13px;min-height:26px;white-space:nowrap;overflow:visible;text-overflow:clip;font-size:10px}
.loupeCoords span{display:block;max-width:100%;white-space:nowrap}
.precisionField select{font-variant-numeric:tabular-nums}
@media(max-width:370px){.rowCoords{font-size:11px}.pointItem{gap:6px}}


/* v0.8 · field-first, compact, offline-friendly controls. */
.selectedPointHud[hidden]{display:none!important}
.selectedPointHud{position:absolute;z-index:6;bottom:74px;left:14px;pointer-events:none;min-width:166px;max-width:min(255px,calc(100% - 28px));display:flex;flex-direction:column;gap:3px;padding:9px 12px;border:1px solid #d7c3a6;border-left:3px solid #377989;border-radius:10px;background:#fffaf0ee;backdrop-filter:blur(5px);box-shadow:0 4px 15px #5e412322;color:#463728;font-size:11px;line-height:1.35;font-variant-numeric:tabular-nums;white-space:nowrap}
.selectedPointHud strong{display:flex;align-items:baseline;gap:8px;font-size:13px;min-width:0}
.selectedPointHud small{color:#6e7069;font-size:10px;overflow:hidden;text-overflow:ellipsis}
.selectedPointHud span{display:block;font-family:ui-monospace,Consolas,monospace;letter-spacing:-.1px}
.fieldPanel{padding-bottom:20px}
.fieldSummary{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 12px;color:#6c5940;font-size:11px}
.fieldSummary span{padding:5px 7px;background:#f4e7d3;border-radius:7px}
.fieldToolPicker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0 15px}
.fieldToolButton{border:1px solid #dfccb1;border-radius:9px;padding:9px 3px;min-height:40px;background:#fffcf6;color:#6e543b;font-size:11.5px;font-weight:650;line-height:1.15;cursor:pointer}
.fieldToolButton.active{color:#fff9ee;background:#735237;border-color:#735237}
.fieldToolButton:focus-visible{outline:2px solid #277fa0;outline-offset:2px}
.fieldWorkForm{margin:0 0 8px}
.fieldWorkForm textarea{font-family:inherit;resize:vertical;min-height:75px;max-width:100%;width:100%;border:1px solid #deccb1;border-radius:8px;background:#fffdfa;padding:10px;color:#44311f;line-height:1.5}
.fieldWorkForm textarea[name="observations"]{font-family:ui-monospace,Consolas,monospace;font-size:12px;min-height:130px}
.fieldResultText{white-space:pre-line;line-height:1.6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.fieldHelp{margin-top:16px;font-size:11px;line-height:1.55;color:#77644e;border-top:1px solid #e7d6bd;padding-top:12px}
.fieldJournalItem{border:1px solid #e6d6bd;background:#fffaf1;border-radius:10px;padding:9px 11px;margin:9px 0;position:relative;overflow-wrap:anywhere}
.fieldJournalItem>div{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding-right:30px}
.fieldJournalItem small{font-size:10px;color:#887761}
.fieldJournalItem p{font-size:12px;line-height:1.5;white-space:pre-wrap;margin:5px 0}
.fieldJournalItem .miniIcon{position:absolute;right:6px;top:6px}
.lockSwitch>span:last-child{display:flex;gap:8px;align-items:center;min-height:39px}
.lockSwitch input{width:17px;height:17px;accent-color:#367b85}
@media (max-width:600px){
 .selectedPointHud{bottom:72px;left:8px;padding:7px 9px;font-size:10px;max-width:calc(100% - 16px);min-width:148px}
 .selectedPointHud strong{font-size:12px}
 .fieldToolPicker{gap:5px}
 .fieldToolButton{font-size:11px;padding:8px 2px;min-height:37px}
 .panelTabs .tab{flex:0 0 auto;min-width:64px}
}


/* v0.8.1: compact single-line point HUD, no permanent labels over drawing. */
.selectedPointHud[hidden],.toolActions[hidden]{display:none!important}
.selectedPointHud{
 position:absolute;z-index:6;bottom:11px;left:9px;display:flex;flex-direction:row;
 align-items:center;gap:9px;width:max-content;min-width:0;max-width:calc(100% - 18px);
 padding:6px 9px;border-radius:9px;border:1px solid #d7c3a6;border-left:3px solid #377989;
 background:#fffaf0ef;box-shadow:0 3px 9px #5e41231c;
 color:#463728;font-family:ui-monospace,Consolas,monospace;
 font-size:clamp(9px,2.4vw,11px);line-height:1.2;white-space:nowrap;
 overflow-x:auto;overflow-y:hidden;scrollbar-width:none;touch-action:pan-x;pointer-events:auto
}
.selectedPointHud::-webkit-scrollbar{display:none}
.selectedPointHud strong{font-size:inherit;display:inline-block;flex:none;white-space:nowrap;font-weight:750}
.selectedPointHud span{display:inline-block;flex:none;font:inherit;white-space:nowrap}
.toolActions{
 display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px;
 min-height:37px;padding:4px 10px;background:#f7e9d5;border-bottom:1px solid #e9d7ba;
 color:#74583f;font-size:12px;
}
.toolActions .hintAction{min-height:29px}
.toolActions .radiusChip{font-size:12px}
.toolActions .radiusChip input{max-width:85px}
.dimensionGrip{filter:drop-shadow(0 1px 2px #553b2930)}
@media(max-width:600px){
 .selectedPointHud{bottom:8px;left:6px;max-width:calc(100% - 12px);padding:6px 7px;gap:7px;
  font-size:clamp(9px,2.35vw,10px)}
 .selectedPointHud strong{font-size:inherit}
 .toolActions{padding:3px 8px;min-height:33px}
}

/* v0.8.2: compact touch drawer; tabs remain visible while collapsed. */
.lockSwitch .lockGlyph{display:inline-flex;align-items:center;justify-content:center;font-size:21px;min-width:25px;line-height:1}
@media(max-width:850px){
 .notebookPanel{min-height:0;max-height:78%;overflow:hidden}
 .sheetHandle{display:flex;flex:0 0 23px;width:100%;height:23px;padding:0;margin:0;align-items:center;justify-content:center;background:transparent;border:0;border-radius:19px 19px 0 0;touch-action:none;cursor:ns-resize;user-select:none}
 .sheetHandle::before{content:'';width:49px;height:5px;background:#c8b29a;border-radius:12px}
 .sheetHandle:focus-visible{outline:2px solid #367b85;outline-offset:-2px}
 .panelTabs{flex:0 0 44px;min-height:44px}
 .panelBody{min-height:0}
}

/* v0.8.10 · readable long ES/EN/PT labels on narrow phones, no hidden buttons. */
.tool small,.panelTabs .tab{line-height:1.25}
.fileActionGroup .fileAction>span:not(.fileGlyph){min-width:0;overflow-wrap:anywhere}
@media(max-width:370px){
 .fileActionGroup{gap:5px}
 .fileShare{min-width:67px;padding:5px}
 .fileAction{gap:8px;padding:10px 8px}
 .panelTabs .tab{min-width:64px;font-size:12px}
}
