/* No layout properties and no hidden initial state. All movement is optional. */
[data-kd-content="point"] { transform-box: fill-box; transform-origin: center; }
[data-kd-content="column"] { transform-box: fill-box; transform-origin: center bottom; }
[data-kd-content="bar"] { transform-box: fill-box; transform-origin: left center; }
[data-kd-content="value"] { transform-origin: left center; }
:is(.kpi,.sales-kpi,.workbench-kpis article,.sif-card,.correlation-kpis article,.sales-reason,.sales-market-summary > div) { position:relative; }
@media (prefers-reduced-motion: no-preference) {
  [data-kd-motion] { transform-origin: 50% 30%; }
  [data-kd-arriving]::before {
    content:""; position:absolute; inset:0; padding:1.5px; border-radius:inherit; pointer-events:none;
    background:linear-gradient(110deg,transparent 25%,#667eea45 44%,#ffffffcc 50%,transparent 70%) 190% 0 / 250% 100%;
    -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor; mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite:exclude;
    animation:kd-rim-arrival 780ms cubic-bezier(.16,1,.3,1) both;
  }
  [data-kd-content="value"][data-kd-playing] { text-shadow:none; }
  [data-kd-content="line"][data-kd-playing] { filter: drop-shadow(0 2px 3px rgba(102,126,234,.3)); }
  [data-kd-content="bar"][data-kd-playing] { filter: drop-shadow(0 2px 5px rgba(102,126,234,.2)); }
  :is(button,.nav-link,.workspace-tabs a,summary) {
    transition: color 180ms ease, background-color 220ms ease, box-shadow 320ms ease, translate 360ms cubic-bezier(.22,1,.36,1), scale 240ms cubic-bezier(.22,1,.36,1);
  }
  :is(button,.nav-link,.workspace-tabs a):active:not(:disabled) { translate: 0 1px; scale: .985; }
  :is(select,input,textarea):focus-visible { transition: box-shadow 220ms ease, outline-color 220ms ease; }
  .source-chevron { transition: transform 420ms cubic-bezier(.22,1,.36,1); }
  .product-menu { animation: kd-menu-in 350ms cubic-bezier(.16,1,.3,1); transform-origin: top center; }
  dialog[open] { animation: kd-dialog-in 540ms cubic-bezier(.16,1,.3,1); }
  dialog[open]::backdrop { animation: kd-backdrop-in 380ms ease-out; }
  :is(.nav-link.active,.workspace-tabs a.active,.sales-switch button[aria-pressed="true"]) { animation: kd-selection-in 400ms cubic-bezier(.22,1,.36,1); }
  /* One restrained material response; no perpetual glow or animated metrics. */
  :is(.sales-kpi,.workbench-kpis article) { transition:translate 420ms cubic-bezier(.22,1,.36,1),box-shadow 300ms ease; }
  .nav-link::before { transition:border-color 200ms ease,box-shadow 240ms ease; }
  .nav-link.active::before { box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 9%,transparent); }
  .theme-choice svg { transition:transform 360ms cubic-bezier(.22,1,.36,1); }
  .theme-choice[aria-pressed="true"] svg { transform:scale(1.06); }
  :is(.theme-switch,.sales-switch,.segments) { transition:box-shadow 240ms ease; }
  :is(.sales-deep-panel,.source-accordion)>summary { transition:color 180ms ease; }
  :is(.sales-deep-panel,.source-accordion)>summary:hover { color:var(--accent-ink); }
  @media (hover: hover) and (pointer: fine) {
    :is(.sales-kpi,.workbench-kpis article):hover { translate:0 -2px; }
    :is(.kpi,.sif-card,.correlation-kpis article,.sales-reason,.sales-market-summary > div) { position: relative; }
    :is(.kpi,.sif-card,.correlation-kpis article) { transition: translate 480ms cubic-bezier(.22,1,.36,1), box-shadow 480ms ease; }
    :is(.kpi,.sif-card,.correlation-kpis article):hover { translate: 0 -3px; box-shadow: 10px 14px 24px rgba(143,158,180,.25), -7px -7px 20px rgba(255,255,255,.8); }
    /* Decorative light never captures a click, changes stacking, or clips a tooltip. */
    [data-kd-light]::after {
      content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
      background: radial-gradient(260px circle at var(--kd-light-x,50%) var(--kd-light-y,50%), rgba(255,255,255,.10), rgba(102,126,234,.07) 42%, transparent 72%);
      animation: kd-light-in 300ms ease-out;
    }
    :is(.nav-link,.workspace-tabs a,.stButton > button,.stDownloadButton > button,.sales-button):hover:not(:disabled) { translate: 0 -2px; }
  }
}
@keyframes kd-value-light { 0%,25% { text-shadow: 0 0 22px rgba(102,126,234,.38); } 100% { text-shadow: 0 0 0 transparent; } }
@keyframes kd-rim-arrival { 0% { background-position:190% 0; opacity:0; } 15% { opacity:1; } 100% { background-position:-90% 0; opacity:0; } }
@keyframes kd-light-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes kd-selection-in { from { scale: .985; } to { scale: 1; } }
@keyframes kd-menu-in { from { opacity: .4; translate: 0 10px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes kd-dialog-in { from { opacity: .7; translate: 0 14px; scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes kd-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  [data-kd-arriving]::before,[data-kd-light]::after { display:none!important; }
}
@media print {
  [data-kd-light]::after { display: none !important; }
  [data-kd-motion],[data-kd-content] { opacity: 1 !important; translate: none !important; scale: none !important; filter: none !important; stroke-dashoffset: 0 !important; }
}
