/* Shared theme-aware material. Document originals and chart marks retain their colors. */

.main :is(.card,.ar-card,.ap-card,.mc-card,.tp-card,.rc-visual,.rc-explorer,.rc-catalog,.mo-panel,.mo-briefing,.mo-next,.mo-soft-card,.jr-module-card,.cl-section,.ar-kpi,.panel,.jr-module-progress,.ap-guide-bar,.ap-intake-options,.ap-intake-option),.landing :is(.card,.panel),dialog{background:var(--jr-glass)!important;backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%);border-color:color-mix(in srgb,var(--surface) 60%,var(--line));box-shadow:0 3px 18px #00000006,inset 0 1px 0 #ffffff24}
html[data-layout=laptop]:not(.jr-compact-nav) .shell>.side,.jr-app-header,.jr-app-tabs,html[data-layout=laptop]:not(.jr-compact-nav) .jr-soft-navigation{background:var(--jr-glass)!important;backdrop-filter:blur(28px) saturate(150%);-webkit-backdrop-filter:blur(28px) saturate(150%)}
.main :is(.ghost,.ar-btn:not(.primary),.run,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea),.mo-soft-prompt #mo-ask>div{background:var(--jr-glass-control)!important}
.main :is(.ap-tabs,.ar-tabs,.rc-tabs,.mc-tabs,.tp-tabs,.buyer-tabs)>button:is(.active,[aria-selected=true]){background:var(--jr-glass)!important}
/* The embedded workspaces use the same material as their parent shell. */
body:not(:has(.shell)) :is(.tile,.panel,.card,.node,.drawer){background:var(--jr-glass)!important;backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%)}

/* Module-specific surfaces and disclosure controls share the shell material. */
.main :is(.bd-card,.jr-video-controls,.jr-video-preference,.jr-flow-nav,.mo-context,.mo-onboarding-body,.mo-onboarding-body article,.mo-tool,.one-evolve-bridge,.ev-summary,.cl-card,details>summary),
.main .jr-video-controls button,.jr-soft-utility>summary,.main #my-overview article,.main [data-ev-view]{background:var(--jr-glass)!important;backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%)}
/* Reduce stacked opacity: nested surfaces should not become solid white. */
:root{--jr-glass:color-mix(in srgb,var(--surface) 24%,transparent);--jr-glass-control:color-mix(in srgb,var(--surface) 16%,transparent)}
.main :is(.card,.panel,.ap-card,.bd-card,.ar-card,.cl-card) :is(.card,.panel,.ap-card,.bd-card,.ar-card,.cl-card){background:var(--jr-glass-control)!important}


html body .main :is(.jr-module-card,.jr-module-progress,.jr-workflow-rail,.ar-tabs,.ap-tabs,.ar-demo-banner,.mo-soft-card,.mo-next,.mo-briefing,.mo-context,.mo-panel,.mo-prompt,.rc-visual),html body .jr-screen-back{background:var(--jr-glass)!important;backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%)}
html body .main .mo-soft-card>section,html body .main .mo-soft-prompt textarea{background:transparent!important;backdrop-filter:none!important}
.main table :is(th,td){background-color:var(--jr-glass-control)}

html body .main .jr-module-grid>.jr-module-card{background:var(--jr-glass)!important}
html body .main .jr-module-grid>.jr-module-card:hover{background:var(--jr-glass-control)!important}
/* Round the material itself, including nested white disclosure and step surfaces. */
:root{--jr-surface-radius:16px;--jr-inner-surface-radius:12px}
html body .main :is(.card,.ar-card,.ap-card,.mc-card,.tp-card,.bd-card,.rc-visual,.rc-explorer,.rc-catalog,.mo-panel,.mo-briefing,.mo-next,.mo-soft-card,.cl-section,.cl-card,.ar-kpi,.panel,.jr-video-controls,.jr-video-preference,.mo-context,.mo-onboarding-body,.mo-onboarding-body article,.mo-tool,.one-evolve-bridge,.ev-summary,.ap-guide-bar,.ap-intake-options,.ap-intake-option){border-radius:var(--jr-surface-radius);background-clip:padding-box}
html body .main :is(details>summary,.jr-workflow-rail,.jr-module-progress,.ap-guide-steps,.ap-tabs,.ar-tabs,.rc-tabs,.mc-tabs,.tp-tabs,.buyer-tabs,.ar-demo-banner,.ap-demo-banner){border-radius:var(--jr-inner-surface-radius)!important;background-clip:padding-box}
html body .main .jr-workflow-rail>[data-flow-index]{border-radius:var(--jr-inner-surface-radius)!important}
/* Keep focus rings, menus and scrolling content outside the surface unclipped. */
html body .main :is(.jr-vision-body,.jr-module-preview,.jr-preview-chat,.jr-preview-answer){background-clip:padding-box}
@media(prefers-reduced-transparency:reduce){:root{--jr-glass:var(--surface);--jr-glass-control:var(--surface)}*{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
@supports not (backdrop-filter:blur(1px)){:root{--jr-glass:var(--surface);--jr-glass-control:var(--surface)}}
@media print{:root{--jr-glass:#fff;--jr-glass-control:#fff}}

/* Walkthrough titles already include a play icon; suppress the duplicate native marker. */
html body .main .ar-inline-guide>summary{display:block;list-style:none;padding:12px 16px}
html body .main .ar-inline-guide>summary::marker{content:""}
html body .main .ar-inline-guide>summary::-webkit-details-marker{display:none}
