/* ===== Список разделов ===== */
.sec-list{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.sec-row{--sc:#4338CA;text-align:left;width:100%;display:flex;flex-direction:column;gap:9px;padding:12px 14px;border-radius:var(--r-sm);
  border:1px solid var(--glass-border);background:var(--glass-in);box-shadow:0 6px 20px rgba(31,38,135,.08);
  background:linear-gradient(120deg,color-mix(in srgb,var(--sc) 15%,transparent),rgba(255,255,255,.5) 70%);
  box-shadow:0 6px 20px color-mix(in srgb,var(--sc) 12%,transparent),inset 0 1px 0 rgba(255,255,255,.75);
  transition:transform .15s,box-shadow .15s;cursor:pointer;color:var(--text-main)}
.sec-row:hover{transform:translateY(-1px)}.sec-row:active{transform:scale(.99)}
.sec-row-top{display:flex;align-items:center;gap:8px;min-width:0}
.sec-dot{width:10px;height:10px;border-radius:50%;background:var(--sc);box-shadow:0 0 0 3px color-mix(in srgb,var(--sc) 22%,transparent);flex:none}
.sec-name{font-size:14.5px;font-weight:800;color:var(--sc);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sec-go{color:var(--text-sub);display:grid;place-items:center}
.sec-row-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cell{display:flex;flex-direction:column;gap:3px;min-width:0;align-items:flex-start}
.cl{font-size:11px;font-weight:700;color:var(--text-sub)}
.cv{font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.1}
.sec-share{height:5px;border-radius:99px;background:rgba(255,255,255,.7);overflow:hidden}
.sec-share i{display:block;height:100%;border-radius:inherit;background:var(--sc);transition:width .7s}
.sec-share-t{font-size:11px;color:var(--text-sub);font-weight:600;margin-top:-3px}
.note{margin-top:2px;text-align:center}
.chg{display:inline-flex;align-items:center;gap:3px;padding:2px 8px;border-radius:99px;font-size:11.5px;font-weight:800;white-space:nowrap}
.chg .i{width:12px;height:12px}
.chg.good{color:#0B7A5A;background:rgba(16,185,129,.16)}
.chg.bad{color:#BE123C;background:rgba(244,63,94,.14)}
.chg.neu{color:#3B6EF5;background:rgba(59,110,245,.12)}
.chg.flat{color:var(--text-sub);background:rgba(100,116,139,.14)}

/* ===== Окно детальной аналитики ===== */
.sheet-back{--sc:#4338CA;position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;justify-content:center;
  background:rgba(15,23,42,.3);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);opacity:0;transition:opacity .25s}
.sheet-back[hidden]{display:none}
.sheet-back.open{opacity:1}
.sheet{width:100%;max-width:760px;max-height:92vh;max-height:92dvh;display:flex;flex-direction:column;border-radius:28px 28px 0 0;
  background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(244,249,255,.76));
  background:linear-gradient(180deg,color-mix(in srgb,var(--sc) 10%,rgba(255,255,255,.9)),rgba(244,249,255,.78) 40%);
  -webkit-backdrop-filter:blur(30px) saturate(180%);backdrop-filter:blur(30px) saturate(180%);
  border:1px solid var(--glass-border);box-shadow:0 -10px 60px rgba(15,23,42,.18);
  transform:translateY(40px);transition:transform .32s cubic-bezier(.2,.8,.2,1);overflow:hidden}
.sheet-back.open .sheet{transform:none}
.sheet-grab{width:42px;height:5px;border-radius:99px;background:rgba(100,116,139,.35);margin:8px auto 0;flex:none}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px 12px;flex:none;border-bottom:1px solid rgba(255,255,255,.7)}
.sheet-ttl{display:flex;align-items:center;gap:10px;min-width:0}
.sheet-name{font-size:18px;font-weight:800;color:var(--sc)}
.sheet-body{overflow-y:auto;overscroll-behavior:contain;padding:14px 14px calc(22px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px}
.sheet-body .skeleton{flex:none}
@media (min-width:768px){.sheet-back{align-items:center}.sheet{border-radius:28px;max-height:88vh}.sheet-grab{display:none}}

.sh-meta{display:flex;flex-wrap:wrap;gap:6px}
.sh-card{padding:14px}
.sh-h{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.sh-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.sh-grid .span2{grid-column:auto}
@media (min-width:768px){.sh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sh-grid .span2{grid-column:1/-1}}
.ins{display:flex;flex-wrap:wrap;gap:8px}
.ins-i{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:99px;font-size:12.5px;font-weight:700;border:1px solid var(--glass-border);background:var(--glass-in)}
.ins-i.good{background:rgba(16,185,129,.16);color:#0B6B50}
.ins-i.bad{background:rgba(244,63,94,.14);color:#BE123C}
.ins-i.neu{background:rgba(59,110,245,.12);color:#2F57CC}
.center{text-align:center;padding:14px}

.kp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (min-width:768px){.kp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.kp{display:flex;flex-direction:column;gap:3px;padding:12px;border-radius:var(--r);background:var(--glass);border:1px solid var(--glass-border);box-shadow:var(--shadow);min-width:0}
.kp-l{font-size:11.5px;font-weight:700;color:var(--text-sub)}
.kp-v{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.1}
.kp-s{font-size:11.5px;color:var(--text-sub);font-weight:600;margin-bottom:4px}
.kp-c{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;color:var(--text-sub);font-weight:600;padding-top:5px;border-top:1px dashed rgba(100,116,139,.25)}
.kp-c em{font-style:normal;opacity:.6}

/* «прямо сейчас» */
.bul{margin-bottom:12px}
.bul-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13px;font-weight:700}
.bul-top b{font-size:20px;font-variant-numeric:tabular-nums}
.bul-track{position:relative;height:12px;border-radius:99px;background:rgba(255,255,255,.75);margin:7px 0 5px;box-shadow:inset 0 0 0 1px rgba(100,116,139,.15)}
.bul-track i{position:absolute;left:0;top:0;bottom:0;border-radius:inherit;transition:width .8s}
.bul-track i.mid{background:linear-gradient(90deg,#B4C8FF,#3B6EF5)}
.bul-track i.lo{background:linear-gradient(90deg,#A7F3D0,#10B981)}
.bul-track i.hi{background:linear-gradient(90deg,#FDA4AF,#E11D48)}
.bul-track u{position:absolute;top:-4px;bottom:-4px;width:3px;margin-left:-1.5px;border-radius:2px;background:#1d3a4b;text-decoration:none}
.bul-foot{display:flex;justify-content:space-between;font-size:11.5px;color:var(--text-sub);font-weight:600}
.nr{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 12px;margin-top:6px;border-radius:var(--r-sm);background:var(--glass-in);border:1px solid var(--glass-border);color:var(--text-main);text-decoration:none;font-size:12.5px;font-weight:600}
.nr-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* графики */
.chart-svg{display:block;width:100%;height:auto;overflow:visible}
.gl{stroke:rgba(71,85,105,.14);stroke-width:1}
.ax{font-size:9px;fill:#51607a;font-weight:600}
.typ{stroke:#64748B;stroke-width:1.4;stroke-dasharray:4 3;fill:none}
.typ-line{fill:none;stroke:#1d3a4b;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:3 3;opacity:.75}
[data-tip]{cursor:pointer}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11.5px;font-weight:600;color:var(--text-sub);margin-bottom:8px}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.legend i.dash{height:0;width:16px;border-top:2px dashed #475569;border-radius:0;background:none}
.dn-wrap{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.donut{width:132px;height:132px;flex:none}
.dn-v{font-size:22px;font-weight:800;fill:#0f172a}
.dn-s{font-size:9px;fill:#51607a;font-weight:700}
.dn-leg{flex:1;min-width:140px;display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600}
.dn-leg div{display:flex;align-items:center;gap:8px}
.dn-leg i{width:10px;height:10px;border-radius:50%;flex:none}
.dn-leg b{margin-left:auto;font-variant-numeric:tabular-nums}
.pr-h{font-size:12px;font-weight:800;color:var(--text-sub);margin:2px 0 6px}
.pr{display:grid;grid-template-columns:88px minmax(0,1fr) auto;align-items:center;gap:8px;padding:4px 6px;border-radius:10px;font-size:12px}
.pr.me{background:rgba(255,255,255,.7);box-shadow:inset 0 0 0 1px rgba(100,116,139,.2)}
.pr-n{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pr-t{height:8px;border-radius:99px;background:rgba(255,255,255,.75);overflow:hidden}
.pr-t i{display:block;height:100%;border-radius:inherit;transition:width .7s}
.ck{margin-top:9px}.ck:first-child{margin-top:0}
.ck-top{display:flex;justify-content:space-between;gap:8px;font-size:12.5px;margin-bottom:4px}
.ck-top span{color:var(--text-sub);font-weight:600;white-space:nowrap}
.ck-top b{min-width:0;overflow:hidden;text-overflow:ellipsis}
#chart-tip{position:fixed;z-index:95;transform:translate(-50%,-100%);pointer-events:none;opacity:0;transition:opacity .12s;
  padding:6px 11px;border-radius:10px;font-size:12px;font-weight:700;max-width:80vw;text-align:center;
  background:rgba(15,23,42,.92);color:#fff}
#chart-tip.on{opacity:1}
