:root{--ink:#27252D;--muted:#6A6671;--brand:#6B4CC5;--brand-hover:#5639AA;--paper:#F7F6F2;--soft:#EEE9F8;--line:#E4E1E7;--white:#fff;--shadow:0 8px 28px #27252d26;color-scheme:light}
*{box-sizing:border-box}[hidden]{display:none!important}html,body{height:100%;margin:0}body{height:100dvh;overflow:hidden;display:flex;flex-direction:column;background:var(--paper);color:var(--ink);font:14px/1.55 "Segoe UI","Microsoft YaHei","PingFang SC",sans-serif}button,input,select{font:inherit}button,a,summary,input[type=checkbox]{cursor:pointer}button,a,input,select{touch-action:manipulation}button{background:#fff;border:1px solid var(--line);border-radius:7px;color:var(--ink);padding:8px 12px;min-height:38px;white-space:nowrap}button:hover:not(:disabled){background:var(--soft);border-color:#c9bce5}button:disabled,select:disabled{opacity:.55;cursor:default}a{color:var(--brand);text-underline-offset:3px}a:hover{color:var(--brand-hover)}:is(button,input,select,a,summary):focus-visible{outline:3px solid var(--brand);outline-offset:3px}input,select{border:1px solid #b7afbf;border-radius:7px;background:#fff;color:var(--ink);min-height:40px;padding:8px 10px;min-width:0}input::placeholder{color:var(--muted)}input[type=checkbox]{accent-color:var(--brand);width:17px;height:17px;min-height:0;margin:0;flex-shrink:0}h1,h2,h3,h4,p{overflow-wrap:anywhere}h1,h2{font-size:19px;line-height:1.35;margin:0}h3{font-size:15px;margin:20px 0 12px}h4{font-size:13px;margin:0 0 7px}p{margin:8px 0}
header{height:54px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:18px}.brand img{width:100px;height:33px;object-fit:contain}.brand>span{padding-left:18px;border-left:1px solid var(--line);font-size:14px}.preview-label{font-size:12px;color:var(--muted)}.toolbar{display:flex;align-items:center;gap:8px;padding:10px 16px 8px;background:#fff;flex-wrap:wrap;flex-shrink:0}.search-field{flex:1 1 230px;max-width:390px;min-width:180px}.search-field input{width:100%;background:var(--paper)}.spatial-select select{font-size:13px;max-width:190px}.toolbar>button{font-size:13px}.toolbar button[aria-expanded=true]{background:var(--soft);border-color:var(--brand);color:var(--brand)}.text-button{color:var(--brand);border-color:transparent;background:transparent}.text-button:hover:not(:disabled){background:var(--soft)}.primary-button{display:inline-flex;justify-content:center;align-items:center;background:var(--brand);color:#fff;border:1px solid var(--brand);border-radius:7px;padding:9px 13px;min-height:38px;text-decoration:none;font-size:13px}.primary-button:hover:not(:disabled){background:var(--brand-hover);border-color:var(--brand-hover);color:#fff}.icon-button{font-size:22px;line-height:1;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border-color:transparent;background:transparent}.condition-bar{display:flex;align-items:center;gap:12px;padding:0 16px 9px;min-height:33px;border-bottom:1px solid var(--line);background:#fff;font-size:12px;flex-shrink:0}#list-count{white-space:nowrap;font-weight:600}#active-chips{display:flex;gap:6px;overflow:auto;min-width:0;max-height:40px}#active-chips:empty{display:none}.chip{display:flex;align-items:center;gap:7px;background:var(--soft);border:0;border-radius:20px;padding:4px 10px;font-size:11px;min-height:28px;color:var(--brand)}.chip>span:last-child{font-size:15px}.muted,.field-note,.region{color:var(--muted);font-size:12px;line-height:1.75}.field-note{margin:6px 0 12px}.region{margin:7px 0 18px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#map-area{position:relative;flex:1;min-height:0;overflow:hidden}#google-map{position:absolute;inset:0;width:100%;height:100%;background:#e8e5ed}#map-empty{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;padding:32px;background:var(--paper);text-align:center;z-index:2}#map-empty strong{font-size:20px}#map-empty p{max-width:480px;color:var(--muted)}.map-status-bar{position:absolute;left:12px;bottom:25px;pointer-events:none;max-width:min(650px,calc(100% - 260px));z-index:1}#map-status{display:block;font-size:11px;line-height:1.5;background:#fffffff0;color:var(--muted);border-radius:5px;padding:5px 8px;max-height:46px;overflow:auto;pointer-events:auto}.selection-summary{position:absolute;left:12px;bottom:90px;max-width:min(500px,calc(100% - 440px));display:flex;align-items:center;gap:9px;padding:12px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:10px;z-index:3}.selection-summary>div{min-width:0}.selection-summary strong{display:block;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.selection-summary>div>span{display:block;color:var(--muted);font-size:11px;margin-bottom:3px}.selection-summary .primary-button,.selection-summary .icon-button{flex-shrink:0}.no-results{position:absolute;z-index:3;top:65px;left:50%;transform:translateX(-50%);width:min(370px,calc(100% - 32px));padding:16px;background:#fff;border-radius:10px;box-shadow:var(--shadow);text-align:center}.no-results p{font-size:12px;color:var(--muted)}.spatial-hint{position:absolute;top:10px;left:50%;transform:translateX(-50%);max-width:50%;padding:6px 10px;border-radius:6px;background:#fff;font-size:12px;color:var(--brand);box-shadow:0 2px 7px #27252d20;z-index:1;pointer-events:none}
.panel{position:absolute;top:12px;right:12px;bottom:35px;width:390px;max-width:calc(100% - 24px);background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);z-index:4;display:flex;flex-direction:column;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line);flex-shrink:0}.panel-heading h1,.panel-heading h2{font-size:17px}.panel-heading h2 span{font-size:12px;color:var(--muted);font-weight:400}.panel-body{padding:16px 20px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1}.panel-footer{display:flex;gap:8px;padding:12px 18px;border-top:1px solid var(--line);background:#fff;flex-shrink:0}.panel-footer .primary-button{flex:1}.filter-section{border:0;border-bottom:1px solid var(--line);padding:0 0 18px;margin:0 0 18px;min-width:0}.filter-section h2,.filter-section legend{font-size:14px;font-weight:650;margin:0 0 12px;padding:0}.filter-section>label{font-size:12px;display:block;margin:12px 0 5px}.filter-section>select{width:100%}.category-option,.subtype-option{display:flex;align-items:center;gap:9px;min-height:36px;font-size:13px;cursor:pointer}.category-swatch{width:10px;height:10px;border-radius:50%;flex-shrink:0}.filter-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.filter-actions button{font-size:12px;min-height:34px;padding:6px 10px}.bounds-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.bounds-inputs label{font-size:12px}.bounds-inputs input{display:block;width:100%;margin-top:5px}.error-note{font-size:12px;color:#A52F35}.error-note:empty{display:none}details{font-size:13px}summary{font-weight:600;min-height:32px;display:list-item}#point-list{display:grid;gap:8px}.point{display:flex;gap:10px;align-items:flex-start;width:100%;border:1px solid var(--line);padding:12px;text-align:left;white-space:normal}.point[aria-current=true]{background:var(--soft);border-color:var(--brand)}.point-number{background:var(--category-color);color:#fff;font-size:11px;line-height:24px;width:24px;min-width:24px;height:24px;text-align:center;border-radius:6px}.point strong{display:block;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.point small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.eyebrow{font-size:11px;letter-spacing:.05em;color:var(--muted);margin:0 0 7px}.detail-panel h2{font-size:21px}.detail-panel section{min-width:0}.detail-panel dl{display:grid;grid-template-columns:64px minmax(0,1fr);gap:9px;font-size:13px;margin:0}.detail-panel dt{color:var(--muted)}.detail-panel dd{margin:0;overflow-wrap:anywhere}#description{font-size:13px;line-height:1.8;margin-top:15px}.capacity-note{font-size:12px;background:var(--paper);padding:10px;border-radius:6px;color:var(--muted)}.coordinate{display:grid;gap:5px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:16px 0;padding:12px 0}.coordinate>span{font-size:11px;color:var(--muted)}.coordinate code{font-size:12px;overflow-wrap:anywhere}.coordinate button{justify-self:start;padding:4px 0;min-height:32px}.detail-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.detail-actions>a{font-size:12px}.navigation{margin:16px 0}.navigation .primary-button{width:100%}.navigation p{font-size:11px;color:var(--muted)}#sources{padding-left:18px;font-size:12px}#sources li{margin:9px 0}#sources a{overflow-wrap:anywhere}.related-info{margin-top:20px;border-top:1px solid var(--line)}.related-block{margin:0 0 18px}.related-block p{font-size:13px;line-height:1.8}.related-block a{font-size:12px;overflow-wrap:anywhere}.related-samples{border-top:1px solid var(--line);padding-top:15px}#related-points{display:grid;gap:8px}.related-point{white-space:normal;text-align:left;width:100%;padding:10px 12px;border-left:3px solid var(--category-color)}.related-point strong{display:block;font-size:12px;overflow-wrap:anywhere}.related-point span,.related-point em{display:block;font-size:11px;font-style:normal;color:var(--muted);margin-top:5px}.related-point em{color:var(--brand)}.assessment{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);font-size:13px}.rating-buttons{display:flex;gap:7px;margin-top:10px}.rating-buttons button{font-size:12px}.rating-buttons button[aria-pressed=true]{background:var(--soft);border-color:var(--brand);color:var(--brand)}.legend-panel{bottom:auto;width:260px}.legend-row{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:13px}.legend-row .category-swatch{width:12px;height:12px}.skip{position:absolute;top:-60px;left:10px;padding:10px;background:#fff;z-index:10}.skip:focus{top:5px}#fatal{position:fixed;bottom:0;left:0;right:0;z-index:8;background:#fff;padding:20px;color:#A52F35}
@media(max-width:1050px){.toolbar{gap:6px;padding:8px 12px}.search-field{max-width:280px;min-width:180px}.toolbar>button{padding:8px 10px}.selection-summary{max-width:calc(100% - 430px)}.map-status-bar{max-width:calc(100% - 425px)}}
@media(max-width:700px){header{height:48px;padding:0 12px}.brand img{width:88px;height:30px}.brand{gap:12px}.brand>span{padding-left:12px;font-size:13px}.preview-label{font-size:10px}.toolbar{gap:6px;padding:8px 10px}.search-field{max-width:none;flex:1 1 100%;min-width:0}.search-field input{height:38px;min-height:38px;font-size:16px}.toolbar>button{font-size:12px;padding:6px 9px;min-height:36px}.spatial-select select{min-height:36px;max-width:152px;font-size:12px;padding:6px 7px}.condition-bar{padding:0 10px 7px;gap:8px;font-size:11px}.panel{top:auto;left:8px;right:8px;bottom:25px;width:auto;max-width:none;max-height:70%;height:70%;border-radius:13px 13px 9px 9px}.panel-heading{padding:10px 14px}.panel-body{padding:12px 16px}.panel-footer{padding:10px 14px}.legend-panel{height:auto;max-height:60%}.selection-summary{left:8px;bottom:78px;max-width:calc(100% - 16px);padding:10px;gap:8px}.selection-summary .primary-button{font-size:12px;padding:7px 9px}.map-status-bar{left:8px;bottom:25px;max-width:calc(100% - 100px)}#map-status{font-size:10px;max-height:40px}.spatial-hint{top:50px;max-width:calc(100% - 24px);width:max-content;font-size:11px}.no-results{top:95px}.detail-panel h2{font-size:19px}.related-block p{font-size:14px}#no-conditions{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* R4: native foldable multi-select groups and browser-local category colors. */
.filter-fold>summary{font-size:13px;font-weight:650;min-height:38px;padding:5px 0;cursor:pointer}
.filter-fold .fold-state{float:right;color:var(--muted);font-size:11px;font-weight:400;margin:2px 0 0 8px}
.filter-fold[open]>.fold-content{padding-top:9px}
.category-swatch{border:1px solid #9d96aa}
.point-number{color:var(--category-ink,#fff)}
/* Keep result numbers and text in fixed left-aligned columns, independent of shared button styles. */
#point-list .point{justify-content:flex-start;text-align:left}
#point-list .point-number{flex:0 0 40px;width:40px;min-width:40px;padding:0 6px;text-align:left;font-variant-numeric:tabular-nums}
#point-list .point>span:last-child{flex:1;min-width:0;text-align:left}
.legend-panel{width:360px;max-height:calc(100% - 47px)}
.legend-row{display:block;border-bottom:1px solid var(--line);padding-bottom:14px;margin:0 0 16px}
.legend-row:last-child{border-bottom:0;padding-bottom:0;margin-bottom:0}
.legend-heading{display:flex;align-items:flex-start;gap:9px}
.legend-heading>.category-swatch{margin-top:5px}
.legend-heading>.category-swatch+div{min-width:0}
.legend-heading .field-note{margin:3px 0 9px;font-size:11px}
.color-controls{display:grid;grid-template-columns:minmax(0,1fr) 60px;gap:10px}
.color-controls label{font-size:11px;color:var(--muted);display:block}
.color-controls select{width:100%;display:block;margin-top:4px;font-size:12px;min-height:36px;padding:6px 8px}
.color-controls input[type=color]{display:block;margin-top:4px;width:60px;height:36px;min-height:36px;padding:3px;cursor:pointer}
#color-status:empty{display:none}
@media(max-width:700px){.legend-panel{width:auto;max-height:70%}.filter-fold>summary{min-height:42px}}

/* R7: bounded result DOM and progressive marker loading. */
.list-pagination{align-items:center;justify-content:space-between;gap:6px;padding:10px 12px}.list-pagination button{font-size:12px;padding:7px 9px}.list-pagination span{font-size:11px;color:var(--muted);text-align:center}.point-number{width:auto;min-width:28px;padding:0 4px}.reference-option{display:flex!important;align-items:center;gap:8px;cursor:pointer}#marker-progress{display:block;background:#fffffff0;border-radius:5px;margin-top:3px;padding:4px 8px;font-size:11px;color:var(--muted)}

.preview-label{max-width:55%;line-height:1.3;text-align:right;overflow-wrap:anywhere}

/* Customer details show core facts first; supporting material stays folded. */
.detail-panel{bottom:auto;max-height:calc(100% - 47px)}
.detail-panel dl{grid-template-columns:76px minmax(0,1fr);gap:14px}
.detail-panel .detail-actions{margin:22px 0 18px}
.detail-panel .detail-actions>a{font-size:13px;text-align:center;width:100%;padding:11px 14px;border-radius:7px;text-decoration:none}
#supporting-details{border-top:1px solid var(--line);padding-top:14px}
#supporting-details>summary{color:var(--muted);font-size:12px;cursor:pointer}
#supporting-details[open]>summary{margin-bottom:14px}
@media(max-width:700px){.detail-panel{top:auto;bottom:25px;height:auto;max-height:70%}}

/* R12: unified default pins, with category colors as an optional mode. */
.color-mode-label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
#color-mode{width:100%;min-height:38px;margin-bottom:16px}
.unified-legend{display:grid;gap:12px;margin-bottom:18px;font-size:13px}
.unified-legend>div{display:flex;align-items:center;gap:10px}
.unified-swatch{width:16px;height:20px;border:1px solid #0f172a;border-radius:9px 9px 9px 0;transform:rotate(-45deg);box-shadow:0 0 0 1px #fff,0 1px 2px #0f172a55;margin:0 4px}
.unified-swatch.normal{background:#58d8ff}.unified-swatch.selected{background:#58d8ff;border-color:#fff;box-shadow:0 0 0 1px #64748b;transform:rotate(-45deg) scale(1.15)}
#category-color-section{margin-top:4px}

/* Customer location status: preserve the selected pin palette and add an amber cue. */
.pending-status-badge{display:inline-flex!important;align-items:center;gap:4px;width:max-content;max-width:100%;padding:2px 7px;border:1px solid #a16207;border-radius:5px;background:#fef3c7;color:#713f12;font-size:11px;line-height:1.5;font-weight:650;white-space:nowrap}.pending-status-badge[hidden]{display:none!important}.point .pending-status-badge,.related-point .pending-status-badge{margin-top:6px}.detail-status{margin:9px 0 0}.selection-summary .pending-status-badge{margin-top:5px}.location-status-legend{display:flex;align-items:flex-start;gap:9px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:15px}.location-status-legend>span:last-child{font-size:12px;color:var(--ink);line-height:1.6}.location-status-legend .pending-status-badge{flex-shrink:0}.pending-marker-badge{position:absolute;top:-2px;right:-7px;z-index:2;display:flex;align-items:center;justify-content:center;width:19px;height:19px;border:1.5px solid #422006;border-radius:50%;background:#facc15;color:#422006;font-size:11px;line-height:1;font-weight:800;box-shadow:0 0 0 1.5px #fff,0 1px 4px #0008;pointer-events:none}.pending-map-marker{overflow:visible!important}#location-status-filter{width:100%;min-height:40px}.related-point .pending-status-badge{font-style:normal}@media(max-width:700px){.location-status-legend{gap:7px}.location-status-legend>span:last-child{font-size:12px}}

#restricted-test-banner{flex-shrink:0;display:flex;justify-content:center;align-items:center;gap:12px;min-height:32px;padding:4px 12px;background:#facc15;color:#422006;border-bottom:1px solid #a16207;font-size:13px;line-height:1.5}#restricted-test-banner strong{font-weight:800}.site-actions{display:flex;gap:14px;align-items:center}.site-actions a{white-space:nowrap}#access-actions{position:absolute;left:50%;top:66%;transform:translateX(-50%);z-index:4;max-width:90%;text-align:center}@media(max-width:700px){.brand>span{display:none}.site-actions{gap:10px}.site-actions button{padding:5px 9px}.pending-status-badge{white-space:normal}.location-status-legend{flex-wrap:wrap}}

/* The map uses the platform shell while keeping its own full-height canvas. */
#shell{flex:0 0 auto;min-width:0}
#shell .site-header{height:auto;min-height:65px;justify-content:flex-start;padding:10px 22px}
#shell .site-tools button{min-height:44px}
#shell .site-header nav{min-width:0}
@media(max-width:1000px){#shell .site-header{gap:8px 12px;padding:8px 12px}#shell .site-header nav{order:3;flex-basis:100%;flex-wrap:nowrap;overflow-x:auto;gap:16px;padding-bottom:2px;scrollbar-width:thin}#shell .site-header nav a{flex:none;white-space:nowrap;min-height:44px}#shell .site-tools{margin-left:auto}}
@media(max-width:480px){#shell .site-brand{gap:7px}#shell .site-tools{gap:6px}#shell .site-tools .account-link{max-width:13ch}#shell .site-header{gap:4px 8px}#shell .site-tools button{padding:8px 10px}}

.guest-map-notice{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 18px;background:#f4f1fa;border-bottom:1px solid #ddd7e8;font-size:14px}.guest-map-notice[hidden]{display:none}.guest-map-notice span{flex:1;min-width:200px}.guest-map-notice a{white-space:nowrap}

.free-mill-quota{flex-basis:100%;margin:0;color:#403365;font-size:13px;line-height:1.5}.free-mill-hint{display:block;margin-top:5px;color:#6954a8;font-size:12px;font-style:normal;font-weight:500;line-height:1.4}
.free-mill-search{background:#fff;padding:10px 18px;border-bottom:1px solid #e4e1ea}.free-mill-search-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.free-mill-search-form label{font-weight:600;font-size:14px}.free-mill-search-form input{flex:1 1 240px;max-width:400px;min-height:44px}.free-mill-search-form button{min-height:44px}.free-mill-search-status{margin:5px 0 0;color:#625a6e;font-size:12px}.free-mill-search-results{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.free-mill-search-results:empty{display:none}.free-mill-search-match{min-height:44px;text-align:left}.free-mill-search-results p{font-size:12px;color:#625a6e}.free-position-note,.free-detail-note{font-size:12px;line-height:1.6;color:#625a6e}.free-detail-note{padding:0 12px}.free-position-note{margin:-10px 0 14px}@media(max-width:700px){.free-mill-search{padding:8px 10px}.free-mill-search-form label{width:100%}.free-mill-search-form input{min-width:0;font-size:16px}.free-mill-search-results{max-height:130px;overflow:auto}}

.map-release-scope{margin:0;padding:8px 18px;background:#f4f1fa;color:#403365;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.map-view-label{font-size:11px;color:var(--muted);margin-left:auto;padding:4px 8px}
