/* AS2 presentation layer v1.0.0. Uses the application's configured brand.
   No content, navigation, permissions or business behavior is replaced. */
html[data-theme="dark"] {
  --color-bg:#101214; --color-surface:#191c1f; --color-surface-elevated:#23282d;
  --color-text:#f1f3f4; --color-text-muted:#b1bac2; --color-text-subtle:#9ca7b0;
  --color-border:#363e45; --color-border-strong:#57636d;
}
html[data-theme="light"] {
  --color-bg:#f2f4f5; --color-surface:#fff; --color-surface-elevated:#eaf0f3;
  --color-text:#1d2933; --color-text-muted:#4d5c68; --color-text-subtle:#62727f;
  --color-border:#d4dce2; --color-border-strong:#a8b6c1;
}
body {font-family:'Segoe UI',Arial,sans-serif; letter-spacing:0;}
:root {--presentation-accent:var(--color-accent-500);}
html:has(img[src*="13197bb8-9dbb-4b50-b18b-0e0896c75312"]) {--presentation-accent:#c8aa68;}
main h1 {font-size:clamp(1.6rem,2.3vw,2.15rem);font-weight:750;letter-spacing:-.035em;line-height:1.18;}
main h2 {font-weight:700;letter-spacing:-.02em;}
main header:has(h1) {padding-bottom:1.15rem;border-bottom:1px solid var(--color-border-strong);}
main .rounded-lg.border.bg-surface,
main .rounded-xl.border.bg-surface,
main .rounded-lg.border.bg-card {
  border-color:var(--color-border-strong);border-radius:12px;
  box-shadow:0 5px 18px #0000000d;
}
main .rounded-lg.border.bg-surface:has(h2),
main .rounded-lg.border.bg-surface:has(.tabular-nums) {
  border-top:3px solid var(--presentation-accent);
}
main .grid > div:has(>p.tabular-nums) {
  padding:16px;border-radius:9px;border:1px solid var(--color-border);
  background:var(--color-surface-elevated);border-top:3px solid var(--presentation-accent);
}
main p.tabular-nums.text-2xl {font-size:2rem;line-height:1.15;font-weight:750;letter-spacing:-.03em;}
main p.tabular-nums + p {margin-top:8px;font-weight:600;}
main th {font-weight:700;color:var(--color-text);background:var(--color-surface-elevated);}
main table {border-color:var(--color-border);}
main tbody tr:hover {background:color-mix(in srgb,var(--color-accent-500) 7%,var(--color-surface));}
main button.bg-primary, main a.bg-primary {font-weight:700;box-shadow:0 2px 5px #0002;}
:is(aside.sticky,[role="dialog"]):has(nav[aria-label]) {
  background:#000;color:#ebedf0;border-color:#30363c;
  --color-text:#ebedf0;--color-text-muted:#b3bec7;--color-text-subtle:#a7b2bb;
  --muted-foreground:#b3bec7;--foreground:#ebedf0;--border:#30363c;
}
:is(aside.sticky,[role="dialog"]):has(nav[aria-label]) > div.h-14:has(img) {
  min-height:100px;height:100px;justify-content:center;
}
:is(aside.sticky,[role="dialog"]):has(nav[aria-label]) > div.h-14 img {
  height:78px;max-width:175px;width:auto;object-fit:contain;
}
/* Only this known black-background asset loses the white contrast mat.
   Other companies retain the product's logo protection and their own asset. */
:is(aside.sticky,[role="dialog"]) div.rounded-md:has(>img[src*="13197bb8-9dbb-4b50-b18b-0e0896c75312"]) {
  background:#000;padding:0;box-shadow:none;
}
:is(aside.sticky,[role="dialog"]) nav a {font-weight:500;}
:is(aside.sticky,[role="dialog"]) nav a[aria-current="page"] {
  background:color-mix(in srgb,var(--presentation-accent) 23%,#000);
  color:#f5f2e9;box-shadow:inset 3px 0 var(--presentation-accent);font-weight:700;
}
:is(aside.sticky,[role="dialog"]) nav h2 button {color:#aab5bf;font-size:10px;font-weight:700;letter-spacing:.095em;text-transform:uppercase;}
:is(aside.sticky,[role="dialog"]) nav a:hover {background:#1c2228;color:#fff;}
.recharts-cartesian-axis-tick-value {fill:var(--color-text-muted);font-size:12px;}
.recharts-cartesian-grid line {stroke:var(--color-border);}
.recharts-legend-item-text {color:var(--color-text)!important;}
@media(max-width:767px) {
  main h1{font-size:1.65rem;}
  main p.tabular-nums.text-2xl{font-size:1.7rem;}
  main .grid > div:has(>p.tabular-nums){padding:12px;}
}
@media(prefers-reduced-motion:reduce) {html{scroll-behavior:auto;}}
