:root{font:12px Arial,sans-serif;color:#354033;background:#faf6ed;--ui-dark:#26313a;--ui-accent:#63734f;--ui-tint:#faf6ed}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{display:flex;align-items:center;gap:10px;padding:4px 7px;min-height:38px;background:#f1eadb;border-bottom:1px solid #d2c5aa}header a{color:#354033;text-decoration:none}header nav{display:flex;gap:3px;flex:1}button,select,input,textarea{font:inherit}button,header a{border:1px solid #cfc1a5;border-radius:3px;background:#fffaf1;color:#354033;cursor:pointer;padding:5px 7px}button:disabled{opacity:.5;cursor:default}button:hover{background:#eee4cf}button svg{width:20px;height:20px;flex:none}button{display:inline-flex;align-items:center;justify-content:center;gap:4px}button[hidden],[hidden]{display:none!important}header nav button{border-color:transparent;background:transparent}header nav button[aria-selected=true]{border-color:#cfc1a5;background:#fffcf5}#map-tooldeck{background:#fffcf5;border-bottom:1px solid #d2c5aa;flex:none}#map-tooldeck>section:not([hidden]){display:flex;align-items:center;gap:7px;padding:5px 7px;overflow:auto;min-height:48px}#map-tooldeck label{display:flex;align-items:center;gap:4px;white-space:nowrap}select,input:not([type=checkbox]):not([type=color]),textarea{border:1px solid #cfc1a5;border-radius:3px;background:#fffdf8;color:#354033;padding:6px}#route{max-width:350px}#alignment-panel{position:relative;flex:1;min-height:0;margin:0;overflow:hidden}#alignment-map{position:relative;width:100%;height:100%;min-height:0}footer{padding:4px 8px;min-height:23px;max-height:40px;overflow:hidden;background:#f1eadb;font-size:11px}.map-credits{position:absolute;bottom:2px;right:2px;background:#fff9;color:#222;font:9px Arial;padding:2px;z-index:2}.map-compass{position:absolute;right:10px;top:10px;border-radius:50%;width:51px;height:51px;font-size:11px;z-index:4;background:#fffcf5e8;line-height:1.4}.map-compass strong{display:block;font-size:20px}#drawing-panel{position:static!important;display:flex!important;flex-direction:row!important;width:auto!important;max-width:none!important;max-height:none!important;border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;gap:7px!important}#drawing-tools,#drawing-actions{display:flex!important;flex-wrap:nowrap!important;gap:4px!important}#drawing-tools button,#drawing-actions button{flex-direction:column;min-width:46px;min-height:44px;padding:3px;font-size:10px;background:#fffaf1;color:#354033;border:1px solid #cfc1a5}#drawing-actions>button[hidden]{display:none!important}.drawing-head,.drawing-note{display:none!important}#drawing-status{position:absolute;bottom:20px;left:8px;z-index:8;max-width:calc(100% - 16px);padding:5px 8px;background:#fffcf5e8;color:#354033;font-size:11px;border-radius:3px;pointer-events:none}#kmz-panel.places-dock{position:absolute;left:8px;top:8px;bottom:45px;width:285px;max-width:calc(100% - 70px);background:#faf6ed;color:#354033;border:1px solid #cfc1a5;padding:8px;z-index:10;overflow:auto}#kmz-tree .kmz-row{display:flex;align-items:center;gap:4px;min-height:25px}#kmz-tree .kmz-name{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:0;justify-content:start}#kmz-tree details{margin-left:10px}#kmz-tree summary>.kmz-row{display:inline-flex;width:calc(100% - 15px)}.layer-more{margin-left:auto;width:25px;min-width:25px;padding:2px}#project-route-tree label{display:flex;align-items:center;gap:4px;min-height:26px}#project-route-tree label input{flex:none}#drawing-layer-list .drawing-layer-row{display:flex;align-items:center;gap:4px}#drawing-layer-list .drawing-layer-row>button:nth-child(2){flex:1;justify-content:start;background:transparent;border:0;text-align:left;overflow:hidden}#drawing-layer-list summary .layer-more{float:right}dialog{background:#fffcf5;color:#354033;border:1px solid #cfc1a5;border-radius:6px;padding:16px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}dialog::backdrop{background:#0006}dialog label{display:flex;flex-direction:column;gap:5px;margin-bottom:10px}dialog h3{margin-top:0}dialog button{min-height:30px}#drawing-properties{width:660px}#map-file-dialog{width:360px}#map-file-dialog>button{display:flex;width:100%;margin:7px 0;justify-content:start}#object-image-file{width:100%;background:#fff;padding:6px}.object-image-picker img{display:block;max-width:100%;max-height:180px;object-fit:contain}.object-image-picker span{font-size:11px}.object-buttons{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}#layer-context-portal{background:#fffcf5;color:#354033;border:1px solid #cfc1a5;min-width:190px;padding:4px;z-index:10000;box-shadow:0 4px 16px #0003}#layer-context-portal button{display:flex;width:100%;justify-content:start;background:transparent;border:0;padding:7px}#layer-context-portal button:hover{background:#eee4cf}.places-actions{padding:4px 0}.places-actions button{font-size:11px}.kmz-top{display:flex;align-items:center;justify-content:space-between}#object-rotation-handle{touch-action:none}
@media(max-width:700px){header{gap:4px}header>strong{display:none}header nav button{width:34px;padding:5px}header nav button span{display:none}#map-section-link{font-size:10px;white-space:nowrap}#map-tooldeck>section:not([hidden]){gap:5px;padding:4px}#map-route-tools label{font-size:0}#route{max-width:160px;font-size:11px}#map-tooldeck button{flex:none}#map-draw-tools{overflow:auto}.object-meta,.object-extra{grid-template-columns:1fr 1fr}.object-buttons button{font-size:11px}}

#layer-context-portal{position:fixed;top:0;left:0;width:0;height:0;overflow:visible;border:0;background:transparent;padding:0;pointer-events:none}#layer-context-anchor{position:fixed;width:0;height:0;min-height:0;padding:0;border:0;opacity:0;pointer-events:none}#layer-context-portal .dropdown-menu{display:none;pointer-events:auto;min-width:200px;background:#fffcf5;border:1px solid #cfc1a5;padding:4px;box-shadow:0 4px 16px #0003}#layer-context-portal .dropdown-menu.show{display:block}.map-compass{flex-direction:column;gap:0;padding:3px}
dialog label,dialog .drawing-fields label{color:#354033!important}dialog input:not([type=color]):not([type=checkbox]),dialog select,dialog textarea{background:#fffdf8!important;color:#354033!important;border-color:#cfc1a5!important}

#object-section{display:none!important}label:has(>#object-section){display:none!important}.map-credits a{color:#254e72}.map-credits{max-width:calc(100% - 10px);overflow-wrap:anywhere}header{background:#142c4d;color:#fff}header a,header nav button{color:#fff}header nav button[aria-selected=true]{background:#2563eb;color:#fff;border-color:#2563eb}#map-tooldeck{background:#f4f6f9}#map-section-link{cursor:pointer}

/* The inherited toolbar rule was absolute and overlaid the header. */
#map-tooldeck #drawing-panel.drawing-toolbar{position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;display:flex!important;max-height:none!important;overflow:visible!important;padding:0!important;flex:none!important}
#map-tooldeck #drawing-panel button[aria-pressed=true],#map-tooldeck #drawing-panel #drawing-measure-toggle[aria-pressed=true]{background:#2563eb!important;color:#fff!important;border-color:#1d4ed8!important}#map-tooldeck #drawing-panel button[aria-pressed=true] svg{color:#fff!important;stroke:#fff!important}#map-tooldeck #drawing-panel button:disabled{opacity:.32;cursor:default}
#map-places-toggle{position:absolute;left:9px;top:9px;z-index:9;width:34px;height:34px;background:#fffdf3;box-shadow:0 1px 5px #0003}#alignment-map .ol-zoom{top:54px}#kmz-panel.places-dock{top:50px!important}#route-navigation{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:7;display:flex;gap:4px;align-items:center;flex-wrap:wrap;justify-content:center;padding:6px;background:#fffcf5ed;border:1px solid #cfc1a5;border-radius:5px;max-width:calc(100% - 24px)}#route-navigation input{width:100px;min-width:0;padding:5px}#route-navigation select{width:70px;padding:5px}#route-navigation span{font-size:11px;white-space:nowrap}#route-navigation button{padding:5px}.map-compass.orbit-dial{width:88px;height:88px;border:5px solid #65717b;background:#26313add;touch-action:none;user-select:none;padding:0;color:#fff;display:block;cursor:grab}.orbit-dial:active{cursor:grabbing}.orbit-dial .orbit-sphere{position:absolute;left:21px;top:21px;width:36px;height:36px;border-radius:50%;border:1px solid #d9ecf8;background:#deeff9;color:#214a65;padding:4px}.orbit-sphere svg{width:25px;height:25px}.orbit-dial .direction{position:absolute;font:bold 12px Arial;color:#fff;pointer-events:none}.orbit-dial .north{top:0;left:34px}.orbit-dial .east{right:1px;top:33px}.orbit-dial .south{bottom:0;left:34px}.orbit-dial .west{left:0;top:33px}

/* Standalone drawing toolbar has no inherited absolute-position class. */
body>header{position:relative!important;z-index:40;flex:none;isolation:isolate;min-height:38px}#map-tooldeck{position:relative!important;z-index:30;flex:none;overflow:hidden}#map-tooldeck #drawing-panel.geo-drawing-tools{position:static!important;inset:auto!important;display:flex!important;max-height:none!important;width:max-content!important;max-width:none!important;overflow:visible!important;background:transparent!important;padding:0!important}#map-tooldeck #drawing-panel button{font-size:10px!important;width:auto!important;min-width:45px!important;height:44px!important;flex:none;padding:4px!important}#map-tooldeck #drawing-panel button span{display:block}#map-tooldeck>section:not([hidden]){overflow:auto!important;max-height:110px}header nav{min-width:0;overflow:auto;scrollbar-width:thin}header nav button{flex:none}#route-step{width:65px!important}#alignment-panel:has(#geo-profile-panel:not([hidden])){display:flex;flex-direction:column}#alignment-map{flex:1;min-height:100px}#geo-profile-panel{height:230px;min-height:180px;flex:none;background:#fff;border-top:1px solid #9aa9bd;position:relative}#geo-profile-chart{height:calc(100% - 50px);width:100%}.geo-profile-heading{display:flex;align-items:center;gap:5px;padding:4px 8px;font:11px Arial;overflow:auto;height:29px}.geo-profile-heading strong{white-space:nowrap}.geo-profile-heading button{font-size:11px;padding:3px}.geo-profile-heading select{padding:3px;max-width:220px}.geo-profile-heading .profile-close{margin-left:auto}#geo-profile-summary{height:20px;padding:3px 9px;font:10px Arial;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){#map-tooldeck #drawing-panel button{min-width:35px!important;font-size:0!important}#map-tooldeck #drawing-panel button span{display:none}#geo-profile-panel{height:205px}.geo-profile-heading strong{display:none}}

#geo-measure-panel{position:absolute;top:10px;right:110px;z-index:12;width:300px;max-width:calc(100% - 70px);padding:10px;background:#fffcf5;color:#253449;border:1px solid #b9c4d2;border-radius:5px;box-shadow:0 2px 10px #0002;font:12px Arial}.measure-head{display:flex;justify-content:space-between;align-items:center}.measure-head button{padding:2px 6px}#measure-modes,.measure-actions{display:flex;gap:3px;flex-wrap:wrap;margin:8px 0}#measure-modes button{font-size:10px;padding:4px}#measure-modes button[aria-pressed=true]{background:#2563eb;color:#fff}#geo-measure-panel label{display:flex;align-items:center;justify-content:space-between;margin:7px 0}#geo-measure-panel select{max-width:180px;padding:4px}#measure-result{white-space:pre-wrap;line-height:1.7;padding:7px;background:#edf3fb;border-radius:3px}.measure-actions button{font-size:10px;padding:5px}#geo-profile-summary a{color:#2760aa}.geo-profile-heading select{background:#fff;color:#24344b}.geo-profile-heading{background:#f4f6f9}
@media(max-width:700px){#geo-measure-panel{right:9px;top:105px;width:280px}#map-tabs button{width:32px!important;min-width:32px}#map-tabs{overflow:auto}}

#geo-street-dialog{width:min(1000px,calc(100vw - 30px));padding:12px}#street-photo{display:block;max-width:100%;width:100%;max-height:65dvh;object-fit:contain;background:#152130}.street-actions{display:flex;gap:8px;align-items:center;margin-top:8px}.street-actions a{margin-left:auto;color:#2563eb}#street-credit,#street-message{font-size:11px}#street-credit a{color:#2563eb}

#local-project-list{display:flex;flex-direction:column;gap:5px;max-height:55dvh;overflow:auto}#local-project-list button{justify-content:flex-start}#local-project-dialog{max-width:600px}#map-file-tools button{white-space:nowrap}

#map-draw-tools>button[aria-pressed=true]{background:#2563eb;color:#fff}#map-draw-tools>button{min-width:45px;min-height:44px;flex-direction:column;font-size:10px;white-space:nowrap}#map-draw-tools>button svg{width:23px;height:23px}

/* Independent 3D workspace: controls belong to the viewport. */
#geo-model-dialog{width:94vw;max-width:1600px;height:90vh;max-height:94vh;padding:12px;background:#fffaf0;color:#273b36}
#geo-model-dialog[open]{display:flex;flex-direction:column;gap:8px}
.geo-model-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.geo-model-actions label{display:flex;align-items:center;gap:6px}
.geo-model-canvas{flex:1;min-height:220px;overflow:hidden;background:#e7ede9;touch-action:none}
.geo-model-canvas canvas{display:block;width:100%;height:100%}
#geo-model-dialog p{font-size:12px;margin:0}
#map-tabs button[hidden]{display:none!important}

/* Kariyer Belge navy/blue, compact icons; touch targets stay usable. */
:root{--ui-dark:#142c4d;--ui-accent:#2563eb;--ui-tint:#f4f6f9;background:#f4f6f9;color:#243449}
button,select,input,textarea,dialog,footer,#map-tooldeck,#kmz-panel.places-dock,#route-navigation,#geo-measure-panel,#layer-context-portal .dropdown-menu,#geo-model-dialog{background-color:#fff!important;color:#243449!important;border-color:#c7d2e1!important}
header nav button{background:transparent!important;color:#fff!important}header nav button[aria-selected=true],button[aria-pressed=true]{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}
button:hover{background:#e9f0fb!important}button svg{width:17px!important;height:17px!important}#map-draw-tools>button svg,#drawing-panel button svg{width:19px!important;height:19px!important}
#map-tooldeck #drawing-panel button{min-width:38px!important;height:40px!important}#map-draw-tools>button{min-height:40px!important}#map-route-tools>label{display:none!important}.route-activate{border:0!important;background:transparent!important;min-width:0;overflow:hidden;text-overflow:ellipsis;justify-content:start;text-align:left}.route-error{display:block;color:#b42318;font-size:10px}.compass-ring{position:absolute;inset:0;pointer-events:none}.orbit-dial .direction{pointer-events:auto;background:transparent!important;color:white!important;border:0!important;padding:2px!important;width:22px;height:22px;min-height:0!important;line-height:1}.orbit-dial .north{left:28px;top:-3px}.orbit-dial .east{right:-3px;top:28px}.orbit-dial .south{left:28px;bottom:-3px}.orbit-dial .west{left:-3px;top:28px}.orbit-dial .orbit-sphere{background:#e1f0ff!important;color:#214a65!important}.map-compass.orbit-dial{background:#26313aee!important}
@media(max-width:700px){#map-tooldeck button svg{width:17px!important;height:17px!important}#map-tooldeck #drawing-panel button{min-width:34px!important;min-height:36px!important}#route-navigation{gap:3px;padding:4px}#route-navigation select{width:60px}}

.geo-object-actions{display:flex;gap:3px;padding:4px;background:white;border:1px solid #b9c9dd;border-radius:6px;box-shadow:0 3px 10px #0003}.geo-object-actions button{width:32px;height:32px;padding:5px}.ol-dragbox{border:1px solid #2563eb!important;background:#2563eb22!important}.ol-dragbox.crossing{border:1px dashed #169a4b!important;background:#169a4b33!important}#geo-street-lens{position:absolute;right:34px;top:107px;z-index:11;width:40px;height:48px;padding:2px;border:0!important;background:transparent!important;touch-action:none;cursor:grab}#geo-street-lens svg,.street-lens-ghost svg{width:32px!important;height:40px!important}.street-lens-ghost{pointer-events:none;filter:drop-shadow(0 2px 3px #0006)}#route-navigation select{font-size:10px}header>strong{white-space:nowrap}#project-route-tree label{flex-wrap:wrap}.route-error{flex-basis:100%}

.layer-name-input{width:100%;min-width:70px;max-width:100%;padding:3px!important;font:inherit;user-select:text}.kmz-row:has(.layer-name-input){min-height:32px}

#street-walk{display:inline-flex;padding:7px 10px;background:#2563eb;color:#fff;border-radius:4px;text-decoration:none}.map-advanced-tools{padding:5px}.map-advanced-tools summary{cursor:pointer;color:#49617c}.map-advanced-tools[open]{display:flex;gap:5px}

/* Files: small glyphs and no long captions, including on phones. */
#map-file-tools:not([hidden]){gap:5px!important;min-height:44px!important;max-height:none!important;flex-wrap:wrap;overflow:visible!important;padding:5px 7px!important}
#map-file-tools>.file-icon-button{position:relative;flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:36px!important;min-height:36px!important;padding:4px!important;gap:0!important;overflow:hidden;flex-direction:column;font-size:0!important;background:#fff!important;border-color:#c7d2e1!important}
#map-file-tools>.file-icon-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#map-file-tools>.file-icon-button>svg{width:16px!important;height:16px!important;flex:none;margin:0}
#map-file-tools .file-format{font:600 8px/10px Arial,sans-serif;color:#49617c;letter-spacing:.15px;margin-top:1px}
#map-file-tools .file-direction{position:absolute;right:2px;top:0;font:700 12px/14px Arial,sans-serif;font-style:normal;color:#2563eb}
#map-file-tools>.file-icon-button:hover,#map-file-tools>.file-icon-button:focus-visible{background:#e9f0fb!important;border-color:#2563eb!important;outline-offset:2px}
@media(max-width:700px){#map-file-tools:not([hidden]){gap:4px!important;padding:4px!important}#map-file-tools>.file-icon-button{flex-basis:36px!important;width:36px!important;min-width:36px!important;height:38px!important;min-height:38px!important}#map-file-tools>.file-icon-button>svg{width:15px!important;height:15px!important}}

/* Kariyer Belge live-site brand correction: red / white / charcoal. */
:root{--brand-red:#d32f2f;--brand-red-dark:#b52b2b;--brand-soft:#fff1f1;--ui-dark:#292929;--ui-accent:#d32f2f;--ui-tint:#f5f5f5;color:#292929;background:#f5f5f5}
body>header{background:#fff!important;color:#292929!important;border-bottom:2px solid #d32f2f!important}header a,header nav button{color:#343434!important}header nav button{background:transparent!important}header nav button[aria-selected=true]{background:#d32f2f!important;color:white!important;border-color:#d32f2f!important}
#map-tooldeck{background:#f7f7f7!important;border-bottom:1px solid #ddd!important}button,select,input,textarea,dialog,footer,#kmz-panel.places-dock,#route-navigation,#geo-measure-panel,#layer-context-portal .dropdown-menu,#geo-model-dialog{color:#303030!important;border-color:#d7d7d7!important;background-color:#fff!important}
#map-tooldeck #drawing-panel button[aria-pressed=true],#map-tooldeck #drawing-panel #drawing-measure-toggle[aria-pressed=true],#map-draw-tools>button[aria-pressed=true],#measure-modes button[aria-pressed=true],button[aria-pressed=true]{background:#d32f2f!important;border-color:#b52b2b!important;color:#fff!important}
button:hover,#map-file-tools>.file-icon-button:hover,#map-file-tools>.file-icon-button:focus-visible{background:#fff1f1!important;border-color:#d32f2f!important}header nav button[aria-selected=true]:hover{background:#b52b2b!important}
#drawing-status{background:#fffffff2!important;color:#343434!important;border-left:3px solid #d32f2f}#measure-result{background:#f7f7f7!important}.geo-profile-heading{background:#f6f6f6!important}#map-file-tools>.file-icon-button{background:#fff!important;border-color:#ddd!important}#map-file-tools .file-format{color:#555!important}#map-file-tools .file-direction{color:#d32f2f!important}
#geo-profile-summary a,#street-credit a,.street-actions a,.map-credits a{color:#b52b2b!important}#street-walk{background:#d32f2f!important;color:#fff!important}.map-advanced-tools summary{color:#555!important}.kmz-top,.drawing-head{color:#333!important}#project-route-tree h4,#kmz-panel h4{background:#f3f3f3!important;color:#333!important;border-left:3px solid #d32f2f;padding-left:6px}
/* Geographic signals retain their meaning: location blue, CAD crossing green. */

.orbit-dial .direction:focus-visible{outline:2px solid #fff!important;outline-offset:0}.geo-object-actions button:focus-visible{outline:2px solid #d32f2f;outline-offset:1px}#map-measure-tools [aria-pressed=true]{background:#d32f2f!important;border-color:#b52b2b!important;color:#fff!important}

/* Compact CAD command line below the map, not over the drawing. */
#cad-command-panel{flex:none;background:#fff;border-top:2px solid #d32f2f;color:#303030;padding:5px 8px;font:11px Arial;z-index:20}
.cad-command-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cad-command-row strong{min-width:50px;color:#b52b2b}.cad-command-row>span{flex:1;min-width:180px;overflow-wrap:anywhere}.cad-command-row label{display:flex;align-items:center;gap:4px}.cad-command-row input{width:95px;padding:5px}.cad-command-row button{min-height:30px;padding:5px 8px}.cad-coordinate-row{display:flex;justify-content:space-between;gap:10px;margin-top:4px;color:#606060;font-size:10px;flex-wrap:wrap}.cad-crosshair{position:absolute;width:0;height:0;pointer-events:none;z-index:220}.cad-crosshair i,.cad-crosshair b{position:absolute;display:block;background:#fff;box-shadow:0 0 0 1px #2228}.cad-crosshair i{width:29px;height:1px;left:-14px;top:0}.cad-crosshair b{width:1px;height:29px;top:-14px;left:0}.cad-crosshair span{position:absolute;width:7px;height:7px;border:1px solid #fff;box-shadow:0 0 0 1px #222;left:-3px;top:-3px}.cad-drawing-cursor canvas{cursor:none!important}.cad-middle-pan canvas{cursor:grabbing!important}
@media(max-width:700px){#cad-command-panel{padding:4px;font-size:10px}.cad-command-row{gap:4px}.cad-command-row>span{min-width:150px}.cad-command-row input{width:70px}.cad-command-row button{min-height:34px}.cad-coordinate-row>span:last-child{display:none}.cad-crosshair i{width:23px;left:-11px}.cad-crosshair b{height:23px;top:-11px}}

/* Own drafting status icons, compact glyphs with comfortable touch targets. */
#cad-command-panel .cad-status-icon{position:relative;width:34px;min-width:34px;height:32px;min-height:32px;padding:6px;flex:none}
#cad-command-panel .cad-status-icon>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#cad-command-panel .cad-status-icon>svg{width:18px!important;height:18px!important;stroke:currentColor}
#cad-command-panel .cad-status-icon[aria-pressed=true]{background:#d32f2f!important;color:#fff!important;border-color:#b52b2b!important}
#cad-command-panel .cad-status-icon[aria-pressed=false]{background:#fff!important;color:#4b4b4b!important;border-color:#ccc!important}
#cad-command-panel .cad-snap-options{width:22px;min-width:22px;height:32px;min-height:32px;padding:2px;font-size:15px;margin-left:-5px}
@media(max-width:700px){#cad-command-panel .cad-status-icon{width:36px;min-width:36px;height:36px;min-height:36px}#cad-command-panel .cad-snap-options{min-height:36px;height:36px}}

/* geo19 CAD interaction surfaces, original symbols and compact command input. */
#alignment-map{background:#000}
.geo-object-actions{display:none!important}
.cad-selection-window{position:absolute;z-index:1500;pointer-events:none;border:1px solid #29b6ff;background:#29b6ff22}
.cad-selection-window.crossing{border:1px dashed #2ee879;background:#2ee87922}
.cad-selection-window[hidden],.cad-live-input[hidden]{display:none!important}
.cad-live-input{display:flex;gap:6px;align-items:center;padding:5px 0;border-bottom:1px solid #ddd}
.cad-live-input label{display:flex;flex:1}.cad-live-input input{width:100%;max-width:680px;min-width:100px;padding:5px;border:1px solid #999;border-radius:3px;background:#fff;color:#222}
.cad-live-input button{padding:5px 9px}
.cad-crosshair i,.cad-crosshair b{background:var(--cad-crosshair-color,#fff)!important}
.cad-erase-mode,.cad-erase-mode .ol-viewport{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='m5 5 14 14M5 19 19 5' stroke='%23ff3344' stroke-width='3'/%3E%3C/svg%3E") 12 12,crosshair!important}
.cad-erase-mode .cad-crosshair{display:none}
#cad-command-panel button[aria-pressed=true]{background:#d32f2f!important;color:#fff!important}
@media(max-width:700px){.cad-live-input{gap:4px}.cad-live-input button{font-size:11px;padding:4px}#cad-command-panel{font-size:11px}.cad-coordinate-row{gap:3px}}

/* geo20: hidden controls must stay hidden despite flex display rules. */
#cad-command-panel [hidden]{display:none!important}
#cad-command-panel[data-cad-load-error=true]{border-top:3px solid #d32f2f}
#cad-command-panel .cad-live-input input{max-width:none}

/* geo21 public launch: brand only, private administrative tools and feedback dialogs. */
.geo-brand{display:flex;align-items:center;flex:none;background:transparent!important;border:0!important;padding:0!important}
.geo-brand img{height:33px;max-width:110px;width:auto;object-fit:contain}
html[data-role=public] #map-tabs [data-tab=analysis],html[data-role=public] #map-tabs [data-tab=tourism],html[data-role=public] #map-tabs [data-tab=property],html[data-role=public] #map-analysis-tools,html[data-role=public] #map-tourism-tools,html[data-role=public] #map-property-tools,html[data-role=public] [data-admin-only]{display:none!important}
#drawing-status[hidden]{display:none!important}
#geo-feedback{white-space:nowrap;flex:none;font-size:11px}
#feedback-dialog{width:490px}#feedback-dialog textarea{width:100%;resize:vertical;min-height:100px}
#feedback-dialog form>div{display:flex;gap:6px}
#feedback-inbox{width:760px}#feedback-inbox article{padding:12px 0;border-bottom:1px solid #ddd;overflow-wrap:anywhere}#feedback-inbox small{display:block;color:#666}#feedback-inbox article p{margin:7px 0}#feedback-inbox>div:last-child{display:flex;gap:6px;margin-top:12px}
.password-visibility{font-size:11px;min-height:24px;align-self:flex-start;padding:3px 7px}
@media(max-width:700px){.geo-brand img{height:28px;max-width:65px}#geo-feedback span{display:none}#geo-feedback{width:30px;padding:4px}#map-section-link{font-size:9px;padding:4px}body>header{gap:4px}}

/* geo24 K-CAD: desktop stays fluid; mobile pins large touch controls above/below the map. */
#k-cad-home{font-weight:800;font-size:16px;letter-spacing:.5px;white-space:nowrap;border:0!important;background:transparent!important;color:#d32f2f!important;padding:4px!important}
#mobile-dock{display:none}
@media(max-width:760px){
 body{--mobile-header-height:98px;--mobile-dock-height:70px;--mobile-map-top:150px;--mobile-map-bottom:70px;overflow:hidden}
 body>header{position:fixed!important;top:0;left:0;right:0;z-index:80!important;display:flex;flex-wrap:wrap;gap:5px;padding:6px 8px;padding-top:max(6px,env(safe-area-inset-top));min-height:48px;background:#fff!important}
 .geo-brand img{height:34px;max-width:76px}#k-cad-home{font-size:18px!important;min-height:40px;display:flex;align-items:center}
 #map-tabs{order:5;flex:0 0 100%;display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;padding:3px 0}
 #map-tabs button{width:auto!important;min-width:68px!important;min-height:44px!important;flex-direction:column;padding:5px 8px!important;font-size:11px!important;gap:3px}
 #map-tabs button span{display:block!important}#map-tabs button svg{width:21px!important;height:21px!important}
 #geo-feedback{margin-left:auto;min-width:44px!important;min-height:44px!important;padding:9px!important}#geo-feedback>span{display:none}
 #map-section-link{font-size:11px!important;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #map-tooldeck{position:fixed!important;top:var(--mobile-header-height);left:0;right:0;z-index:70!important;background:#fff!important}
 #map-tooldeck>section:not([hidden]){min-height:52px;max-height:106px!important;gap:6px!important;padding:5px 7px!important;overflow:auto!important}
 #map-tooldeck button,#map-tooldeck #drawing-panel button,#map-draw-tools>button{min-width:46px!important;min-height:46px!important;height:auto!important;padding:7px!important;font-size:11px!important;flex:none}
 #map-tooldeck button svg,#map-tooldeck #drawing-panel button svg{width:23px!important;height:23px!important}
 #map-tooldeck #drawing-panel button span{display:block!important}#map-tooldeck input,#map-tooldeck select{min-height:42px;font-size:14px}
 #alignment-panel{position:fixed!important;top:var(--mobile-map-top);left:0;right:0;bottom:var(--mobile-map-bottom);height:auto!important;min-height:70px;margin:0}
 #alignment-map{height:100%!important;min-height:50px}
 #mobile-dock:not([hidden]){display:flex;position:fixed;left:0;right:0;bottom:0;z-index:85;min-height:66px;padding:5px 4px;padding-bottom:max(6px,env(safe-area-inset-bottom));gap:3px;background:#fff;border-top:1px solid #ddd;box-shadow:0 -3px 12px #0001}
 #mobile-dock button{flex:1;min-width:0;min-height:54px;display:flex;flex-direction:column;gap:5px;padding:6px 2px;font-size:11px;background:#fff;color:#333;border:0;border-radius:6px}
 #mobile-dock button svg{width:24px!important;height:24px!important}#mobile-dock button[aria-selected=true]{background:#d32f2f!important;color:#fff!important}
 #cad-command-panel{position:fixed!important;bottom:var(--mobile-dock-height);left:0;right:0;z-index:78;background:#fff;max-height:30dvh;overflow:auto;padding:5px 7px!important}
 #cad-command-panel .cad-command-row{gap:5px}#cad-command-panel .cad-command-row>span{min-width:125px;font-size:12px}
 #cad-command-panel button{min-height:42px;min-width:42px;padding:7px;font-size:12px}#cad-command-panel input{min-height:42px;font-size:16px!important}
 #cad-command-panel .cad-coordinate-row>span:last-child{display:none}#cad-command-panel .cad-coordinate-row{font-size:10px}
 body>footer{display:none!important}
 #map-locate{position:absolute;right:12px;bottom:14px;z-index:38;width:52px;height:52px;border-radius:50%;background:#fff!important;color:#d32f2f!important;border:1px solid #ddd;box-shadow:0 3px 12px #0004;padding:11px}
 #map-locate svg{width:27px!important;height:27px!important}#map-locate span{display:none}
 #map-places-toggle{width:46px;height:46px;top:10px;left:10px}.orbit-dial{transform:scale(.88);transform-origin:top right}
 #kmz-panel.places-dock{max-width:calc(100vw - 20px);max-height:calc(100% - 65px)}
 #route-navigation{bottom:12px;left:10px;right:76px;max-width:calc(100% - 86px);transform:none;flex-wrap:wrap;gap:3px}
 #route-navigation button{min-width:35px;min-height:38px}#route-navigation input{font-size:14px;min-height:36px}
 dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);font-size:14px;padding:14px}
 dialog input:not([type=checkbox]):not([type=color]),dialog select,dialog textarea{font-size:16px!important;min-height:44px}dialog button{min-height:44px;padding:8px 12px;font-size:14px}
}

/* Kariyer Belge emblem: crop only the existing image viewport; source asset stays intact. */
.geo-brand{position:relative!important;width:44px!important;height:44px!important;overflow:hidden!important;flex:none!important}
.geo-brand img{position:absolute!important;top:0!important;left:50%!important;transform:translateX(-50%)!important;width:55px!important;height:55px!important;max-width:none!important;object-fit:contain!important}

/* geo25: restore contextual object actions. */
.geo-object-actions{display:flex!important;gap:4px}
.geo-object-actions button{width:38px;height:38px}
@media(max-width:760px){.geo-object-actions button{width:46px;height:46px}}

.cad-command-history{flex:0 0 100%;height:48px;overflow:auto;background:#e1e1e1;color:#161616;font:12px/1.5 Consolas,monospace;padding:3px 8px}.cad-live-input label{position:relative}.cad-command-suggestions{position:absolute;bottom:100%;left:0;z-index:1600;min-width:310px;max-width:85vw;background:#fff;border:1px solid #888;box-shadow:0 2px 8px #0004}.cad-command-suggestions button{display:block;width:100%;text-align:left;white-space:normal;color:#111;background:#fff;padding:6px 9px;border:0}.cad-command-suggestions button[aria-selected=true]{background:#dceafa}.cad-command-suggestions[hidden]{display:none}

/* geo28: persistent compact command line, independent of the selected tool tab. */
body>footer,#drawing-status{display:none!important}
#cad-command-panel{display:flex!important;flex-direction:column;position:relative;flex:none;padding:0!important;border-top:1px solid #8e949c;background:#e0e0e0;overflow:visible;font:12px/15px Consolas,"Courier New",monospace}
#cad-command-panel .cad-command-history{order:0;flex:none;height:30px;min-height:30px;max-height:30px;overflow-y:auto;padding:0 6px;background:#d4d4d4;color:#171717;font:12px/15px Consolas,"Courier New",monospace;scrollbar-width:thin}
#cad-command-panel .cad-live-input{order:1;flex:none;min-height:23px;gap:0;padding:0;border:0;border-top:1px solid #aaa;background:#fff}
#cad-command-panel .cad-live-input::before{content:'›';flex:none;padding:0 6px;color:#657285;font-size:16px}
#cad-command-panel .cad-live-input label{margin:0;min-width:0}
#cad-command-panel .cad-live-input input{height:22px;min-height:22px;min-width:0;padding:1px 3px!important;border:0!important;border-radius:0;background:#fff!important;color:#161616!important;font:12px/19px Consolas,"Courier New",monospace}
#cad-command-panel .cad-live-input>button{width:26px;min-width:26px;height:22px;min-height:22px;padding:0;border:0;border-left:1px solid #ddd;border-radius:0;font:14px Consolas,monospace}
#cad-command-panel .cad-command-row{order:2;flex:none;flex-wrap:nowrap;gap:2px;height:24px;min-height:24px;padding:1px 4px;background:#29313c;color:#d4d9df;overflow-x:auto;scrollbar-width:thin}
#cad-command-name,#cad-command-message{display:none!important}
#cad-command-panel #cad-coordinate{flex:1;min-width:0;margin-right:auto;white-space:nowrap;font:10px/20px Consolas,monospace;color:#c8ced6}
#cad-command-panel .cad-command-row button,#cad-command-panel .cad-status-icon,#cad-command-panel .cad-snap-options{flex:none;width:23px;min-width:23px;height:22px;min-height:22px;margin:0;padding:2px!important;border:1px solid #526071!important;border-radius:1px;background:#354151!important;color:#dce2e8!important;font:10px/16px Arial}
#cad-command-panel .cad-snap-options{width:14px;min-width:14px}
#cad-command-panel .cad-status-icon>svg{width:16px!important;height:16px!important}
#cad-command-panel .cad-status-icon[aria-pressed=false]{background:#354151!important;color:#bdc5d0!important;border-color:#526071!important}
#cad-command-panel .cad-command-row button[aria-pressed=true]{background:#d32f2f!important;color:#fff!important}
#cad-command-panel .cad-command-suggestions{bottom:calc(100% + 1px);max-height:220px;overflow-y:auto;font:12px/17px Arial}
#cad-command-panel .cad-command-suggestions button{height:auto;min-height:25px;padding:4px 8px!important}
@media(max-width:760px){
 #cad-command-panel{position:fixed!important;bottom:var(--mobile-dock-height);left:0;right:0;z-index:78;max-height:none;overflow:visible;padding:0!important}
 #cad-command-panel .cad-command-history{height:28px;min-height:28px;max-height:28px;font-size:11px;line-height:14px}
 #cad-command-panel .cad-live-input input{height:28px;min-height:28px;font-size:16px!important;line-height:24px}
 #cad-command-panel .cad-live-input>button{height:28px;min-height:28px;width:30px;min-width:30px}
 #cad-command-panel .cad-command-row{height:30px;min-height:30px}
 #cad-command-panel .cad-command-row button,#cad-command-panel .cad-status-icon,#cad-command-panel .cad-snap-options{height:28px;min-height:28px;width:28px;min-width:28px}
 #cad-command-panel #cad-coordinate{font-size:9px;min-width:100px}
}

/* geo29: drawing toolbar uses short labels with full tooltip names. */
#map-draw-tools button.drawing-short-label{flex:none;min-width:38px!important;max-width:46px;gap:2px;padding:3px 5px!important;flex-direction:column;font-size:10px!important}
#map-draw-tools button.drawing-short-label>span{white-space:nowrap;font-size:10px;line-height:12px}
#map-draw-tools button.drawing-short-label>svg{width:18px!important;height:18px!important}

/* geo30: K-CAD modeless Properties palette. */
#alignment-panel.cad-properties-open{display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
#alignment-panel.cad-properties-open>#alignment-map{grid-column:2;grid-row:1;min-width:0}
#cad-properties{grid-column:1;grid-row:1;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:#f1f2f4;border-right:1px solid #c8cdd3;color:#27303b;font:11px/1.4 Arial,sans-serif;z-index:15}
#cad-properties[hidden]{display:none!important}
.cad-properties-head{display:flex;align-items:center;justify-content:space-between;min-height:30px;padding:3px 7px;background:#303944;color:#fff;border-top:2px solid #d32f2f}
#cad-properties .cad-properties-head button{height:22px;min-height:22px;width:22px;padding:0;border:0;background:transparent!important;color:#fff!important;font-size:20px}
.cad-properties-toolbar{display:flex;gap:4px;align-items:center;padding:5px;border-bottom:1px solid #d0d5da}
#cad-properties .cad-properties-toolbar select{flex:1;min-width:0;padding:3px;font-size:11px;height:26px}
#cad-properties .cad-properties-toolbar button{flex:none;width:26px;height:26px;min-height:26px;padding:3px}
#cad-properties button svg{width:17px;height:17px}
.cad-properties-body{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
.cad-properties-body details{margin:0}
.cad-properties-body summary{cursor:pointer;list-style-position:inside;padding:4px 7px;background:#dde1e6;color:#27303b;border-top:1px solid #c8cdd3;border-bottom:1px solid #c8cdd3;font-weight:bold;user-select:none}
.cad-properties-body .cad-property-row{display:grid;grid-template-columns:minmax(0,48%) minmax(0,52%);align-items:center;gap:0;margin:0;min-height:25px;border-bottom:1px solid #d9dde2}
.cad-property-row>span:first-child{padding:3px 6px;overflow-wrap:anywhere;color:#4b5560}
.cad-property-value{display:flex;min-width:0;align-items:center;height:100%;border-left:1px solid #d0d5da;background:#fff}
#cad-properties .cad-property-value input,#cad-properties .cad-property-value select{width:100%;min-width:0;height:24px;min-height:24px;padding:2px 4px;border:0!important;border-radius:0;background:#fff!important;color:#26313a!important;font-size:11px;outline-offset:-2px}
#cad-properties .cad-property-value input[type=color]{width:24px;min-width:24px;padding:3px;cursor:pointer}
#cad-properties .cad-property-value input[readonly]{background:#eff1f3!important;color:#707984!important;cursor:default}
#cad-properties .cad-property-value .is-mixed{color:#717986!important;font-style:italic}
#cad-properties .cad-property-value input[aria-invalid=true]{outline:1px solid #d32f2f}
.cad-properties-message{font-size:11px;color:#b52525;padding:4px 6px;white-space:normal}
.cad-properties-message:empty{display:none}
.cad-properties-actions{padding:5px 6px;display:flex;gap:4px}
#cad-properties .cad-properties-actions button{min-height:24px;padding:3px 6px;font-size:11px}
@media(max-width:760px){
 #alignment-panel.cad-properties-open{display:block}
 #cad-properties{position:absolute;top:0;bottom:0;left:0;width:min(280px,82vw);box-shadow:3px 0 10px #0003}
 #cad-properties .cad-property-value input,#cad-properties .cad-property-value select{height:30px;min-height:30px;font-size:16px}
 .cad-properties-body .cad-property-row{min-height:30px}
}

/* geo31 CAD layer controls. */
#cad-current-layer{width:150px;min-width:110px;max-width:180px;height:30px;padding:3px!important;font-size:11px}
#cad-layer-manager{flex:none;min-width:38px!important;max-width:46px;flex-direction:column;padding:3px 5px!important;font-size:10px}
#cad-layer-panel{position:absolute;top:8px;right:8px;z-index:1300;width:min(940px,calc(100% - 16px));max-height:70%;display:flex;flex-direction:column;overflow:hidden;border:1px solid #89929e;background:#f6f7f8;box-shadow:0 4px 18px #0004;color:#26313a;font-size:11px}
#cad-layer-panel[hidden]{display:none!important}
#cad-layer-panel .cad-properties-head button{width:24px;padding:0;background:transparent!important;color:#fff!important;border:0;font-size:19px}
.cad-layer-actions{display:flex;align-items:center;gap:8px;padding:5px}.cad-layer-actions span{color:#b52222}
.cad-layer-scroll{overflow:auto;min-height:0}.cad-layer-scroll table{border-collapse:collapse;width:100%;white-space:nowrap;background:#fff}.cad-layer-scroll th{background:#e1e5ea;position:sticky;top:0;padding:5px}.cad-layer-scroll td{border:1px solid #ddd;padding:3px}.cad-layer-scroll input[type=number]{width:65px;padding:3px!important}.cad-layer-scroll input[type=color]{width:32px;height:24px;padding:2px}.cad-layer-scroll select{max-width:120px;padding:3px!important}.cad-layer-scroll button{padding:3px 5px;min-height:24px;font-size:11px}

/* geo32: prompt and response share a single drafting command line. */
#cad-command-panel .cad-live-input::before{display:none}
#cad-command-panel .cad-input-prompt{flex:none;max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 5px;color:#111;background:#fff;font:12px/19px Consolas,"Courier New",monospace}
#cad-command-panel.cad-history-expanded .cad-command-history{height:150px;max-height:30dvh}
@media(max-width:760px){#cad-command-panel .cad-input-prompt{max-width:50%;line-height:25px;font-size:11px}#cad-command-panel.cad-history-expanded .cad-command-history{height:110px;max-height:25dvh}}

/* geo39: one compact size for icon tools; labels never determine button width. */
#map-tooldeck button.cad-tool-button,
#map-tooldeck #drawing-panel button.cad-tool-button,
#map-tooldeck #map-file-tools button.cad-tool-button{
 box-sizing:border-box;flex:0 0 46px!important;width:46px!important;min-width:46px!important;max-width:46px!important;
 height:44px!important;min-height:44px!important;max-height:44px!important;padding:4px 3px!important;
 display:inline-flex!important;flex-direction:column!important;align-items:center;justify-content:center;gap:3px!important;overflow:hidden;
}
#map-tooldeck button.cad-tool-button>svg,
#map-tooldeck #drawing-panel button.cad-tool-button>svg,
#map-tooldeck #map-file-tools button.cad-tool-button>svg{display:block;width:18px!important;height:18px!important;min-height:18px;flex:none;margin:0!important}
#map-tooldeck button.cad-tool-button>.cad-tool-label,
#map-tooldeck #drawing-panel button.cad-tool-button>.cad-tool-label,
#map-tooldeck #map-file-tools button.cad-tool-button>.cad-tool-label{
 display:block!important;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 font:10px/12px Arial,sans-serif!important;font-weight:400!important;letter-spacing:0;text-align:center;
}
#map-file-tools button.cad-tool-button>.file-format{display:none}
#map-tabs button.cad-tab-button{box-sizing:border-box;flex:0 0 64px!important;width:64px!important;min-width:64px!important;max-width:64px!important;padding:4px!important;gap:3px!important}
#map-tabs button.cad-tab-button>.cad-tool-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px!important;line-height:14px}
#map-tabs button.cad-tab-button>svg{flex:none;width:16px!important;height:16px!important}
.tooltip.cad-tool-help{position:absolute;z-index:10800;display:block;margin:0;opacity:0;pointer-events:none;font:12px/1.5 Arial,sans-serif}
.tooltip.cad-tool-help.show{opacity:1}
.cad-tool-help .tooltip-inner{max-width:300px;padding:9px 11px;color:#fff;background:#263544;border:1px solid #597086;border-radius:4px;box-shadow:0 3px 10px #0004;text-align:left;white-space:pre-line}
.cad-tool-help .tooltip-arrow{display:none}
@media(max-width:760px){
 #map-tabs button.cad-tab-button{height:48px!important;min-height:48px!important;flex-direction:column!important}
 #map-tabs button.cad-tab-button>svg{width:18px!important;height:18px!important}
}
#map-tooldeck button.cad-tool-button[hidden],
#map-tooldeck #drawing-panel button.cad-tool-button[hidden],
#map-tooldeck #map-file-tools button.cad-tool-button[hidden],
#map-tabs button.cad-tab-button[hidden]{display:none!important}
/* geo43: in-place multiline text editor. Saved text uses project model units by default. */
.cad-text-editor{box-sizing:border-box;z-index:2000;min-width:200px;border:1px solid #8b9caa;background:#222b35;color:#fff;box-shadow:0 4px 16px #0006;font:12px Arial,sans-serif}
.cad-text-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:3px;padding:4px;background:#354251;border-bottom:1px solid #8091a0}
.cad-text-toolbar input,.cad-text-toolbar select{box-sizing:border-box;min-height:25px;height:25px;padding:2px 4px!important;font-size:11px!important;border-radius:2px;max-width:110px}
.cad-text-toolbar input{width:65px}.cad-text-toolbar select{width:88px}
.cad-text-toolbar button{min-width:27px;min-height:25px;height:25px;padding:2px 5px;font-size:11px}
.cad-text-toolbar button[aria-pressed=true]{background:#d32f2f!important;color:#fff!important}
.cad-text-ruler{height:19px;box-sizing:border-box;padding:1px 5px;border-bottom:1px solid #7c8d9b;overflow:hidden;white-space:pre;color:#d1dce5;background:#303c49 repeating-linear-gradient(90deg,transparent,transparent 9px,#8596a2 9px,#8596a2 10px);font:9px/16px Arial,sans-serif}
.cad-text-editor textarea.cad-text-content{display:block;box-sizing:border-box;width:100%;min-height:110px;max-height:45vh;margin:0;padding:6px;border:0!important;border-radius:0;outline:none;resize:vertical;background:#222b35!important;color:#fff!important;line-height:1.2;white-space:pre-wrap;overflow-wrap:break-word;caret-color:#fff}
#cad-properties .cad-property-value textarea{box-sizing:border-box;width:100%;min-height:60px;padding:4px;border:0;resize:vertical;background:#fff!important;color:#26313a!important;font:11px/1.3 Arial,sans-serif}
@media(max-width:760px){.cad-text-toolbar input,.cad-text-toolbar select{height:30px;min-height:30px;font-size:13px!important}.cad-text-editor textarea.cad-text-content{font-size:16px}.cad-text-toolbar button{height:30px;min-height:30px}}
/* Document tabs remain outside the map so drawings never cover file controls. */
#cad-document-bar{position:relative;display:flex;flex:0 0 auto;align-items:stretch;gap:3px;min-height:30px;max-width:100%;padding:2px 5px;background:#29323d;color:#eef2f7;border-bottom:1px solid #5a6676;z-index:1205;font:12px Arial,sans-serif}
#cad-document-bar button{font:inherit;color:inherit;background:transparent;border:0;border-radius:3px;padding:5px 9px;cursor:pointer;white-space:nowrap}
#cad-document-bar button:hover{background:#465364}#cad-document-bar button:disabled{opacity:.5;cursor:wait}
.cad-document-tabs{display:flex;min-width:0;overflow:auto;gap:3px;flex:0 1 auto}.cad-document-tab{display:flex;align-items:stretch;background:#35404e;border-radius:3px 3px 0 0;flex:0 0 auto}
.cad-document-tab [role=tab]{max-width:210px;overflow:hidden;text-overflow:ellipsis}.cad-document-tab:has([aria-selected=true]){background:#53637a;box-shadow:inset 0 -2px #ee3838}
#cad-document-bar .cad-file-menu{position:absolute;left:4px;top:100%;display:grid;min-width:190px;padding:5px;background:#fff;color:#26313e;border:1px solid #bbc3cd;box-shadow:0 8px 24px #0004}.cad-file-menu[hidden]{display:none!important}
#cad-document-bar .cad-file-menu button{text-align:left;padding:9px 12px}#cad-document-bar .cad-file-menu button:hover{background:#e3ebf6}
.cad-recent-projects{max-width:min(650px,95vw)}.cad-recent-projects>button{display:block;width:100%;padding:10px;text-align:left;margin:4px 0}
@media(max-width:760px){#cad-document-bar{min-height:38px}.cad-document-tab [role=tab]{max-width:135px}#cad-document-bar button{padding:9px}.cad-document-tabs{flex:1}}

@media(max-width:760px){#cad-document-bar{position:fixed;left:0;right:0;top:calc(var(--mobile-map-top) - var(--mobile-document-height,38px));z-index:41}}

/* Unified file dialogs and paper preview. */
.cad-file-dialog{width:540px}.cad-file-dialog>label{display:flex;flex-direction:column;gap:5px;margin:14px 0}.cad-file-dialog input,.cad-file-dialog select{width:100%;min-height:40px}.cad-file-summary{padding:18px;background:#f0f3f7!important;border:1px solid #d5dce5}.cad-file-actions,.plot-actions{display:flex;gap:8px;justify-content:flex-end}.cad-file-actions button,.plot-actions button{min-height:40px;min-width:85px}
#cad-plot-dialog{width:1100px;max-width:96vw;padding:0;background:#f5f6f8!important}.plot-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#29323d!important;color:#fff!important}.plot-heading button{color:#fff!important;background:transparent!important;border:0}.plot-body{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;padding:16px}.plot-settings{min-width:0}.plot-settings fieldset{border:1px solid #d1d8e1;margin-bottom:12px;padding:12px}.plot-settings legend{font-weight:bold}.plot-settings input,.plot-settings select{width:100%;min-height:34px}.plot-preview{min-height:380px;max-height:65dvh;background:#d7dde5!important;padding:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.plot-preview canvas{display:block;max-width:100%;max-height:55dvh;object-fit:contain;background:#fff;box-shadow:0 3px 14px #0004}.plot-browser-note{font-size:11px;color:#526174}.plot-actions{padding:12px 16px;border-top:1px solid #d0d7e0}#cad-plot-dialog>[data-message]{padding:0 16px;color:#b42318!important}
.plot-window-picker{position:absolute;inset:0;z-index:5000;touch-action:none;cursor:crosshair;overflow:hidden}.plot-window-picker>canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.plot-window-box{position:absolute;border:2px dashed #ee3333;background:#ffffff22;pointer-events:none}.plot-window-hint{position:absolute;left:8px;top:8px;padding:8px;background:#fff!important;color:#182433!important;box-shadow:0 2px 10px #0004}.plot-window-hint button{margin-left:12px}
#kcad-print-page{display:none}#mobile-field-menu{display:none}#mobile-field-actions{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:1200;display:flex;gap:5px;padding:5px;background:#fff!important;border:1px solid #d5dce5;box-shadow:0 3px 12px #0003;border-radius:8px}#mobile-field-actions button{min-height:44px;min-width:52px}#mobile-more>button{display:flex;width:100%;min-height:46px;justify-content:flex-start;margin:5px 0}
@media(max-width:760px){.mobile-field #cad-command-panel,.mobile-field #map-tabs,.mobile-field #geo-feedback,.mobile-field .cad-crosshair,.mobile-field #map-draw-tools{display:none!important}.mobile-field #mobile-field-menu{display:flex!important;margin-left:auto;min-height:44px;min-width:44px;font-size:22px}.mobile-field #map-tooldeck button.cad-tool-button{width:58px!important;height:52px!important}.mobile-field #map-locate{bottom:18px!important;right:12px!important;width:56px!important;height:56px!important}.mobile-field #map-settings-tools .cad-tool-button{flex-shrink:0}.mobile-field #mobile-dock button{min-width:0;flex:1;min-height:56px}#cad-plot-dialog{width:96vw;max-height:94dvh}.plot-body{grid-template-columns:1fr;gap:8px;padding:10px}.plot-preview{min-height:230px;max-height:45dvh}.plot-preview canvas{max-height:37dvh}.plot-settings fieldset{padding:8px;margin-bottom:8px}.plot-actions{position:sticky;bottom:0;background:#fff!important}.cad-file-dialog{width:94vw}}
@media print{@page{margin:0}html,body{margin:0!important;padding:0!important;display:block!important;height:auto!important;overflow:visible!important;background:#fff!important}body>*{display:none!important}body>#kcad-print-page{display:block!important;margin:0!important;padding:0!important;overflow:hidden!important;break-inside:avoid}#kcad-print-page img{display:block!important;width:100%!important;height:100%!important;object-fit:contain}dialog::backdrop{display:none!important}}
@media print{html body>header,html body>#map-tooldeck,html body>#cad-document-bar,html body>#alignment-panel,html body>#cad-command-panel,html body>#mobile-dock,html body>dialog{display:none!important}}
