:root{font-family:"Segoe UI",Arial,sans-serif;color:#24354a;background:#f3f6f9;font-size:14px;--status-color:#287fbd}*{box-sizing:border-box}[hidden]{display:none!important}button,input,textarea,select{font:inherit}button,.button{cursor:pointer;border:1px solid transparent;border-radius:7px;padding:10px 13px;text-decoration:none;display:inline-block}button:disabled{cursor:default;opacity:.55}.primary{background:#087f80;color:white}.secondary{background:#fff;border-color:#d1dce6;color:#324d64}.text-button{background:transparent;color:#087f80;padding:6px}.field{display:block;font-size:13px;font-weight:600;margin:15px 0}.field input,.field textarea,.field select{width:100%;display:block;margin-top:6px;border:1px solid #cbd6e0;border-radius:7px;padding:11px;background:white;color:#24354a;font-weight:400}.field textarea{resize:vertical}a{color:#126f9a}.portal-page{margin:0;min-height:100dvh;overflow:auto}.portal-header{padding:20px 4vw;background:#142b3f;display:flex;align-items:center;justify-content:space-between}.logo-link{font-weight:700;font-size:19px;color:#087f80;text-decoration:none}.portal-header .logo-link{color:white}.app-nav{display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:white;padding:10px 20px;border-bottom:1px solid #dbe4ed;position:relative;z-index:2500;box-shadow:0 3px 12px #142b3f12}.app-nav a{padding:9px 12px;border-radius:6px;text-decoration:none;color:#365269}.app-nav a.active{background:#e4f4f1;color:#087f80}.app-nav span{margin-left:auto;font-size:12px;color:#718197}.portal-main{max-width:1250px;margin:28px auto;padding:0 24px 70px}.portal-main h1{font-size:25px}.portal-main h2{font-size:18px}.panel{padding:22px;background:#fff;border:1px solid #dee6ee;border-radius:11px;margin:20px 0;line-height:1.7;overflow-wrap:anywhere}.panel form{max-width:650px}.panel form>button{margin:14px 0 0}.panel>button{margin-top:10px}.hint{font-size:12px;line-height:1.6;color:#758599}.error-text{color:#b33d43}.success-text{color:#14756e}.auth-card{max-width:510px;margin:6vh auto 30px;padding:32px;background:white;border:1px solid #dee6ee;border-radius:15px;box-shadow:0 12px 48px #142b3f12}.auth-card h1{font-size:25px}.auth-card p{line-height:1.65}.auth-tabs{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid #dee6ee;padding-bottom:15px}.auth-tabs button{background:#f0f4f7;padding:8px 10px;font-size:12px}.auth-tabs button.active{background:#dcf1ed;color:#087f80}.auth-card form>.primary{width:100%}#authStatus{color:#996227;font-size:13px;min-height:20px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:15px}.metric-card{background:white;border:1px solid #dee6ee;border-radius:10px;padding:22px}.metric-card span{display:block;color:#6c7e91;font-size:13px}.metric-card b{font-size:32px;display:block;margin-top:9px}.table-scroll{overflow:auto;border:1px solid #dee6ee;border-radius:10px;background:white;margin:20px 0}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th,td{padding:13px 15px;border-bottom:1px solid #e5ecf2;vertical-align:top;min-width:95px}th{background:#edf3f7;color:#557087;font-weight:600}td small{display:block;font-size:11px;color:#758599;margin-top:5px}.action-row{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.content-dialog{max-width:min(700px,94vw);max-height:85dvh;overflow:auto;border:1px solid #cbd6e0;border-radius:12px;padding:24px;color:#24354a}.content-dialog::backdrop{background:#142b3f77}.content-dialog textarea{width:100%}.workflow-badge{color:var(--status-color);border-left:4px solid var(--status-color);padding-left:7px;font-size:11px;display:inline-block}.status-legend{position:absolute;z-index:800;bottom:72px;left:14px;display:flex;flex-wrap:wrap;gap:5px;max-width:calc(100% - 40px);pointer-events:none}.legend-item{font-size:10px;background:#fffffff0;padding:5px;border-radius:4px;border-left:5px solid var(--status-color);color:#334e67;box-shadow:0 1px 4px #142b3f22}.legend-item.hatched{border-left-style:dashed}.editor-footer{flex-wrap:wrap}.editor-footer button{flex:1 1 40%;font-size:12px}.display-fields input:disabled,.display-fields select:disabled{opacity:.75}.display-fields small{line-height:1.5}.leaflet-popup-content button{font-size:12px}.map-inspection .popup-actions{flex-wrap:wrap}body:not(.portal-page){height:100dvh}.app-header{flex-shrink:0}body:not(.portal-page)>.app-nav{position:absolute;top:72px;left:0;right:0}.sync-body table th,.sync-body table td{min-width:0;padding:6px;word-break:break-word}.sync-body h3{overflow-wrap:anywhere}.editor-heading h2{overflow-wrap:anywhere}.editor-body input,.editor-body textarea{font-size:14px}.map-feature-label{pointer-events:none}.leaflet-marker-icon.marker-icon{touch-action:none}
@media(max-width:759px){.portal-main{padding:0 13px 35px;margin:18px auto}.portal-header{padding:15px}.logo-link{font-size:16px}.auth-card{margin:15px 10px;padding:23px 19px}.app-nav{padding:10px;gap:3px}.app-nav a{padding:8px;font-size:12px}.app-nav span{margin-left:0;flex-basis:100%;padding:8px}.panel{padding:16px}.app-header{height:108px;align-content:center;flex-wrap:wrap;padding:7px 10px;gap:5px}.app-header .brand{flex:1}.app-header .brand h1{font-size:17px}.app-header .header-actions{display:flex;width:100%;justify-content:space-between}.app-header .header-actions button{font-size:12px;padding:9px 8px;min-height:39px}.app-header .brand p{display:none}body:not(.portal-page)>.app-nav{top:108px}.sidebar{top:108px;width:min(320px,91vw);z-index:1800}.editor{top:auto;bottom:0;width:100%;height:53dvh;max-height:calc(100dvh - 108px);border-radius:13px 13px 0 0;z-index:1900}.editor-heading{padding:9px 15px}.editor-heading h2{font-size:15px;margin:4px 0}.editor-body{padding:7px 15px 20px}.editor-footer{padding:9px 12px;gap:6px}.editor-footer button{font-size:12px;padding:9px;min-height:40px}.editor-footer #cancelEdit{flex-grow:0}.sync-panel{top:108px;width:min(430px,100%);z-index:2100}.basemap-panel{top:12px;right:10px;width:150px;padding:6px 9px}.draw-help{top:75px;left:10px;right:10px;padding:10px}.draw-help p{font-size:11px}.map-status{bottom:25px;max-width:92%;font-size:10px;padding:6px}.status-legend{bottom:73px;left:10px;gap:3px}.legend-item{font-size:9px;padding:4px}.coordinates{bottom:5px}.leaflet-marker-icon.marker-icon{width:22px!important;height:22px!important;margin-left:-11px!important;margin-top:-11px!important;border-width:3px!important}.leaflet-marker-icon.marker-icon-middle{width:18px!important;height:18px!important;margin-left:-9px!important;margin-top:-9px!important}.editing .map-status,.editing .status-legend,.editing .coordinates{display:none}.leaflet-popup-content{max-width:75vw!important;max-height:45dvh}.leaflet-container{touch-action:pan-x pan-y}.content-dialog{padding:18px}th,td{padding:11px}.portal-main table{font-size:12px}}

@media(max-width:759px){body:not(.portal-page)>main{height:calc(100dvh - 108px)}.editing .draw-help{left:65px;right:10px;top:70px;display:flex;padding:9px;max-height:135px;overflow:auto}.editing .draw-help p{font-size:11px}.editing .draw-help button{padding:8px;margin:0 0 0 auto;flex-shrink:0}.editing .basemap-panel{right:10px}.draw-help>div{min-width:0}.editing .leaflet-pm-actions-container{max-width:300px}}

.comparison-badge{border-left:0;color:#40516a;padding-left:0}.comparison-badge i{display:inline-block;width:5px;height:14px;margin-right:2px;vertical-align:middle}
