/* Private Duo presentation; all selectors stay inside the Duo Life shell. */
.dl-header,.dl-tabs,.dl-summaries,.duo-life-handle,.duo-life-launch-dot {display:none;}
html:root.ivy-duo-mode .life-panel.dl-panel {--dl-bg:#f2f2f7;--dl-card:#fff;--dl-text:#1c1c1e;--dl-muted:#75757f;--dl-line:#dedee5;--dl-blue:#007aff;position:fixed!important;inset:0 auto auto 0!important;width:var(--duo-workspace-width,81dvw)!important;height:var(--duo-workspace-height,100dvh)!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:var(--duo-workspace-corners,0 8px 8px 0)!important;padding:0!important;margin:0!important;background:var(--dl-bg)!important;color:var(--dl-text)!important;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-style:normal!important;transform:none;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:hidden!important;isolation:isolate;z-index:12001!important;transition:none!important;}
html:root.ivy-duo-mode.dark-mode .life-panel.dl-panel {--dl-bg:#101114;--dl-card:#1c1c1e;--dl-text:#f5f5f7;--dl-muted:#a2a2ad;--dl-line:#34343a;--dl-blue:#69b6ff;}
html:root.ivy-duo-mode .life-panel.dl-panel:not(.is-open) {display:none!important;}
html:root.ivy-duo-mode .life-panel.dl-panel.is-open {display:block!important;opacity:1!important;pointer-events:auto!important;}
html:root.ivy-duo-mode .dl-panel * {box-sizing:border-box;font-family:inherit;font-style:normal;letter-spacing:normal;text-shadow:none;}
html:root.ivy-duo-mode .dl-panel [hidden] {display:none!important;}
html:root.ivy-duo-mode .dl-panel .life-panel__inner {height:100%;display:flex;flex-direction:column;min-height:0;}
html:root.ivy-duo-mode .dl-panel .dl-header {display:flex;align-items:center;gap:12px;flex:none;padding:max(16px,env(safe-area-inset-top)) 20px 16px;}
html:root.ivy-duo-mode .dl-header h1 {font-size:27px;line-height:1.15;font-weight:700;margin:0;min-width:0;overflow-wrap:anywhere;flex:1;}
html:root.ivy-duo-mode .dl-panel button {font-family:inherit;font-style:normal;cursor:pointer;}
html:root.ivy-duo-mode .dl-panel :is(.dl-back,.dl-done) {background:none;border:0;color:var(--dl-blue);font-size:16px;min-height:44px;padding:0;box-shadow:none;}
html:root.ivy-duo-mode .dl-panel .life-panel__stage {position:relative;flex:1;min-height:0;height:auto!important;border-radius:0;overflow:hidden;background:#17212c;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud {position:absolute!important;inset:auto 12px 14px!important;width:auto!important;max-width:none!important;padding:12px!important;gap:10px!important;border:1px solid var(--dl-line)!important;border-radius:20px!important;background:var(--dl-card)!important;color:var(--dl-text)!important;box-shadow:0 4px 20px #0002!important;backdrop-filter:none!important;transform:none!important;}
html:root.ivy-duo-mode .dl-panel :is(.lp-world-hud__glow,.lp-world-hud__eyebrow,.lp-world-hud__description,.lp-world-hud__footer,.lp-place-search__shortcut,.lp-decrypt) {display:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-headline {font-size:17px!important;line-height:1.3!important;color:var(--dl-text)!important;margin:0!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud__copy {padding:0!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud__command {display:flex!important;flex-direction:column;gap:8px!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-search {width:100%!important;min-width:0!important;border:0!important;border-radius:12px!important;background:var(--dl-bg)!important;box-shadow:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__input {width:100%;min-width:0;height:46px!important;font-size:16px!important;color:var(--dl-text)!important;background:transparent!important;padding-right:40px!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__input::placeholder {color:var(--dl-muted)!important;opacity:1;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__results {background:var(--dl-card)!important;color:var(--dl-text)!important;border:1px solid var(--dl-line)!important;border-radius:16px!important;max-height:min(42dvh,320px)!important;overflow:auto!important;left:0!important;right:0!important;width:auto!important;box-shadow:0 -6px 22px #0002!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-result {color:var(--dl-text)!important;background:transparent!important;min-height:48px;box-shadow:none!important;}
html:root.ivy-duo-mode .dl-panel :is(.lp-place-result__meta,.lp-place-search__empty) {color:var(--dl-muted)!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud__actions {display:flex!important;gap:6px;justify-content:space-between;}
html:root.ivy-duo-mode .dl-panel .lp-hud-action {flex:1;min-width:0!important;min-height:40px!important;height:auto!important;padding:8px!important;border:0!important;border-radius:10px!important;background:var(--dl-bg)!important;color:var(--dl-blue)!important;box-shadow:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-hud-action b {display:inline;font-size:12px;}
html:root.ivy-duo-mode .dl-panel .lp-zoom-controls {top:12px!important;bottom:auto!important;right:12px!important;}
html:root.ivy-duo-mode .dl-panel .lp-life-view {flex:1;min-height:0;overflow:hidden;padding:0!important;background:transparent!important;}
html:root.ivy-duo-mode .dl-panel .lp-life-head {padding:0 20px 12px!important;flex:none;background:none!important;border:0!important;}
html:root.ivy-duo-mode .dl-panel .lp-life-detail-close {display:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-life-crumbs {font-size:11px!important;}
html:root.ivy-duo-mode .dl-panel .lp-crumb {color:var(--dl-blue)!important;font-size:12px!important;}
html:root.ivy-duo-mode .dl-panel .lp-asof {color:var(--dl-muted)!important;font-size:11px!important;line-height:1.5!important;}
html:root.ivy-duo-mode .dl-panel .lp-life-scroll {flex:1;min-height:0;overflow:auto;padding:0 16px 20px!important;}
html:root.ivy-duo-mode .dl-panel .dl-summaries {display:grid;gap:12px;}
html:root.ivy-duo-mode .dl-panel .dl-summary {display:grid;grid-template-columns:1fr 14px;text-align:left;gap:8px;background:var(--dl-card);color:var(--dl-text);border:0;border-radius:20px;padding:18px;min-width:0;box-shadow:none;}
html:root.ivy-duo-mode .dl-summary-title {font-size:14px;font-weight:500;}
html:root.ivy-duo-mode .dl-summary-value {font-size:26px;line-height:1.2;grid-column:1;overflow-wrap:anywhere;}
html:root.ivy-duo-mode .dl-summary-quality {font-size:11px;color:var(--dl-muted);grid-column:1;}
html:root.ivy-duo-mode .dl-chevron {grid-column:2;grid-row:1/4;align-self:center;font-size:24px;color:var(--dl-muted);}
html:root.ivy-duo-mode .dl-panel:not(.dl-show-detail) .lp-life-grid {display:none!important;}
html:root.ivy-duo-mode .dl-panel.dl-show-detail :is(.dl-summaries,.lp-life-head) {display:none!important;}
html:root.ivy-duo-mode .dl-panel.dl-show-detail .lp-life-grid {display:block!important;padding:0;}
html:root.ivy-duo-mode .dl-panel.dl-show-detail .lp-card:not(.dl-current-card) {display:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-card {background:var(--dl-card)!important;color:var(--dl-text)!important;padding:18px!important;border:0!important;border-radius:20px!important;box-shadow:none!important;backdrop-filter:none!important;animation:none!important;opacity:1!important;transform:none!important;min-width:0!important;}
html:root.ivy-duo-mode .dl-panel :is(.lp-card__label,.lp-house-head,.lp-bracket,.lp-evidence,.lp-ins-card,.lp-ins-card__name) {color:var(--dl-text)!important;}
html:root.ivy-duo-mode .dl-panel .lp-card__label {font-size:15px!important;letter-spacing:normal!important;flex-wrap:wrap;gap:8px;}
html:root.ivy-duo-mode .dl-panel .lp-card__value {font-size:30px!important;color:var(--dl-text)!important;overflow-wrap:anywhere;}
html:root.ivy-duo-mode .dl-panel :is(.lp-card__sub,.lp-card__note,.lp-card__unit,.lp-ins-card__desc) {color:var(--dl-muted)!important;font-size:12px!important;line-height:1.5;}
html:root.ivy-duo-mode .dl-panel :is(.lp-tag,.lp-estimate-action,.lp-life-refresh,.lp-ins-filter,.lp-ins-ask,.lp-ins-link) {background:var(--dl-bg)!important;color:var(--dl-blue)!important;border:0!important;box-shadow:none!important;border-radius:10px;}
html:root.ivy-duo-mode .dl-panel :is(.lp-house-head,.lp-ins-card) {background:transparent!important;box-shadow:none!important;border-color:var(--dl-line)!important;}
html:root.ivy-duo-mode .dl-panel .lp-price-spectrum {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
html:root.ivy-duo-mode .dl-panel .lp-price-point {color:var(--dl-text)!important;}
/* Legacy detail cards share the Duo palette; their children must not retain white-only text.
   Dark map overlays and the separate research browser keep their own dark surfaces. */
html:root.ivy-duo-mode .dl-panel :is(.lp-price-point b,.lp-range__row b,.lp-bracket span:last-child,.lp-ins-pill,.lp-house-range,.lp-evidence__title,.lp-asof b) {color:var(--dl-text)!important;}
html:root.ivy-duo-mode .dl-panel :is(.lp-price-point small,.lp-range__row,.lp-ins-card__blurb,.lp-ins-card__meta,.lp-house-hint,.lp-house-legend,.lp-evidence__domain,.lp-evidence__stamp,.lp-global-evidence__query,.lp-global-evidence__query small,.lp-research-card__sources) {color:var(--dl-muted)!important;}
html:root.ivy-duo-mode .dl-panel :is(.lp-evidence summary:hover,.lp-global-evidence summary:hover,.lp-global-evidence__query-status,.lp-update-card__foot b) {color:var(--dl-blue)!important;}
html:root.ivy-duo-mode .dl-panel :is(.lp-price-spectrum,.lp-evidence,.lp-evidence__source,.lp-global-evidence__query,.lp-research-card__footer) {border-color:var(--dl-line)!important;}
html:root.ivy-duo-mode .dl-panel :is(.lp-price-point,.lp-price-point.is-median,.lp-house-badge,.lp-update-card__badges span,.lp-ins-tab,.lp-research-skip) {background:var(--dl-bg)!important;border-color:var(--dl-line)!important;color:var(--dl-text)!important;}
html:root.ivy-duo-mode .dl-panel .lp-ins-tab.is-active {color:var(--dl-blue)!important;border-color:var(--dl-blue)!important;}
html:root.ivy-duo-mode .dl-panel .lp-ins-pick {color:var(--dl-muted);border-color:var(--dl-muted);}
html:root.ivy-duo-mode .dl-panel .lp-ins-grid {grid-template-columns:1fr!important;}
html:root.ivy-duo-mode .dl-panel .lp-updates {overflow:auto;padding:0 16px 20px!important;}
html:root.ivy-duo-mode .dl-panel .lp-updates__head {padding:0 0 14px;}
html:root.ivy-duo-mode .dl-panel .lp-updates__head>div {display:none;}
html:root.ivy-duo-mode .dl-panel .lp-updates__new {background:var(--dl-card)!important;border:0!important;color:var(--dl-blue)!important;border-radius:14px;padding:12px 16px;min-height:44px;}
html:root.ivy-duo-mode .dl-panel .lp-updates__grid {display:grid;grid-template-columns:1fr!important;gap:12px;}
html:root.ivy-duo-mode .dl-panel :is(.lp-update-card,.lp-updates__empty) {background:var(--dl-card)!important;color:var(--dl-text)!important;border:0!important;border-radius:20px!important;padding:18px!important;box-shadow:none!important;}
html:root.ivy-duo-mode .dl-panel :is(.lp-update-card__place strong,.lp-updates__empty strong) {color:var(--dl-text)!important;font-size:18px;}
html:root.ivy-duo-mode .dl-panel :is(.lp-update-card__place span,.lp-update-card time,.lp-updates__empty span) {color:var(--dl-muted)!important;}
html:root.ivy-duo-mode .dl-panel .lp-update-card__badges {gap:6px;}
html:root.ivy-duo-mode .dl-panel .lp-update-card__foot {color:var(--dl-blue)!important;}
html:root.ivy-duo-mode .dl-panel .lp-life-loading {background:var(--dl-bg)!important;padding:16px!important;}
html:root.ivy-duo-mode .dl-panel .lp-research-card {background:var(--dl-card)!important;border:0!important;color:var(--dl-text)!important;border-radius:22px;box-shadow:none!important;padding:20px!important;}
html:root.ivy-duo-mode .dl-panel .lp-research-card__title {font-size:25px!important;color:var(--dl-text)!important;}
html:root.ivy-duo-mode .dl-panel .lp-research-card__message {color:var(--dl-muted)!important;font-size:14px!important;}
html:root.ivy-duo-mode .dl-panel :is(.lp-research-orbit,.lp-research-card__note,.lp-research-card__eyebrow,.lp-research-stages) {display:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-research-card__close {color:var(--dl-blue)!important;background:var(--dl-bg)!important;}
html:root.ivy-duo-mode .dl-panel .dl-tabs {display:flex;flex:none;gap:8px;padding:10px 16px 42px;border-top:1px solid var(--dl-line);background:var(--dl-bg);}
html:root.ivy-duo-mode .dl-tabs button {flex:1;min-width:0;min-height:50px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:0;background:none;color:var(--dl-muted);font-size:11px;padding:5px;border-radius:999px;}
html:root.ivy-duo-mode .dl-tabs svg {width:22px;height:22px;}
html:root.ivy-duo-mode .duo-life-handle:not([hidden]) {display:flex;position:absolute;left:calc(50% - 60px);bottom:1px;width:120px;height:44px;align-items:center;justify-content:center;border:0;background:none;box-shadow:none;z-index:20;touch-action:none;}
.duo-life-handle span {width:80px;height:5px;border-radius:10px;background:#8e8e9377;}
html:root.ivy-duo-mode .duo-life-launch-dot.is-active {display:block;position:fixed;z-index:12009;width:20px;height:20px;background:#8e8e93;border-radius:50%;pointer-events:none;}
html:root.ivy-duo-mode .dl-panel.duo-settings-revealing {will-change:translate,scale;}
html:root.ivy-duo-mode .dl-panel.duo-settings-dragging {translate:var(--duo-drag-x,0px) var(--duo-drag-y,0px)!important;scale:var(--duo-drag-scale,1)!important;transform-origin:center!important;}
html:root.ivy-duo-mode .dl-panel.duo-settings-collapsing {clip-path:inset(0 round var(--duo-close-round,32px));pointer-events:none!important;}
html:root.ivy-duo-mode .dl-panel.dt-compositor-motion {transform:translate3d(0,0,0) scale(1);transform-origin:center;}
html:root.ivy-duo-mode .dl-panel.dt-compositor-motion.is-open {will-change:transform;}
html:root.ivy-duo-mode .dl-panel.dt-compositor-motion.duo-settings-dragging {translate:none!important;scale:none!important;}
html:root.ivy-duo-mode .dl-panel.dt-compositor-motion.duo-settings-collapsing {clip-path:none;}
html:root.ivy-duo-mode .dl-panel .lp-life-view {position:relative!important;inset:auto!important;width:100%!important;height:auto!important;display:none!important;}
html:root.ivy-duo-mode .dl-panel[data-view=life] .lp-life-view {display:flex!important;flex-direction:column;opacity:1;pointer-events:auto;}
html:root.ivy-duo-mode .dl-panel[data-view=life] .life-panel__stage {display:none!important;}
html:root.ivy-duo-mode .dl-panel .dl-header {position:relative;z-index:2;}
html:root.ivy-duo-mode .dl-panel .lp-life-head {position:relative!important;inset:auto!important;}
html:root.ivy-duo-mode .dl-panel .lp-life-crumbs {display:none!important;}
html:root.ivy-duo-mode .dl-summary-note {grid-column:1;font-size:11px;line-height:1.4;color:var(--dl-muted);}

html:root.ivy-duo-mode .dl-panel .lp-world-hud .lp-hud-action b {display:inline!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud .lp-world-hud__actions {width:100%;justify-content:space-between;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud .lp-hud-action {width:auto!important;gap:5px;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__icon {color:var(--dl-muted)!important;opacity:1;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__clear {color:var(--dl-muted)!important;background:transparent!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud .lp-hud-action b {position:static!important;opacity:1!important;transform:none!important;color:var(--dl-blue)!important;font-size:13px!important;line-height:1.2;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud .lp-hud-action>span {display:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-clabel {font:600 9px/1 -apple-system,sans-serif!important;letter-spacing:0!important;paint-order:stroke;stroke:#17212c;stroke-width:2px;filter:none!important;animation:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-rlabel {font-size:10px!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__icon {filter:none!important;}

/* Analytical overview: related values share a group, deeper tools retain their original controls. */
html:root.ivy-duo-mode .dl-panel .dl-summaries {gap:24px;padding-top:6px;}
html:root.ivy-duo-mode .dl-city-intro {padding:4px 4px 0;}
html:root.ivy-duo-mode .dl-eyebrow {font-size:10px;font-weight:700;letter-spacing:1.5px;color:var(--dl-muted);}
html:root.ivy-duo-mode .dl-city-intro h2 {font-size:30px;letter-spacing:-1px;line-height:1.15;margin:7px 0;}
html:root.ivy-duo-mode .dl-city-intro p {font-size:13px;line-height:1.5;margin:0;color:var(--dl-muted);}
html:root.ivy-duo-mode .dl-analysis-section>h2 {font-size:18px;margin:0 4px 10px;font-weight:650;}
html:root.ivy-duo-mode .dl-analysis-group {background:var(--dl-card);border-radius:18px;overflow:hidden;}
html:root.ivy-duo-mode .dl-panel .dl-summary {width:100%;border-radius:0;gap:6px;grid-template-columns:minmax(0,1fr) auto;padding:18px;text-align:left;background:transparent;}
html:root.ivy-duo-mode .dl-panel .dl-summary+.dl-summary {border-top:1px solid var(--dl-line);}
html:root.ivy-duo-mode .dl-panel .dl-summary-title {font-size:14px;color:var(--dl-muted);grid-column:1;grid-row:1;}
html:root.ivy-duo-mode .dl-panel .dl-summary-quality {grid-column:2;grid-row:1;align-self:start;font-size:10px;padding:3px 6px;border-radius:6px;background:var(--dl-bg);max-width:90px;}
html:root.ivy-duo-mode .dl-panel .dl-summary-value {grid-column:1/-1;font-size:25px;letter-spacing:-.6px;font-weight:650;}
html:root.ivy-duo-mode .dl-summary-context {grid-column:1/-1;display:grid;gap:6px;font-size:13px;line-height:1.5;margin:2px 0 5px;}
html:root.ivy-duo-mode .dl-summary-context small {font-size:11px;color:var(--dl-muted);font-weight:400;}
html:root.ivy-duo-mode .dl-summary-link {grid-column:1/-1;color:var(--dl-blue);font-size:12px;font-weight:500;margin-top:4px;}
html:root.ivy-duo-mode .dl-tax-track {display:block;width:100%;height:7px;border-radius:9px;background:var(--dl-bg);overflow:hidden;margin:6px 0;}
html:root.ivy-duo-mode .dl-tax-track i {display:block;height:100%;border-radius:9px;background:#8a80d9;}
html:root.ivy-duo-mode .dl-home-range {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0;}
html:root.ivy-duo-mode .dl-home-range>span {display:grid;gap:2px;min-width:0;}
html:root.ivy-duo-mode .dl-home-range>span:nth-child(3) {display:none;}
html:root.ivy-duo-mode .dl-home-range b {font-size:14px;font-weight:600;overflow-wrap:anywhere;}
html:root.ivy-duo-mode .dl-panel .lp-life-head {padding:0 20px 10px!important;}
html:root.ivy-duo-mode .dl-panel .lp-global-evidence {color:var(--dl-muted);font-size:11px;}
html:root.ivy-duo-mode .dl-panel .lp-global-evidence__source {color:var(--dl-text);background:var(--dl-card);border-color:var(--dl-line);}
html:root.ivy-duo-mode .dl-panel .lp-global-evidence__source small {color:var(--dl-muted);}
/* Keep the map separate from its controls so neither overlaps the other. */
html:root.ivy-duo-mode .dl-panel .life-panel__stage {display:flex;flex-direction:column;background:var(--dl-bg);}
html:root.ivy-duo-mode .dl-panel .lp-svg {position:absolute!important;inset:0 0 184px!important;width:100%;height:calc(100% - 184px)!important;background:#182632;border-radius:18px;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud {inset:auto 12px 12px!important;box-shadow:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud__description {display:block!important;color:var(--dl-muted)!important;font-size:12px!important;line-height:1.4;margin:5px 0 0!important;}
/* Legacy glows and backdrop filters force repeated painting of the entire SVG. */
html:root.ivy-duo-mode .dl-panel :is(.life-panel__stage,.lp-life-view) *,
html:root.ivy-duo-mode .dl-panel :is(.life-panel__stage,.lp-life-view) *::before,
html:root.ivy-duo-mode .dl-panel :is(.life-panel__stage,.lp-life-view) *::after {backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;}
html:root.ivy-duo-mode .dl-panel :is(.lp-clabel,.lp-city-dot,.lp-world-hud__copy,.lp-world-hud__signal,.lp-card,.lp-update-card) {animation:none!important;}
html:root.ivy-duo-mode .dl-panel :is(.duo-settings-revealing,.duo-settings-dragging) {transition:none!important;}
html:root.ivy-duo-mode .dl-panel:is(.duo-settings-revealing,.duo-settings-dragging,.duo-settings-collapsing) *,
html:root.ivy-duo-mode .dl-panel:is(.duo-settings-revealing,.duo-settings-dragging,.duo-settings-collapsing) *::before,
html:root.ivy-duo-mode .dl-panel:is(.duo-settings-revealing,.duo-settings-dragging,.duo-settings-collapsing) *::after {animation-play-state:paused!important;transition:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-country {fill:#314c5c;stroke:#66808e;stroke-width:.5px;}
html:root.ivy-duo-mode .dl-panel .lp-cont-group.is-lit .lp-country {fill:#486e80;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__icon {stroke:var(--dl-muted)!important;}
html:root.ivy-duo-mode .dl-panel .lp-zoom-controls {background:#213541!important;border:1px solid #66808e66;border-radius:12px;box-shadow:none;}
html:root.ivy-duo-mode .dl-panel .lp-zoom-btn {color:#e8f0f5!important;}

/* Move the optic on its own compositor layer; left/top animation relayouts
   the map's containing flex tree on every frame when Explore is revealed. */
html:root.ivy-duo-mode .dl-panel .dl-tabs.duo-lens-nav::before {
 left:0;top:0;
 translate:var(--tab-lens-x,0px) var(--tab-lens-y,0px);
 will-change:translate,transform;
 transition:translate .55s cubic-bezier(.34,1.3,.5,1)!important;
}
html:root.ivy-duo-mode .dl-panel .dl-tabs.duo-lens-nav.lens-instant::before {transition:none!important;}
@media(prefers-reduced-motion:reduce){html:root.ivy-duo-mode .dl-panel .dl-tabs.duo-lens-nav::before {transition:none!important;}}
/* Keep the atlas mounted at its real size behind Saved. Switching tabs must
   not reconstruct the SVG's layout and raster at the start of the lens slide. */
html:root.ivy-duo-mode .dl-panel .life-panel__inner {display:grid;grid-template-rows:auto minmax(0,1fr) auto;}
html:root.ivy-duo-mode .dl-panel .dl-header {grid-row:1;grid-column:1;}
html:root.ivy-duo-mode .dl-panel .dl-tabs {grid-row:3;grid-column:1;}
html:root.ivy-duo-mode .dl-panel .life-panel__stage {grid-row:2;grid-column:1;display:flex!important;transform:translateZ(0);}
html:root.ivy-duo-mode .dl-panel[data-view=life] .life-panel__stage {display:flex!important;opacity:0;pointer-events:none;visibility:hidden;content-visibility:hidden;}
html:root.ivy-duo-mode .dl-panel .lp-life-view {grid-row:2;grid-column:1;background:var(--dl-bg)!important;}

/* Explore: floating glass controls over a single, uninterrupted atlas. */
html:root.ivy-duo-mode .dl-panel .life-panel__stage {--dl-glass:linear-gradient(145deg,#fffffff5,#edf2f7ed);--dl-glass-edge:#ffffff;--dl-map:#dce7ef;--dl-land:#b1c8d7;--dl-coast:#7e9cac;border-radius:24px;overflow:hidden;background:var(--dl-map);}
html:root.ivy-duo-mode.dark-mode .dl-panel .life-panel__stage {--dl-glass:linear-gradient(145deg,#465564f5,#263441f2);--dl-glass-edge:#a4bed24d;--dl-map:#15232e;--dl-land:#35576a;--dl-coast:#7195aa;}
html:root.ivy-duo-mode .dl-panel .lp-svg {inset:0!important;height:100%!important;border-radius:24px;background:radial-gradient(ellipse at 30% 20%,#9dc2db26,transparent 70%),var(--dl-map);}
html:root.ivy-duo-mode .dl-panel .lp-country {fill:var(--dl-land);stroke:var(--dl-coast);stroke-width:.6px;}
html:root.ivy-duo-mode .dl-panel .lp-cont-group.is-lit .lp-country {fill:#649cb7;}
html:root.ivy-duo-mode .dl-panel .lp-clabel {fill:var(--dl-text)!important;stroke:var(--dl-map)!important;stroke-width:3px!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud {inset:0!important;padding:0!important;display:block!important;min-height:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;pointer-events:none;transition:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud::before {display:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud__command {display:contents!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-search {position:absolute!important;top:14px;left:14px;right:14px;width:auto!important;pointer-events:auto;min-height:50px!important;border-radius:18px!important;background:var(--dl-glass)!important;border:1px solid var(--dl-glass-edge)!important;box-shadow:inset 0 1px 0 #ffffff40,0 3px 10px #00000012!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__input {height:50px!important;padding-left:42px!important;font-size:15px!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__results {top:calc(100% + 8px)!important;bottom:auto!important;max-height:min(45dvh,340px)!important;transform-origin:top center;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud__copy {position:absolute;left:14px;right:14px;bottom:76px;padding:16px!important;border:1px solid var(--dl-glass-edge);border-radius:20px;background:var(--dl-glass);box-shadow:inset 0 1px 0 #ffffff30,0 3px 10px #00000010;pointer-events:auto;}
html:root.ivy-duo-mode .dl-panel .lp-headline {font-size:17px!important;font-weight:650;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud__description {font-size:12px!important;line-height:1.45!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud .lp-world-hud__actions {position:absolute;bottom:14px;left:14px;right:14px;width:auto!important;gap:8px;pointer-events:auto;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud .lp-hud-action {min-height:46px!important;border-radius:16px!important;background:var(--dl-glass)!important;border:1px solid var(--dl-glass-edge)!important;box-shadow:inset 0 1px 0 #ffffff30!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud [data-lp-hud-fit] {display:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud .lp-hud-action b {font-size:13px!important;font-weight:600;}
html:root.ivy-duo-mode .dl-panel .lp-zoom-controls {top:80px!important;right:14px!important;display:flex;flex-direction:column;gap:0;padding:2px;background:var(--dl-glass)!important;border:1px solid var(--dl-glass-edge)!important;border-radius:16px;box-shadow:inset 0 1px 0 #ffffff30,0 3px 10px #00000012;}
html:root.ivy-duo-mode .dl-panel .lp-zoom-btn {width:40px;min-width:40px;height:40px;min-height:40px;color:var(--dl-text)!important;border:0!important;border-radius:12px;background:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-crumbs {display:flex;flex-wrap:wrap;gap:4px;margin-top:8px;}
html:root.ivy-duo-mode .dl-panel .lp-crumb {background:transparent!important;border:0!important;font-size:11px!important;padding:2px!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__icon {border-color:var(--dl-muted)!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__icon::after {background:var(--dl-muted)!important;}

/* Base frost; the shared Clear glass stylesheet adds bounded edge optics.
   The atlas itself is never duplicated for refraction. */
html:root.ivy-duo-mode .life-panel.dl-panel .life-panel__stage :is(.lp-place-search,.lp-world-hud__copy,.lp-hud-action,.lp-zoom-controls) {
 isolation:isolate;overflow:visible;transition:none!important;
 background:linear-gradient(145deg,#ffffff45,#ffffff14)!important;
 border:1px solid #ffffffa6!important;
 box-shadow:inset 0 1px 1px #ffffffb3,inset 0 -1px 2px #ffffff33,0 3px 12px #14233314!important;
 backdrop-filter:blur(3px)!important;-webkit-backdrop-filter:blur(3px)!important;
}
html:root.ivy-duo-mode.dark-mode .life-panel.dl-panel .life-panel__stage :is(.lp-place-search,.lp-world-hud__copy,.lp-hud-action,.lp-zoom-controls) {
 background:linear-gradient(145deg,#ffffff19,#15232e38)!important;border-color:#d7edff66!important;
 box-shadow:inset 0 1px 1px #ffffff59,inset 0 -1px 2px #ffffff14,0 3px 12px #0000001f!important;
}
html:root.ivy-duo-mode .dl-panel .lp-world-hud__description {color:var(--dl-text)!important;opacity:.8;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__input::placeholder {color:var(--dl-text)!important;opacity:.75;}
/* Inactive loaders must not keep invisible spinners and research effects alive. */
html:root.ivy-duo-mode .dl-panel :is(.lp-loading,.lp-life-loading):not(.is-on) {display:none!important;}
html:root.ivy-duo-mode .dl-panel[data-view=life] .life-panel__stage *,
html:root.ivy-duo-mode .dl-panel[data-view=life] .life-panel__stage *::before,
html:root.ivy-duo-mode .dl-panel[data-view=life] .life-panel__stage *::after {animation-play-state:paused!important;}
/* Complete Explore surface is prepared at rest, then swapped as one layer. */
.dl-surface-snapshot {display:block;opacity:0;will-change:opacity;pointer-events:none;position:absolute;z-index:25;}
html:root.ivy-duo-mode .dl-panel.dl-surface-frozen .life-panel__stage {opacity:0!important;pointer-events:none!important;}
html:root.ivy-duo-mode .dl-panel.dl-surface-frozen .dl-surface-snapshot {opacity:1;}

/* Quiet atlas styling: edge-to-edge map, understated boundaries and readable labels. */
html:root.ivy-duo-mode .dl-panel .dl-header[hidden] {display:none!important;}
html:root.ivy-duo-mode .dl-panel .life-panel__stage {--dl-map:#e3edf2;--dl-land:#f5f4ee;--dl-coast:#c2cdd0;--dl-map-highlight:#d4e2d8;border-radius:0;}
html:root.ivy-duo-mode.dark-mode .dl-panel .life-panel__stage {--dl-map:#19232d;--dl-land:#303b40;--dl-coast:#4a575c;--dl-map-highlight:#465b53;}
html:root.ivy-duo-mode .dl-panel .lp-svg {border-radius:0;background:var(--dl-map)!important;}
html:root.ivy-duo-mode .dl-panel .lp-country {stroke-width:.4px;}
html:root.ivy-duo-mode .dl-panel .lp-cont-group.is-lit .lp-country {fill:var(--dl-map-highlight);fill-opacity:1;stroke:var(--dl-coast);stroke-opacity:1;}
html:root.ivy-duo-mode .dl-panel .lp-clabel {font-weight:500!important;text-transform:none;stroke-width:2px!important;fill:var(--dl-text)!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-search {top:max(14px,env(safe-area-inset-top));}
html:root.ivy-duo-mode .dl-panel .lp-zoom-controls {top:calc(max(14px,env(safe-area-inset-top)) + 66px)!important;}

/* System typography and restrained control detailing. */
html:root.ivy-duo-mode .dl-panel :is(button,input,textarea,select,.dl-tabs span) {font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif!important;}
html:root.ivy-duo-mode .dl-panel .dl-tabs button {font-size:11px;font-weight:400;line-height:1.25;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__input {text-overflow:ellipsis;font-weight:400!important;box-shadow:none!important;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__input::placeholder {font-weight:400;}
html:root.ivy-duo-mode .dl-panel .lp-world-hud .lp-place-search__icon {width:22px;height:22px;left:14px;top:50%;transform:translateY(-50%);border:0!important;border-radius:0;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__icon::after {display:none;}
html:root.ivy-duo-mode .dl-panel .lp-place-search__icon svg {display:block;width:100%;height:100%;}
html:root.ivy-duo-mode .life-panel.dl-panel .life-panel__stage :is(.lp-place-search,.lp-world-hud__copy,.lp-hud-action,.lp-zoom-controls) {box-shadow:inset 0 1px 1px #ffffff40,0 1px 3px #00000008!important;}
html:root.ivy-duo-mode .dl-panel .lp-zoom-btn--fit {display:grid;place-items:center;}
@media (pointer:coarse) {
 html:root.ivy-duo-mode .life-panel.dl-panel .life-panel__stage .lp-zoom-controls {width:48px;height:48px;padding:1px;border-radius:50%;}
 html:root.ivy-duo-mode .dl-panel .lp-zoom-btn:not(.lp-zoom-btn--fit) {display:none;}
 html:root.ivy-duo-mode .dl-panel .lp-zoom-btn--fit {width:44px;height:44px;border-radius:50%;}
}

/* Bottom categories share horizontal motion; no competing legacy crossfade. */
html:root.ivy-duo-mode .dl-panel :is(.life-panel__stage,.lp-life-view) {transition:none!important;animation:none!important;}

/* Research metadata is a separate Settings-style destination. Provider search
   markup stays intact inside its own horizontally scrollable viewport. */
.dl-research-details {display:none;}
html:root.ivy-duo-mode .dl-panel .dl-research-option {display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:62px;padding:14px 16px;margin:4px 0 0;border:0;border-radius:14px;background:var(--dl-card);color:var(--dl-text);box-shadow:none;text-align:left;}
html:root.ivy-duo-mode .dl-panel .dl-research-option-copy {display:grid;gap:4px;font-size:16px;font-weight:400;line-height:1.3;}
html:root.ivy-duo-mode .dl-panel .dl-research-option-copy small {font-size:12px;color:var(--dl-muted);}
html:root.ivy-duo-mode .dl-panel .dl-research-option-chevron {font-size:24px;font-weight:400;color:var(--dl-muted);}
html:root.ivy-duo-mode .dl-panel .dl-research-option:active {background:var(--dl-line);}
html:root.ivy-duo-mode .dl-panel .dl-research-option:focus-visible {outline:2px solid var(--dl-blue);outline-offset:3px;}
html:root.ivy-duo-mode .dl-panel.dl-show-research-details :is(.dl-summaries,.lp-life-head,.lp-life-grid) {display:none!important;}
html:root.ivy-duo-mode .dl-panel .dl-research-details:not([hidden]) {display:grid;gap:20px;min-width:0;padding:4px 0 12px;}
html:root.ivy-duo-mode .dl-panel .dl-research-details .lp-global-evidence {width:100%;min-width:0;margin:0;color:var(--dl-muted);font-size:13px;line-height:1.5;}
html:root.ivy-duo-mode .dl-panel .dl-research-details .lp-global-evidence summary {width:auto;padding:0 4px;}
html:root.ivy-duo-mode .dl-panel .dl-research-details .lp-global-evidence__list {width:100%;grid-template-columns:minmax(0,1fr);max-height:none;overflow:visible;display:grid;gap:0;margin-top:12px;border-radius:14px;background:var(--dl-card);padding:0 16px;}
html:root.ivy-duo-mode .dl-panel .dl-research-details :is(.lp-global-evidence__source,.lp-global-evidence__query) {display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:13px 0;border:0;border-bottom:1px solid var(--dl-line);border-radius:0;background:none;color:var(--dl-text);font-size:14px;line-height:1.4;}
html:root.ivy-duo-mode .dl-panel .dl-research-details .lp-global-evidence__source span {white-space:normal;overflow-wrap:anywhere;}
html:root.ivy-duo-mode .dl-panel .dl-research-details :is(.lp-global-evidence__source,.lp-global-evidence__query) small {color:var(--dl-muted);font-size:12px;overflow-wrap:anywhere;}
html:root.ivy-duo-mode .dl-panel .dl-research-details .lp-global-evidence__source {text-decoration:none;}
html:root.ivy-duo-mode .dl-panel .dl-research-details .lp-global-evidence__source:active {color:var(--dl-blue);}
html:root.ivy-duo-mode .dl-panel .dl-research-details .lp-global-evidence__list>:last-child {border-bottom:0;}
html:root.ivy-duo-mode .dl-panel .dl-research-details .lp-global-evidence__query-status {font-size:12px;padding:14px 0 4px;}
html:root.ivy-duo-mode .dl-panel .dl-research-details .lp-google-search-suggestions {min-width:0;max-width:100%;margin:0;overflow-x:auto;overscroll-behavior-x:contain;border-radius:14px;}
