/* Shared appearance adapters. Every rule is screen-only; business geometry and print remain owned by each tool. */
@media screen {
 :root[data-site-theme-page]{--kgi-blue:var(--st-primary,#004481);--kgi-dark-blue:var(--st-ink,#002d56);--kgi-orange:var(--st-accent,#f58220);--bg-gray:var(--st-background,#f0f2f5);--theme-bg:var(--st-background);--theme-surface:var(--st-surface);--theme-raised:var(--st-raised);--theme-ink:var(--st-ink);--theme-muted:var(--st-muted);--theme-line:var(--st-line);--theme-link:var(--st-primary)}
 html[data-site-theme-page][data-site-theme-ready] body{background:var(--st-page-background,var(--st-background))!important;color:var(--st-ink)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.header-bar,.shared-tool-footer,.login-card){background:var(--st-surface)!important;color:var(--st-ink)!important;border-color:var(--st-accent)!important;box-shadow:var(--st-shadow)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.header-center-notice,.font-ctrl){color:var(--st-ink)!important}
 html[data-site-theme-page][data-site-theme-ready] body .hamburger-icon div{background:var(--st-primary)!important}
 html[data-site-theme-header=soft][data-site-theme-ready] body .header-bar{background:var(--st-raised)!important}
 html[data-site-theme-header=line][data-site-theme-ready] body .header-bar{box-shadow:none!important;border-bottom-color:var(--st-line)!important}
 html[data-site-theme-page][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes{--sidebar-surface:var(--st-surface);--sidebar-panel:var(--st-raised);--sidebar-ink:var(--st-ink);--sidebar-muted:var(--st-muted);--sidebar-selected:var(--st-raised);--sidebar-stock:var(--st-raised);--sidebar-link:var(--st-ink);--sidebar-hover:var(--st-raised);--sidebar-line:var(--st-line)}
 html[data-site-theme-page][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes a[aria-current=page]{background:var(--st-raised)!important;color:var(--st-primary)!important}
 html[data-site-theme-page][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes[data-theme=navy] a[aria-current=page]{background:var(--st-accent)!important;color:var(--st-on-accent)!important}
 html[data-site-theme-page][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes :is(.sidebar-brand-symbol,.st-icon-wrap){background:var(--st-primary);color:var(--st-on-primary)}
 html[data-site-theme-page][data-site-theme-ready] #sidebar-container #sideNav .up-red{color:var(--st-up)!important}
 html[data-site-theme-page][data-site-theme-ready] #sidebar-container #sideNav .down-green{color:var(--st-down)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.shared-tool-content,.address-tool,.family-tool,.product-analysis,.video-tool,.admin-grid) :is(.card,.panel,.container,.analysis-card,.settings-panel,.result-panel,.result-card,.source-preview,.clip-fields,.platforms,.learning,.variable,.formula,.preview-panel,.product-settings,.yearly-details,.cover-result,.audio-help,.log-form,.list-item,.ac-site,.ac-global,.ac-diff){background:var(--st-surface)!important;color:var(--st-ink)!important;border-color:var(--st-line)!important;border-radius:var(--st-radius)!important;box-shadow:var(--st-shadow)!important}
 html[data-site-theme-page=calculator][data-site-theme-ready] body :is(.card,.input-group,.form-card,.section-card,.control-card,.table-container):not(#capture-area *){background:var(--st-surface)!important;color:var(--st-ink)!important;border-color:var(--st-line)!important;border-radius:var(--st-radius)!important}
 html[data-site-theme-page=admin][data-site-theme-ready] body :is(.container,.list-item,.log-form,.upload-zone,.log-area,.ac-site,.ac-global,.ac-diff,.ac-dialog){background:var(--st-surface)!important;color:var(--st-ink)!important;border-color:var(--st-line)!important;border-radius:var(--st-radius)!important;box-shadow:var(--st-shadow)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.page-heading,.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool,.admin-grid,.login-card) :is(h1,h2,h3,.eyebrow,.section-title,.text-btn,.result-label,.amount,.engine-status,.version):not(#previewPaper *):not(#capture-area *){color:var(--st-heading,var(--st-primary))!important;border-color:var(--st-line)!important}
 html[data-site-theme-page=admin][data-site-theme-ready] body :is(h1,h2,h3){color:var(--st-primary)!important;border-color:var(--st-line)!important}
 html[data-site-theme-page=admin][data-site-theme-ready] #release-center :is(p,label,summary){color:var(--st-ink)!important}
 html[data-site-theme-page=admin][data-site-theme-ready] body :is(.ac-global span,.ac-site small,.al-hint,.al-copy small,.ac-hint){color:var(--st-muted)!important}
 html[data-site-theme-page=admin][data-site-theme-ready] body :is(.al-row,#releaseMessage:not(:empty)){background:var(--st-raised)!important;color:var(--st-ink)!important;border-color:var(--st-line)!important}
 html[data-site-theme-page=admin][data-site-theme-ready] body :is(#sandboxPreview,#releaseLive){color:var(--st-primary)!important}
 html[data-site-theme-page=admin][data-site-theme-ready] body .address-lists-admin button{background:var(--st-primary)!important;color:var(--st-on-primary)!important;border-color:var(--st-primary)!important}
 html[data-site-theme-page=admin][data-site-theme-ready] body .address-lists-admin :is(button[aria-pressed=true],#alAdd,#alSave){background:var(--st-accent)!important;color:var(--st-on-accent)!important;border-color:var(--st-accent)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool,.admin-grid,.login-card) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){background:var(--st-surface)!important;color:var(--st-ink)!important;border:1px solid var(--st-line)!important;border-radius:min(var(--st-radius),12px)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(input,select,textarea):focus-visible{outline:3px solid var(--st-primary)!important;outline-offset:2px}
 html[data-site-theme-page][data-site-theme-ready] body :is(input,textarea)::placeholder{color:var(--st-muted)!important;opacity:1}
 html[data-site-theme-page][data-site-theme-ready] body :is(input[type=range],input[type=checkbox],input[type=radio]){accent-color:var(--st-primary)}
 html[data-site-theme-page][data-site-theme-ready] body :is(.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool,.admin-grid,.login-card) :is(.primary,.primary-button,.btn-primary,.calculate-btn,.btn-log,button[type=submit],.tabs button.active){background:var(--st-primary)!important;color:var(--st-on-primary)!important;border-color:var(--st-primary)!important;border-radius:min(var(--st-radius),16px)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool,.admin-grid) :is(.secondary,.secondary-button,.reset,.preset-selected,.preset-card,.office-option,.tabs button:not(.active),.chart-modes button,.btn:not(.btn-delete):not(.btn-log)){background:var(--st-raised)!important;color:var(--st-ink)!important;border-color:var(--st-line)!important;border-radius:min(var(--st-radius),14px)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.muted,.hint,.hint-text,.field-hint,.steps,.print-tip,.load-status,.result-kicker,.small,.platform-hint,.source-credits>p,.learning p,.page-heading p,.header-subtitle,.ac-hint,.ac-site small,.stm-hint,.stm-title p):not(#capture-area *):not(#previewPaper *){color:var(--st-muted)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool,.admin-grid) :is(th,td,.table-wrap,.tablewrap,.table-container){border-color:var(--st-line)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool,.admin-grid) th{background:var(--st-raised)!important;color:var(--st-ink)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(dialog,#shared-release-dialog,.log-modal,.log-content){background:var(--st-surface)!important;color:var(--st-ink)!important;border-color:var(--st-line)!important;border-radius:var(--st-radius)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(dialog,#shared-release-dialog,.log-modal) :is(h2,h3,a){color:var(--st-primary)!important}
 html[data-site-theme-page][data-site-theme-ready] #shared-release-dialog :is(.sr-desc,.sr-date){color:var(--st-ink)!important}
 html[data-site-theme-page][data-site-theme-ready] #shared-release-dialog .sr-head{background:var(--st-raised)!important;border-color:var(--st-line)!important}
 html[data-site-theme-page][data-site-theme-ready] #shared-release-dialog :is(h3,.sr-close){color:var(--st-primary)!important}
 html[data-site-theme-page][data-site-theme-ready] #site-update-panel>div:not(:empty){background:var(--st-surface)!important;color:var(--st-ink)!important;border-color:var(--st-line)!important;border-radius:var(--st-radius)!important;box-shadow:var(--st-shadow)!important}
 html[data-site-theme-page][data-site-theme-ready] #site-update-panel :is(button,a){background:var(--st-raised)!important;color:var(--st-primary)!important;border-color:var(--st-line)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.drop-zone,.preview-toolbar,.status:not(.error),.platforms span,.chart-modes,.comparison,.formula,.tag,.preset-selected){background:var(--st-raised)!important;color:var(--st-ink)!important;border-color:var(--st-line)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.result,.result-card):not(#capture-area *):not(.video-tool .result){background:var(--st-raised)!important;color:var(--st-ink)!important;border-color:var(--st-line)!important;border-radius:var(--st-radius)!important}
 html[data-site-theme-card=flat][data-site-theme-ready] body :is(.card,.panel,.analysis-card,.container):not(.shared-tool-content){box-shadow:none!important;border:0}
 html[data-site-theme-card=outlined][data-site-theme-ready] body :is(.card,.panel,.analysis-card,.container):not(.shared-tool-content){box-shadow:none!important;border:1px solid var(--st-line)!important}
 html[data-site-theme-card=raised][data-site-theme-ready] body :is(.card,.panel,.analysis-card,.container):not(.shared-tool-content){box-shadow:var(--st-shadow)!important}
 html[data-site-theme-page][data-site-theme-ready] body :is(.work-grid,.workspace,.analysis-grid,.learning .variables){gap:var(--st-gap)}
 html[data-site-theme-page=family-security][data-site-theme-ready] #chart text{fill:var(--st-muted)!important}
 html[data-site-theme-page=family-security][data-site-theme-ready] #chart line{stroke:var(--st-line)!important}
 html[data-site-theme-page=family-security][data-site-theme-ready] #chart rect[fill="#004481"]{fill:var(--st-primary)!important}
 html[data-site-theme-page=family-security][data-site-theme-ready] #chart rect[fill="#43B02A"]{fill:var(--st-down)!important}
 html[data-site-theme-page][data-site-theme-ready] :is(.product-analysis .chart-wrap,.family-tool svg#chart){background:var(--st-surface)!important}
 html[data-site-theme-page=calculator][data-site-theme-ready] #capture-area:not([data-card-appearance]){--card-background:var(--st-surface);--card-ink:var(--st-ink);--card-heading:var(--st-primary);--card-muted:var(--st-muted);--card-condition-bg:var(--st-raised);--card-condition-line:var(--st-line);--card-single:var(--st-raised);--card-single-ink:var(--st-primary);--card-single-line:var(--st-line);--card-male:var(--st-raised);--card-male-ink:var(--st-primary);--card-female:var(--st-raised);--card-female-ink:var(--st-ink)}
 html[data-site-theme-page][data-site-theme-ready] body>footer{color:var(--st-muted)!important}
 html[data-site-theme-page][data-site-theme-ready] body>footer a{color:var(--st-primary)!important}
 html[data-site-theme-page=home][data-site-theme-ready]{--blue:var(--st-primary);--ink:var(--st-ink);--orange:var(--st-accent);--muted:var(--st-muted)}
 html[data-site-theme-page=home][data-site-theme-ready] .scene{background:var(--st-background)!important}
 html[data-site-theme-page=home][data-site-theme-ready] :is(dialog,.site-link,.skip,.close){background:var(--st-surface)!important;color:var(--st-ink)!important;border-color:var(--st-line)!important;border-radius:var(--st-radius)!important}
 html[data-site-theme-page=home][data-site-theme-ready] .number{background:var(--st-raised)!important;color:var(--st-primary)!important}
 html[data-site-theme-page=home][data-site-theme-ready] .enter{background:var(--st-primary)!important;color:var(--st-on-primary)!important;box-shadow:var(--st-shadow)!important}
 html[data-site-theme-page=home][data-site-theme-ready] :is(.tagline,.arrow){color:var(--st-primary)!important}
 html[data-site-theme-page=login][data-site-theme-ready] .login-card{border-radius:var(--st-radius)!important}
 html[data-site-theme-page=login][data-site-theme-ready] :is(.login-card p,.login-card small,.login-card .eyebrow){color:var(--st-muted)!important}
 html[data-site-theme-page=login][data-site-theme-ready] .login-card .error:not(:empty){color:var(--st-danger)!important}
 html[data-site-theme-page=status][data-site-theme-ready] body>main{background:var(--st-surface)!important;color:var(--st-ink)!important;border-color:var(--st-accent)!important;border-radius:var(--st-radius)!important;box-shadow:var(--st-shadow)!important}
 html[data-site-theme-page=status][data-site-theme-ready] :is(h1,a){color:var(--st-primary)!important}
 html[data-site-theme-page=status][data-site-theme-ready] p{color:var(--st-muted)!important}
 html[data-site-theme-page=status][data-site-theme-ready] button{background:var(--st-primary)!important;color:var(--st-on-primary)!important}
 /* Preserve the printable paper and the original share-card export surface. */
 html[data-site-theme-page=address-print][data-site-theme-ready] :is(#previewPaper,#printRoot){color:#000;background:#fff;color-scheme:light}
 html[data-site-theme-page=address-print][data-site-theme-ready] #previewPaper *{color:#000}
}

/* Expressive Glass: apply the complete appearance to the installed theme only. */
@media screen {
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] body{
  background:radial-gradient(ellipse at 0% 0%,color-mix(in srgb,var(--st-primary) 13%,transparent),transparent 48%),radial-gradient(ellipse at 100% 12%,color-mix(in srgb,var(--st-brand-green) 11%,transparent),transparent 40%),var(--st-background)!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-material="frosted"][data-site-theme-ready] body .header-bar{
  background:#004481!important;color:#fff!important;border-bottom:1px solid #ffffff40!important;box-shadow:0 6px 25px #002d5630!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] body .header-bar :is(.header-center-notice,.font-ctrl){color:#fff!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] body .hamburger-icon div{background:#fff!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] body .header-bar .hamburger-icon{border-radius:999px}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes{
  border-radius:35px!important;border:1px solid color-mix(in srgb,var(--st-surface) 70%,var(--st-line))!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--st-primary) 7%,transparent),transparent 48%,color-mix(in srgb,var(--st-brand-green) 8%,transparent)),color-mix(in srgb,var(--st-surface) 88%,transparent)!important;box-shadow:inset 0 1px 0 #ffffff80,0 18px 48px #002d5638!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] #sidebar-container #sideNav .sidebar-brand-symbol{background:var(--st-brand-green)!important;color:var(--st-on-green)!important;border-radius:50%!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] #sidebar-container #sideNav .nav-menu .st-icon-wrap{background:transparent!important;color:var(--st-primary)!important;border:0!important;box-shadow:none!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] #sidebar-container #sideNav .nav-menu a[aria-current="page"] .st-icon-wrap{background:transparent!important;color:var(--st-on-primary)!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] #sidebar-container #sideNav .nav-menu a{border-radius:999px!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] #sidebar-container #sideNav .nav-menu .st-group{padding:5px 6px;border-radius:20px;background:color-mix(in srgb,var(--st-raised) 65%,transparent);border:1px solid color-mix(in srgb,var(--st-line) 55%,transparent)}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] #sidebar-container #sideNav .stock-info-card{border-radius:22px!important;border-inline-start:4px solid var(--st-brand-green)!important;background:var(--st-raised)!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] body :is(.shared-tool-content,.address-tool,.family-tool,.product-analysis,.video-tool) :is(.card,.panel,.analysis-card,.settings-panel,.result-panel,.result-card,.source-preview,.preview-panel){
  border:1px solid color-mix(in srgb,var(--st-primary) 19%,var(--st-surface))!important;border-radius:26px!important;box-shadow:0 10px 30px #002d5614!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] body :is(.calculator-heading,.page-heading) h1{color:var(--st-primary)!important;letter-spacing:-.025em}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] body :is(.calculator-heading,.page-heading) :is(.calculator-eyebrow,.eyebrow){color:var(--st-accent)!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] body :is(.shared-tool-content,.address-tool,.family-tool,.product-analysis,.video-tool) :is(.card,.analysis-card,.settings-panel)>h2{border-inline-start:4px solid var(--st-brand-green)!important;padding-inline-start:12px}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] .calculator-tool>.card>h2{border-inline-start-color:var(--st-brand-green)!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] body :is(.shared-tool-content,.address-tool,.family-tool,.product-analysis,.video-tool) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){border-radius:14px!important;box-shadow:inset 0 1px 0 #ffffff40}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] body :is(.shared-tool-content,.address-tool,.family-tool,.product-analysis,.video-tool) :is(.primary,.primary-button,.btn-primary,.calculate-btn,button[type=submit],.btn:not(.btn-delete):not(.btn-log),.secondary,.secondary-button){border-radius:999px!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] #result.card{background:var(--st-raised)!important}
 .calculator-theme-empty{display:none}
 @supports selector(:has(*)) {
  @media(min-width:1000px){
   html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] .calculator-tool:has(#result[style*="display:none"]) .calculator-theme-empty,
   html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] .calculator-tool:has(#result[style*="display: none"]) .calculator-theme-empty{
    display:flex;flex:1;min-width:0;min-height:480px;align-self:stretch;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px;border-radius:26px;border:1px solid var(--st-line);background:var(--st-raised);color:var(--st-ink);box-sizing:border-box;
   }
  }
 }
 .calculator-theme-empty-icon{display:grid;place-items:center;width:84px;height:84px;border-radius:28px;background:var(--st-surface);color:var(--st-primary);box-shadow:0 10px 25px #00448116}
 .calculator-theme-empty-icon svg{width:46px;height:46px}
 .calculator-theme-empty h2{color:var(--st-primary);margin:22px 0 6px}.calculator-theme-empty p{max-width:340px;line-height:1.8;color:var(--st-muted)}
 .calculator-theme-empty span{display:inline-block;margin-top:10px;padding:7px 14px;border-radius:999px;background:var(--st-surface);color:var(--st-primary);font-size:.85em;font-weight:700}
 @media(max-width:768px){
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] body .header-bar .header-center-notice{background:#1c5a91!important;color:#fff!important}
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] .calculator-tool :is(.badge-row:empty,.hint-text:empty){display:none!important}
 }
 @media(prefers-reduced-transparency:reduce){html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes{background:var(--st-surface)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
}

/* Engine 2: appearance and supported layout only. Never style printable/exported surfaces. */
.st-calculator-empty { display:none; }
@media screen {
 html[data-site-theme-engine="2"] { --kgi-green:var(--st-brand-green); }
 html[data-site-theme-engine="2"][data-site-theme-ready] body {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft JhengHei",sans-serif;
  background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--st-primary) 9%,transparent),transparent 55%),radial-gradient(ellipse at 100% 25%,color-mix(in srgb,var(--st-brand-green) 7%,transparent),transparent 45%),var(--st-background)!important;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] body .header-bar {
  border-bottom:1px solid var(--st-line)!important;
  box-shadow:0 4px 22px #102a4308!important;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] body .font-slider { background:var(--st-surface); }
 html[data-site-theme-engine="2"][data-site-theme-material="frosted"][data-site-theme-ready] body .header-bar,
 html[data-site-theme-engine="2"][data-site-theme-material="frosted"][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes {
  background:var(--st-surface)!important;
  background:color-mix(in srgb,var(--st-surface) calc(var(--st-glass-opacity)*100%),transparent)!important;
  -webkit-backdrop-filter:blur(var(--st-glass-blur));backdrop-filter:blur(var(--st-glass-blur));
  border:1px solid color-mix(in srgb,var(--st-surface) calc(var(--st-highlight)*100%),var(--st-line))!important;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / var(--st-highlight)),var(--st-shadow)!important;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes .side-nav-header {background:transparent!important;}
 html[data-site-theme-engine="2"][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes a[aria-current="page"] {
  background:var(--st-primary)!important;color:var(--st-on-primary)!important;border-radius:999px!important;
  box-shadow:0 5px 12px #00448119;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes .sidebar-brand-symbol {
  background:var(--st-brand-green)!important;color:var(--st-on-green)!important;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] body :is(.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea) {
  border-radius:var(--st-control-radius)!important;min-height:46px;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] body :is(.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool) :is(.primary,.primary-button,.btn-primary,.calculate-btn,button[type=submit],.btn:not(.btn-delete):not(.btn-log),.secondary,.secondary-button) {
  border-radius:var(--st-button-radius)!important;min-height:46px;padding:11px 22px;line-height:1.5;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] body :is(.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool) :is(.card,.panel,.analysis-card,.settings-panel,.result-panel,.result-card,.source-preview,.preview-panel) {
  padding:var(--st-card-padding);border:1px solid var(--st-line)!important;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] body :is(dialog,#shared-release-dialog,.log-modal,.log-content) {border-radius:var(--st-dialog-radius)!important;}

 /* Engine 2 component details share the same tokens on every page. */
 html[data-site-theme-engine="2"][data-site-theme-ready] body.shared-tool-page {
  --tool-card-padding:var(--st-card-padding);--tool-card-radius:var(--st-radius);
  --tool-control-radius:var(--st-control-radius);--tool-card-background:var(--st-surface);
  --tool-card-line:var(--st-line);--tool-card-shadow:var(--st-shadow);
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] body :is(.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool) :is(.card,.analysis-card,.settings-panel,.result-panel)>h2 {
  border-inline-start:4px solid var(--st-brand-green);padding-inline-start:12px;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] body :is(.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool) :is(button.btn-success,.btn.btn-success:not(.btn-delete):not(.btn-log)) {
  background:var(--st-brand-green)!important;color:var(--st-on-green)!important;border-color:var(--st-brand-green)!important;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] body :is(.calculator-version,.engine-status) {
  background:var(--st-raised);border:1px solid var(--st-line);border-radius:999px;padding:3px 10px;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] body .shared-tool-footer {
  border-image:linear-gradient(90deg,var(--st-primary) 0 60%,var(--st-brand-green) 60% 80%,var(--st-accent) 80%) 1;
  border-top:2px solid var(--st-line);
 }
 html[data-site-theme-engine="2"][data-site-theme-page=home][data-site-theme-ready] .scene {
  background:radial-gradient(ellipse at 90% 25%,color-mix(in srgb,var(--st-brand-green) 8%,transparent),transparent 55%),var(--st-background)!important;
 }
 html[data-site-theme-engine="2"][data-site-theme-ready] body :is(.login-card button[type=submit],.enter) {
  border-radius:var(--st-button-radius)!important;
 }
 html[data-site-theme-engine="2"][data-site-theme-page=admin][data-site-theme-ready] #site-theme-panel .stm-badge {
  border-inline-start:4px solid var(--st-brand-green);
 }
 @supports not (backdrop-filter:blur(1px)) {
  html[data-site-theme-engine="2"][data-site-theme-material="frosted"][data-site-theme-ready] body .header-bar,
  html[data-site-theme-engine="2"][data-site-theme-material="frosted"][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes {background:var(--st-surface)!important;}
 }
 @media(max-width:600px) {
  html[data-site-theme-engine="2"][data-site-theme-ready] body :is(.shared-tool-content,.family-tool,.address-tool,.product-analysis,.video-tool) :is(.card,.panel,.analysis-card,.settings-panel,.result-panel,.result-card,.source-preview,.preview-panel) {padding:min(var(--st-card-padding),20px);}
 }
 @media(prefers-reduced-transparency:reduce) {
  html[data-site-theme-engine="2"][data-site-theme-material="frosted"][data-site-theme-ready] body .header-bar,
  html[data-site-theme-engine="2"][data-site-theme-material="frosted"][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes {background:var(--st-surface)!important;-webkit-backdrop-filter:none;backdrop-filter:none;}
 }
 @media(prefers-reduced-motion:reduce) {html[data-site-theme-engine="2"] *,html[data-site-theme-engine="2"] *:before {scroll-behavior:auto!important;transition:none!important;animation:none!important;}}
}

/* The installed expressive theme: translucent surfaces deliberately appear
   above the generic adapters. Data controls and printable surfaces stay clear. */
@media screen {
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body {
  background:radial-gradient(ellipse 58rem 40rem at 4% 3%,color-mix(in srgb,var(--st-primary) 30%,transparent),transparent 70%),radial-gradient(ellipse 54rem 42rem at 98% 6%,color-mix(in srgb,var(--st-accent) 24%,transparent),transparent 70%),radial-gradient(ellipse 44rem 34rem at 66% 74%,color-mix(in srgb,var(--st-brand-green) 18%,transparent),transparent 75%),var(--st-background)!important;
  background-attachment:fixed!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] .family-tool{background:transparent!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-material="frosted"][data-site-theme-ready] body .header-bar {
  background:linear-gradient(110deg,rgba(0,68,129,.92),rgba(0,45,86,.86))!important;color:#fff!important;
  -webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);
  border-bottom:1px solid rgba(255,255,255,.35)!important;box-shadow:inset 0 1px 0 #ffffff4d,0 8px 28px #002d562e!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body :is(.shared-tool-content,.address-tool,.family-tool,.product-analysis,.video-tool,.admin-grid) :is(.card,.panel,.analysis-card,.settings-panel,.result-panel,.result-card,.source-preview,.preview-panel,.ac-site,.ac-global,.ac-diff):where(:not(#capture-area *):not(#previewPaper *):not(#printRoot *)) {
  background:color-mix(in srgb,var(--st-surface) 64%,transparent)!important;
  -webkit-backdrop-filter:blur(22px) saturate(145%);backdrop-filter:blur(22px) saturate(145%);
  border:1px solid color-mix(in srgb,var(--st-surface) 67%,var(--st-line))!important;
  border-radius:26px!important;box-shadow:inset 0 1px 0 #ffffffa6,0 12px 34px #002d5624!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body :is(.shared-tool-content,.address-tool,.family-tool,.product-analysis,.video-tool) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea) {
  background:var(--st-surface)!important;color:var(--st-ink)!important;border-color:var(--st-line)!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body #mainContent>.card:first-of-type{background:color-mix(in srgb,var(--st-surface) 64%,transparent)!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] #mainContent>#result.card {
  background:linear-gradient(145deg,color-mix(in srgb,var(--st-primary) 13%,transparent),color-mix(in srgb,var(--st-brand-green) 6%,transparent)),color-mix(in srgb,var(--st-raised) 76%,transparent)!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] #capture-area:not([data-card-appearance]){background:transparent!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] #capture-area:not([data-card-appearance]) .result-single .big-text{color:var(--st-accent)!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] .calculator-theme-empty{
  background:linear-gradient(145deg,color-mix(in srgb,var(--st-primary) 12%,transparent),color-mix(in srgb,var(--st-brand-green) 7%,transparent)),color-mix(in srgb,var(--st-raised) 72%,transparent)!important;
  -webkit-backdrop-filter:blur(22px) saturate(145%);backdrop-filter:blur(22px) saturate(145%);box-shadow:inset 0 1px 0 #ffffffa6,0 12px 34px #002d5624!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] #sidebar-container #navOverlay{background:rgba(0,45,86,.18)!important;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes {
  background:radial-gradient(ellipse at 15% 4%,color-mix(in srgb,var(--st-primary) 19%,transparent),transparent 48%),radial-gradient(ellipse at 95% 92%,color-mix(in srgb,var(--st-accent) 17%,transparent),transparent 46%),color-mix(in srgb,var(--st-surface) 74%,transparent)!important;
  -webkit-backdrop-filter:blur(26px) saturate(150%)!important;backdrop-filter:blur(26px) saturate(150%)!important;
  border-radius:35px!important;border:1px solid color-mix(in srgb,var(--st-surface) 80%,var(--st-line))!important;
  box-shadow:inset 0 1px 0 #ffffffc0,inset 1px 0 0 #ffffff70,0 18px 52px #002d5645!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] #sidebar-container #sideNav .nav-menu .st-group{background:transparent!important;border:0!important;padding:3px 0!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] #sidebar-container #sideNav .stock-info-card{background:color-mix(in srgb,var(--st-raised) 78%,transparent)!important;border:1px solid color-mix(in srgb,var(--st-surface) 70%,var(--st-line))!important;border-inline-start:4px solid var(--st-brand-green)!important;box-shadow:inset 0 1px 0 #ffffff88}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-page="login"][data-site-theme-ready] .login-card,
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-page="status"][data-site-theme-ready] body>main{background:color-mix(in srgb,var(--st-surface) 82%,transparent)!important;-webkit-backdrop-filter:blur(22px) saturate(145%);backdrop-filter:blur(22px) saturate(145%);border:1px solid color-mix(in srgb,var(--st-surface) 70%,var(--st-line))!important;box-shadow:inset 0 1px 0 #ffffffa6,0 12px 34px #002d5624!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body .shared-tool-footer,
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body :is(dialog,#shared-release-dialog,.log-modal,.log-content){background:color-mix(in srgb,var(--st-surface) 80%,transparent)!important;-webkit-backdrop-filter:blur(20px) saturate(140%);backdrop-filter:blur(20px) saturate(140%);border-color:color-mix(in srgb,var(--st-surface) 70%,var(--st-line))!important;box-shadow:inset 0 1px 0 #ffffff99,0 10px 32px #002d561e!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-page="home"][data-site-theme-ready] .scene{background:radial-gradient(ellipse at 5% 10%,color-mix(in srgb,var(--st-primary) 15%,transparent),transparent 55%),radial-gradient(ellipse at 95% 20%,color-mix(in srgb,var(--st-accent) 15%,transparent),transparent 55%),var(--st-background)!important}
 @media(min-width:1024px){html[data-site-theme="kgi-expressive-glass"][data-site-theme-ready] .calculator-tool>.card:first-of-type{width:clamp(360px,40%,500px)}}
 @supports not (backdrop-filter:blur(1px)) {
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes,
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body :is(.shared-tool-content,.address-tool,.family-tool,.product-analysis,.video-tool,.admin-grid) :is(.card,.panel,.analysis-card,.result-card,.settings-panel,.result-panel,.source-preview,.preview-panel){background:var(--st-surface)!important}
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body #mainContent>.card:first-of-type{background:var(--st-surface)!important}
 }
 @media(prefers-reduced-transparency:reduce){
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] #sidebar-container #sideNav.sidebar-themes,
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body :is(.shared-tool-content,.address-tool,.family-tool,.product-analysis,.video-tool,.admin-grid) :is(.card,.panel,.analysis-card,.result-card,.settings-panel,.result-panel,.source-preview,.preview-panel),
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] .calculator-theme-empty{background:var(--st-surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-page="login"][data-site-theme-ready] .login-card,
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-page="status"][data-site-theme-ready] body>main{background:var(--st-surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body .shared-tool-footer,
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body :is(dialog,#shared-release-dialog,.log-modal,.log-content){background:var(--st-surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] #mainContent>#result.card{background:var(--st-surface)!important}
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body #mainContent>.card:first-of-type{background:var(--st-surface)!important}
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body .header-bar{background:#004481!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
 }
}

/* Immersive header and one shared footer width across tool pages. */
@media screen {
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-material="frosted"][data-site-theme-ready] body .header-bar {
  background:color-mix(in srgb,var(--st-surface) 24%,transparent)!important;
  color:var(--st-ink)!important;
  border-bottom:1px solid color-mix(in srgb,var(--st-surface) 44%,transparent)!important;
  box-shadow:0 3px 18px #002d560d!important;
 }
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body .header-bar :is(.header-center-notice,.font-ctrl,.font-ctrl label) {color:var(--st-ink)!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body .header-bar .hamburger-icon div {background:var(--st-heading,var(--st-primary))!important}
 html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body .shared-tool-footer {
  box-sizing:border-box;display:block;float:none;width:calc(100% - 30px)!important;max-width:970px!important;margin:20px auto 0!important;order:initial;
 }
 @media(max-width:768px) {
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-ready] body .header-bar .header-center-notice{background:color-mix(in srgb,var(--st-surface) 50%,transparent)!important;color:var(--st-ink)!important}
 }
 @media(prefers-reduced-transparency:reduce) {
  html[data-site-theme="kgi-expressive-glass"][data-site-theme-engine="2"][data-site-theme-material="frosted"][data-site-theme-ready] body .header-bar{background:var(--st-surface)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 }
}
