/* Approved analytics material, scoped to the native Overview and its dialogs. */
html body.overview-section-open {
  --ov-content-rgb:25,27,30;
  --ov-content-density:.30;
  --ov-content-glint:.035;
  --ov-content-filter:blur(36px) saturate(100%);
  --ov-outer-rgb:27,29,32;
  --ov-outer-density:.78;
  --ov-outer-filter:blur(20px) saturate(115%);
  --ov-modal-density:.72;
  --ov-modal-glint:.065;
  --ov-modal-filter:blur(28px) saturate(115%);
  --ov-veil:rgba(8,10,14,.22);
  --ov-line:rgba(235,238,242,.13);
  --ov-soft:rgba(235,238,242,.045);
  --ov-field:rgba(25,27,30,.24);
  --ov-text:#edf0f4;
  --ov-muted:#b5bdc9;
}
html[data-ui-theme-resolved="light"] body.overview-section-open {
  --ov-content-rgb:255,255,255;
  --ov-content-density:.48;
  --ov-content-glint:.12;
  --ov-outer-rgb:255,255,255;
  --ov-outer-density:.68;
  --ov-modal-density:.60;
  --ov-modal-glint:.12;
  --ov-veil:rgba(40,49,62,.12);
  --ov-line:rgba(38,43,50,.14);
  --ov-soft:rgba(38,43,50,.035);
  --ov-field:rgba(255,255,255,.36);
  --ov-text:#202733;
  --ov-muted:#586372;
}
html[data-interface-background="custom"] body.overview-section-open {--ov-outer-density:.80;}
html[data-ui-theme-resolved="light"][data-interface-background="custom"] body.overview-section-open {--ov-outer-density:.60;}

html body.overview-section-open #appShell #overviewSection #overviewHome {
  --overview-card-bg:transparent;
  --overview-card-border:var(--ov-line);
  --overview-soft:var(--ov-soft);
  background:transparent !important;
}
html body.overview-section-open #appShell #overviewSection #overviewHome [data-overview-glass] {
  position:relative;
  isolation:isolate;
  background:transparent !important;
  border-color:var(--ov-line) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
/* Keep blur on decoration, so scrolling and text stay on native layers. */
html body.overview-section-open #appShell #overviewSection #overviewHome [data-overview-glass]::after {
  all:unset !important;
  content:"" !important;
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  z-index:-1 !important;
  border-radius:inherit !important;
  pointer-events:none !important;
  background:linear-gradient(138deg,rgba(255,255,255,.065),transparent 55%),rgba(var(--ov-outer-rgb),var(--ov-outer-density)) !important;
  backdrop-filter:var(--ov-outer-filter) !important;
  -webkit-backdrop-filter:var(--ov-outer-filter) !important;
}
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewHubCard {background:transparent !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;}
html body.overview-section-open #appShell #overviewSection #overviewHome .overview-hub-account-panel::after {
  background:linear-gradient(135deg,rgba(255,255,255,var(--ov-content-glint)),transparent 58%),rgba(var(--ov-content-rgb),var(--ov-content-density)) !important;
  backdrop-filter:var(--ov-content-filter) !important;
  -webkit-backdrop-filter:var(--ov-content-filter) !important;
}
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewHubCard .account-settings-v2 {
  --account-bg:rgba(var(--ov-content-rgb),.06);
  --account-soft:var(--ov-soft);
  --account-line:var(--ov-line);
  --account-text:var(--ov-text);
  --account-muted:var(--ov-muted);
}
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewHubCard :is(.overview-hub-panel-head,.overview-hub-account-scroll,.overview-account-drawer,.overview-tab-pane,.overview-panel-body) {
  background:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
html body.overview-section-open #appShell #overviewSection #overviewHome :is(.overview-evidence-row,.overview-review-item,.overview-attention-item,.overview-task-btn,.overview-continue-card,.account-event-row) {
  background:var(--ov-soft) !important;
  border-color:var(--ov-line) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
html body.overview-section-open #appShell #overviewSection #overviewHome :is(.overview-embedded-trend-viewport,.overview-embedded-trend-panel,.overview-embedded-trend-panel iframe) {
  background:transparent !important;
  border-color:var(--ov-line) !important;
}
/* The carousel keeps its existing rasterized ambient light and native motion. */

/* Account, security, subscription, preview and help windows opened from Overview. */
html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) {
  --card:rgba(var(--ov-content-rgb),var(--ov-content-density));
  --card2:var(--ov-soft);
  --sub-bg:var(--ov-soft);
  --sub-panel:var(--ov-soft);
  --sub-soft:var(--ov-soft);
  --sub-field:var(--ov-field);
  --sub-line:var(--ov-line);
  --sub-text:var(--ov-text);
  --sub-muted:var(--ov-muted);
  --sub-selected:color-mix(in srgb,var(--accent) 12%,transparent);
  --sub-hover:color-mix(in srgb,var(--accent) 7%,transparent);
  --sub-choice-bg:var(--ov-soft);
  --sub-choice-hover:color-mix(in srgb,var(--accent) 7%,transparent);
  --sub-choice-line:var(--ov-line);
  --ws-glass-rgb:var(--ov-outer-rgb);
  --ws-glass-density:var(--ov-modal-density);
  --ws-glass-inner:rgba(var(--ov-content-rgb),var(--ov-content-density));
  --ws-glass-soft:var(--ov-soft);
  --ws-glass-field:var(--ov-field);
  --ws-glass-line:var(--ov-line);
  --ws-glass-text:var(--ov-text);
  --ws-glass-muted:var(--ov-muted);
  background:var(--ov-veil) !important;
  backdrop-filter:blur(8px) !important;
  -webkit-backdrop-filter:blur(8px) !important;
}
html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) .subscription-period-grid .amount-btn {
  --sub-selected:color-mix(in srgb,var(--accent) 12%,transparent);
}
html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) > :is(.modal-card,.subscription-modal-card,.bublick-help-panel) {
  background:linear-gradient(138deg,rgba(255,255,255,var(--ov-modal-glint)),transparent 55%),rgba(var(--ov-outer-rgb),var(--ov-modal-density)) !important;
  border-color:var(--ov-line) !important;
  color:var(--ov-text);
  backdrop-filter:var(--ov-modal-filter) !important;
  -webkit-backdrop-filter:var(--ov-modal-filter) !important;
}
html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) :is(.modal-head,.modal-header,.modal-foot,.modal-footer,.subscription-modal-head,.subscription-modal-body,.subscription-main,.subscription-sidebar,.bublick-help-head,.bublick-help-body,.bublick-help-foot) {
  background:transparent !important;
  border-color:var(--ov-line) !important;
}
html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) :is(.state,.history-item,.telegram-bind-status,.bublick-help-resume) {
  background:var(--ov-soft) !important;
  border-color:var(--ov-line) !important;
}
html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) :is(.subscription-builder-section,.subscription-live-panel) {
  position:relative;
  isolation:isolate;
  background:transparent !important;
  border-color:var(--ov-line) !important;
}
html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) :is(.subscription-builder-section,.subscription-live-panel)::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,var(--ov-content-glint)),transparent 58%),rgba(var(--ov-content-rgb),var(--ov-content-density));
  backdrop-filter:var(--ov-content-filter);
  -webkit-backdrop-filter:var(--ov-content-filter);
}
html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  background:var(--ov-field) !important;
  border-color:var(--ov-line) !important;
  color:var(--ov-text) !important;
}
html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) :is(table,thead,tbody,tr,th,td) {
  background:transparent !important;
  border-color:var(--ov-line) !important;
}
/* No new scroll owner, clipping edge or full-page filtered container is added. */

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  html body.overview-section-open {--ov-outer-density:1;--ov-content-density:1;--ov-modal-density:1;}
}
@media (prefers-reduced-transparency:reduce) {
  html body.overview-section-open {--ov-outer-density:1 !important;--ov-content-density:1 !important;--ov-modal-density:1 !important;--ov-outer-filter:none;--ov-content-filter:none;--ov-modal-filter:none;}
  html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) {backdrop-filter:none !important;-webkit-backdrop-filter:none !important;}
}
@media (forced-colors:active) {
  html body.overview-section-open #appShell #overviewSection #overviewHome [data-overview-glass], html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) > :is(.modal-card,.subscription-modal-card,.bublick-help-panel) {background:Canvas !important;color:CanvasText !important;border-color:CanvasText !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;}
  html body.overview-section-open #appShell #overviewSection #overviewHome [data-overview-glass]::after {display:none !important;}
  html body.overview-section-open:has(#overviewSection.active) :is(#balanceModal.subscription-ui-v2,#accountPasswordModal,#telegramBindModal,#promoModal,#activateCabinetPromptModal,#addCabinetModal,#cabinetDetailsModal,#cabinetTaxProfileModal,#dashboardPreviewModal,#bublickHelpModal) {background:transparent !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;}
}

/* This dedicated hero also matches a legacy wallpaper rule with three IDs.
   Its sole outer surface uses the same density as every Overview card. */
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewHubCard::after {
  background:linear-gradient(138deg,rgba(255,255,255,.065),transparent 55%),rgba(var(--ov-outer-rgb),var(--ov-outer-density)) !important;
}

/* The mounted drawer is structural; the account panel already owns the glass. */
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewHubCard #overviewAccountDrawer::after {
  display:none !important;
}
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewHubCard :is(#overviewAccountDrawer,.overview-account-content,#overviewAccountSummaryPane,#overviewAccountEventsPane) {
  background:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

/* A single glass plane supports the existing rasterized ambient reflection. */
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewCapabilitiesCard .bublick-carousel-viewport {
  isolation:isolate;
  background:transparent !important;
  border-color:var(--ov-line) !important;
}
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewCapabilitiesCard .bublick-carousel-viewport::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,var(--ov-content-glint)),transparent 58%),rgba(var(--ov-content-rgb),var(--ov-content-density));
  backdrop-filter:var(--ov-content-filter);
  -webkit-backdrop-filter:var(--ov-content-filter);
}
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewCapabilitiesCard .bublick-carousel-backlight-art {opacity:.55;}

/* The embedded document and its legend share the rounded viewport. */
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewEmbeddedTrendsCard :is(.overview-embedded-trend-viewport,.overview-embedded-trend-panel,.overview-embedded-trend-panel iframe) {
  border-radius:16px !important;
  overflow:hidden !important;
  background:transparent !important;
}
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewEmbeddedTrendsCard .overview-embedded-trend-viewport {
  clip-path:inset(0 round 16px);
  contain:paint;
}
html body.overview-section-open #appShell #overviewSection #overviewHome #overviewEmbeddedTrendsCard .overview-embedded-trend-panel iframe {
  clip-path:inset(0 round 16px);
}
@media (prefers-reduced-transparency:reduce) {
  html body.overview-section-open #appShell #overviewSection #overviewHome #overviewCapabilitiesCard .bublick-carousel-backlight-art {opacity:.2;}
}
@media (forced-colors:active) {
  html body.overview-section-open #appShell #overviewSection #overviewHome #overviewCapabilitiesCard .bublick-carousel-viewport {background:Canvas !important;}
  html body.overview-section-open #appShell #overviewSection #overviewHome #overviewCapabilitiesCard .bublick-carousel-viewport::before {display:none;}
}
