/* Общий набор аналитических разделов: вкладки, карточки показателей, выводы, фильтры, ползунки, графики. */
:root { --cyan-soft: #E0F7FB; }
:root[data-theme="dark"] { --cyan-soft: rgba(34, 211, 238, .14); }

/* ---------- карточки показателей ---------- */
.kxs { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kx { --c: var(--accent); --cs: var(--accent-soft); position: relative; overflow: hidden; padding: 14px 16px 14px; min-height: 124px; display: flex; flex-direction: column; gap: 4px; animation: kin .5s cubic-bezier(.2, .8, .2, 1) both; transition: transform .18s, box-shadow .18s, border-color .18s; }
.kx:nth-child(2) { animation-delay: .05s; } .kx:nth-child(3) { animation-delay: .1s; } .kx:nth-child(4) { animation-delay: .15s; } .kx:nth-child(5) { animation-delay: .2s; }
@keyframes kin { from { opacity: 0; transform: translateY(10px); } }
.kx:hover { transform: translateY(-2px); box-shadow: var(--shadow2); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.kx::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.kx.m { --c: var(--mint); --cs: var(--mint-soft); } .kx.a { --c: var(--amber); --cs: var(--amber-soft); } .kx.o { --c: var(--orange); --cs: var(--orange-soft); } .kx.r { --c: var(--rose); --cs: var(--rose-soft); } .kx.v { --c: var(--violet); --cs: var(--violet-soft); } .kx.c { --c: var(--cyan); --cs: var(--cyan-soft); }
.kx-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kx-i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: var(--cs); flex-shrink: 0; } .kx-i svg.i { width: 15px; height: 15px; }
.kx-l { font: 700 10.5px/1.25 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd { font: 700 10.5px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: var(--bg2); color: var(--ink3); white-space: nowrap; flex-shrink: 0; } .kd.ok { background: var(--mint-soft); color: var(--mint); } .kd.bad { background: var(--rose-soft); color: var(--rose); }
.kx-v { font: 700 27px/1.1 var(--head); letter-spacing: -.02em; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; } .kx-v small { font-size: 12.5px; font-weight: 600; color: var(--ink3); margin-left: 5px; letter-spacing: 0; }
.kx-s { font-size: 12px; color: var(--ink3); line-height: 1.35; position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kx-sp { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; opacity: .8; pointer-events: none; }
.tabpane .kxs { margin-bottom: 0; } .tabpane .kx { min-height: 104px; }
@media (max-width: 800px) { .kxs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kx-v { font-size: 22px; } }

/* ---------- вкладки ---------- */
.tabsx { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--bg2); border-radius: 14px; overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; } .tabsx::-webkit-scrollbar { display: none; }
.tabsx button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink2); font-weight: 700; font-size: 13px; white-space: nowrap; transition: background .15s, color .15s; }
.tabsx button svg.i { width: 15px; height: 15px; opacity: .8; } .tabsx button:hover { color: var(--ink); background: color-mix(in srgb, var(--panel) 55%, transparent); }
.tabsx button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); } .tabsx button.on svg.i { color: var(--accent); opacity: 1; }
.tabsx em { font: 600 10.5px/1 var(--mono); font-style: normal; padding: 3px 6px; border-radius: 8px; background: color-mix(in srgb, var(--ink3) 18%, transparent); color: var(--ink3); } .tabsx button.on em { background: var(--accent-soft); color: var(--accent2); }
.tabpane { animation: tin .32s ease both; } @keyframes tin { from { opacity: 0; transform: translateY(6px); } }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; } .grid > * { min-width: 0; }
.g3x { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); } @media (max-width: 1250px) { .g3x { grid-template-columns: 1fr 1fr; } .g3x > :last-child { grid-column: 1 / -1; } }
@media (max-width: 1000px) { .g-2-1, .g-1-2, .g2, .g3x { grid-template-columns: 1fr !important; } }
.nfw { width: 100%; justify-content: center; margin-top: 12px; }

/* ---------- панель фильтров ---------- */
.tbx { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.tbl-l { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); } .tbl-l svg.i { width: 13px; height: 13px; }
.fch { display: flex; gap: 4px; flex-wrap: wrap; }
.fch button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 20px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); font-weight: 700; font-size: 12px; white-space: nowrap; transition: all .15s; }
.fch button i { width: 7px; height: 7px; border-radius: 50%; } .fch button em { font: 600 10.5px/1 var(--mono); font-style: normal; opacity: .7; }
.fch button:hover { border-color: var(--ink3); color: var(--ink); } .fch button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.selx { height: 32px; padding: 0 10px; width: auto; max-width: 240px; font-size: 12.5px; font-weight: 600; }
.slx { display: flex; flex-direction: column; gap: 6px; min-width: 210px; flex: 1; max-width: 340px; cursor: pointer; } .card .bd > .slx { max-width: none; margin-bottom: 14px; }
.slx > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; font-weight: 600; color: var(--ink2); } .slx b { font: 700 13px/1 var(--mono); color: var(--accent2); white-space: nowrap; }
.slx input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 4px; outline: 0; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--bg2) var(--p, 50%)); }
.slx input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: grab; transition: transform .12s; } .slx input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slx input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: grab; }
.slx em { display: flex; justify-content: space-between; font: 500 10px/1 var(--mono); font-style: normal; color: var(--ink3); } .slx em i { font-style: normal; }

/* ---------- выводы ---------- */
.insx .hd h3, .subh h4 { display: flex; align-items: center; gap: 8px; } .insx .hd h3 svg.i { width: 16px; height: 16px; color: var(--amber); }
.insx-l { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.in { --c: var(--accent); --cs: var(--accent-soft); display: flex; gap: 12px; padding: 10px 8px; border-radius: 10px; animation: kin .45s ease both; transition: background .15s; } .in:hover { background: var(--bg2); }
.in:nth-child(2) { animation-delay: .06s; } .in:nth-child(3) { animation-delay: .12s; } .in:nth-child(4) { animation-delay: .18s; } .in:nth-child(5) { animation-delay: .24s; }
.in.m { --c: var(--mint); --cs: var(--mint-soft); } .in.a { --c: var(--amber); --cs: var(--amber-soft); } .in.o { --c: var(--orange); --cs: var(--orange-soft); } .in.r { --c: var(--rose); --cs: var(--rose-soft); } .in.v { --c: var(--violet); --cs: var(--violet-soft); }
.in-i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: var(--cs); flex-shrink: 0; } .in-i svg.i { width: 16px; height: 16px; }
.in b { display: block; font-size: 13px; line-height: 1.3; } .in p { font-size: 12.5px; line-height: 1.45; color: var(--ink2); margin-top: 2px; }
.subh { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 10px; } .subh h4 { font: 700 12.5px/1.2 var(--head); } .subh h4 svg.i { width: 14px; height: 14px; color: var(--ink3); } .subh span { font-size: 11.5px; color: var(--ink3); }
.note svg.i { flex-shrink: 0; } .card .hd h3 { min-width: 0; } .card .hd { flex-wrap: wrap; } .card .hd .muted { text-align: right; }
.steps { display: flex; flex-direction: column; gap: 14px; } .steps > div { display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; } .steps em { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 700 13px/1 var(--mono); font-style: normal; background: var(--accent-soft); color: var(--accent2); }
.steps b { font-size: 13px; } .steps span { font-size: 12.5px; color: var(--ink2); line-height: 1.45; }
.ph-kv2 { display: grid; grid-template-columns: 1fr auto; gap: 9px 14px; font-size: 13px; } .ph-kv2 span { color: var(--ink3); font-weight: 600; } .ph-kv2 b { font-family: var(--mono); font-size: 12.5px; text-align: right; }
.scalex { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 10px; } .scalex i { font: 700 10px/20px var(--mono); font-style: normal; border-radius: 5px; color: #10151f; }

/* ---------- графики ---------- */
svg.chart .ax.cur { fill: var(--accent2); font-weight: 700; }
svg.chart .dl { font: 700 10.5px/1 var(--mono); fill: var(--ink2); animation: fadein .4s ease both; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
svg.chart .pt { animation: pop2 .35s ease both; transform-box: fill-box; transform-origin: center; } svg.chart .ar { animation: fadein .9s ease both; }
@keyframes fadein { from { opacity: 0; } }
svg.chart .hv .hvl { stroke: var(--ink3); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .12s; } svg.chart .hv:hover .hvl { opacity: .8; }
svg.chart [data-tip] { cursor: crosshair; } svg.chart .bar { transition: filter .15s; }
.noanim *, .noanim { animation: none !important; }
#tip.kit { max-width: 300px; padding: 9px 12px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); line-height: 1.55; }
#tip u { display: block; text-decoration: none; font-weight: 700; margin-bottom: 3px; opacity: .75; font-size: 11px; letter-spacing: .04em; } #tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dnx { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; } .dnx svg { flex-shrink: 0; }
.dnx .dn { animation: arc 1s cubic-bezier(.2, .8, .2, 1) both; cursor: crosshair; transition: stroke-width .15s; } .dnx .dn:hover { stroke-width: 17; }
.dn-v { font: 700 24px/1 var(--head); fill: var(--ink); } .dn-l { font: 600 9.5px/1 var(--body); fill: var(--ink3); letter-spacing: .08em; text-transform: uppercase; }
.dn-lg { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; } .dn-lg > div { display: flex; align-items: center; gap: 8px; } .dn-lg i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; } .dn-lg span { flex: 1; color: var(--ink2); } .dn-lg b { font-family: var(--mono); font-size: 12px; }
.rdx { max-width: 100%; height: auto; } .rd-g { fill: none; stroke: var(--line2); stroke-width: 1; } .rd-t { font: 600 10.5px/1 var(--body); fill: var(--ink2); } .rd-p { fill-opacity: .2; stroke-width: 2.2; stroke-linejoin: round; animation: rdin .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 170px 120px; } @keyframes rdin { from { transform: scale(.2); opacity: 0; } }
.hbx { display: flex; flex-direction: column; gap: 3px; }
.hb { display: grid; grid-template-columns: minmax(56px, auto) 1fr minmax(44px, auto); gap: 10px; align-items: center; padding: 5px 8px; border-radius: 8px; font-size: 12.5px; transition: background .12s; } .hb:hover { background: var(--bg2); } .hb.go { cursor: pointer; } .hb.sel { background: var(--accent-soft); }
.hb span { font-weight: 700; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; } .hb b { font: 600 12px/1 var(--mono); text-align: right; white-space: nowrap; } .hb b small { color: var(--ink3); font-weight: 500; }
.hb .tr, .blt .tr { position: relative; height: 10px; border-radius: 5px; background: var(--bg2); } .hb .tr i, .blt .tr i { display: block; height: 100%; border-radius: 5px; animation: wgrow .7s cubic-bezier(.2, .8, .2, 1) both; }
.hb .tr u, .blt .tr u { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--ink); opacity: .75; }
.blt .tr { height: 8px; } .blt .tr i.ok { background: var(--mint); } .blt .tr i.bad { background: var(--orange); }
.heat .c[data-tip] { cursor: crosshair; transition: transform .12s; } .heat .c:hover { transform: scale(1.12); z-index: 2; } .heat .rh { cursor: pointer; }
.gantt { display: flex; flex-direction: column; gap: 8px; } .g-r, .g-ax { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: center; } .g-r span { font-size: 12.5px; font-weight: 700; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-t { position: relative; height: 30px; border-radius: 8px; background: var(--bg2); } .g-t i { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; display: grid; place-items: center; font: 700 11px/1 var(--mono); font-style: normal; color: #10151f; animation: wgrow .7s cubic-bezier(.2, .8, .2, 1) both; overflow: hidden; white-space: nowrap; }
.g-ax > div { position: relative; height: 16px; } .g-ax em { position: absolute; transform: translateX(-50%); font: 500 10.5px/1 var(--mono); font-style: normal; color: var(--ink3); }
@media (max-width: 800px) { .g-r, .g-ax { grid-template-columns: 110px 1fr; } }
.list .it.go { cursor: pointer; border-radius: 8px; padding-left: 6px; padding-right: 6px; } .list .it.go:hover { background: var(--bg2); }

/* ---------- вход по PIN на опубликованной копии ---------- */
.gate { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: radial-gradient(90% 70% at 50% 10%, #1a2748, #0b1222 55%, #060a14); color: #EEF2FA; cursor: text; }
.gate-b { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 44px; border-radius: 22px; background: rgba(13, 19, 33, .8); border: 1px solid rgba(140, 165, 230, .2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.gate-b svg { width: 46px; height: 46px; fill: none; stroke: #F2B33D; stroke-width: 3; stroke-linejoin: round; margin-bottom: 6px; } .gate-b b { font: 700 18px/1.2 var(--head); } .gate-b span { font-size: 13px; color: #AEB9CE; }
.gate-d { display: flex; gap: 12px; margin: 18px 0 6px; } .gate-d i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #7785A0; transition: all .15s; } .gate-d i.on { background: #F2B33D; border-color: #F2B33D; transform: scale(1.15); }
.gate-b input { position: absolute; opacity: 0; width: 1px; height: 1px; } .gate-b em { height: 16px; font: 600 12px/16px var(--body); font-style: normal; color: #F07070; }
.gate-b.bad { animation: shake .4s; } @keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
