/* Staff command-center dashboard: grid, filter bar, tiles and server-rendered SVG charts (db- prefix). */

/* ---------- layout ---------- */
.db-page { gap: 10px; }
.db-g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.db-g12 > div { min-width: 0; display: flex; flex-direction: column; }
.db-g12 > div > .ct-panel { flex: 1; }
.db-s2 { grid-column: span 2 } .db-s3 { grid-column: span 3 } .db-s4 { grid-column: span 4 } .db-s5 { grid-column: span 5 }
.db-s6 { grid-column: span 6 } .db-s7 { grid-column: span 7 } .db-s8 { grid-column: span 8 } .db-s9 { grid-column: span 9 }
.db-s10 { grid-column: span 10 } .db-s11 { grid-column: span 11 } .db-s12 { grid-column: span 12 }
.db-panel .ct-pbody { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.db-panel .ct-pfoot { padding: 10px 12px; }

/* ---------- filter bar & ticker ---------- */
.db-filterbar { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; box-shadow: var(--shadow); }
.db-fgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.db-fright { margin-left: auto; }
.db-flabel { font-size: 11px; font-weight: 700; color: #3d5166; text-transform: uppercase; letter-spacing: .04em; }
.db-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid #c7d6e4; border-radius: 3px; background: #f5f8fb; font-size: 12px; font-weight: 700; color: #2f5f88; }
.db-stamp { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.db-small { font-size: 12px; }
.db-ticker { border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.db-ticker .track { gap: 34px; padding: 9px 0; }
.db-ticker .track em { font-style: normal; }

/* ---------- KPI grid ---------- */
.db-kpis .ct-kpi { min-height: 116px; }
.db-kpis .ct-kpi em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- tiles & metrics ---------- */
.db-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.db-tiles.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.db-tiles.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.db-tiles.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.db-tile { background: var(--panel2); border: 1px solid #dde5ed; border-radius: 3px; padding: 7px 10px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.db-tile > span { flex: 1 0 100%; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-tile > b { font-size: 16px; line-height: 1.35; color: var(--text); white-space: nowrap; }
.db-d { font-style: normal; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.db-d.up { color: var(--okFg); } .db-d.dn { color: var(--badFg); } .db-d.nt { color: var(--muted); font-weight: 400; }
.db-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px 14px; padding-bottom: 10px; border-bottom: 1px solid #e3eaf0; }
.db-metrics.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.db-metrics > div { min-width: 0; }
.db-metrics span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-metrics b { font-size: 17px; color: var(--text); white-space: nowrap; }
.db-metrics b .db-d { font-size: 16px; }
.db-subhead { font-size: 11.5px; font-weight: 700; color: #3d5166; text-transform: uppercase; letter-spacing: .03em; margin-bottom: -4px; }
.db-foot { margin: 0; font-size: 11.5px; color: var(--muted); }
.db-nodata { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; padding: 14px 4px; }
.db-nodata i { font-size: 18px; color: #9fb2c6; }

/* ---------- SVG charts ---------- */
.db-chart { min-width: 0; }
.db-svg { display: block; width: 100%; height: auto; overflow: visible; }
.db-grid { stroke: #e5ecf2; stroke-width: 1; }
.db-zero { stroke: #9fb2c6; stroke-width: 1; }
.db-cross { stroke: #9fb2c6; stroke-dasharray: 3 3; }
.db-link { stroke: #9fb2c6; stroke-dasharray: 2 2; }
.db-ax { font: 11px var(--fb); fill: #6a7d91; }
.db-val { font: 700 11px var(--fb); fill: #2f4559; }
.db-none { font: 13px var(--fb); fill: #8a9bb0; }
.db-hit { fill: transparent; }
.db-svg g:hover .db-hit { fill: rgba(26, 127, 224, .06); }
.db-callout rect { fill: #fff; stroke: #cbd7e2; filter: drop-shadow(0 2px 4px rgba(18, 45, 72, .12)); }
.db-cl { font: 12px var(--fb); fill: #3d5166; }
.db-cl.b { font-weight: 700; fill: var(--text); }
.db-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text2); margin-top: 6px; }
.db-legend.inline { margin: 0; }
.db-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.db-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.db-legend i.ln { height: 3px; width: 14px; border-radius: 2px; }
.db-legend b { color: var(--text); }
.db-legend em { font-style: normal; color: var(--muted); }
.db-legend.db-scale { gap: 3px; align-items: center; color: var(--muted); }
.db-legend.db-scale i { width: 16px; height: 10px; }
.db-legend.db-scale span { margin: 0 4px; }
.db-spark { display: block; }

/* donut */
.db-donut { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.db-donut-svg { flex: none; max-width: 100%; height: auto; }
.db-dc { font: 700 18px var(--fb); fill: var(--text); }
.db-ds { font: 10.5px var(--fb); fill: #6a7d91; }
.db-dlegend { list-style: none; margin: 0; padding: 0; flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.db-dlegend li { display: flex; align-items: center; gap: 8px; }
.db-dlegend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.db-dlegend .l { flex: 1; min-width: 0; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-dlegend .l small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.db-dlegend b { color: var(--text); white-space: nowrap; }
.db-dlegend em { font-style: normal; color: var(--muted); width: 34px; text-align: right; flex: none; }

/* rings */
.db-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #e3eaf0; }
.db-ring { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.db-ring svg { max-width: 100%; height: auto; }
.db-ring b { font-size: 12.5px; color: var(--text); margin-top: 4px; }
.db-ring small { font-size: 11px; color: var(--muted); }
.db-rv { font: 700 15px var(--fb); fill: var(--text); }

/* horizontal bars, limits, funnel */
.db-hbars, .db-limits, .db-funnel { display: flex; flex-direction: column; gap: 9px; }
.db-hbars.thin { gap: 7px; }
.db-hbars .top, .db-limits .top, .db-funnel .top { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; margin-bottom: 4px; }
.db-hbars .l, .db-limits .top > span, .db-funnel .top > span { flex: 1; min-width: 0; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-hbars .l small { color: var(--muted); font-size: 11px; margin-left: 6px; }
.db-hbars b, .db-limits b, .db-funnel b { color: var(--text); white-space: nowrap; }
.db-hbars em, .db-funnel em { font-style: normal; color: var(--muted); font-size: 11.5px; width: 34px; text-align: right; flex: none; }
.db-hbars .track, .db-limits .track, .db-funnel .track { position: relative; height: 8px; background: #e8eef4; border-radius: 4px; }
.db-hbars.thin .track { height: 6px; }
.db-funnel .track { height: 12px; border-radius: 3px; }
.db-hbars .track span, .db-limits .track span, .db-funnel .track span { display: block; height: 100%; border-radius: inherit; }
.db-limits .tick, .db-hbars .tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--brand-navy); border-radius: 1px; margin-left: -1px; }
.db-funnel small { font-size: 11px; }

/* segmented bar, buckets */
.db-seg .bar { display: flex; gap: 2px; background: #e8eef4; border-radius: 3px; overflow: hidden; }
.db-seg .bar span { display: block; min-width: 2px; }
.db-buckets { display: flex; flex-direction: column; gap: 10px; }
.db-buckets .top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 4px; color: var(--text2); }
.db-buckets .bar { display: flex; gap: 2px; height: 12px; background: #e8eef4; border-radius: 2px; overflow: hidden; }
.db-buckets .bar span { display: block; min-width: 3px; }
.db-buckets .row.total { padding-top: 8px; border-top: 1px dashed #d5dfe8; }
.db-buckets .row.total .top span { font-weight: 700; color: var(--text); }

/* composition list */
.db-comp { display: flex; flex-direction: column; gap: 6px; }
.db-comp .hd { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 4px; }
.db-list { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.db-list li { display: flex; align-items: center; gap: 7px; color: var(--text2); }
.db-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-list li i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.db-list li b { color: var(--text); }

/* segmented toggle */
.db-segbtn a { min-height: 28px; }

/* signals */
.db-signals { display: flex; flex-direction: column; gap: 8px; }
.db-signal { display: flex; gap: 10px; padding: 9px; border-radius: 3px; background: #f8fbfd; border: 1px solid #dde5ed; font-size: 12.5px; }
.db-signal .ic { width: 28px; height: 28px; border-radius: 3px; display: grid; place-items: center; flex: none; background: var(--infoBg); color: var(--infoFg); font-size: 14px; }
.db-signal.ok .ic { background: var(--okBg); color: var(--okFg); } .db-signal.warn .ic { background: var(--warnBg); color: var(--warnFg); } .db-signal.bad .ic { background: var(--badBg); color: var(--badFg); }
.db-signal b { display: block; color: var(--text); }
.db-signal b a { color: inherit; }
.db-signal p { margin: 2px 0 0; color: var(--text2); }

/* stream table */
.db-who { display: inline-flex; align-items: center; gap: 8px; }
.db-av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; flex: none; position: relative; }
.db-av.lg { width: 32px; height: 32px; font-size: 11.5px; }
.db-av.lg i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: #18ae73; }
.db-riskbar { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: #e8eef4; overflow: hidden; vertical-align: middle; }
.db-riskbar i { display: block; height: 100%; background: #12a079; }
.db-stream td .up { color: var(--okFg); }
.db-stream .ct-code { font-size: 11px; padding: 1px 4px; }
.db-stream td, .db-stream th { padding-left: 7px; padding-right: 7px; }

/* alerts */
.db-alerts { display: flex; flex-direction: column; gap: 7px; }
.db-alert { display: flex; gap: 10px; padding: 8px 9px; border-radius: 3px; background: #f8fbfd; border: 1px solid #dde5ed; font-size: 12.5px; color: var(--text2); align-items: flex-start; }
.db-alert:hover { border-color: #9fc3e8; color: var(--text2); }
.db-alert > div { flex: 1; min-width: 0; }
.db-alert b { color: var(--text); }
.db-alert p { margin: 2px 0; }
.db-alert time { font-size: 11.5px; white-space: nowrap; }
.db-sev { width: 32px; height: 32px; flex: none; border-radius: 3px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.db-sev.crit { background: var(--badBg); color: var(--badFg); } .db-sev.high { background: var(--warnBg); color: var(--warnFg); } .db-sev.med { background: var(--infoBg); color: var(--infoFg); }
.db-esc { font-size: 10.5px; font-weight: 700; color: var(--badFg); background: var(--badBg); border-radius: 8px; padding: 1px 6px; margin-left: 4px; }

/* queues & rails */
.db-qi { display: inline-flex; align-items: center; gap: 8px; }
.db-qi i { width: 24px; height: 24px; border-radius: 3px; display: inline-grid; place-items: center; background: var(--infoBg); color: var(--infoFg); font-size: 12px; }
.db-queue tfoot td { background: #f5f8fb; border-top: 1px solid #c8d4df; }

/* key and value grid */
.db-kv { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.db-kv span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-kv b { font-size: 14.5px; color: var(--text); white-space: nowrap; }

/* people, health, log */
.db-team { display: flex; flex-direction: column; }
.db-person { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #e6edf3; font-size: 12.5px; }
.db-person:last-child { border-bottom: 0; }
.db-person b { display: block; color: var(--text); }
.db-person small { color: var(--muted); }
.db-health { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.db-health li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #e6edf3; }
.db-health li:last-child { border-bottom: 0; }
.db-health .l { color: var(--text); font-weight: 700; flex: none; width: 130px; }
.db-health .v { color: var(--text2); flex: 1; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.db-statuslist { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text2); }
.db-statuslist > span { display: inline-flex; align-items: center; gap: 6px; }
.db-log { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.db-log li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid #e6edf3; }
.db-log li:last-child { border-bottom: 0; }
.db-log time { width: 32px; flex: none; color: var(--muted); font-size: 11.5px; }
.db-log .ct-dot { margin-top: 5px; }
.db-log li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.db-log small { display: block; color: var(--muted); font-size: 11.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
    .db-s3, .db-s4, .db-s5 { grid-column: span 6; }
    .db-s6, .db-s7, .db-s8, .db-s9 { grid-column: span 12; }
}
@media (max-width: 1180px) {
    .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .db-g12 > [class*="db-s"] { grid-column: span 12; }
    .db-fright { margin-left: 0; }
    .db-tiles.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .db-metrics.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .db-chart { overflow-x: auto; }
    .db-svg.wide { min-width: 640px; }
    .db-svg.wide .db-ax, .db-svg.wide .db-val { font-size: var(--fs, 11px); }
    .db-svg:not(.wide) .db-ax { font-size: 12.5px; }
}
@media (max-width: 640px) {
    .db-kpis { grid-template-columns: minmax(0, 1fr); }
    .db-tiles.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .db-health .l { width: 110px; }
}

/* Period bar carries the page actions now that the title bar is gone. */
.db-fsep { width: 1px; height: 22px; background: var(--line, #d5dde6); margin: 0 2px; }
.db-filterbar .db-an { border-color: #e0b43a; background: #fff8e6; color: #7a5600; }
.db-filterbar .db-act { background: linear-gradient(180deg, #0b7be0, #0663c0); color: #fff; border-color: #0659ad; font-weight: 700; }
@media (max-width: 760px) { .db-fsep { display: none; } }

/* =====================================================================
   Premium command-center layer (px-): panels, section headings and the
   x-chart.px-* components. Scoped to .db-page or to px- classes so the
   analytics, reports and customer pages keep their own look.
   ===================================================================== */
:root {
    --px-ink: #0b1f3a; --px-ink2: #2b3f55; --px-mut: #6b7d92; --px-mut2: #8a99ab;
    --px-line: #e6ecf3; --px-soft: #f5f8fc; --px-track: #edf1f6; --px-grid: #e1e8f0;
    --px-up: #0b7a50; --px-upbg: #e2f6ec; --px-dn: #b4233d; --px-dnbg: #fde8ec;
    --px-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- section headings ---------- */
.db-sect { display: flex; align-items: center; gap: 12px; margin: 16px 0 2px; min-width: 0; flex-wrap: wrap; }
.db-kpis + .db-sect { margin-top: 10px; }
.db-sect .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; font-size: 16px; background: linear-gradient(135deg, var(--a1, var(--brand-primary-light)), var(--a2, var(--brand-primary-dark))); box-shadow: 0 6px 14px -6px var(--a2, var(--brand-primary-dark)), inset 0 1px 0 rgba(255, 255, 255, .25); }
.db-sect .tx { min-width: 0; flex: 0 1 auto; }
.db-sect h2 { margin: 0; font: 700 16.5px/1.2 var(--fb); color: var(--px-ink); letter-spacing: -.01em; }
.db-sect p { margin: 2px 0 0; font-size: 12.5px; color: var(--px-mut); }
.db-sect .rule { flex: 1 1 40px; height: 1px; min-width: 24px; background: linear-gradient(90deg, #cbd7e3, rgba(203, 215, 227, 0)); }
.db-sect .right { display: flex; gap: 8px; }
.db-sect .right .ct-btn { border-radius: 8px; background: #fff; border-color: #d6e0ea; color: #1d5fa8; }
.db-sect.s-licensing { --a1: #7b5ad8; --a2: #3b1d9e; }
.db-sect.s-balance { --a1: var(--brand-primary-light); --a2: var(--brand-primary-dark); }
.db-sect.s-transactions { --a1: #29b6db; --a2: #0c8ec6; }
.db-sect.s-credit { --a1: #13b985; --a2: #04955d; }
.db-sect.s-operations { --a1: #1d4f8f; --a2: var(--brand-navy); }

/* ---------- panels ---------- */
.db-page .db-g12 { gap: 14px; }
.db-page .db-panel { border: 1px solid #e0e7ef; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 35, 65, .04), 0 8px 24px -12px rgba(15, 35, 65, .14); }
.db-page .db-panel .ct-panelhead { background: #fff; border-bottom: 1px solid #eef2f6; padding: 13px 16px 11px; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; }
.db-page .db-panel .ct-panelhead h3 { grid-column: 1; font: 700 14px/1.3 var(--fb); text-transform: none; letter-spacing: -.005em; color: var(--px-ink); }
.db-page .db-panel .ct-panelhead .sub { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--px-mut); }
.db-page .db-panel .ct-panelhead .right { grid-column: 2; grid-row: 1 / span 2; margin: 0; gap: 8px; justify-content: flex-end; }
.db-page .db-panel .ct-pbody { padding: 14px 16px 16px; gap: 14px; }
.db-page .db-panel .ct-pfoot { background: #fafcfe; border-top: 1px solid #eef2f6; padding: 10px 16px; }
.db-page .db-panel .ct-pfoot .ct-btn { border-radius: 8px; }
.db-page .db-panel .ct-panelhead .ct-btn { min-height: 28px; padding: 0 11px; border-radius: 8px; background: #fff; border: 1px solid #d6e0ea; color: #1d5fa8; font-size: 12px; box-shadow: 0 1px 1px rgba(15, 35, 65, .04); }
.db-page .db-panel .ct-panelhead .ct-btn:hover { border-color: #9fc3e8; background: #f5f9ff; }
.db-page .db-panel .ct-pill { border-radius: 999px; padding: 3px 9px; font-size: 11px; letter-spacing: .01em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.db-page .db-panel .ct-pill.nt { background: #eef3f9; color: #34587e; }
.db-page .db-panel .ct-seg { border: 0; background: #eef2f7; border-radius: 9px; padding: 3px; gap: 2px; }
.db-page .db-panel .ct-seg a { border: 0; min-height: 24px; padding: 0 10px; border-radius: 7px; color: #4a6079; font-size: 11.5px; }
.db-page .db-panel .ct-seg a.on { background: #fff; color: var(--px-ink); box-shadow: 0 1px 2px rgba(15, 35, 65, .14), 0 0 0 1px rgba(15, 35, 65, .04); }
.db-page .db-panel .ct-tbl th { background: #f8fafc; color: #6b7d92; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-right: 0; border-bottom: 1px solid #e8edf3; padding: 9px 12px; }
.db-page .db-panel .ct-tbl td { border-right: 0; border-bottom: 1px solid #eff3f7; padding: 9px 12px; }
.db-page .db-panel .ct-tbl tr:hover td { background: #f7faff; }
.db-page .db-panel .ct-code { border-radius: 6px; background: #f1f5fa; border-color: #e1e8f0; }
.db-page .db-subhead { font-size: 10.5px; font-weight: 700; color: #6b7d92; text-transform: uppercase; letter-spacing: .07em; margin-bottom: -6px; display: flex; align-items: center; gap: 8px; }
.db-page .db-subhead::after { content: ""; flex: 1; height: 1px; background: #eef2f6; }
.db-page .db-foot { font-size: 11.5px; color: var(--px-mut); }

/* delta chips: arrow follows the sign, colour follows good or bad */
.px-d { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 6px; border-radius: 999px; font: 700 11px/1.55 var(--fb); white-space: nowrap; font-style: normal; font-variant-numeric: tabular-nums; }
.px-d i { font-style: normal; font-size: 7.5px; line-height: 1; }
.px-d.up { background: var(--px-upbg); color: var(--px-up); }
.px-d.dn { background: var(--px-dnbg); color: var(--px-dn); }
.px-d.nt { background: #eef2f7; color: #5f7184; font-weight: 600; }
.db-page .db-panel .db-d { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; font-size: 11px; line-height: 1.55; }
.db-page .db-panel .db-d.up { background: var(--px-upbg); } .db-page .db-panel .db-d.dn { background: var(--px-dnbg); } .db-page .db-panel .db-d.nt { background: #eef2f7; }

/* mini stat tiles */
.px-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.px-stats.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.px-stats.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.px-stats.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.px-stat { background: linear-gradient(180deg, #fcfdff, #f4f7fb); border: 1px solid #e6ecf3; border-radius: 10px; padding: 10px 12px 9px; min-width: 0; display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden; }
.px-stat-l { font-size: 11.5px; line-height: 1.3; font-weight: 600; color: var(--px-mut); display: flex; align-items: center; gap: 6px; }
.px-stat-l i { font-size: 12px; color: #6f8aa6; }
.px-stat-v { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; min-width: 0; }
.px-stat-v b { font-size: 18px; line-height: 1.3; color: var(--px-ink); letter-spacing: -.015em; white-space: nowrap; }
.px-stat-n { font-size: 11.5px; color: var(--px-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-stat .px-spark { margin: 4px 3px -2px 0; }
.px-kpis { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid #e6ecf3; border-radius: 10px; background: linear-gradient(180deg, #fcfdff, #f6f9fc); overflow: hidden; }
.px-kpis > div { flex: 1 1 auto; padding: 9px 12px; min-width: 0; border-right: 1px solid #e9eef4; }
.px-kpis > div:last-child { border-right: 0; }
.px-kpis span { display: block; font-size: 11.5px; font-weight: 600; color: var(--px-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-kpis b { display: flex; align-items: center; gap: 6px; font-size: 16.5px; line-height: 1.4; color: var(--px-ink); white-space: nowrap; letter-spacing: -.01em; }
.px-kpis small { font-size: 11px; font-weight: 400; color: var(--px-mut); }

/* ---------- fluid charts ---------- */
.px-chart { position: relative; min-width: 0; container-type: inline-size; }
.px-plot { position: relative; height: var(--h, 230px); margin: 8px 6px 0 44px; }
.px-chart.has-end .px-plot, .px-chart.has-end .px-x { margin-right: 62px; }
.px-grid .gl { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--px-grid); }
.px-grid .gl:first-child { border-top: 1px solid #ccd7e3; }
.px-grid .gl.z { border-top: 1px solid #aebfd0; }
.px-grid .gl span { position: absolute; right: calc(100% + 8px); top: -7px; font-size: 10.5px; line-height: 14px; color: var(--px-mut2); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.px-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.px-svg path { vector-effect: non-scaling-stroke; }
.px-lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.px-lines .ln { stroke-width: 2.6; }
.px-lines .ln.dash { stroke-dasharray: 6 5; }
.px-lines .glow { stroke-width: 9; opacity: .13; }
.px-lines.over .ln { stroke-width: 2.2; }
.px-areas, .px-lines { animation: pxWipe 1.3s var(--px-ease) both; }
.px-lines { filter: drop-shadow(0 3px 4px rgba(15, 50, 100, .16)); }
.px-cols { position: absolute; inset: 0; }
.px-col { position: absolute; top: 0; bottom: 0; outline: none; cursor: crosshair; }
.px-xh { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 1px dashed #7f95ad; opacity: 0; transition: opacity .15s; }
.px-dot { position: absolute; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2.5px solid var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); opacity: 0; transform: scale(.4); transition: opacity .15s, transform .15s; z-index: 2; }
.px-dot.on { opacity: 1; transform: none; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-width: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.px-tt { position: absolute; top: 4px; left: calc(50% + 12px); z-index: 6; min-width: 160px; background: rgba(9, 24, 46, .95); color: #fff; border-radius: 9px; padding: 8px 11px 7px; font-size: 12px; box-shadow: 0 12px 28px -8px rgba(8, 20, 40, .45); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; white-space: nowrap; backdrop-filter: blur(4px); }
.px-col.r .px-tt { left: auto; right: calc(50% + 12px); }
.px-tt b { display: block; font-size: 10.5px; color: #a9bdd4; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.px-tt span { display: flex; align-items: center; gap: 7px; line-height: 1.65; color: #e3ebf5; }
.px-tt span i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.px-tt span i.ln { height: 3px; width: 10px; }
.px-tt em { margin-left: auto; padding-left: 16px; font-style: normal; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.px-tt .sum { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 3px; padding-top: 3px; }
.px-col:hover .px-xh, .px-col:focus .px-xh, .px-col.tap .px-xh { opacity: 1; }
.px-col:hover .px-dot, .px-col:focus .px-dot, .px-col.tap .px-dot { opacity: 1; transform: none; }
.px-col:hover .px-tt, .px-col:focus .px-tt, .px-col.tap .px-tt { opacity: 1; visibility: visible; transform: none; }
.px-enddot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent), 0 2px 5px rgba(0, 0, 0, .2); z-index: 3; pointer-events: none; animation: pxPulse 2.6s ease-in-out 1.3s infinite; }
.px-endtag { position: absolute; left: calc(100% + 12px); transform: translateY(-50%); background: var(--c); color: #fff; font: 700 11px/1 var(--fb); padding: 5px 7px; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 3px 8px -2px color-mix(in srgb, var(--c) 60%, transparent); z-index: 3; animation: pxFade .6s ease 1s both; }
.px-endtag::before { content: ""; position: absolute; left: -4px; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left: 0; border-right-color: var(--c); }
.px-x { position: relative; height: 24px; margin: 0 6px 0 44px; }
.px-x span { position: absolute; top: 7px; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--px-mut2); white-space: nowrap; letter-spacing: .02em; }
.px-wfchart .px-x { height: 32px; }
.px-wfchart .px-x span { white-space: normal; text-align: center; line-height: 1.15; }
.px-x span.first { transform: none; } .px-x span.last { transform: translateX(-100%); }
.px-x span.b { color: var(--px-ink); font-weight: 700; }
.px-none { position: absolute; inset: 0; display: grid; place-items: center; color: #8a9bb0; font-size: 13px; }
.px-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: #4a5d72; }
.px-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.px-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.px-legend i.ln { height: 3px; width: 16px; border-radius: 2px; }
.px-legend i.ln.dash { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 8px); }
.px-legend b { color: var(--px-ink); font-variant-numeric: tabular-nums; }
.px-legend small { font-size: 8px; color: var(--px-mut2); }

/* bars */
.px-bars .px-col::before { content: ""; position: absolute; inset: 0 10%; border-radius: 8px; background: linear-gradient(180deg, rgba(32, 131, 238, 0), rgba(32, 131, 238, .07)); opacity: 0; transition: opacity .15s; }
.px-bars .px-col:hover::before, .px-bars .px-col.tap::before { opacity: 1; }
.px-stack { position: absolute; left: 0; right: 0; margin: 0 auto; width: min(62%, 34px); display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 7px 7px 2px 2px; overflow: hidden; box-shadow: 0 2px 4px -1px rgba(14, 40, 80, .18); transform-origin: bottom; animation: pxGrow .8s var(--px-ease) both; animation-delay: var(--d, 0ms); transition: opacity .15s, filter .15s; }
.px-stack.dn { flex-direction: column; border-radius: 2px 2px 7px 7px; transform-origin: top; }
.px-stack span { display: block; flex-basis: 0; flex-shrink: 1; min-height: 2px; }
.px-barchart.thin .px-stack { width: min(66%, 16px); border-radius: 5px 5px 1px 1px; }
.px-barchart.thin .px-stack.dn { border-radius: 1px 1px 5px 5px; }
.px-bars:hover .px-col:not(:hover) .px-stack { opacity: .5; filter: saturate(.7); }
.px-tot { position: absolute; left: -20px; right: -20px; text-align: center; font-size: 10.5px; font-weight: 700; color: #34495f; font-variant-numeric: tabular-nums; pointer-events: none; animation: pxFade .5s ease .6s both; }
.px-tot.neg { color: #b4361a; }
.px-tot.strong { color: var(--px-ink); font-size: 11.5px; }
.px-wf { width: min(56%, 48px); border-radius: 6px; }
.px-wf span { flex: 1 1 auto; }
.px-wf.down { transform-origin: top; }
.px-wflink { position: absolute; height: 0; border-top: 1px dashed #9fb2c6; pointer-events: none; animation: pxFade .5s ease .5s both; }
@container (max-width: 440px) {
    .px-x .mn, .px-x .pl { display: none; }
    .px-plot { height: calc(var(--h, 230px) * .82); }
    .px-barchart.thin .px-tot { display: none; }
    .px-tot { font-size: 9.5px; }
    .px-chart.has-end .px-plot, .px-chart.has-end .px-x { margin-right: 56px; }
}
@container (max-width: 380px) {
    .px-plot, .px-x { margin-left: 38px; }
    .px-tt { min-width: 130px; font-size: 11.5px; }
    .px-wfchart .px-x span { font-size: 9px; letter-spacing: 0; }
}

/* donut */
.px-donut { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; justify-content: center; }
.px-donut.stack { flex-direction: column; align-items: stretch; }
.px-donut-fig { width: var(--sz, 156px); max-width: 100%; flex: none; align-self: center; filter: drop-shadow(0 6px 12px rgba(16, 40, 80, .10)); }
.px-donut-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.px-donut .trk { fill: none; stroke: #eef2f7; }
.px-donut .arcs { transform-origin: 60px 60px; animation: pxSpin 1.1s var(--px-ease) both; }
.px-arc { fill: none; transition: opacity .2s, stroke-width .2s; cursor: pointer; }
.px-arc:hover, .px-arc.on { stroke-width: 18.5; }
.px-donut.hl .px-arc:not(.on) { opacity: .25; }
.px-dc { font: 800 15px var(--fb); fill: var(--px-ink); letter-spacing: -.02em; }
.px-ds { font: 700 6.6px var(--fb); fill: var(--px-mut); text-transform: uppercase; letter-spacing: .1em; }
.px-dlegend { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.px-dlegend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 40px; column-gap: 8px; align-items: center; padding: 5px 8px 6px; border-radius: 8px; transition: background .15s; }
.px-dlegend li:hover, .px-dlegend li.on { background: #f2f6fb; }
.px-dlegend .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent); }
.px-dlegend .l { font-size: 12.5px; color: var(--px-ink2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-dlegend .l small { display: block; font-size: 11px; color: var(--px-mut); overflow: hidden; text-overflow: ellipsis; }
.px-dlegend b { font-size: 12.5px; color: var(--px-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.px-dlegend em { font-style: normal; font-size: 11px; font-weight: 700; color: #4a6079; text-align: right; font-variant-numeric: tabular-nums; }
.px-dlegend .mb { grid-column: 2 / 5; height: 4px; margin-top: 5px; background: var(--px-track); border-radius: 4px; overflow: hidden; }
.px-dlegend .mb i { display: block; height: 100%; border-radius: 4px; background: var(--c); transform-origin: left; animation: pxGrowX .9s var(--px-ease) .2s both; }
.px-nolegend { color: var(--px-mut); font-size: 12.5px; }

/* gauges */
.px-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #eef2f6; }
.px-gauge { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; gap: 1px; }
.px-gauge svg { width: var(--sz, 112px); max-width: 100%; height: auto; overflow: visible; display: block; }
.px-gauge .trk { fill: none; stroke: var(--px-track); stroke-linecap: round; }
.px-gauge .val { fill: none; stroke-linecap: round; animation: pxGauge 1.3s var(--px-ease) both; filter: drop-shadow(0 2px 3px rgba(16, 60, 120, .18)); }
.px-gauge .tick { stroke: var(--px-ink); stroke-width: 2.2; stroke-linecap: round; }
.px-gv { font: 800 15px var(--fb); fill: var(--px-ink); letter-spacing: -.02em; }
.px-gs { font: 600 6.5px var(--fb); fill: #9aa9ba; }
.px-gauge b { font-size: 12.5px; color: var(--px-ink); }
.px-gsub { font-size: 11px; color: var(--px-mut); display: inline-flex; align-items: center; gap: 4px; }
.px-gsub i { font-size: 10px; } .px-gsub.ok i { color: #12a079; } .px-gsub.warn i { color: #d99a06; } .px-gsub.bad i { color: #d6334b; }

/* meters */
.px-meters { display: flex; flex-direction: column; gap: 12px; }
.px-meter .top { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.px-meter .l { flex: 1; min-width: 0; color: var(--px-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-meter .l small { color: var(--px-mut); font-size: 11px; margin-left: 6px; }
.px-meter b { color: var(--px-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.px-meter.warn b { color: #8b620d; } .px-meter.bad b { color: var(--px-dn); } .px-meter.ok b { color: var(--px-ink); }
.px-meter .track, .px-hbars .track { position: relative; height: 8px; background: var(--px-track); border-radius: 999px; }
.px-meter .track span, .px-hbars .track span { display: block; height: 100%; border-radius: 999px; box-shadow: 0 1px 3px color-mix(in srgb, var(--c) 40%, transparent); transform-origin: left; animation: pxGrowX 1s var(--px-ease) both; animation-delay: var(--d, 0ms); }
.px-meter .tick, .px-hbars .tick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--px-ink); border-radius: 2px; box-shadow: 0 0 0 2px #fff; }

/* horizontal bars */
.px-hbars { display: flex; flex-direction: column; gap: 11px; }
.px-hbars.thin { gap: 9px; }
.px-hbars.thin .track { height: 6px; }
.px-hbars .row { position: relative; min-width: 0; }
.px-hbars.ranked .row { padding-left: 30px; }
.px-hbars .rk { position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 7px; background: #eef3f9; color: #44607e; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.px-hbars .row:first-child .rk { background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-primary-dark)); color: #fff; }
.px-hbars .top { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; margin-bottom: 5px; min-width: 0; }
.px-hbars .l { flex: 1; min-width: 0; color: var(--px-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-hbars .l small { color: var(--px-mut); font-size: 11px; margin-left: 6px; }
.px-hbars b { color: var(--px-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.px-hbars em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #4a6079; background: #f0f4f9; border-radius: 999px; padding: 1px 6px; min-width: 34px; text-align: center; flex: none; }
.px-nodata { display: flex; align-items: center; gap: 8px; color: var(--px-mut); font-size: 12.5px; padding: 12px 2px; }
.px-nodata i { font-size: 18px; color: #9fb2c6; }

/* segmented bar */
.px-seg .bar { display: flex; gap: 3px; }
.px-seg .bar span { display: block; flex-basis: 0; min-width: 4px; border-radius: 3px; transform-origin: left; animation: pxGrowX .9s var(--px-ease) both; }
.px-seg .bar span:first-child { border-radius: 999px 3px 3px 999px; }
.px-seg .bar span:last-child { border-radius: 3px 999px 999px 3px; }
.px-seg .bar span:only-child { border-radius: 999px; }
.px-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.px-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border: 1px solid #e6ecf3; border-radius: 999px; font-size: 11.5px; color: #3d5166; background: #fbfcfe; white-space: nowrap; }
.px-chips i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.px-chips b { color: var(--px-ink); } .px-chips em { font-style: normal; color: var(--px-mut); }

/* sparkline */
.px-spark { position: relative; height: var(--h, 30px); }
.px-spark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.px-spark .ln { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.px-spark .ln.flat { stroke: #d3dde7; }
.px-spark > i { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--c); border: 1.5px solid #fff; box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--c) 25%, transparent); }

/* heatmap */
.px-heat { container-type: inline-size; min-width: 0; }
.px-heat-grid { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)) 58px; gap: 3px; align-items: center; }
.px-heat .hb { height: 28px; display: flex; align-items: flex-end; align-self: end; }
.px-heat .hb i { display: block; width: 100%; background: linear-gradient(180deg, #7fb1ef, #2a77d8); border-radius: 3px 3px 1px 1px; opacity: .8; transform-origin: bottom; animation: pxGrow .8s var(--px-ease) both; }
.px-heat .c { display: block; aspect-ratio: 1 / .84; border-radius: 4px; background: #eef2f7; transition: transform .12s, box-shadow .12s; animation: pxPop .5s var(--px-ease) both; animation-delay: var(--d, 0ms); }
.px-heat .c.l1 { background: #dbe9fb; } .px-heat .c.l2 { background: #b3d1f7; } .px-heat .c.l3 { background: #7db0ef; }
.px-heat .c.l4 { background: #3f88e3; } .px-heat .c.l5 { background: #1a62c4; } .px-heat .c.l6 { background: #0f3b7a; }
.px-heat-grid .c:hover { transform: scale(1.3); box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(10, 40, 90, .3); position: relative; z-index: 1; }
.px-heat .dl { font-size: 10px; font-weight: 700; color: var(--px-mut); text-transform: uppercase; letter-spacing: .05em; }
.px-heat .dt { display: flex; align-items: center; gap: 6px; padding-left: 6px; min-width: 0; }
.px-heat .dt .tb { width: 24px; height: 5px; border-radius: 3px; background: var(--px-track); flex: none; overflow: hidden; }
.px-heat .dt .tb i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7db0ef, #1a62c4); }
.px-heat .dt b { font-size: 11px; color: var(--px-ink2); font-variant-numeric: tabular-nums; }
.px-heat .hl { font-size: 10px; font-weight: 600; color: var(--px-mut2); white-space: nowrap; overflow: visible; letter-spacing: .03em; }
.px-heat-key { display: flex; align-items: center; gap: 3px; margin-top: 10px; font-size: 11px; color: var(--px-mut); flex-wrap: wrap; }
.px-heat-key .c { width: 16px; height: 10px; aspect-ratio: auto; animation: none; border-radius: 3px; }
.px-heat-key span { margin: 0 4px; }
@container (max-width: 360px) {
    .px-heat-grid { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 2px; }
    .px-heat .xc { display: none; }
    .px-heat .hl.mn { visibility: hidden; }
    .px-heat .c { border-radius: 2px; }
}

/* floating tooltip (dashboard-charts.js) */
.px-ftt { position: fixed; z-index: 1000; pointer-events: none; background: rgba(9, 24, 46, .95); color: #e3ebf5; border-radius: 8px; padding: 7px 10px; font-size: 12px; box-shadow: 0 12px 28px -8px rgba(8, 20, 40, .45); max-width: 260px; }
.px-ftt b { display: block; color: #fff; font-size: 12px; margin-bottom: 1px; }

/* ---------- panel furniture ---------- */
.db-page .db-signals { gap: 9px; }
.db-page .db-signal { border-radius: 10px; background: #fff; border: 1px solid #e6ecf3; border-left: 3px solid var(--infoFg); padding: 10px 11px; box-shadow: 0 1px 2px rgba(15, 35, 65, .04); }
.db-page .db-signal.ok { border-left-color: #12a079; } .db-page .db-signal.warn { border-left-color: #e0a106; } .db-page .db-signal.bad { border-left-color: #d6334b; }
.db-page .db-signal .ic { border-radius: 9px; width: 30px; height: 30px; }
.db-page .db-signal b { font-size: 12.5px; }
.db-page .db-signal p { font-size: 12px; line-height: 1.45; }
.db-page .db-alert { border-radius: 10px; background: #fff; border: 1px solid #e6ecf3; padding: 9px 10px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.db-page .db-alert:hover { border-color: #b9d3ef; box-shadow: 0 6px 16px -10px rgba(15, 60, 120, .4); transform: translateY(-1px); }
.db-page .db-sev { border-radius: 9px; font-size: 10.5px; letter-spacing: .02em; }
.db-page .db-sev.crit { background: linear-gradient(135deg, #f0294e, #c50039); color: #fff; }
.db-page .db-sev.high { background: linear-gradient(135deg, #f8ad26, #ed9200); color: #fff; }
.db-page .db-sev.med { background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-primary-dark)); color: #fff; }
.db-page .db-esc { border-radius: 999px; }
.db-page .db-av { box-shadow: 0 2px 5px -1px rgba(10, 30, 60, .3), inset 0 1px 0 rgba(255, 255, 255, .25); letter-spacing: .02em; }
.db-page .db-qi i { border-radius: 8px; width: 28px; height: 28px; font-size: 13px; }
.db-page .db-queue tfoot td { background: #f8fafc; border-top: 1px solid #e3e9f0; }
.db-page .db-person { border-bottom-color: #eef2f6; }
.db-page .db-health li { border-bottom-color: #eef2f6; }
.db-page .db-log li { border-bottom-color: #eef2f6; }

/* stream */
.px-who { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.px-who b { display: block; font-weight: 600; color: var(--px-ink); }
.px-who small { display: block; color: var(--px-mut); font-size: 11px; }
.px-dir { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 13px; flex: none; }
.px-dir.in { background: var(--px-upbg); color: var(--px-up); } .px-dir.out { background: #eef3f9; color: #34587e; }
.px-amt { font-weight: 700; color: var(--px-ink); font-variant-numeric: tabular-nums; }
.px-amt.in { color: var(--px-up); }
.px-chan { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; background: #f2f6fa; border: 1px solid #e5ebf2; font-size: 11.5px; color: #3d5166; }
.px-chan i { color: #5d7c9c; }
.px-size { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--px-mut); }
.px-size .tb { width: 56px; height: 6px; border-radius: 999px; background: var(--px-track); overflow: hidden; display: inline-block; }
.px-size .tb i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6fd3b0, #12a079); }

/* status list (health) */
.px-health { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.px-health li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; background: #fafcfe; border: 1px solid #edf1f6; font-size: 12.5px; }
.px-health .st { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; flex: none; background: var(--px-upbg); color: var(--px-up); }
.px-health .st.warn { background: #fff4d6; color: #8b620d; } .px-health .st.bad { background: var(--px-dnbg); color: var(--px-dn); }
.px-health .l { color: var(--px-ink); font-weight: 600; flex: none; width: 128px; }
.px-health .v { color: var(--px-ink2); flex: 1; min-width: 0; text-align: right; overflow-wrap: anywhere; }

/* funnel */
.px-funnel { display: flex; flex-direction: column; gap: 6px; }
.px-funnel .st { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
.px-funnel .bar { grid-column: 1 / -1; height: 26px; border-radius: 8px; position: relative; display: flex; align-items: center; padding: 0 10px; color: #fff; font-size: 12px; font-weight: 700; min-width: 64px; box-shadow: 0 3px 8px -4px rgba(9, 50, 110, .5); transform-origin: left; animation: pxGrowX .9s var(--px-ease) both; animation-delay: var(--d, 0ms); white-space: nowrap; }
.px-funnel .bar em { margin-left: auto; font-style: normal; font-weight: 600; opacity: .85; padding-left: 8px; }
.px-funnel .meta { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--px-mut); }
.px-funnel .meta b { color: var(--px-ink2); font-weight: 600; }
.px-funnel .conv { font-size: 10.5px; color: var(--px-mut); display: flex; align-items: center; gap: 4px; padding-left: 6px; }

/* delinquency rows */
.px-buckets { display: flex; flex-direction: column; gap: 12px; }
.px-buckets .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; margin-bottom: 5px; color: var(--px-ink2); }
.px-buckets .top small { font-size: 11px; color: var(--px-mut); }
.px-buckets .row.total { padding-top: 10px; border-top: 1px dashed #dbe3ec; }
.px-buckets .row.total .top span { font-weight: 700; color: var(--px-ink); }

/* composition */
.px-comp { display: flex; flex-direction: column; gap: 8px; }
.px-comp .hd { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
.px-comp .hd b { font-size: 10.5px; color: var(--px-mut); text-transform: uppercase; letter-spacing: .07em; }
.px-comp .hd span { font-weight: 700; color: var(--px-ink); font-size: 14px; }
.px-comp .px-hbars { margin-bottom: 6px; }

@keyframes pxGrow { from { transform: scaleY(0); } }
@keyframes pxGrowX { from { transform: scaleX(0); } }
@keyframes pxWipe { from { clip-path: inset(-30px 100% -30px -30px); } to { clip-path: inset(-30px -30px -30px -30px); } }
@keyframes pxSpin { from { transform: rotate(-70deg) scale(.88); opacity: 0; } }
@keyframes pxPop { from { opacity: 0; transform: scale(.3); } }
@keyframes pxFade { from { opacity: 0; } }
@keyframes pxGauge { from { stroke-dasharray: 0 100; } }
@keyframes pxPulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent), 0 2px 5px rgba(0, 0, 0, .2); } 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--c) 0%, transparent), 0 2px 5px rgba(0, 0, 0, .2); } }
@media (prefers-reduced-motion: reduce) {
    .px-areas, .px-lines, .px-stack, .px-tot, .px-wflink, .px-donut .arcs, .px-gauge .val, .px-meter .track span, .px-hbars .track span,
    .px-seg .bar span, .px-heat .c, .px-heat .hb i, .px-enddot, .px-endtag, .px-dlegend .mb i, .px-funnel .bar { animation: none !important; }
    .px-col *, .px-arc, .db-page .db-alert { transition: none !important; }
}
@media (max-width: 760px) {
    .db-sect .rule { display: none; }
    .db-sect .right { width: 100%; }
    .px-stats.n4, .px-stats.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .px-stats.n3 > :nth-child(3):last-child { grid-column: span 2; }
    .px-gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .db-page .db-panel .ct-panelhead { grid-template-columns: minmax(0, 1fr); }
    .db-page .db-panel .ct-panelhead .right { grid-column: 1; grid-row: auto; justify-content: flex-start; flex-wrap: wrap; margin-top: 6px; }
    .px-health .l { width: 108px; }
}

/* renewal calendar */
.px-renewal { display: inline-flex; align-items: center; gap: 8px; }
.px-renewal .tb { width: 64px; height: 6px; border-radius: 999px; background: var(--px-track); overflow: hidden; display: inline-block; }
.px-renewal .tb i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6fd3b0, #12a079); }
.px-renewal.warn .tb i { background: linear-gradient(90deg, #fbd27a, #e09a06); }
.px-renewal.bad .tb i { background: linear-gradient(90deg, #f59ab0, #d6334b); }
.px-renewal b { font-size: 12px; color: var(--px-ink); min-width: 34px; }
.px-renewal.bad b { color: var(--px-dn); } .px-renewal.warn b { color: #8b620d; }
.px-renewal small { font-size: 11px; color: var(--px-mut); }

/* activity timeline */
.px-tl { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; }
.px-tl::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(#e3eaf2, #eef2f6); border-radius: 2px; }
.px-tl li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 12.5px; }
.px-tl .mk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; background: var(--px-upbg); color: var(--px-up); box-shadow: 0 0 0 3px #fff; position: relative; }
.px-tl li.warn .mk { background: #fff4d6; color: #8b620d; } .px-tl li.bad .mk { background: var(--px-dnbg); color: var(--px-dn); }
.px-tl li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.px-tl b { color: var(--px-ink); }
.px-tl .dom { color: var(--px-ink2); margin-left: 6px; }
.px-tl small { display: block; color: var(--px-mut); font-size: 11.5px; margin-top: 2px; }
.px-tl small .ct-code { font-size: 10.5px; padding: 0 4px; }
.px-tl time { font-size: 11px; color: var(--px-mut); white-space: nowrap; padding-top: 3px; }

/* compact legend list */
.px-list { list-style: none; margin: 2px 0 8px; padding: 0; display: flex; flex-direction: column; font-size: 12px; }
.px-list li { display: flex; align-items: center; gap: 8px; padding: 4px 2px; border-bottom: 1px dashed #edf1f6; color: var(--px-ink2); }
.px-list li:last-child { border-bottom: 0; }
.px-list li > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent); }
.px-list .l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-list .l small { font-size: 10.5px; font-weight: 700; color: var(--px-mut2); margin-right: 6px; font-variant-numeric: tabular-nums; }
.px-list .sh { font-size: 10.5px; font-weight: 700; color: #4a6079; background: #f0f4f9; border-radius: 999px; padding: 0 6px; }
.px-list b { color: var(--px-ink); white-space: nowrap; min-width: 58px; text-align: right; }
.px-more { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; color: var(--px-mut); }
.px-more > span:first-child { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; margin-right: 2px; }
.px-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: #f2f6fa; border: 1px solid #e5ebf2; color: #3d5166; max-width: 100%; line-height: 1.4; }
.px-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11.5px; }
.px-tag i { color: var(--infoFg); } .px-tag.ok i { color: #12a079; } .px-tag.warn i { color: #d99a06; } .px-tag.bad i { color: #d6334b; }
.px-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--px-ink2); white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: #effaf5; border: 1px solid #d3f0e3; }
.px-live b { color: var(--px-ink); }
.db-page .db-qi.waiting i { background: #fff4d6; color: #8b620d; } .db-page .db-qi.overdue i { background: var(--px-dnbg); color: var(--px-dn); } .db-page .db-qi.clear i { background: var(--px-upbg); color: var(--px-up); }
.db-page .db-queue tr.idle td { color: var(--px-mut2); }
.px-qn { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.px-qn .tb { width: 54px; height: 6px; border-radius: 999px; background: var(--px-track); overflow: hidden; display: inline-block; }
.px-qn .tb i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7fb1ef, var(--brand-primary-light)); }
.px-qn b { min-width: 22px; }
.px-kv { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid #e6ecf3; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #fcfdff, #f6f9fc); }
.px-kv > div { padding: 8px 12px; min-width: 0; border-bottom: 1px solid #e9eef4; }
.px-kv > div:nth-child(odd) { border-right: 1px solid #e9eef4; }
.px-kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.px-kv span { display: block; font-size: 11.5px; font-weight: 600; color: var(--px-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-kv b { font-size: 15px; color: var(--px-ink); white-space: nowrap; }
.px-rails { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.px-rails li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid #edf1f6; border-radius: 10px; background: #fafcfe; min-width: 0; }
.px-rails .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--infoBg); color: var(--infoFg); font-size: 13px; }
.px-rails .l { flex: 1; min-width: 0; font-size: 12.5px; }
.px-rails .l b { display: block; color: var(--px-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-rails .l small { color: var(--px-mut); font-size: 11.5px; }
.px-on { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--px-up); background: var(--px-upbg); border-radius: 999px; padding: 2px 8px; }
.db-page .db-person > div { flex: 1; min-width: 0; }
.px-tag b { color: var(--px-ink); margin-left: 3px; }
.px-ref { font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #3f6f9f; letter-spacing: .01em; }
.px-ref:hover { color: var(--blue); }
.px-lic { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.px-renewal { display: inline-grid; grid-template-columns: 48px auto; column-gap: 8px; row-gap: 1px; align-items: center; }
.px-renewal .tb { width: 48px; }
.px-renewal small { grid-column: 1 / -1; }
