/* Брендбук AVAT: дашборд «Пульт AVAT». Продуктовое окно по брендбуку: радиус 24 px, граница, тень,
   панель сверху с названием продукта и состоянием. Внутри тёмная тема Depth и серии графиков из палитры интерфейса. */
.pult { --pd: #0E171D; --pc: rgba(238, 242, 243, .035); --pl: rgba(238, 242, 243, .09); --pt: #EEF2F3; --pm: rgba(238, 242, 243, .62);
  position: relative; overflow: hidden; padding: 18px; border-radius: 24px; color: var(--pt); font-family: var(--body, Inter, Arial, sans-serif);
  background: radial-gradient(120% 70% at 0% 0%, rgba(111, 159, 178, .14), transparent 55%), radial-gradient(80% 60% at 100% 100%, rgba(198, 151, 82, .08), transparent 60%), var(--pd);
  box-shadow: 0 30px 80px rgba(17, 28, 35, .28), inset 0 0 0 1px rgba(238, 242, 243, .06); }
.pult-bar { display: flex; align-items: center; gap: 16px; padding: 4px 4px 18px; }
.pult-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.pult-brand svg { width: 58px; height: 14px; color: var(--pt); }
.pult-brand b { font: 400 18px/1 var(--head, Geologica, Arial); letter-spacing: -.02em; }
.pult-brand span { padding-left: 12px; border-left: 1px solid var(--pl); font-size: 13px; color: var(--pm); }
.pult-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(238, 242, 243, .06); }
.pult-seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--pm); font: 500 13px/1 var(--body, Inter, Arial); cursor: pointer; }
.pult-seg button[aria-pressed="true"] { background: rgba(238, 242, 243, .14); color: var(--pt); }
.pult-seg button:focus-visible { outline: 2px solid var(--pt); outline-offset: 2px; }
.pult-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pm); white-space: nowrap; }
.pult-live i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 8px #22C55E; }

.pult-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pult-kpi { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--pl); border-radius: 16px; background: var(--pc); min-width: 0; }
.pult-kpi > span { font-size: 12px; color: var(--pm); }
.pult-kpi > b { font: 400 clamp(26px, 2.4vw, 36px)/1.1 var(--head, Geologica, Arial); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pult-kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pult-kpi-foot em { font: 500 12px/1 var(--body, Inter, Arial); font-style: normal; padding: 4px 7px; border-radius: 6px; }
.pult-kpi-foot em.is-up { color: #6ED89A; background: rgba(34, 197, 94, .12); }
.pult-kpi-foot em.is-down { color: #E8A39A; background: rgba(139, 53, 48, .25); }
.pult-spark { width: 84px; height: 26px; flex: none; }

.pult-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.pult-card { position: relative; padding: 18px; border: 1px solid var(--pl); border-radius: 16px; background: var(--pc); min-width: 0; }
.pult-card .pult-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pult-card h4 { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 16px/1.3 var(--head, Geologica, Arial); letter-spacing: -.01em; }
.pult-legend { display: flex; gap: 16px; font-size: 12px; color: var(--pm); }
.pult-legend span, .pult-tip span { display: inline-flex; align-items: center; gap: 6px; }
.pult-legend i, .pult-tip i { width: 8px; height: 8px; border-radius: 2px; }
.pult-chart { position: relative; }
.pult-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.pult-grid-lines line { stroke: var(--pl); stroke-width: 1; }
.pult-ax text { fill: var(--pm); font: 400 11px var(--body, Inter, Arial); }
.pult-ax text.pult-ax-l { fill: rgba(198, 151, 82, .85); }
.pult-hover line { stroke: rgba(238, 242, 243, .35); stroke-dasharray: 3 4; }
.pult-hover { transition: opacity .15s; pointer-events: none; }
.pult-tip { position: absolute; top: 8px; z-index: 2; display: grid; gap: 4px; min-width: 156px; padding: 10px 12px; border: 1px solid var(--pl); border-radius: 10px; background: rgba(14, 23, 29, .92); backdrop-filter: blur(6px); font-size: 12px; pointer-events: none; }
.pult-tip b { font-weight: 500; font-size: 13px; }
.pult-tip small { color: var(--pm); }
.pult-tip[hidden] { display: none; }

.pult-donut-card { display: grid; grid-template-rows: auto auto 1fr; }
.pult-donut svg { display: block; width: min(100%, 176px); height: auto; margin: 0 auto; }
.pult-arc { transition: opacity .2s, stroke-width .2s; cursor: pointer; }
.pult-arc.is-dim { opacity: .25; }
.pult-donut-num { fill: var(--pt); font: 400 28px var(--head, Geologica, Arial); letter-spacing: -.02em; }
.pult-donut-lab { fill: var(--pm); font: 400 12px var(--body, Inter, Arial); }
.pult-channels { display: grid; gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; align-content: end; }
.pult-channels li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 52px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 13px; cursor: default; transition: background .2s; }
.pult-channels li.is-on { background: rgba(238, 242, 243, .07); }
.pult-channels i { width: 10px; height: 10px; border-radius: 3px; }
.pult-channels b { font-weight: 500; font-variant-numeric: tabular-nums; }
.pult-channels small { color: var(--pm); text-align: right; font-variant-numeric: tabular-nums; }

.pult-pages table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pult-pages th { padding: 0 8px 10px; text-align: right; font-weight: 400; font-size: 12px; color: var(--pm); }
.pult-pages th:first-child, .pult-pages td:first-child { text-align: left; padding-left: 0; }
.pult-pages td { padding: 10px 8px; border-top: 1px solid var(--pl); text-align: right; font-variant-numeric: tabular-nums; }
.pult-pages code { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px/1.3 ui-monospace, Menlo, monospace; color: var(--pt); }
.pult-bar-in { display: block; height: 3px; margin-top: 7px; border-radius: 2px; background: rgba(238, 242, 243, .08); }
.pult-bar-in i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #A07436, #C69752); }

.pult-vat { display: inline-block; width: 26px; height: 26px; padding: 2px; border-radius: 8px; background: rgba(238, 242, 243, .08); }
.pult-agent-num b { display: block; font: 400 34px/1.1 var(--head, Geologica, Arial); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pult-agent-num span { font-size: 12px; color: var(--pm); }
.pult-agent-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.pult-agent-dl div { padding: 10px 12px; border-radius: 10px; background: rgba(238, 242, 243, .05); }
.pult-agent-dl dt { font-size: 11px; color: var(--pm); }
.pult-agent-dl dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pult-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 54px; align-items: end; }
.pult-hours i { display: block; height: calc(8% + var(--h) * 92%); border-radius: 3px; background: linear-gradient(180deg, #D5E7EE, #6F9FB2); opacity: calc(.25 + var(--h) * .75); }
.pult-hours-lab { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--pm); }

@media (max-width: 980px) {
  .pult-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pult-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pult { padding: 12px; border-radius: 22px; }
  .pult-bar { flex-wrap: wrap; }
  .pult-live { order: 3; width: 100%; }
  .pult-brand span { display: none; }
  .pult-kpi { padding: 12px; }
  .pult-kpi-foot { flex-wrap: wrap; }
  .pult-spark { width: 100%; }
  .pult-pages th:nth-child(2), .pult-pages td:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pult-arc, .pult-hover, .pult-channels li { transition: none; } }
