/* ============================================================================
   BARBAROS — analytics-pro.css (ANALYTICS owner, runtime root `.anx` in #panel-analytics)
   ----------------------------------------------------------------------------
   Namespace `anx-` (no card/-chip/-tag/-box/block/badge/status fragments: the legacy painters
   in dark-fix.css / buld-theme.css / sidebar.css re-colour any class containing them).
   Selectors are `html[data-buld-theme] .anx …`. Colours come only from --buld-* tokens; the
   categorical chart scale (--anx-cat-*) is derived from them with color-mix().

   !important COLLISION LIST (the only places this file uses !important):
     1. #panel-analytics.anx-on > .an-header / > .anp  → display:none. The legacy header
        (.an-header-title { display:flex } in orders.css) and the analytics-premium root stay in the
        DOM as the fallback; `anx-on` is set only after this module rendered successfully.
     2. .anx-tbl td / th colour + background → beats buld-theme.css:589
        `html[data-buld-theme] body table td { color/background … !important }`, buld-theme.css:564
        `table tr:hover td { background … !important }`, orders.css:3915 `tbody tr:hover td
        { … !important }` and dark-fix.css:129-135 `body.dark td/th/tbody tr { … !important }`.
     3. .anx h1/h3 colour → beats dark-fix.css:100 `body.dark .panel h1…h4 { color … !important }`.
   ============================================================================ */
:root {
    --anx-cat-1: var(--buld-cta);
    --anx-cat-2: var(--buld-success);
    --anx-cat-3: color-mix(in srgb, var(--buld-cta) 55%, var(--buld-success));
    --anx-cat-4: color-mix(in srgb, var(--buld-cta) 55%, var(--buld-danger));
    --anx-cat-5: var(--buld-ink-3);
    --anx-cat-6: var(--buld-danger);
    --anx-cat-7: color-mix(in srgb, var(--buld-ink-4) 70%, transparent);
    --anx-cat-8: var(--buld-warning);
    --anx-pane-bg: var(--p-card-bg, var(--buld-elevated-2));
    --anx-pane-line: var(--p-card-border, var(--buld-hairline));
    --anx-dur: var(--bx-dur-hover, 140ms);
    --anx-ease: var(--bx-ease, cubic-bezier(.2, .7, .2, 1));
}
@media (prefers-reduced-motion: reduce) { :root { --anx-dur: 0ms; } }

/* 1 — takeover of the legacy panel content (collision 1) */
#panel-analytics.anx-on > .an-header,
#panel-analytics.anx-on > .anp { display: none !important; }

html[data-buld-theme] .anx { color: var(--buld-ink-1); font-size: 13px; min-width: 0; }
html[data-buld-theme] .anx *, html[data-buld-theme] .anx *::before, html[data-buld-theme] .anx *::after { box-sizing: border-box; }
html[data-buld-theme] .anx .anx-ic { width: 15px; height: 15px; flex: none; stroke-width: 2; }
html[data-buld-theme] .anx .num, html[data-buld-theme] .anx-tbl td.num { font-variant-numeric: tabular-nums; }

/* 2 — header + tabs */
html[data-buld-theme] .anx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 2px 0 14px; }
html[data-buld-theme] .anx-head__t { display: flex; align-items: center; gap: 12px; min-width: 0; }
html[data-buld-theme] .anx-head__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--buld-cta-soft); color: var(--buld-cta); flex: none; }
html[data-buld-theme] .anx-head__ic .anx-ic { width: 19px; height: 19px; }
html[data-buld-theme] .anx .anx-head h1 { margin: 0; font: 600 21px/1.2 var(--buld-font-display, inherit); letter-spacing: -0.02em; color: var(--buld-ink-1) !important; }
html[data-buld-theme] .anx-range { margin: 2px 0 0; color: var(--buld-ink-3); font-size: 12px; }
html[data-buld-theme] .anx-head__a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

html[data-buld-theme] .anx-tabs {
    display: flex; gap: 2px; margin: 0 0 18px; padding: 0 0 0; border-bottom: 1px solid var(--buld-hairline);
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
html[data-buld-theme] .anx-tabs::-webkit-scrollbar { display: none; }
html[data-buld-theme] .anx-tab {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    height: 40px; padding: 0 14px; margin-bottom: -1px;
    border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--buld-ink-3);
    font: 500 13px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap;
    transition: color var(--anx-dur) var(--anx-ease), border-color var(--anx-dur) var(--anx-ease), background var(--anx-dur) var(--anx-ease);
}
html[data-buld-theme] .anx-tab:hover { color: var(--buld-ink-1); background: var(--buld-hover); border-radius: 8px 8px 0 0; }
html[data-buld-theme] .anx-tab[aria-selected="true"] { color: var(--buld-ink-1); border-bottom-color: var(--buld-cta); font-weight: 600; }
html[data-buld-theme] .anx-tab[aria-selected="true"] .anx-ic { color: var(--buld-cta); }
html[data-buld-theme] .anx-tab:focus-visible { outline: 2px solid var(--buld-cta); outline-offset: -2px; border-radius: 8px 8px 0 0; }

/* segmented control */
html[data-buld-theme] .anx-seg { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--buld-hairline); border-radius: 999px; background: var(--anx-pane-bg); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
html[data-buld-theme] .anx-seg__btn {
    height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--buld-ink-2);
    font: 500 12.5px/1 inherit; font-family: inherit; white-space: nowrap; cursor: pointer;
    transition: background var(--anx-dur) var(--anx-ease), color var(--anx-dur) var(--anx-ease);
}
html[data-buld-theme] .anx-seg__btn:hover { background: var(--buld-hover); color: var(--buld-ink-1); }
html[data-buld-theme] .anx-seg__btn[aria-pressed="true"] { background: var(--buld-cta); color: #fff; }
html[data-buld-theme] .anx-seg__btn:focus-visible { outline: 2px solid var(--buld-cta); outline-offset: 2px; }

html[data-buld-theme] .anx-ibtn {
    display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 9px;
    border: 1px solid transparent; background: transparent; color: var(--buld-ink-3); cursor: pointer;
    transition: background var(--anx-dur) var(--anx-ease), color var(--anx-dur) var(--anx-ease);
}
html[data-buld-theme] .anx-ibtn--lg { width: 34px; height: 34px; border-color: var(--buld-hairline); background: var(--anx-pane-bg); }
html[data-buld-theme] .anx-ibtn:hover { background: var(--buld-hover); color: var(--buld-ink-1); }
html[data-buld-theme] .anx-ibtn:focus-visible { outline: 2px solid var(--buld-cta); outline-offset: 2px; }

/* 3 — tools row */
html[data-buld-theme] .anx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 14px; }
html[data-buld-theme] .anx-field { display: inline-flex; align-items: center; gap: 8px; color: var(--buld-ink-3); font-size: 12.5px; }
html[data-buld-theme] .anx-select,
html[data-buld-theme] .anx-f input,
html[data-buld-theme] .anx-search input,
html[data-buld-theme] .anx-cell {
    height: 34px; padding: 0 10px; border: 1px solid var(--buld-hairline); border-radius: 10px;
    background: var(--buld-elevated-2); color: var(--buld-ink-1); font: 400 13px/1 inherit; font-family: inherit; min-width: 0;
    transition: border-color var(--anx-dur) var(--anx-ease), box-shadow var(--anx-dur) var(--anx-ease);
}
html[data-buld-theme] .anx-select { padding-right: 8px; max-width: 260px; }
html[data-buld-theme] .anx-select:focus, html[data-buld-theme] .anx-f input:focus, html[data-buld-theme] .anx-search input:focus, html[data-buld-theme] .anx-cell:focus {
    outline: none; border-color: var(--buld-cta); box-shadow: 0 0 0 3px var(--buld-cta-soft);
}
html[data-buld-theme] .anx [aria-invalid="true"] { border-color: var(--buld-danger); }
html[data-buld-theme] .anx-search { position: relative; display: inline-flex; align-items: center; flex: 1 1 200px; max-width: 320px; }
html[data-buld-theme] .anx-search .anx-ic { position: absolute; left: 10px; color: var(--buld-ink-4); pointer-events: none; }
html[data-buld-theme] .anx-search input { width: 100%; padding-left: 32px; }
html[data-buld-theme] .anx-cover { display: inline-flex; align-items: center; gap: 6px; }

/* 4 — KPI tiles */
html[data-buld-theme] .anx-kps { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin: 0 0 14px; }
html[data-buld-theme] .anx-kp {
    position: relative; min-width: 0; padding: 14px 14px 12px; border-radius: 14px;
    background: var(--anx-pane-bg); border: 1px solid var(--anx-pane-line); box-shadow: var(--bx-shadow-1, none);
}
html[data-buld-theme] .anx-kp__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
html[data-buld-theme] .anx-kp__label { color: var(--buld-ink-3); font-size: 12px; font-weight: 500; }
html[data-buld-theme] .anx-kp__value { margin-top: 6px; font: 650 21px/1.15 var(--buld-font-display, inherit); letter-spacing: -0.02em; color: var(--buld-ink-1); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html[data-buld-theme] .anx-kp.is-neg .anx-kp__value { color: var(--buld-danger); }
html[data-buld-theme] .anx-kp.is-ok .anx-kp__value { color: var(--buld-success); }
html[data-buld-theme] .anx-kp.is-warn .anx-kp__value { color: var(--buld-warning); }
html[data-buld-theme] .anx-kp.is-bad .anx-kp__value { color: var(--buld-danger); }
html[data-buld-theme] .anx-kp__sub { margin-top: 6px; color: var(--buld-ink-3); font-size: 11.5px; line-height: 1.35; }
html[data-buld-theme] .anx-i {
    display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: var(--buld-ink-4); cursor: help; flex: none; vertical-align: middle;
}
html[data-buld-theme] .anx-i .anx-ic { width: 13px; height: 13px; }
html[data-buld-theme] .anx-i:hover, html[data-buld-theme] .anx-i:focus-visible { color: var(--buld-cta); background: var(--buld-cta-soft); outline: none; }
html[data-buld-theme] .anx-d { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; font-weight: 600; font-size: 11.5px; }
html[data-buld-theme] .anx-d .anx-ic { width: 13px; height: 13px; }
html[data-buld-theme] .anx-d__vs { color: var(--buld-ink-4); font-weight: 500; }
html[data-buld-theme] .anx-d--up { color: var(--buld-success); }
html[data-buld-theme] .anx-d--down { color: var(--buld-danger); }
html[data-buld-theme] .anx-d--flat, html[data-buld-theme] .anx-d--na { color: var(--buld-ink-4); font-weight: 500; }

/* 5 — panes + grids */
html[data-buld-theme] .anx-grid { display: grid; gap: 14px; margin: 0 0 14px; }
html[data-buld-theme] .anx-grid--21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
html[data-buld-theme] .anx-grid--12, html[data-buld-theme] .anx-grid--11 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
html[data-buld-theme] .anx-grid > .anx-pane { margin: 0; }
html[data-buld-theme] .anx-pane {
    min-width: 0; margin: 0 0 14px; padding: 16px 16px 12px; border-radius: 16px;
    background: var(--anx-pane-bg); border: 1px solid var(--anx-pane-line); box-shadow: var(--bx-shadow-1, none);
}
html[data-buld-theme] .anx-pane--flush { padding: 0; overflow: hidden; }
html[data-buld-theme] .anx-pane--flush > .anx-pane__h { padding: 14px 16px 10px; margin: 0; }
html[data-buld-theme] .anx-pane__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 10px; }
html[data-buld-theme] .anx .anx-pane__h h3 { margin: 0; font: 600 14.5px/1.3 var(--buld-font-display, inherit); letter-spacing: -0.01em; color: var(--buld-ink-1) !important; }
html[data-buld-theme] .anx-muted { color: var(--buld-ink-3); font-size: 12px; }
html[data-buld-theme] .anx-faint { color: var(--buld-ink-4); }
html[data-buld-theme] .anx-ok { color: var(--buld-success); }
html[data-buld-theme] .anx-warn { color: var(--buld-warning); }
html[data-buld-theme] .anx-bad { color: var(--buld-danger); }
html[data-buld-theme] .anx-how { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; color: var(--buld-ink-4); font-size: 11.5px; line-height: 1.45; }
html[data-buld-theme] .anx-pane--flush .anx-how { padding: 0 16px 12px; }
html[data-buld-theme] .anx-how .anx-ic { width: 13px; height: 13px; margin-top: 1px; }
html[data-buld-theme] .anx-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--buld-cta-soft); color: var(--buld-ink-2); font-size: 12px; line-height: 1.45; }
html[data-buld-theme] .anx-note .anx-ic { color: var(--buld-cta); margin-top: 1px; }
html[data-buld-theme] .anx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--buld-ink-3); font-size: 12px; }
html[data-buld-theme] .anx-legend__i { display: inline-flex; align-items: center; gap: 6px; }
html[data-buld-theme] .anx-legend__i i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
html[data-buld-theme] .anx-legend__i.is-dash i { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }
html[data-buld-theme] .anx-empty { display: grid; justify-items: center; gap: 4px; padding: 30px 12px; text-align: center; color: var(--buld-ink-3); font-size: 12.5px; }
html[data-buld-theme] .anx-empty b { color: var(--buld-ink-1); font-size: 13.5px; }
html[data-buld-theme] .anx-empty__ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; background: var(--buld-hover); color: var(--buld-ink-3); }
html[data-buld-theme] .anx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 6 — charts */
html[data-buld-theme] .anx-chart { width: 100%; min-height: 60px; }
html[data-buld-theme] .anx-svg { display: block; max-width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
html[data-buld-theme] .anx-svg .anx-grid { stroke: var(--buld-hairline); stroke-width: 1; }
html[data-buld-theme] .anx-svg .anx-ax-base { stroke: var(--buld-divider); stroke-width: 1; }
html[data-buld-theme] .anx-svg .anx-ax { fill: var(--buld-ink-4); font-size: 10.5px; font-weight: 400; font-family: inherit; font-variant-numeric: tabular-nums; }
html[data-buld-theme] .anx-svg .anx-ax--lab { fill: var(--buld-ink-2); font-size: 11.5px; }
html[data-buld-theme] .anx-svg .anx-ax--val { fill: var(--buld-ink-1); font-size: 11px; font-weight: 600; }
html[data-buld-theme] .anx-svg .anx-area { fill: var(--c); opacity: .12; }
html[data-buld-theme] .anx-svg .anx-line { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
html[data-buld-theme] .anx-svg .anx-line.is-dash { stroke-width: 1.6; stroke-dasharray: 4 4; }
html[data-buld-theme] .anx-svg .anx-pt { fill: var(--c); stroke: var(--anx-pane-bg); stroke-width: 1.5; }
html[data-buld-theme] .anx-svg .anx-pt.is-dash { opacity: .7; }
html[data-buld-theme] .anx-svg .anx-cross { stroke: var(--buld-ink-4); stroke-dasharray: 3 3; }
html[data-buld-theme] .anx-svg .anx-hdot { fill: var(--c); stroke: var(--anx-pane-bg); stroke-width: 2; }
html[data-buld-theme] .anx-svg .anx-hit { cursor: crosshair; fill: transparent; stroke: none; }
html[data-buld-theme] .anx-svg rect.anx-bar { stroke: none; }
html[data-buld-theme] .anx-svg .anx-bar { fill: var(--c); transition: opacity var(--anx-dur) var(--anx-ease); }
html[data-buld-theme] .anx-svg .anx-fall--pos { fill: var(--buld-success); }
html[data-buld-theme] .anx-svg .anx-fall--neg { fill: var(--buld-danger); }
html[data-buld-theme] .anx-svg .anx-fall--cost { fill: color-mix(in srgb, var(--buld-danger) 70%, transparent); }
html[data-buld-theme] .anx-svg .anx-fall-link { stroke: var(--buld-ink-4); stroke-dasharray: 2 3; }
html[data-buld-theme] .anx-donut-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
html[data-buld-theme] .anx-donut { flex: none; }
html[data-buld-theme] .anx-donut__track { fill: none; stroke: var(--buld-hairline); }
html[data-buld-theme] .anx-donut__seg { fill: none; stroke: var(--c); cursor: help; transition: opacity var(--anx-dur) var(--anx-ease); }
html[data-buld-theme] .anx-donut__seg:hover { opacity: .8; }
html[data-buld-theme] .anx-donut__v { fill: var(--buld-ink-1); font-size: 20px; font-weight: 700; font-family: inherit; }
html[data-buld-theme] .anx-donut__s { fill: var(--buld-ink-3); font-size: 11px; font-family: inherit; }
html[data-buld-theme] .anx-dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; flex: 1 1 150px; min-width: 0; }
html[data-buld-theme] .anx-dlist li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; font-size: 12.5px; }
html[data-buld-theme] .anx-dlist i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
html[data-buld-theme] .anx-dlist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--buld-ink-2); }
html[data-buld-theme] .anx-dlist small { color: var(--buld-ink-4); font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }
html[data-buld-theme] .anx-spark { display: inline-block; vertical-align: middle; }
html[data-buld-theme] .anx-spark polyline { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
html[data-buld-theme] .anx-spark.is-up polyline { stroke: var(--buld-success); }
html[data-buld-theme] .anx-spark.is-up circle { fill: var(--buld-success); }
html[data-buld-theme] .anx-spark.is-down polyline { stroke: var(--buld-danger); }
html[data-buld-theme] .anx-spark.is-down circle { fill: var(--buld-danger); }

/* floating tooltip (appended to body) */
.anx-tip {
    position: fixed; left: 0; top: 0; z-index: var(--p-z-toast, 9000); transform: translate(var(--x, 0), var(--y, 0));
    max-width: 300px; padding: 8px 10px; border-radius: 10px; pointer-events: none;
    background: var(--buld-ink-1); color: var(--buld-page); font-size: 12px; line-height: 1.45;
    box-shadow: var(--bx-shadow-2, 0 8px 24px rgba(0, 0, 0, .25));
}
.anx-tip[hidden] { display: none; }
.anx-tip b { font-weight: 600; }
.anx-tip > b { display: block; margin-bottom: 3px; }
.anx-tip__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; }
.anx-tip__row i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, transparent); }
.anx-tip__row b { margin-left: 10px; font-variant-numeric: tabular-nums; }
.anx-tip__how { display: block; margin-top: 4px; opacity: .75; }

/* 7 — funnel */
html[data-buld-theme] .anx-funnel { display: grid; gap: 4px; }
html[data-buld-theme] .anx-fstep { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) 84px; align-items: center; gap: 12px; padding: 6px 0; }
html[data-buld-theme] .anx-fstep__lab { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
html[data-buld-theme] .anx-fstep__lab small { flex-basis: 100%; color: var(--buld-ink-3); font-size: 11.5px; }
html[data-buld-theme] .anx-fstep__pct { text-align: right; }
html[data-buld-theme] .anx-fstep__pct small { display: block; color: var(--buld-ink-4); font-size: 11px; }
html[data-buld-theme] .anx-fbar { position: relative; height: 34px; border-radius: 9px; background: var(--buld-hover); overflow: hidden; }
html[data-buld-theme] .anx-fbar i { position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 3px; border-radius: 9px; background: var(--c); transition: width 600ms var(--anx-ease); }
html[data-buld-theme] .anx-fbar span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #fff; font-weight: 650; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
html[data-buld-theme] .anx-fdrop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; padding: 6px 0 6px 12px; border-left: 2px dashed var(--buld-hairline); color: var(--buld-ink-3); font-size: 12px; }
html[data-buld-theme] .anx-fdrop__gap { font-weight: 600; color: var(--buld-ink-2); }
html[data-buld-theme] .anx-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--buld-hover); color: var(--buld-ink-2); font-size: 11.5px; }
html[data-buld-theme] .anx-pill b { color: var(--buld-ink-1); font-variant-numeric: tabular-nums; }
html[data-buld-theme] .anx-pill--bad { background: var(--buld-danger-soft); color: var(--buld-danger); }
html[data-buld-theme] .anx-pill--bad b { color: var(--buld-danger); }

/* 8 — tables (collision 2) */
html[data-buld-theme] .anx-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
html[data-buld-theme] .anx-tw--short { max-height: 340px; overflow-y: auto; }
html[data-buld-theme] .anx .anx-tbl { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12.5px; }
html[data-buld-theme] .anx .anx-tbl--rank { min-width: 900px; }
html[data-buld-theme] .anx .anx-tbl thead { background: transparent; }
html[data-buld-theme] .anx .anx-tbl th {
    position: static; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--buld-hairline) !important; border-radius: 0;
    background: var(--buld-surface-2, var(--buld-hover)) !important; color: var(--buld-ink-3) !important;
    font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
html[data-buld-theme] .anx .anx-tbl td {
    padding: 10px 12px; border: 0; border-top: 1px solid var(--buld-hairline) !important;
    background: transparent !important; color: var(--buld-ink-1) !important; font-size: 12.5px; text-align: left; white-space: nowrap; vertical-align: middle;
}
html[data-buld-theme] .anx .anx-tbl tbody tr:nth-child(n) td { background: transparent !important; }
html[data-buld-theme] .anx .anx-tbl tbody tr:hover td { background: var(--buld-hover) !important; }
html[data-buld-theme] .anx .anx-tbl .r { text-align: right; }
html[data-buld-theme] .anx .anx-tbl td.anx-ok, html[data-buld-theme] .anx .anx-tbl td.anx-ok b { color: var(--buld-success) !important; }
html[data-buld-theme] .anx .anx-tbl td.anx-bad, html[data-buld-theme] .anx .anx-tbl td.anx-bad b { color: var(--buld-danger) !important; }
html[data-buld-theme] .anx .anx-tbl td.anx-warn, html[data-buld-theme] .anx .anx-tbl td .anx-warn { color: var(--buld-warning) !important; }
html[data-buld-theme] .anx .anx-tbl td .anx-ok { color: var(--buld-success) !important; }
html[data-buld-theme] .anx .anx-tbl td.anx-faint, html[data-buld-theme] .anx .anx-tbl td .anx-faint, html[data-buld-theme] .anx .anx-tbl td.anx-faint b { color: var(--buld-ink-4) !important; }
html[data-buld-theme] .anx .anx-tbl td small, html[data-buld-theme] .anx .anx-sub { display: block; margin-top: 2px; color: var(--buld-ink-3); font-size: 11px; font-weight: 400; white-space: normal; }
html[data-buld-theme] .anx .anx-tbl th .anx-i { width: 16px; height: 16px; margin-left: 2px; }
html[data-buld-theme] .anx-num-col { width: 36px; }
html[data-buld-theme] .anx-share-col { min-width: 140px; }
html[data-buld-theme] .anx-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
html[data-buld-theme] .anx-sort:hover, html[data-buld-theme] .anx-sort.is-on { color: var(--buld-ink-1); }
html[data-buld-theme] .anx-sort .anx-ic { width: 12px; height: 12px; }
html[data-buld-theme] .anx-sort:focus-visible { outline: 2px solid var(--buld-cta); outline-offset: 2px; border-radius: 4px; }
html[data-buld-theme] .anx-name { display: flex; align-items: center; gap: 10px; min-width: 170px; }
html[data-buld-theme] .anx-name b { font-weight: 600; }
html[data-buld-theme] .anx-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); font-size: 11px; font-weight: 700; }
html[data-buld-theme] .anx-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--c); }
html[data-buld-theme] .anx-share { height: 6px; border-radius: 999px; background: var(--buld-hover); overflow: hidden; }
html[data-buld-theme] .anx-share i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--buld-cta); }

/* 9 — P&L */
html[data-buld-theme] .anx-pl { margin: 0; display: grid; }
html[data-buld-theme] .anx-pl__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 9px 0; border-top: 1px solid var(--buld-hairline); }
html[data-buld-theme] .anx-pl__row:first-child { border-top: 0; }
html[data-buld-theme] .anx-pl__row dt { margin: 0; color: var(--buld-ink-2); font-weight: 500; }
html[data-buld-theme] .anx-pl__row dt small { display: block; margin-top: 2px; color: var(--buld-ink-4); font-size: 11px; font-weight: 400; line-height: 1.4; }
html[data-buld-theme] .anx-pl__row dd { margin: 0; color: var(--buld-ink-1); font-weight: 600; white-space: nowrap; }
html[data-buld-theme] .anx-pl__row:not(.is-total):not(.is-net) dd { color: var(--buld-danger); }
html[data-buld-theme] .anx-pl__row.is-total dt, html[data-buld-theme] .anx-pl__row.is-net dt { color: var(--buld-ink-1); font-weight: 600; }
html[data-buld-theme] .anx-pl__row.is-net { margin-top: 4px; padding-top: 12px; border-top: 2px solid var(--buld-divider); }
html[data-buld-theme] .anx-pl__row.is-net dd { font-size: 18px; color: var(--buld-success); }
html[data-buld-theme] .anx-pl__row.is-net.is-neg dd { color: var(--buld-danger); }

/* 10 — forms */
html[data-buld-theme] .anx-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
html[data-buld-theme] .anx-f { display: grid; gap: 5px; min-width: 0; color: var(--buld-ink-3); font-size: 12px; font-weight: 500; }
html[data-buld-theme] .anx-f em { font-style: normal; color: var(--buld-ink-4); font-weight: 400; }
html[data-buld-theme] .anx-f input, html[data-buld-theme] .anx-f .anx-select { width: 100%; max-width: none; }
html[data-buld-theme] .anx-f--full, html[data-buld-theme] .anx-ferr, html[data-buld-theme] .anx-factions { grid-column: 1 / -1; }
html[data-buld-theme] .anx-f--inline { display: inline-flex; align-items: center; gap: 8px; }
html[data-buld-theme] .anx-f--inline span { display: inline-flex; align-items: center; gap: 2px; }
html[data-buld-theme] .anx-f--inline input { width: 110px; }
html[data-buld-theme] .anx-ferr { margin: 0; color: var(--buld-danger); font-size: 12px; }
html[data-buld-theme] .anx-ferr[hidden] { display: none; }
html[data-buld-theme] .anx-factions { display: flex; justify-content: flex-end; }
html[data-buld-theme] .anx-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--buld-hairline); background: transparent; color: var(--buld-ink-1); font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; transition: background var(--anx-dur) var(--anx-ease), transform var(--anx-dur) var(--anx-ease); }
html[data-buld-theme] .anx-btn--primary { border-color: transparent; background: var(--buld-cta); color: #fff; }
html[data-buld-theme] .anx-btn--primary:hover { background: var(--buld-cta-hover, var(--buld-cta)); }
html[data-buld-theme] .anx-btn:active { transform: scale(.98); }
html[data-buld-theme] .anx-btn:focus-visible { outline: 2px solid var(--buld-cta); outline-offset: 2px; }
html[data-buld-theme] .anx .anx-cell { width: 104px; height: 30px; text-align: right; }

/* 11 — responsive */
@media (max-width: 1100px) {
    html[data-buld-theme] .anx-grid--21 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
    html[data-buld-theme] .anx-grid--12, html[data-buld-theme] .anx-grid--11 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    html[data-buld-theme] .anx-kps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    html[data-buld-theme] .anx-kp { padding: 12px 11px 10px; }
    html[data-buld-theme] .anx-kp__value { font-size: 17px; }
    html[data-buld-theme] .anx-pane { padding: 14px 12px 10px; border-radius: 14px; }
    html[data-buld-theme] .anx-pane--flush { padding: 0; }
    html[data-buld-theme] .anx-fstep { grid-template-columns: minmax(0, 1fr) 70px; }
    html[data-buld-theme] .anx-fstep .anx-fbar { grid-column: 1 / -1; grid-row: 2; }
    html[data-buld-theme] .anx-form { grid-template-columns: minmax(0, 1fr); }
    html[data-buld-theme] .anx-head__a { width: 100%; justify-content: space-between; }
    html[data-buld-theme] .anx-select { max-width: 200px; }
    html[data-buld-theme] .anx-search { max-width: none; }
}
