/* DRS globe integration — globe mode inside the map viewport.
   Only active when monitor mode is on and the Cesium engine mounted;
   otherwise the SVG research map stays as the fallback. */
#drs .drs-globe{position:absolute;inset:0;display:none;z-index:1}
#drs.has-globe .drs-globe{display:block}
#drs.has-globe .drs-map-plane,
#drs.has-globe .drs-map-tools{display:none}
#drs .drs-globe .cesium-viewer,
#drs .drs-globe .cesium-widget,
#drs .drs-globe canvas{width:100%;height:100%}
#drs .drs-globe .cesium-widget canvas{display:block;position:absolute;inset:0}
#drs .drs-globe .cesium-viewer-bottom{left:6px;right:auto;bottom:4px}

/* While the globe engine loads, the flat SVG is already hidden: show a calm
   deep-space loading state instead of the old map. Failure restores the SVG. */
#drs.expect-globe .drs-map-plane,
#drs.expect-globe .drs-map-tools{display:none}
#drs .drs-globe-loading{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;font-size:13px;letter-spacing:.08em;color:rgba(228,239,247,.55);pointer-events:none}

/* Embedded globe accepts drag; only the full-screen button intercepts the overlay. */
#drs .drs-globe-veil{position:absolute;inset:0;z-index:3;display:flex;align-items:flex-end;justify-content:center;padding:14px;background:linear-gradient(transparent 55%,rgba(4,10,18,.6));border-radius:inherit;cursor:default;pointer-events:none}
#drs .drs-globe-enter{pointer-events:auto;font:inherit;font-size:15px;padding:10px 22px;border-radius:24px;border:1px solid #d4ba84;background:rgba(7,13,26,.82);color:#d4ba84;cursor:pointer;letter-spacing:.02em}
#drs .drs-globe-enter:hover{background:rgba(212,186,132,.16)}
#drs .drs-globe-exit{position:absolute;top:10px;right:10px;z-index:4;font:inherit;font-size:12.5px;padding:7px 14px;border-radius:20px;border:1px solid rgba(233,237,244,.35);background:rgba(7,13,26,.85);color:#e9edf4;cursor:pointer}
#drs .drs-globe-exit:hover{border-color:#d4ba84;color:#d4ba84}
#drs .drs-globe-hint{position:absolute;top:10px;left:12px;z-index:4;font-size:12px;color:rgba(233,237,244,.8);background:rgba(7,13,26,.6);padding:5px 10px;border-radius:8px;pointer-events:none}

/* While globe control is live, the map panel sits flat so pointer picking
   is exact (no perspective offset), and the workbench sway is paused. */
#drs.globe-live .drs-map-panel{--ry:0deg!important;--rx:0deg!important}
#drs.globe-live .drs-globe canvas{touch-action:none}
#drs.globe-live .drs-globe-veil{display:none}

/* Back-to-global action inside the analyst card */
#drs .monitor-globe-home{font:inherit;font-size:13px;margin-top:10px;padding:8px 16px;border-radius:20px;border:1px solid #d4ba84;background:transparent;color:#d4ba84;cursor:pointer}
#drs .monitor-globe-home:hover{background:rgba(212,186,132,.14)}

/* 深空窗口的暗角与内沿，让画布融进玻璃面板 */
#drs.has-globe .drs-map-viewport::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 90px rgba(2,6,12,.55),inset 0 0 18px rgba(2,6,12,.45)}

/* Point popup: same frosted-glass recipe as the H.OS sheet family */
#drs .drs-globe-pop{--gp:#d4ba84;position:absolute;z-index:6;left:0;top:0;width:256px;transform:translate(-50%,calc(-100% - 16px));border:1px solid rgba(255,255,255,.16);border-radius:18px;background:linear-gradient(158deg,rgba(255,255,255,.12),rgba(255,255,255,.03) 42%,rgba(255,255,255,.06)),rgba(8,13,26,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 26px 60px -24px rgba(0,0,0,.9);backdrop-filter:blur(26px) saturate(150%);-webkit-backdrop-filter:blur(26px) saturate(150%);color:#f6f3ec;padding:14px 16px 15px}
#drs .drs-globe-pop[hidden]{display:none}
#drs .drs-globe-pop.is-below{transform:translate(-50%,20px)}
#drs .drs-globe-pop::after{content:"";position:absolute;left:50%;bottom:-6px;width:10px;height:10px;transform:translateX(-50%) rotate(45deg);background:rgba(14,22,36,.92);border-right:1px solid rgba(255,255,255,.14);border-bottom:1px solid rgba(255,255,255,.14)}
#drs .drs-globe-pop.is-below::after{bottom:auto;top:-6px;transform:translateX(-50%) rotate(225deg)}
#drs .drs-globe-pop .pop-kicker{display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:rgba(212,186,132,.95);margin:0 0 7px}
#drs .drs-globe-pop .pop-kicker i{width:7px;height:7px;border-radius:50%;background:var(--pop-c,#d4ba84);box-shadow:0 0 8px var(--pop-c,#d4ba84);flex:none}
#drs .drs-globe-pop strong{display:block;font-size:16.5px;line-height:1.32;font-weight:600;letter-spacing:-.01em;color:#f6f3ec;margin-bottom:4px}
#drs .drs-globe-pop .pop-meta{display:block;font-size:12px;color:rgba(246,243,236,.6);margin-bottom:12px;line-height:1.5}
#drs .drs-globe-pop .pop-open{display:inline-block;font:inherit;font-size:12.5px;font-weight:600;padding:8px 18px;border-radius:999px;border:0;background:var(--gp);color:#101725;cursor:pointer;transition:filter .18s}
#drs .drs-globe-pop .pop-open:hover{filter:brightness(1.08)}
#drs .drs-globe-pop .pop-close{position:absolute;top:10px;right:10px;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:rgba(246,243,236,.78);font-size:13px;cursor:pointer;line-height:1;transition:color .2s,border-color .2s}
#drs .drs-globe-pop .pop-close:hover{color:#f6f3ec;border-color:rgba(212,186,132,.6)}

/* Full-record dialog: 1:1 recipe from H.OS sheets.css (.hs sheet family) —
   same frosted glass, header bar, gold callout, gold CTA, fine print. */
.monitor-record-dialog{--gp:#d4ba84;--dim:rgba(246,243,236,.86);--faint:rgba(246,243,236,.6);width:min(42rem,calc(100vw - 32px));max-height:min(82vh,46rem);padding:0;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:linear-gradient(158deg,rgba(255,255,255,.12),rgba(255,255,255,.03) 42%,rgba(255,255,255,.06)),rgba(8,13,26,.66);backdrop-filter:blur(26px) saturate(150%);-webkit-backdrop-filter:blur(26px) saturate(150%);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 60px 130px -50px rgba(0,0,0,.95);color:#f6f3ec;overflow:hidden}
.monitor-record-dialog::backdrop{background:rgba(4,7,13,.3);backdrop-filter:blur(1.5px);-webkit-backdrop-filter:blur(1.5px)}
.monitor-record-dialog[open]{animation:recordIn .5s cubic-bezier(.16,1,.3,1)}
@keyframes recordIn{from{opacity:0;transform:translateY(26px) scale(.97)}to{opacity:1;transform:none}}
.monitor-record-dialog .hs-head{display:flex;align-items:center;gap:12px;padding:15px 20px 13px;border-bottom:1px solid rgba(255,255,255,.1)}
.monitor-record-dialog .hs-key{font-size:12px;letter-spacing:.14em;color:rgba(212,186,132,.95);white-space:nowrap}
.monitor-record-dialog .hs-when{margin-left:auto;font-size:11px;color:var(--faint);text-align:right}
.monitor-record-dialog .hs-x{flex:none;appearance:none;cursor:pointer;width:28px;height:28px;border-radius:50%;font-size:17px;line-height:1;color:var(--dim);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);transition:color .2s,border-color .2s}
.monitor-record-dialog .hs-x:hover{color:#f6f3ec;border-color:rgba(212,186,132,.6)}
.monitor-record-dialog .hs-body{overflow-y:auto;padding:16px 20px 18px;scrollbar-width:thin}
.monitor-record-dialog .hs-week{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.monitor-record-dialog .hs-w-l b{display:block;font-size:24px;font-weight:600;letter-spacing:-.01em;line-height:1.25;margin-right:10px;color:#fff}
.monitor-record-dialog .hs-w-l span{font-size:12px;color:var(--faint)}
.monitor-record-dialog .hs-pill{margin-left:auto;font-size:10.5px;font-weight:600;letter-spacing:.08em;color:#101725;background:var(--gp);border-radius:6px;padding:3px 8px;flex:none}
.monitor-record-dialog .hs-brief{display:flex;gap:9px;align-items:flex-start;margin:0 0 12px;font-size:16px;line-height:1.75;color:var(--dim);background:rgba(212,186,132,.09);border:1px solid rgba(212,186,132,.24);border-radius:10px;padding:11px 13px}
.monitor-record-dialog .hs-brief>b{flex:none;font-size:10.5px;font-weight:600;letter-spacing:.08em;color:#101725;background:var(--gp);border-radius:5px;padding:2px 6px;margin-top:2px}
.monitor-record-dialog .hs-block{background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09);border-radius:14px;padding:13px 14px;margin-bottom:12px}
.monitor-record-dialog .hs-block>p{margin:0 0 8px;font-size:13px;line-height:1.8;color:var(--dim)}
.monitor-record-dialog .hs-block>p:last-child{margin-bottom:0}
.monitor-record-dialog .hs-act{background:rgba(6,10,20,.42);border:1px solid rgba(212,186,132,.26);border-radius:13px;padding:11px 12px 12px;margin-bottom:12px}
.monitor-record-dialog .hs-act .note{font-size:11.5px;color:var(--dim);margin:0 0 10px;display:flex;align-items:center;gap:7px}
.monitor-record-dialog .hs-act .note::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--gp);flex:none}
.monitor-record-dialog .hp-btns{display:flex;gap:9px}
.monitor-record-dialog .hp-btn{flex:1;text-align:center;border-radius:999px;padding:11px 12px;font-size:14px;font-weight:600;color:#101725;background:var(--gp);text-decoration:none;transition:filter .18s}
.monitor-record-dialog .hp-btn:hover{filter:brightness(1.08)}
.monitor-record-dialog .hs-fine{font-size:11px;line-height:1.75;color:var(--faint);margin:8px 0 0}
@media(max-width:640px){.monitor-record-dialog{position:fixed;inset:auto 0 0;width:auto;max-height:88vh;margin:0;border-radius:20px 20px 0 0}}
@media(prefers-reduced-motion:reduce){.monitor-record-dialog[open]{animation:none}}

@media (max-width:800px){
  #drs .drs-globe-hint{display:none}
}

#drs .drs-globe-pop .pop-summary{font-size:13px;line-height:1.5;margin:0 0 12px;color:rgba(246,243,236,.85)}
#drs .pop-paging{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 12px;font-size:12px}
#drs .pop-paging button{background:transparent;color:inherit;border:1px solid rgba(255,255,255,.2);border-radius:16px;padding:7px 9px;cursor:pointer}
#drs .pop-paging button:disabled{opacity:.35;cursor:default}

/* Keep the dismiss control independent of inherited pill-button padding. */
#drs .drs-globe-pop .pop-close{box-sizing:border-box;display:grid;place-items:center;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;margin:0;aspect-ratio:1;font:400 18px/1 Arial,sans-serif;text-align:center}
#drs .drs-globe-pop .pop-kicker{padding-right:32px;min-height:24px;line-height:1.4}

/* Readable location library; all records remain reachable inside the viewport. */
#drs .drs-globe-pop{box-sizing:border-box;width:360px;max-width:calc(100% - 16px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#drs .drs-globe-pop.has-news-list{width:400px}
#drs .drs-globe-pop>strong:first-of-type{padding-right:26px}
#drs .drs-globe-pop input[type=search]{box-sizing:border-box;width:100%;margin:12px 0 8px;padding:10px 12px;border:1px solid #ffffff38;border-radius:10px;background:#101b2c;color:#f6f3ec;font:inherit;font-size:14px}
#drs .pop-news-results{max-height:280px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#drs .drs-globe-pop .pop-news-row{display:block;width:100%;padding:12px 4px;border:0;border-bottom:1px solid #ffffff22;border-radius:0;background:transparent;color:#f6f3ec;text-align:left;cursor:pointer;backdrop-filter:none}
#drs .drs-globe-pop .pop-news-row:hover{background:#ffffff12}
#drs .drs-globe-pop .pop-news-row strong{font-size:14px;line-height:1.45;margin:0 0 5px}
#drs .pop-news-row span{font-size:12px;color:#c1cad5}
#drs .drs-globe-pop .pop-back{background:transparent;border:0;border-radius:0;padding:4px 32px 12px 0;color:#d4ba84;font-size:13px;cursor:pointer}
@media(min-width:801px) and (prefers-reduced-motion:no-preference){#drs .drs-map-panel{width:840px}#drs .drs-map-panel>.drs-map-viewport{aspect-ratio:1.95!important}}
@media(max-width:800px){#drs .drs-map-panel>.drs-map-viewport{aspect-ratio:1!important}#drs .pop-news-results{max-height:190px}}

#drs .drs-globe-pop.is-news-index{display:flex;flex-direction:column;height:min(460px,var(--pop-space,460px));overflow:hidden}
#drs .drs-globe-pop.is-news-index>strong,#drs .drs-globe-pop.is-news-index>input,#drs .drs-globe-pop.is-news-index>.pop-meta{flex-shrink:0}
#drs .drs-globe-pop.is-news-index .pop-news-results{min-height:0;max-height:none;flex:1;overflow-y:auto}
