#app-map-surface{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#1c1c1e;background:#f7f5f7;--pink:#e6004c;--future-nav-space:0px;--edge:16px;--base:calc(40px + env(safe-area-inset-bottom) + var(--future-nav-space));--panel:138px}#app-map-surface *{box-sizing:border-box}#app-map-surface button,#app-map-surface input,#app-map-surface select{font:inherit}#app-map-surface button{min-height:44px;border:0;background:#fff;color:inherit;cursor:pointer}#app-map-surface button:disabled{color:#82747b;cursor:default}#app-map-surface button:focus-visible,#app-map-surface input:focus-visible,#app-map-surface select:focus-visible{outline:3px solid #a90038;outline-offset:3px}#app-map-surface svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}#app-map-surface [hidden]{display:none!important}#app-map-surface .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#app-map-surface{height:100vh;height:100dvh;position:relative;overflow:hidden;--tools-bottom:var(--base)}#app-map-surface[data-view=sun]{--tools-bottom:calc(var(--base) + var(--panel) + 14px)}#app-map-surface #m-map{position:absolute;inset:0;background:#e5e9ee}#app-map-surface .float-button{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;box-shadow:0 3px 12px #35202b18}#app-map-surface .float-button[aria-expanded=true]{color:var(--pink)}#app-map-surface .locate{position:absolute;z-index:110;left:var(--edge);bottom:var(--tools-bottom);transition:bottom .18s ease-out}#app-map-surface .float-button[aria-busy=true]{color:var(--pink)}#app-map-surface .layer-anchor{display:flex;align-items:center;gap:10px;position:absolute;right:var(--edge);bottom:var(--tools-bottom);z-index:130;transition:bottom .18s ease-out}#app-map-surface .layer-card{position:absolute;bottom:60px;right:0;width:212px;background:rgba(255,255,255,.9);border-radius:18px;padding:8px 14px;box-shadow:0 3px 16px #35202b18;animation:float-in .16s ease-out}#app-map-surface .view-label{font-size:11px;color:#725b67;margin:8px 0 4px}#app-map-surface .layer-card button{background:transparent;width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:10px 0;gap:12px;font-size:15px;line-height:1.4}#app-map-surface .layer-card small{display:block;font-size:11px;color:#765f6c;margin-top:2px}#app-map-surface .layer-card #m-sun-view{border-top:1px solid #f0e9ed;color:var(--pink);margin-top:5px;padding-top:12px}#app-map-surface .layer-card #m-sun-view[aria-checked=true]{font-weight:700}#app-map-surface .switch{width:35px;height:21px;background:#dfd9dd;border-radius:20px;position:relative;flex-shrink:0}#app-map-surface .switch:after{content:"";width:15px;height:15px;position:absolute;left:3px;top:3px;background:white;border-radius:50%;transition:left .15s}#app-map-surface button[aria-checked=true] .switch{background:var(--pink)}#app-map-surface button[aria-checked=true] .switch:after{left:17px}#app-map-surface #m-layer-status{font-size:11px;color:#765f6c;line-height:1.4;margin:5px 0 8px}#app-map-surface #m-layer-status:empty{display:none}#app-map-surface .context-label{position:absolute;top:calc(14px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);padding:7px 12px;border-radius:12px;background:#fff;color:#53404a;font-size:12px;line-height:1.4;box-shadow:0 2px 10px #35202b10;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;z-index:100}#app-map-surface[data-view=sun] .context-label{left:auto;right:var(--edge);transform:none;max-width:calc(100% - 132px)}#app-map-surface .map-notices{position:absolute;left:50%;top:70px;transform:translateX(-50%);max-width:min(340px,calc(100% - 32px));z-index:105;text-align:center;pointer-events:none}#app-map-surface .map-notices p{font-size:12px;line-height:1.5;background:white;border-radius:12px;padding:7px 11px;margin:0 0 6px;box-shadow:0 2px 9px #35202b10}#app-map-surface .map-notices button{pointer-events:auto;border-radius:12px;padding:0 15px;color:var(--pink)}#app-map-surface[data-view=sun] .map-notices{top:65px;left:124px;right:16px;transform:none;max-width:none}#app-map-surface .angles{position:absolute;top:calc(16px + env(safe-area-inset-top));left:var(--edge);z-index:110;display:grid;gap:10px;animation:float-in .18s ease-out}#app-map-surface .angle-card{background:rgba(255,255,255,.9);border-radius:16px;padding:12px 14px;min-width:94px;box-shadow:0 3px 12px #35202b12}#app-map-surface .angle-card span{display:block;font-size:12px;color:#5c4651;margin-bottom:5px}#app-map-surface .angle-card strong{font-size:23px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}#app-map-surface .sun-panel{position:absolute;left:var(--edge);right:var(--edge);bottom:var(--base);z-index:120;background:rgba(255,255,255,.86);border-radius:22px;padding:12px 14px;max-width:500px;margin:0 auto;box-shadow:0 4px 18px #35202b18;animation:float-in .18s ease-out}#app-map-surface .sun-date-row{display:flex;align-items:center;justify-content:space-between;gap:10px}#app-map-surface .date-arrow{width:44px;height:44px;flex-shrink:0;border-radius:50%;background:var(--pink);color:#fff;display:grid;place-items:center}#app-map-surface .time-label{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;font-variant-numeric:tabular-nums}#app-map-surface .time-label span{font-size:12px;color:#6b5360}#app-map-surface .time-label strong{font-size:22px;font-weight:650;line-height:1.15}#app-map-surface .slider-row{display:flex;align-items:center;gap:12px;margin-top:8px}#app-map-surface .sun-endpoint{display:grid;place-items:center;width:28px;flex-shrink:0}#app-map-surface .sun-endpoint svg{width:27px;height:27px;stroke-width:2}#app-map-surface .rise{color:#ed9400}#app-map-surface .set{color:var(--pink)}#app-map-surface #m-sun-slider{min-width:0;flex:1;width:0;height:44px;margin:0;accent-color:var(--pink);touch-action:pan-y;cursor:pointer}#app-map-surface #m-sun-slider:disabled{cursor:default}#app-map-surface .amap-logo,#app-map-surface .amap-copyright{visibility:visible!important;opacity:1!important}#app-map-surface ::selection{background:#ffd5e3;color:#680025}@keyframes float-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}@media(min-width:769px){#app-map-surface{--edge:24px;--base:calc(42px + env(safe-area-inset-bottom) + var(--future-nav-space))}#app-map-surface .angles{gap:12px}#app-map-surface .angle-card{min-width:108px;padding:15px 18px}#app-map-surface .angle-card strong{font-size:26px}#app-map-surface .sun-panel{padding:14px 20px}#app-map-surface .layer-card{width:220px}#app-map-surface .context-label{font-size:13px}}@media(prefers-reduced-motion:reduce){#app-map-surface *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}#app-map-surface .solar-overlay{position:absolute;inset:0 auto auto 0;width:100%;height:100%;z-index:90;pointer-events:none;overflow:hidden;stroke:none}#app-map-surface .solar-overlay #m-compass-ring{fill:#ffffff12;stroke:#ffffffa6;stroke-width:24}#app-map-surface .solar-overlay #m-compass-ticks{fill:none;stroke:#53404a;stroke-width:2}#app-map-surface .solar-overlay line{stroke-width:4;stroke-linecap:round}#app-map-surface .solar-overlay #m-sunrise-ray{stroke:#5c476b}#app-map-surface .solar-overlay #m-sunset-ray{stroke:#e6004c}#app-map-surface .solar-overlay #m-current-ray{stroke:#f5b400}#app-map-surface .solar-overlay #m-compass-origin{fill:#000;stroke:#fff;stroke-width:2}


#app-map-view{position:relative;height:calc(100vh - var(--app-nav-height));height:calc(100dvh - var(--app-nav-height));padding:0;overflow:hidden}#app-map-surface{width:100%;height:100%;--base:calc(40px + env(safe-area-inset-bottom));--edge:16px;--pink:#e6004c;--panel:138px;--tools-bottom:var(--base);position:relative;overflow:hidden}#app-map-surface[data-view=sun]{--tools-bottom:calc(var(--base) + var(--panel) + 14px)}#app-map-surface #m-map{position:absolute;inset:0;width:100%;height:100%}#app-map-surface .layer-card{max-height:calc(100dvh - var(--app-nav-height) - var(--tools-bottom) - 76px);overflow-y:auto;overscroll-behavior:contain}#app-map-surface .map-search-button{position:absolute;top:calc(52px + env(safe-area-inset-top));right:16px;z-index:110;border-radius:12px;padding:8px 12px;font-size:13px}#app-location-search{background:#fff;padding:16px;margin:0 0 18px;border-radius:16px}#app-location-search [hidden]{display:none!important}#app-location-search .omni{display:flex;flex-wrap:wrap;gap:8px}#app-location-search label{flex:1 1 240px}#app-location-search input{width:100%;min-height:44px}#app-location-search button{min-height:44px}#app-location-search .suggestions{position:static;width:100%;max-height:40dvh;overflow:auto}#app-location-search .suggestions button{display:block;width:100%;text-align:left;padding:10px}#app-location-search p{font-size:13px;color:#655762}#app-search-status{flex-basis:100%}#app-map-surface #m-retry-layers{pointer-events:auto}@media(max-height:550px){#app-map-surface{--base:28px}#app-map-surface .angles{display:flex;gap:6px;top:8px}#app-map-surface .angle-card{padding:7px 10px;min-width:80px}#app-map-surface .angle-card strong{font-size:18px}#app-map-surface .sun-panel{padding:6px 12px;max-width:380px}#app-map-surface .slider-row{margin-top:0}#app-map-surface .layer-card{position:fixed;top:12px;bottom:auto;right:76px;max-height:calc(100dvh - var(--app-nav-height) - 28px);z-index:200}#app-map-surface .context-label{top:8px}#app-map-surface .map-notices{top:54px}}
/* Reuse the sole map as a temporary preselection surface. */
#app-map-surface[data-selecting=true]{height:100%;--base:12px}
#app-map-surface[data-selecting=true] .context-label,#app-map-surface[data-selecting=true] .angles,#app-map-surface[data-selecting=true] .locate,#app-map-surface[data-selecting=true] .layer-anchor,#app-map-surface[data-selecting=true] .sun-panel,#app-map-surface[data-selecting=true] .solar-overlay,#app-map-surface[data-selecting=true] .map-search-button,#app-map-surface[data-selecting=true] #m-overlay-status,#app-map-surface[data-selecting=true] #m-location-status,#app-map-surface[data-selecting=true] #m-empty-status,#app-map-surface[data-selecting=true] #m-sun-status{display:none!important}
#app-map-surface[data-selecting=true] .map-notices{top:12px;left:16px;right:16px;transform:none}

/* Address and solar controls share one measured bottom stack in both layer modes. */
#app-map-surface{--bottom-stack:190px;--tools-bottom:calc(var(--base) + var(--bottom-stack) + 14px)}
#app-map-surface[data-view=sun]{--tools-bottom:calc(var(--base) + var(--bottom-stack) + 14px)}
#app-map-surface .map-bottom{position:absolute;left:var(--edge);right:var(--edge);bottom:var(--base);z-index:120;display:flex;flex-direction:column;gap:8px;max-width:500px;margin:0 auto;pointer-events:none}
#app-map-surface .map-bottom .sun-panel{position:static;width:100%;max-width:none;margin:0;pointer-events:auto}
#app-map-surface .map-address{margin:0;padding:10px 12px;background:rgba(255,255,255,.88);color:#352b31;border-radius:12px;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#app-map-surface .map-notices:has(#m-connect:not([hidden])){pointer-events:auto}
#app-map-surface[data-selecting=true] .map-bottom{display:none}
@media(max-height:550px){#app-map-surface .map-bottom{max-width:480px;gap:6px}#app-map-surface .map-address{padding:6px 10px;-webkit-line-clamp:2}}

#app-map-surface .inspect-card{position:absolute;z-index:180;width:258px;max-width:calc(100% - 16px);padding:10px 20px 12px 12px;background:#fff;border-radius:12px;box-shadow:0 4px 18px #35202b25;overflow-y:auto;color:#352b31}
#app-map-surface .inspect-card header{position:static;display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0;margin:0;background:none;border:0;box-shadow:none;height:auto;color:inherit}
#app-map-surface .inspect-card header p{margin:0;font-size:12px;line-height:1.45;color:#62535c}
#app-map-surface .inspect-card header button{width:44px;min-width:44px;height:44px;padding:10px;border-radius:8px}
#app-map-surface .inspect-card dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 10px;margin:2px 0 0;font-size:13px;line-height:1.5}
#app-map-surface .inspect-card dt{color:#62535c}#app-map-surface .inspect-card dd{margin:0;text-align:right;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#app-map-surface .inspect-card dl dd:first-of-type{font-size:22px;line-height:1.15}
#app-map-surface #m-inspect-status{font-size:13px;line-height:1.5;margin:6px 0 0}#app-map-surface #m-inspect-status:empty{display:none}
#app-map-surface #m-inspect-retry{color:var(--pink);border-radius:8px;padding:0 12px}
#app-map-surface #m-inspect-color{position:absolute;right:7px;top:12px;bottom:12px;width:5px;min-height:28px;border-radius:4px;box-shadow:inset 0 0 0 1px #352b3120}
#app-map-surface[data-selecting=true] .inspect-card{display:none!important}

#app-map-surface .contour-overlay{position:absolute;inset:0;width:100%;height:100%;z-index:50;pointer-events:none;overflow:hidden;stroke:none}
#app-map-surface[data-selecting=true] .contour-overlay{display:none}

#app-map-surface .locate,#app-map-surface .layer-anchor{transition:none}

#app-map-surface .satellite-panel{pointer-events:auto;background:rgba(255,255,255,.88);color:#352b31;border-radius:12px;padding:6px 10px 9px}
#app-map-surface .satellite-modes{display:flex;gap:4px}
#app-map-surface .satellite-modes button{flex:1;min-width:0;min-height:44px;padding:8px 5px;border-radius:8px;font-size:13px;color:#563e4a;background:#f8f2f5}
#app-map-surface .satellite-modes button[aria-pressed=true]{color:#fff;background:#ad003a}
#app-map-surface #m-satellite-status{font-size:12px;line-height:1.5;margin:5px 2px 0;overflow-wrap:anywhere}
#app-map-surface #m-satellite-retry{min-height:44px;padding:8px;color:#ad003a;border-radius:8px}
#app-map-surface .satellite-canvas{pointer-events:none}
#app-map-surface .map-inspection-dot,#app-map-surface .map-weather-dot{display:block;border-radius:50%;box-sizing:border-box}
#app-map-surface .map-inspection-dot{width:22px;height:22px;background:#1976d2;border:3px solid #fff}
#app-map-surface .map-weather-dot{width:16px;height:16px;background:#1c1c1e;border:2px solid #fff}
#app-map-surface[data-satellite=true] .amap-copyright,#app-map-surface[data-satellite=true] .amap-logo{background:#ffffffeb;color:#111;border-radius:2px;padding:1px 3px}
@media(max-height:550px){#app-map-surface .satellite-panel{position:fixed;left:12px;top:78px;width:min(300px,calc(100vw - 100px));z-index:150}}
@media(max-height:550px) and (min-width:600px){#app-map-surface .satellite-panel{left:auto;right:80px;top:12px;width:min(360px,calc(100vw - 300px))}}

#app-map-surface .satellite-modes button{position:relative}
#app-map-surface .satellite-modes button[aria-busy=true]::after{content:"";position:absolute;right:6px;top:6px;width:7px;height:7px;border:1px solid currentColor;border-right-color:transparent;border-radius:50%;animation:app-grade-spin .8s linear infinite}
#app-map-surface .satellite-credit{position:absolute;right:4px;bottom:20px;z-index:100;background:#ffffffeb;color:#111;font-size:11px;line-height:16px;padding:0 3px;pointer-events:none}
#app-map-surface .satellite-error{pointer-events:auto;display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.88);border-radius:12px;padding:6px 10px;color:#352b31}
#app-map-surface .satellite-error p{flex:1;font-size:13px;line-height:1.5;margin:0}
#app-map-surface .satellite-error button{min-height:44px;border-radius:8px;color:#ad003a;padding:8px}
