*{box-sizing:border-box} :root{font-family:Inter,"Segoe UI",sans-serif;color:#162c3b;background:#edf1f3;font-size:16px}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:1px solid #ccd6dd;background:white;color:#18384c;border-radius:7px;padding:10px 12px;font-size:.875rem;font-weight:600;transition:background .15s}button:hover{background:#edf5f6}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible{outline:3px solid #11aaa6;outline-offset:2px}.primary{background:#087e82;color:white;border-color:#087e82}.primary:hover{background:#08696c}header{height:88px;background:#102938;color:#fff;display:flex;align-items:center;padding:14px 26px;gap:13px}header img{width:50px;height:50px;object-fit:contain;border-radius:6px}.brand{font-size:.65rem;letter-spacing:.16em;color:#a6ced2}h1{font-size:1.6rem;margin:2px 0 0;font-weight:650;letter-spacing:-.04em}h1 span{color:#49c6bd}.version{font-size:.7rem;letter-spacing:.09em;color:#b9cbd5;border-left:1px solid #476070;padding-left:22px;margin-left:12px}.header-end{margin-left:auto;display:flex;align-items:center;gap:22px}.privacy{font-size:.8rem;color:#b9cbd5}main{display:grid;grid-template-columns:350px 1fr;height:calc(100dvh - 88px)}aside{overflow-y:auto;background:#fff;border-right:1px solid #ccd6dd}section{padding:21px 22px;border-bottom:1px solid #e5eaee}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}h2{font-size:1.05rem;margin:0;font-weight:650}.badge{background:#e6f3f2;color:#087578;border-radius:5px;padding:3px 8px;font-size:.8rem}.small{font-size:.8rem;color:#627988}.wide{width:100%}.import{border-style:dashed;border-color:#54aaa9;background:#f3fbfa;color:#08777b;padding:13px}.two{display:flex;gap:8px;margin-top:10px}.two>*{flex:1}.hint,.empty{font-size:.8rem;color:#617784;line-height:1.5;margin:10px 0 0}.empty{padding:8px 0}.toggle{display:flex;gap:9px;align-items:center;font-size:.875rem;line-height:1.4}.toggle input{width:18px;height:18px;accent-color:#087e82;flex-shrink:0}.selection{font-size:.8rem;color:#087578;overflow-wrap:anywhere;background:#edf8f7;padding:9px 11px;border-radius:5px;margin:14px 0}.zone{padding:14px 0;border-bottom:1px solid #e8eef0}.zone h3{font-size:.92rem;margin:0 0 10px;display:flex;align-items:center;gap:9px}.zone i,.map-key i{display:inline-block;width:10px;height:10px;border-radius:2px}.green i,.key-green{background:#28a86c}.yellow i,.key-yellow{background:#e8b524}.red i,.key-red{background:#e15c55}.zone p{font-size:.78rem;color:#627988;margin:0 0 10px}.zone label{display:flex;justify-content:space-between;align-items:center;font-size:.875rem;margin:8px 0;gap:12px}.number{display:flex;align-items:center;border:1px solid #ced9df;border-radius:6px;background:#fafcfd;width:101px;flex-shrink:0}.number input{width:77px;min-width:0;border:0;padding:9px;background:transparent;color:#122e40}.number span{font-size:.8rem;color:#7b8e98}.number:has(input:invalid){border-color:#cf4136}.danger{color:#b13730}.text-button{width:100%;border:0;margin-top:10px;font-weight:400;color:#758792}.workspace{position:relative;min-width:0}#map{height:100%;background:#dde6e9}.location{position:absolute;z-index:500;top:20px;left:20px;display:flex;gap:6px;padding:6px;background:#fff;border:1px solid #dae2e7;border-radius:9px;box-shadow:0 4px 18px #152a3815}.location input{width:205px;border:0;padding:6px;font-size:.875rem}.location button{background:#f1f6f7;border:0}.map-key{position:absolute;bottom:66px;left:20px;z-index:500;background:#fffefb;border:1px solid #dce5e9;border-radius:6px;padding:10px 14px;display:flex;gap:18px;font-size:.75rem;box-shadow:0 2px 12px #17334612}.map-key span{display:flex;align-items:center;gap:7px}.status{position:absolute;bottom:25px;left:20px;right:20px;z-index:500;border-radius:6px;background:#102938ed;color:#e8f7fa;padding:10px 14px;font-size:.82rem;line-height:1.4;pointer-events:none}.status.error{background:#8d302e}#areas{max-height:190px;overflow:auto;margin-top:12px}.area{display:flex;text-align:left;width:100%;margin-top:5px;gap:10px;align-items:center;border-color:transparent;background:#f6f8fa;font-weight:500}.area.active{background:#e5f4f2;border-color:#80c9c2}.area .num{font-size:.7rem;color:#63808b;width:22px;flex-shrink:0}.area .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.82rem}.area .meta{font-size:.72rem;color:#71858f;margin-top:3px}.area>div{min-width:0}#drawbar{position:absolute;top:80px;left:20px;right:20px;z-index:600;background:#102938;color:white;padding:12px;border-radius:8px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}#drawbar[hidden]{display:none}#drawbar strong{font-size:.875rem}#drawhint{font-size:.8rem;flex:1}.leaflet-control-zoom{margin-top:20px!important;margin-right:20px!important}.vertex{background:#fff;border:3px solid #087e82;border-radius:50%;width:14px;height:14px;box-shadow:0 1px 5px #0004}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}dialog{border:0;border-radius:12px;padding:25px;max-width:410px;box-shadow:0 20px 80px #0004}dialog::backdrop{background:#10293888}dialog p{line-height:1.6;font-size:.9rem}@media(max-width:800px){header{padding:12px 15px;height:76px}.version,.privacy{display:none}h1{font-size:1.35rem}header img{width:38px;height:38px}.header-end{gap:0}main{height:auto;display:flex;flex-direction:column}.workspace{order:0;height:58dvh;min-height:340px}aside{order:1;overflow:visible;border:0}.map-key{gap:10px;font-size:.65rem;left:10px;bottom:70px}.status{left:10px;right:10px;bottom:24px}.location{top:10px;left:10px}.location input{width:175px}#drawbar{left:10px;right:10px;top:66px}#areas{max-height:160px}section{padding:18px 20px}}

/* Viac oblastí, premenovanie a vyhľadávanie adries. */
.search-box{position:relative}.location input{width:290px}.suggestions{position:absolute;left:-6px;right:-6px;top:43px;background:#fff;border:1px solid #d7e1e6;border-radius:8px;box-shadow:0 10px 28px #1029382b;overflow:hidden}.suggestion{display:block;width:100%;border:0;border-radius:0;text-align:left;padding:10px 12px;background:#fff;font-weight:500;line-height:1.3}.suggestion+.suggestion{border-top:1px solid #eef2f4}.suggestion small{display:block;color:#6b7f89;font-weight:400;margin-top:2px}.search-credit{padding:7px 12px;font-size:.68rem;color:#71858f;background:#f7f9fa}.search-message{padding:12px;font-size:.8rem;color:#617784}#areas{max-height:230px}.area-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;margin-top:5px}.area-row .area{margin-top:0;min-width:0}.rename{padding:8px 9px;font-size:.72rem;font-weight:500}.rename-form{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;background:#e5f4f2;border:1px solid #80c9c2;border-radius:7px;padding:6px}.rename-form input{min-width:0;border:1px solid #b9cbd2;border-radius:5px;padding:8px}.rename-form button{padding:7px 9px}.dialog-actions{display:flex;gap:8px;margin-top:18px}.dialog-actions>*{flex:1}#earthHelp{max-width:440px}#earthHelp p{margin:12px 0;line-height:1.55}
@media(max-width:800px){.location{right:10px}.search-box{flex:1;min-width:0}.location input{width:100%}.location>button{flex-shrink:0}#areas{max-height:220px}.leaflet-control-zoom{margin-top:72px!important;margin-right:12px!important}body:has(#drawbar:not([hidden])) .leaflet-control-zoom{display:none}}

/* Hlavné ovládanie oblastí je pri zozname, mapový podklad sa načíta až po výbere. */
.first-actions{margin-top:0}.area-tools{margin-top:8px}.clear-areas{margin-top:8px;color:#b13730;background:#fff8f7;border-color:#ebc5c1}.clear-areas:hover{background:#fff0ee}.basemap-switch{position:absolute;z-index:510;top:20px;right:72px;display:flex;padding:4px;background:#fff;border:1px solid #d7e1e6;border-radius:8px;box-shadow:0 4px 18px #152a3815}.basemap-switch button{border:0;padding:7px 11px;background:transparent}.basemap-switch button.active{background:#087e82;color:#fff}.basemap-switch button.active:hover{background:#08696c}
@media(max-width:800px){.basemap-switch{top:72px;left:10px;right:auto}.basemap-switch button{padding:6px 10px}body:has(#drawbar:not([hidden])) .basemap-switch{display:none}}
