@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#193e33;--muted:#75817b;--green:#245c46;--line:#e3e8e2}*{box-sizing:border-box}body{margin:0;font:14px 'DM Sans',sans-serif;color:var(--ink);background:#f8faf7}button,input,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled,select:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c3a753;outline-offset:2px}header{height:102px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line);background:#fff;gap:20px}.brand{display:flex;align-items:center;gap:16px;text-decoration:none;color:inherit}.brandmark{background:var(--green);color:#e8d39a;border-radius:13px;width:49px;height:51px;display:grid;place-items:center;font-size:37px}.brand small,.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--muted)}h1{font:800 19px 'Manrope',sans-serif;margin:6px 0 0}h1 em{font-style:normal;color:#8b955c;margin-left:5px}.header-right{display:flex;align-items:center;gap:18px;white-space:nowrap}.badge{font-size:11px;color:#5b6e4b;background:#f2f5e9;padding:8px 11px;border-radius:20px}.plain{border:0;background:none;padding:10px 0;color:var(--green)}main{display:flex;height:calc(100dvh - 102px);min-height:500px}aside{width:348px;flex-shrink:0;overflow:auto;background:#fff;z-index:900;display:flex;flex-direction:column;border-right:1px solid var(--line)}.side-top{padding:28px 25px 17px}h2{font:800 27px/1.3 'Manrope',sans-serif;letter-spacing:-.8px;margin:12px 0}p{line-height:1.7}.side-top p{font-size:12px;color:var(--muted);margin-bottom:0}.tabs{display:flex;padding:0 25px;border-bottom:1px solid var(--line);gap:25px}.tabs button{padding:15px 0 12px;border:0;border-bottom:2px solid transparent;background:none;color:#7b8781;font-weight:600;font-size:12px}.tabs .active{color:var(--green);border-color:var(--green)}section{padding:22px 25px}.label{display:block;font-size:10px;letter-spacing:1px;font-weight:700;color:#738177;margin:0 0 9px}.search{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;padding:0 12px;margin-bottom:22px}.search span{font-size:24px;color:#829085}.search input{width:100%;border:0;background:none;padding:12px 8px;font-size:12px;outline:none}select{color:#40584b;background:#fff;border:1px solid var(--line);border-radius:7px;padding:11px;font-size:12px}section select{width:100%;margin-bottom:18px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:7px 0 13px}.section-title h3{font-size:12px;margin:0}.section-title span{color:#8b967f;font-size:11px}.stats{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:8px;background:#fafbf7}.stats>div{padding:16px 12px}.stats>div+div{border-left:1px solid var(--line)}.stats small{font-size:8px;letter-spacing:.7px;color:#768373;display:block}.stats strong{display:block;font:700 29px 'Manrope';margin:10px 0 3px}.stats span{font-size:10px;color:#879081}.empty{text-align:center;padding:24px 10px 3px}.empty-icon{font-size:36px;color:#91a18b}.empty h3{font-size:13px;margin:8px 0}.empty p,.help{font-size:11px;color:var(--muted);line-height:1.8}.primary,.secondary{border:0;border-radius:7px;padding:12px 18px;font-weight:600;font-size:12px;background:var(--green);color:#fff}.secondary{background:#eff4eb;color:var(--green);width:100%}.empty .primary{margin-top:5px}.partners{margin-top:auto;padding:21px 25px;background:#f7f9f4;border-top:1px solid var(--line)}.partners p{font-size:10px;color:#7b867a;line-height:1.7;margin:10px 0}.partners b{font-weight:600;color:#53684e}.partner-line{height:1px;width:30px;background:#c7d0bd;margin:13px 0}.map-wrap{position:relative;flex:1;min-width:0}#map{height:100%;background:#dee7dc}.map-top{position:absolute;z-index:800;top:22px;left:22px;right:22px;display:flex;gap:10px;align-items:center;pointer-events:none}.map-top>*{pointer-events:auto}.map-top select{margin-left:auto;box-shadow:0 3px 12px #1c372513}.map-button,.location-pill,.tools button{border:1px solid #e0e6dc;background:white;border-radius:7px;box-shadow:0 3px 12px #1c372513}.map-button{width:39px;height:39px;color:var(--green)}.location-pill{font-size:11px;padding:12px 14px}.dot{display:inline-block;width:6px;height:6px;background:#74926b;border-radius:50%;margin-right:8px}.divider{color:#b8c0b3;margin:0 9px}.tools{position:absolute;right:22px;top:83px;z-index:800;display:flex;flex-direction:column;gap:8px}.tools button{height:39px;width:39px;font-size:22px;color:var(--green)}.tools button.active{background:var(--green);color:white}.legend{position:absolute;bottom:52px;left:22px;z-index:800;background:#fff;padding:15px 18px;border-radius:8px;box-shadow:0 4px 16px #16382012;min-width:195px}.legend .eyebrow{font-size:9px}#legendItems{font-size:11px;margin-top:11px;line-height:1.9}.legend-dot{display:inline-block;background:#adbda5;width:10px;height:10px;border-radius:2px;margin-right:8px}.map-bottom{position:absolute;z-index:800;bottom:0;left:0;right:0;display:flex;justify-content:space-between;background:#ffffffed;padding:8px 20px;font-size:9px;color:#6e7d71;gap:12px}.leaflet-control-zoom{margin-top:83px!important;margin-left:22px!important;border:1px solid #d5dfd2!important;border-radius:7px!important;overflow:hidden}.leaflet-control-zoom a{color:#36583e!important}.leaflet-control-attribution{bottom:29px}.leaflet-control-scale{margin-bottom:40px!important;margin-left:24px!important}.layer{display:flex;align-items:center;gap:8px;padding:12px;background:#f3f6ef;border-radius:6px;font-size:12px}.layer span{margin-left:auto;color:var(--muted);font-size:10px}#file{width:100%;font-size:11px;margin-bottom:22px}.danger{color:#9b5c43;font-size:11px;margin-top:12px}dialog{border:1px solid var(--line);border-radius:15px;max-width:550px;padding:33px;color:var(--ink)}dialog::backdrop{background:#132a2266}dialog h2{font-size:23px}dialog p{font-size:13px}.close{float:right;background:none;border:0;font-size:24px;color:var(--muted)}#toast{position:absolute;top:80px;left:50%;transform:translateX(-50%);z-index:1000;background:#fff6dc;padding:14px 20px;border-radius:7px;max-width:85%;box-shadow:0 3px 14px #0002;font-size:12px}#measurePanel{position:absolute;top:83px;left:75px;z-index:850;background:white;padding:16px;border-radius:8px;box-shadow:0 3px 15px #0002;font-size:12px}#measurePanel p{font-size:11px;color:var(--muted)}#measurePanel strong{display:block;font-size:22px;margin:10px 0}#measurePanel button{border:1px solid var(--line);background:#f3f6ef;border-radius:4px;padding:6px 10px;margin-right:5px}.result{display:block;width:100%;text-align:left;padding:10px 0;background:none;border:0;border-bottom:1px solid var(--line);font-size:11px;color:var(--ink)}.result small{display:block;color:var(--muted);margin-top:5px}.leaflet-popup-content{max-height:280px;overflow:auto;min-width:200px}.popup-row{padding:5px 0;border-bottom:1px solid #e6ece3;font-size:11px;overflow-wrap:anywhere}.popup-row b{display:block;color:#7a8779;font-size:10px}.side-hidden aside{display:none}@media(min-width:1500px){aside{width:375px}.side-top{padding-top:35px}.partners{padding-bottom:25px}}@media(max-width:1000px){h1{font-size:15px;max-width:500px}.header-right .badge{display:none}aside{width:310px}.location-pill{display:none}}@media(max-width:700px){header{height:94px;padding:12px 15px;gap:10px}.brand{gap:10px}.brandmark{width:37px;height:42px;font-size:28px;flex-shrink:0}.brand small{font-size:7px;letter-spacing:1px}h1{font-size:13px;line-height:1.5;margin-top:3px}h1 em{margin-left:0}.header-right button{font-size:10px;max-width:48px;white-space:normal}main{height:calc(100dvh - 94px);min-height:400px}aside{position:absolute;top:94px;bottom:0;width:300px;box-shadow:4px 0 25px #183b3325}.map-top{top:14px;left:14px;right:14px}.map-top select{max-width:190px;font-size:10px}.legend{left:14px;bottom:55px}.map-bottom{font-size:8px}.map-bottom span:last-child{display:none}.side-top h2{font-size:24px}.tools{right:14px}body:not(.side-hidden) #toggleSide{position:fixed;left:309px;top:108px}#measurePanel{left:65px;max-width:230px}.leaflet-control-zoom{margin-left:14px!important}}
/* SIPETA Indonesia identity */
:root{--ink:#103b38;--green:#124b44;--muted:#74847d;--line:#e2e9e3}.brandmark{position:relative;overflow:hidden;background:#103b38;flex-shrink:0;width:51px;height:51px;border-radius:13px}.brandmark img,.sipeta-mini img{position:absolute;width:184%;max-width:none;left:-42%;top:-46%;height:auto}.brand small{color:#295b52;font-size:12px;letter-spacing:1.5px}.brand h1{font-size:18px}.brand h1 em{color:#a38850}.badge{color:#54735f;background:#f0f5eb}.partners{background:#f7faf7}.partner{display:flex;align-items:center;gap:13px;margin-top:18px}.partner p{margin:0;font-size:10px;line-height:1.65}.partner-logo{position:relative;display:block;overflow:hidden;flex-shrink:0;width:44px;height:52px}.partner-logo img{position:absolute;max-width:none;height:auto}.unmul-logo img{width:118%;left:-9%;top:-2%}.kaltim-logo img{width:190%;left:-44%;top:-27%}.developer-credit{display:flex;gap:10px;align-items:center;border-top:1px solid #dce5dc;margin-top:20px;padding-top:16px;font-size:9px;color:#8a998e;line-height:1.6}.developer-credit b{color:#315e52;font-size:11px;font-weight:600}.sipeta-mini{position:relative;overflow:hidden;width:30px;height:30px;border-radius:8px;background:#103b38;flex-shrink:0}.map-credit{color:#708378;white-space:nowrap}.map-credit b{color:#28564d;font-weight:600}.about-developer{padding:11px 14px;background:#edf4ed;border-radius:7px;color:#28564d}
/* Drawing and hectare measurement */
#measurePanel{width:288px;max-width:calc(100% - 100px);padding:18px;border:1px solid #dfe6dc;box-shadow:0 5px 24px #123b3820;border-radius:10px}.measure-heading{display:flex;justify-content:space-between;align-items:center}.measure-heading #closeMeasure{margin:0;border:0;background:none;font-size:22px;color:#71867c;padding:0 3px;line-height:1}.measure-modes{display:flex;background:#f0f4ee;border-radius:7px;padding:3px;margin:15px 0}.measure-modes button{flex:1;border:0!important;background:none!important;border-radius:5px!important;font-size:11px;padding:8px!important;margin:0!important;color:#687f72}.measure-modes button[aria-pressed=true]{background:white!important;color:#164c40;font-weight:700;box-shadow:0 1px 4px #1a44351a}#measureHelp{font-size:11px;line-height:1.7;margin:0 0 14px;color:#6c7f73}.measure-output{background:#f6f8f2;border:1px solid #e4e9dd;border-radius:7px;padding:14px}#measurePanel #distance{font:700 26px 'Manrope',sans-serif;letter-spacing:-.6px;margin:0;overflow-wrap:anywhere}.measure-output small{display:block;color:#8c997e;font-size:10px;margin-top:5px}.measure-actions{display:flex;gap:8px;margin-top:13px}.measure-actions button{flex:1;margin:0!important;background:white!important;padding:8px 6px!important;font-size:10px;border-color:#dce5d9!important;color:#526f5c}#measurePanel #finishMeasure{display:block;width:100%;margin:12px 0 0;background:#124b44;border:0;color:white;padding:10px;font-size:11px}#measurePanel #finishMeasure[hidden]{display:none}#measurePanel .measure-footnote{font-size:9px;line-height:1.7;margin:12px 0 0;color:#8c998a}#measureError{font-size:10px!important;color:#a35d38!important;background:#fff5e6;padding:9px;border-radius:5px;margin-bottom:0}.measure-area-label{font:700 13px 'DM Sans',sans-serif;color:#183f33;background:#fffdf4;border:1px solid #ccb57b;box-shadow:0 2px 9px #23452b20;border-radius:6px;padding:7px 11px}.tools button{display:grid;place-items:center}.tools #measureArea.active{background:#b38f48;border-color:#b38f48;color:#fff}
@media(max-width:1150px){.map-bottom>span:nth-child(2){display:none}.brand h1{font-size:16px}.brand small{font-size:11px}}@media(max-width:700px){.brandmark{width:41px;height:41px;border-radius:10px}.brand h1{font-size:12px}.brand small{font-size:10px;letter-spacing:1px}.brand{gap:10px}.map-credit{font-size:8px}.map-bottom{padding:8px 12px}.map-bottom>span.map-credit{display:inline}.header-right{gap:0}.map-top select{max-width:178px}#measurePanel{left:64px;top:65px;width:270px;max-width:calc(100% - 80px);padding:14px}.measure-heading .eyebrow{font-size:9px}#measurePanel #distance{font-size:24px}.partners{padding-top:20px}.partner-logo{width:43px;height:51px}.developer-credit{margin-top:16px}}
/* Application title and multi-class filter */
.brand .brand-copy h1{font:800 23px/1.2 'Manrope',sans-serif;margin:0;color:#103b38;letter-spacing:-.5px}.project-title{font-size:12px;line-height:1.5;margin:6px 0 0;color:#7a8a78}.about-project{color:#647c65;font-weight:600;margin-top:-5px}.status-filter{margin:0 0 22px;padding:0;border:0;min-width:0}.status-filter legend{padding:0;margin-bottom:10px}.status-actions{display:flex;align-items:center;gap:11px;margin-bottom:10px;font-size:10px}.status-actions>span{color:#82917f;margin-right:auto}.status-actions button{font-size:10px;color:#315e4b;background:none;border:0;padding:3px 0}.status-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}.status-choice{display:flex;align-items:center;gap:6px;border:1px solid #e1e8dc;background:#fbfcf8;border-radius:6px;padding:9px 8px;font-size:10px;color:#4f6c58;cursor:pointer;min-width:0}.status-choice:has(input:checked){border-color:#a9c1a3;background:#f0f5e9}.status-choice input{appearance:auto;width:13px;height:13px;margin:0;accent-color:#265a45;flex-shrink:0}.status-dot{width:6px;height:6px;display:inline-block;border-radius:2px;flex-shrink:0}.status-hint{font-size:9px;margin:10px 0 0;line-height:1.7}.status-filter:disabled .status-choice{opacity:.5;cursor:default}@media(max-width:1000px){.brand .brand-copy h1{font-size:21px}.project-title{font-size:11px}}@media(max-width:700px){.brand .brand-copy h1{font-size:17px}.project-title{font-size:9px;margin-top:4px;line-height:1.45}.status-options{gap:6px}.status-choice{font-size:10px}}
/* Project hierarchy, independent data layers, and project information */
.brand .brand-copy .app-label{display:block;font-size:11px;letter-spacing:1.7px;color:#2e6257;font-weight:700;margin-bottom:6px}.brand .brand-copy h1{font-size:18px;letter-spacing:-.3px}.brand .brand-copy h1 em{font-style:normal;color:#a38850}.upload-section{border-top:1px solid var(--line);margin-top:16px;padding-top:22px}.upload-section #file{margin:0 0 4px}.extra-layer-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin:22px 0 12px}.extra-layer-heading>span{font-size:10px;background:#edf3e9;padding:3px 7px;border-radius:12px}.extra-layer-card{padding:12px;border:1px solid var(--line);border-radius:7px;margin:9px 0;background:#fbfcf8}.extra-layer-top{display:flex;gap:8px;align-items:flex-start}.extra-layer-top>label{display:flex;align-items:flex-start;gap:7px;font-size:11px;flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.6}.extra-layer-top input[type=checkbox]{accent-color:#265a45;margin-top:3px}.extra-layer-top input[type=color]{width:24px;height:24px;padding:0;border:0;background:none;cursor:pointer;flex-shrink:0}.extra-layer-card .help{margin:8px 0}.extra-layer-actions{display:flex;gap:16px}.extra-layer-actions button{border:0;background:none;color:#31614f;padding:3px 0;font-size:10px}.extra-layer-actions button:last-child{color:#956148}.import-report p{font-size:10px;padding:8px 10px;border-radius:5px;line-height:1.6;overflow-wrap:anywhere}.import-success{background:#edf5e8;color:#3c6d43}.import-error{background:#fff1e6;color:#995f34}.legend{max-height:42vh;overflow:auto}#extraLegend{border-top:1px solid var(--line);padding-top:12px;margin-top:12px;max-width:220px}#extraLegend .eyebrow{margin-bottom:8px;font-size:8px}.extra-legend-row{display:flex;gap:1px;align-items:center;font-size:10px;line-height:1.6;overflow-wrap:anywhere;margin:5px 0}.extra-legend-row .legend-dot{flex-shrink:0}
#about.about-dialog{width:790px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);padding:30px 32px;overflow:auto;border-radius:14px}.about-intro h2{font-size:26px;line-height:1.3;margin:12px 0}.about-intro p{font-size:11px;color:#7a8d7b;margin:0 0 23px}.about-tabs{display:flex;border-bottom:1px solid var(--line);gap:25px;position:sticky;top:-30px;background:#fff;z-index:1;padding-top:7px}.about-tabs button{background:none;border:0;border-bottom:2px solid transparent;color:#78907c;padding:12px 0;font-size:12px;white-space:nowrap}.about-tabs button[aria-selected=true]{color:#1f5642;border-bottom-color:#1f5642;font-weight:700}.about-dialog>section{padding:22px 0 0}.about-dialog section h3{font:700 15px 'Manrope',sans-serif;margin:4px 0 12px}.about-dialog section p{font-size:12px;color:#69806b;line-height:1.85}.about-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0;background:#f4f7ef;border:1px solid #e5ebdf;border-radius:9px;padding:18px}.about-facts b{display:block;font:700 20px 'Manrope';color:#315d46}.about-facts span{font-size:10px;color:#8a997c;display:block;margin-top:7px}.about-note{padding:14px 17px;background:#faf6e9;border-left:3px solid #c5ad69;font-size:11px;line-height:1.8;color:#8b7f56;margin-top:20px}.source-list{margin:0}.source-list>div{padding:14px 0;border-bottom:1px solid var(--line)}.source-list dt{font-size:12px;font-weight:700;color:#345e46}.source-list dd{font-size:11px;color:#7c8d78;line-height:1.8;margin:6px 0 0}.source-reference{font-size:10px!important;padding-top:8px}.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:22px 0}.team-card{text-align:center;background:#f6f8f2;border:1px solid #e4eadf;border-radius:10px;padding:20px 10px 16px}.team-card img{width:90px;height:90px;border-radius:50%;object-fit:cover;object-position:center 20%;border:4px solid white;background:#fff;box-shadow:0 2px 12px #264d3412}.team-card h4{font-size:11px;line-height:1.65;font-weight:600;margin:13px 0 0;color:#345b45}#aboutTeam>.eyebrow{font-size:9px}@media(max-width:1050px){.brand .brand-copy h1{font-size:15px;max-width:560px;line-height:1.4}.brand .brand-copy .app-label{font-size:10px}}@media(max-width:700px){.brand .brand-copy h1{font-size:12px;line-height:1.45}.brand .brand-copy .app-label{font-size:8px;letter-spacing:1.1px;margin-bottom:3px}.brandmark{width:40px;height:40px}#about.about-dialog{padding:23px 20px}.about-intro h2{font-size:21px}.about-tabs{gap:17px;top:-23px}.about-tabs button{font-size:10px}.about-facts{gap:8px;padding:13px}.about-facts b{font-size:15px}.about-facts span{font-size:8px}.team-grid{grid-template-columns:repeat(2,1fr);gap:10px}.team-card img{width:78px;height:78px}.team-card h4{font-size:10px}.team-card{padding:17px 7px}.about-dialog section p{font-size:11px}}
/* General methodology flow and consistently framed team portraits */
.about-tabs{gap:23px;overflow-x:auto;scrollbar-width:thin}.about-tabs button{flex-shrink:0}.method-flow{margin:20px 0 16px;padding:16px 12px 12px;background:#fafbf7;border:1px solid #e4eadf;border-radius:10px;overflow-x:auto}.method-flow svg{display:block;width:100%;min-width:440px;height:auto}.flow-input rect{fill:#f0f5e9;stroke:#cbdabc}.flow-step{fill:#fff;stroke:#d8e3cd}.flow-label{font:600 12px 'DM Sans',sans-serif;fill:#365e43}.flow-small{font:400 10px 'DM Sans',sans-serif;fill:#879a7c}.flow-output{font:600 13px 'DM Sans',sans-serif}.flow-class{font:600 11px 'DM Sans',sans-serif;fill:#5c6b4a}.method-flow figcaption{font-size:9px;color:#94a18a;text-align:center;margin-top:10px;line-height:1.6}.method-explanation{padding:15px 18px;border-radius:8px;background:#f4f7ef}.method-explanation h4{font-size:12px;margin:0 0 6px;color:#3b6248}.method-explanation p{font-size:11px!important;margin:0;line-height:1.85}.team-avatar{display:block;position:relative;width:90px;height:90px;overflow:hidden;border-radius:50%;background:#fff;border:4px solid white;box-shadow:0 2px 12px #264d3412;margin:0 auto}.team-card .team-avatar img{position:absolute;width:var(--portrait-width);height:auto;max-width:none;left:var(--portrait-left);top:var(--portrait-top);object-fit:initial;object-position:initial;border:0;border-radius:0;box-shadow:none;background:#fff}.team-card h4{min-height:37px}@media(max-width:700px){.about-tabs{gap:17px}.about-tabs button{font-size:10px}.team-avatar{width:78px;height:78px}.method-flow{padding:12px 8px}.method-explanation{padding:12px 14px}}

.method-flow text.flow-small[fill]{fill:#c2d5c4}
/* Stable information window and equal-width submenu tabs. */
.mobile-panel-bar,.panel-backdrop,.legend-toggle,.method-mobile-flow{display:none}
#about.about-dialog{height:min(740px,calc(100dvh - 40px));overflow:hidden;padding:0;background:#fff}
#about.about-dialog[open]{display:flex;flex-direction:column}
.about-intro{flex-shrink:0;padding:28px 32px 0}
.about-intro p{margin-bottom:16px}
#closeAbout{position:absolute;right:14px;top:12px;width:44px;height:44px;margin:0;display:grid;place-items:center;z-index:3;background:#fff;border-radius:50%}
.about-intro h2{padding-right:20px}
.about-tabs{flex-shrink:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0 32px;padding:0;position:relative;top:auto;overflow:visible;min-height:48px}
.about-tabs button{min-width:0;white-space:normal;padding:10px 4px;line-height:1.4;font-size:12px;min-height:48px}
.about-dialog>section{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:22px 32px 28px}
.about-dialog>section[hidden]{display:none}
@media(max-width:700px){
  html,body{height:100%;overflow:hidden;overscroll-behavior:none}
  body{height:100dvh;display:flex;flex-direction:column}
  header{height:auto;min-height:94px;flex-shrink:0;padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));gap:10px}
  .brand{min-width:0;gap:9px;flex:1}
  .brand-copy{min-width:0}
  .brand .brand-copy h1{font-size:13px;line-height:1.4;max-width:none;overflow-wrap:normal}
  .brand .brand-copy h1 em{display:inline;white-space:nowrap;margin-left:0}
  .brand .brand-copy .app-label{font-size:9px;margin-bottom:3px;letter-spacing:1.1px}
  .brandmark{width:36px;height:36px;border-radius:9px}
  .header-right{flex-shrink:0}
  .header-right #aboutBtn{min-width:48px;min-height:44px;width:56px;max-width:56px;padding:4px;font-size:11px;line-height:1.5;white-space:normal}
  main{position:relative;flex:1;height:auto;min-height:0;width:100%;overflow:hidden}
  .map-wrap{height:100%;min-height:0}
  aside{position:absolute;top:0;bottom:0;left:0;width:min(360px,calc(100% - 40px));max-height:100%;z-index:950;overscroll-behavior:contain;scrollbar-width:thin;box-shadow:5px 0 24px #103b3829;padding-bottom:env(safe-area-inset-bottom)}
  .mobile-panel-bar{display:flex;position:sticky;top:0;z-index:2;align-items:center;justify-content:space-between;background:#fff;padding:8px 14px 8px 18px;border-bottom:1px solid var(--line);min-height:60px;flex-shrink:0;font-size:14px}
  .mobile-panel-bar button{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:1px solid var(--line);border-radius:9px;background:#f5f8f2;font-size:25px;color:var(--ink)}
  .panel-backdrop:not([hidden]){display:block;position:absolute;inset:0;background:#0f2e325c;z-index:900;border:0;border-radius:0;padding:0}
  body:not(.side-hidden) #toggleSide{position:static;left:auto;top:auto}
  .side-top{padding:20px 18px 12px}.side-top h2{font-size:23px;margin:8px 0}.side-top p{font-size:12px;margin:6px 0}
  .tabs{padding:0 18px;gap:24px;flex-shrink:0}.tabs button{font-size:13px;min-height:48px}
  aside section{padding:18px}.label{font-size:11px}.help{font-size:12px;line-height:1.65}
  section select,.search input{font-size:16px;min-height:46px}.search{margin-bottom:20px}.search input{padding:10px 6px}
  .status-actions{gap:10px;font-size:11px;margin:0 0 8px}.status-actions button{min-height:44px;padding:8px 2px;font-size:12px}
  .status-options{gap:8px}.status-choice{min-height:46px;font-size:12px;padding:10px 7px;gap:6px;line-height:1.35}.status-choice input{width:17px;height:17px}.status-dot{width:7px;height:7px}.status-hint{font-size:11px}
  .stats{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.stats>div{padding:14px 10px;min-width:0}.stats strong{font-size:clamp(19px,6vw,27px);letter-spacing:-.5px;white-space:nowrap}.stats small{font-size:9px;letter-spacing:.25px}.stats span{font-size:11px;line-height:1.5;display:block}
  .result{font-size:13px;padding:12px 0;min-height:48px}.result small{font-size:11px}
  .partners{padding:20px 18px}.partner p{font-size:11px}.partner{gap:10px}.developer-credit{font-size:10px}.developer-credit b{font-size:12px}
  .map-top{top:12px;left:12px;right:12px;gap:8px}.map-button{width:44px;height:44px;font-size:19px;flex-shrink:0}.map-top select{font-size:13px;min-height:44px;max-width:calc(100% - 60px);width:170px;padding:9px}
  .tools{right:12px;top:70px;gap:8px}.tools button{width:44px;height:44px;font-size:23px}
  .leaflet-control-zoom{margin-left:12px!important;margin-top:70px!important}.leaflet-control-zoom a{width:42px!important;height:42px!important;line-height:42px!important;font-size:25px!important}
  .legend{left:12px;bottom:62px;min-width:0;width:auto;max-width:min(245px,calc(100% - 80px));padding:0;overflow:hidden;max-height:none;border:1px solid var(--line)}
  .legend-desktop-title{display:none}.legend-toggle{display:flex;align-items:center;justify-content:space-between;gap:24px;border:0;background:#fff;color:var(--ink);width:100%;padding:12px 14px;min-height:44px;font-weight:600;font-size:12px}
  .legend-chevron{font-size:17px;line-height:1}.legend-open .legend-chevron{transform:rotate(180deg)}
  .legend #legendContent{display:none}.legend.legend-open #legendContent{display:block;padding:0 14px 12px;max-height:min(36dvh,270px);overflow:auto;overscroll-behavior:contain}.legend #legendItems{font-size:12px;line-height:2;margin:0}.legend #legendItems .help{font-size:10px;line-height:1.6}.legend #extraLegend{max-width:100%}
  .map-bottom{padding:6px 10px calc(6px + env(safe-area-inset-bottom));font-size:8px;gap:6px;align-items:center}.map-bottom #coords{white-space:nowrap}.map-credit{font-size:8px;white-space:normal;text-align:right}.map-bottom>span.map-credit{display:inline}
  .leaflet-control-attribution{bottom:calc(27px + env(safe-area-inset-bottom));font-size:8px!important;max-width:100%;line-height:1.35;overflow-wrap:anywhere}
  .leaflet-control-scale{margin-left:12px!important;margin-bottom:calc(36px + env(safe-area-inset-bottom))!important;max-width:70%}
  #toast{top:66px;left:12px;right:66px;transform:none;width:auto;max-width:none;padding:12px;font-size:12px;line-height:1.6;max-height:30%;overflow:auto;z-index:875}
  #measurePanel{top:auto;bottom:calc(58px + env(safe-area-inset-bottom));left:12px;right:12px;width:auto;max-width:none;max-height:46%;overflow:auto;overscroll-behavior:contain;padding:12px;border-radius:12px}
  #measurePanel #closeMeasure{width:36px;height:36px;display:grid;place-items:center;font-size:26px}
  .measure-modes{margin:6px 0 9px}.measure-modes button{min-height:42px;font-size:13px;padding:8px!important}
  #measureHelp{font-size:12px;margin-bottom:8px;line-height:1.5}.measure-output{padding:10px 12px}#measurePanel #distance{font-size:25px}.measure-output small{font-size:11px}
  .measure-actions{margin-top:8px;gap:8px}.measure-actions button{min-height:44px;font-size:12px}#measurePanel #finishMeasure{min-height:44px;font-size:12px;margin-top:8px}
  #measurePanel .measure-footnote{font-size:10px;margin-top:8px;line-height:1.5}
  .map-wrap:has(#measurePanel:not([hidden])) .legend{display:none}
  .leaflet-popup-content{min-width:150px;max-width:calc(100vw - 80px);max-height:40dvh;font-size:12px}.leaflet-popup-close-button{width:36px!important;height:36px!important;line-height:36px!important}
  .layer{font-size:13px;padding:12px 9px;flex-wrap:wrap}.layer input{width:18px;height:18px}.layer span{font-size:11px}.extra-layer-top>label{font-size:12px;line-height:1.5}.extra-layer-top input[type=color]{width:36px;height:36px}.extra-layer-actions button{min-height:44px;font-size:12px}#file{font-size:13px;max-width:100%}.primary,.secondary{font-size:13px;min-height:44px}.extra-layer-card{padding:10px}
  #about.about-dialog{width:calc(100% - 20px);max-width:calc(100% - 20px);height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;border-radius:13px}
  .about-intro{padding:22px 16px 0}.about-intro h2{font-size:18px;line-height:1.45;padding-right:24px;margin:8px 0}.about-intro p{font-size:12px;margin-bottom:14px}
  #closeAbout{right:7px;top:7px;width:40px;height:40px;font-size:25px}
  .about-tabs{margin:0 12px;min-height:54px;gap:0;top:auto;overflow:visible;grid-template-columns:repeat(4,minmax(0,1fr))}
  .about-tabs button{font-size:11px;line-height:1.4;min-height:54px;padding:8px 3px;white-space:normal;overflow-wrap:normal}
  .about-dialog>section{padding:20px 16px 24px;scrollbar-gutter:auto}.about-dialog section h3{font-size:15px;line-height:1.5}.about-dialog section p{font-size:13px;line-height:1.8}
  .about-facts{grid-template-columns:1fr;padding:14px;gap:12px}.about-facts>div{display:flex;align-items:center;gap:10px;justify-content:space-between}.about-facts b{font-size:17px}.about-facts span{font-size:11px;margin:0;text-align:right}.about-note{font-size:12px;padding:12px;line-height:1.7}.source-list dt{font-size:13px}.source-list dd{font-size:12px}
  .team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.team-card{padding:16px 8px;min-width:0}.team-card h4{font-size:11px;line-height:1.6;min-height:53px;overflow-wrap:normal}.team-avatar{width:82px;height:82px}
  .method-flow{padding:14px 12px;overflow:visible;margin:16px 0}.method-flow>svg{display:none}.method-mobile-flow{display:flex;flex-direction:column;align-items:center;gap:6px}.mobile-flow-step{width:100%;border:1px solid #d8e3cd;background:#fff;border-radius:8px;padding:12px;text-align:center;font-size:12px;line-height:1.65;color:#365e43}.mobile-flow-step b,.mobile-flow-step>span{display:block}.mobile-flow-step small{display:block;font-size:9px;letter-spacing:.8px;color:#7a8d73;margin-bottom:4px}.mobile-flow-arrow{font-size:18px;color:#8c9e7c;line-height:1}.mobile-flow-classes{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.mobile-flow-classes span{background:#f0f5e9;border:1px solid #dce6d0;border-radius:5px;padding:5px 8px;font-size:11px}.mobile-flow-output{background:#1f5546;color:#fff;border-color:#1f5546;font-weight:600}.method-explanation p{font-size:12px!important}
}
@media(max-width:360px){.brand .brand-copy h1{font-size:12px}.brandmark{width:31px;height:31px}.brand .brand-copy .app-label{font-size:8px}.header-right #aboutBtn{width:46px;min-width:46px;font-size:10px}.status-choice{font-size:11px;gap:4px}.stats strong{font-size:21px}.team-avatar{width:72px;height:72px}}
@media(max-width:700px) and (max-height:500px){header{min-height:72px;padding-top:8px;padding-bottom:8px}.brand .brand-copy h1{font-size:12px}.tools{flex-direction:row;top:64px;right:10px;gap:6px}#measurePanel{left:auto;right:10px;width:min(270px,calc(100% - 76px));max-height:calc(100% - 118px);bottom:42px}.legend{bottom:46px}#about.about-dialog{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.about-intro{padding-top:10px}.about-intro h2{font-size:15px;margin:3px 0}.about-intro h2 br{display:none}.about-intro p{margin:3px 0 7px}.about-tabs,.about-tabs button{min-height:44px}.about-dialog>section{padding-top:12px}}
/* Keep Leaflet controls within the map, below the open filter drawer. */
.map-wrap{isolation:isolate;z-index:0}

/* One-shot device location indicator. */
.tools #locate.located{color:#217aa8;border-color:#8ebbd2;background:#f1f9fd}
.tools #locate[aria-busy=true]{opacity:.65;cursor:progress}
.user-location-marker{background:transparent;border:0}
.user-location-marker span{display:block;width:20px;height:20px;margin:2px;border:3px solid #fff;border-radius:50%;background:#247eae;box-shadow:0 0 0 1px #247eae,0 2px 12px #153d4f55}
@media(max-width:700px){#toast{left:66px;right:66px;max-height:32%}}

/* Safari: use vector icons and explicit form-control sizing. */
button{-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.tools button,.map-button{padding:0;line-height:1;color:#124b44}
.tools button svg,.map-button svg{display:block;width:22px;height:22px;flex-shrink:0}
#aboutBtn{display:flex;align-items:center;justify-content:center;gap:7px;line-height:1.3}
#aboutBtn svg{display:block;width:18px;height:18px;flex-shrink:0}.about-label-mobile{display:none}
.basemap-control{position:relative;margin-left:auto;width:210px;max-width:calc(100% - 54px);flex:0 1 210px}
.map-top .basemap-control select{-webkit-appearance:none;appearance:none;display:block;width:100%;max-width:none;height:44px;min-height:44px;line-height:normal;margin:0;padding:0 36px 0 13px;border:1px solid #e0e6dc;border-radius:9px;color:#40584b;background:#fff;box-shadow:0 3px 12px #1c372513;cursor:pointer}
.basemap-control>svg{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:18px;height:18px;pointer-events:none;color:#526f63}
.legend-chevron{display:grid;place-items:center}.legend-chevron svg{width:16px;height:16px;display:block}
.location-help{width:450px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;color:#103b38;background:#fff}
.location-help h2{font-size:21px;margin:6px 34px 14px 0}.location-help h3{font-size:14px;margin:20px 0 12px}.location-help p,.location-help li{font-size:13px;line-height:1.8}.location-help ol{padding-left:20px}.location-help li{margin-bottom:12px}.location-help .help{font-size:12px}.location-help .close{width:36px;height:36px;display:grid;place-items:center;padding:0;font-size:25px}.location-help-actions{display:flex;gap:10px;margin-top:20px}.location-help-actions button{width:auto;flex:1;min-height:44px}
@media(max-width:700px){body{height:100vh;height:100dvh;-webkit-text-size-adjust:100%;text-size-adjust:100%}header{padding-top:12px;padding-bottom:12px}.header-right #aboutBtn{display:flex;flex-direction:column;gap:4px;min-width:48px;width:48px;max-width:48px;min-height:48px;padding:3px;font-size:10px;white-space:nowrap}.about-label-desktop{display:none}.about-label-mobile{display:block}#aboutBtn svg{width:19px;height:19px}.basemap-control{width:178px;flex-basis:178px;max-width:calc(100% - 58px)}.map-top .basemap-control select{height:44px;min-height:44px;font-size:14px;line-height:normal;padding:0 30px 0 11px}.tools button,.map-button{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:9px}.location-help{padding:20px 18px}.location-help h2{font-size:19px}.location-help p,.location-help li{font-size:13px}}
