/* ============================================================================
   news-radar.css — блоки «Моего радара» (news-radar.html).
   Общее (значки новостей, лента, окно новости, cm-*) — из news.css.
   ============================================================================ */

/* ===== выбор активов ===== */
.rd-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.rd-pick-l { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-right: 4px; }
.rd-pick-n { font-size: 13px; color: var(--text-secondary); border-bottom: 1px dotted currentColor; cursor: help; }
.rd-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 13px; border: 1px solid var(--mx-line-strong); border-radius: 999px; background: var(--mx-surface); color: var(--text-color); font-size: 13px; font-weight: 600; }
.rd-chip button { border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; padding: 0 3px; }
.rd-chip button:hover { color: var(--red, #f87171); }
button.rd-chip { padding: 6px 13px; cursor: pointer; }
button.rd-chip:hover { border-color: var(--mx-gold-line); }
.rd-chip.add { border-style: dashed; color: var(--gold, #d4af37); }
.rd-chip.on { border-color: var(--mx-gold-line); background: var(--mx-gold-wash); color: var(--gold, #d4af37); }
.rd-add { margin: -6px 0 22px; padding: 14px 16px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); display: flex; flex-direction: column; gap: 12px; }
.rd-add[hidden] { display: none; }
.rd-add .nw-search { flex: none; }   /* в колонке flex: 1 1 220px из news.css раздувал поле в высоту */
.rd-add-top { display: flex; gap: 10px; align-items: center; }
.rd-add-top .nw-search { flex: 1; }
.rd-add-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--mx-line-strong); background: transparent; color: var(--text-secondary); cursor: pointer; }
.rd-add-x:hover { color: var(--text-color); border-color: var(--mx-gold-line); }
.rd-add-list { display: flex; flex-direction: column; gap: 10px; }
.rd-add-g { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rd-add-g > span { width: 90px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.rd-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; width: 100%; padding: 20px 22px; border: 1px dashed var(--mx-gold-line); border-radius: var(--mx-r); background: var(--mx-gold-wash); }
.rd-empty > i { font-size: 30px; color: var(--gold, #d4af37); }
.rd-empty > div { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 220px; }
.rd-empty b { font-size: 15px; color: var(--text-color); } .rd-empty span { font-size: 13.5px; color: var(--text-secondary); }
.rd-presets { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; flex: none !important; flex-direction: row !important; }

/* ===== 01. карточки ===== */
.rd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 34px; }
.rd-cards > .cm-empty { grid-column: 1 / -1; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); }
.rd-card { --sc: var(--green, #4ade80); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); cursor: pointer; transition: border-color .15s, transform .15s; overflow: hidden; }
.rd-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--sc); opacity: .85; }
.rd-card:hover { border-color: var(--mx-line-strong); transform: translateY(-2px); }
.rd-card.s-amber { --sc: var(--gold, #d4af37); }
.rd-card.s-red { --sc: var(--red, #f87171); background: linear-gradient(180deg, rgba(248,113,113,.08), transparent 50%), var(--mx-surface); }
.rd-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rd-card-h b { font-size: 14px; color: var(--text-color); }
.rd-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--sc); cursor: help; }
.rd-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.rd-card.s-red .rd-st i { animation: livePulse 1.4s ease-out infinite; }
.rd-card-p { display: flex; align-items: baseline; gap: 10px; }
.rd-card-p span { font: 600 22px/1.1 var(--mx-f-display); color: var(--text-color); }
.rd-card-p em { font-style: normal; font-size: 13px; font-weight: 700; }
.rd-card-p small { font-size: 12.5px; color: var(--text-secondary); }
.rd-sp { width: 100%; height: 40px; display: block; }
.rd-sp path { fill: none; stroke: var(--text-secondary); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.rd-sp.up path { stroke: var(--green, #4ade80); } .rd-sp.down path { stroke: var(--red, #f87171); }
.rd-card-n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--text-secondary); }
.rd-card-n b { color: var(--text-color); }
.rd-hot { padding: 1px 7px; border-radius: 6px; background: var(--mx-gold-wash); color: var(--gold, #d4af37); font-weight: 700; font-size: 12.5px; cursor: help; }
.rd-card-e { display: flex; gap: 8px; align-items: flex-start; padding-top: 8px; border-top: 1px dashed var(--mx-line); font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.rd-card-e i { color: var(--gold, #d4af37); margin-top: 2px; } .rd-card-e b { color: var(--text-color); font-weight: 600; }

/* ===== 02. что важно сейчас ===== */
.rd-now { display: flex; flex-direction: column; gap: 6px; margin-bottom: 34px; }
.rd-now > .cm-empty { border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); }
.rd-now-i { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--mx-line); border-left: 3px solid var(--c); border-radius: 10px; background: var(--mx-surface); font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.rd-now-i > i { color: var(--c); margin-top: 3px; width: 16px; text-align: center; }
.rd-now-i b { color: var(--text-color); }
.rd-now-i.red { --c: var(--red, #f87171); } .rd-now-i.amber { --c: var(--gold, #d4af37); } .rd-now-i.green { --c: var(--green, #4ade80); }

/* ===== 03. две недели риска ===== */
.rd-week-wrap { overflow-x: auto; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); }
.rd-week { min-width: 720px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.rd-week > .cm-empty { min-width: 0; }
.rd-wk-row { display: grid; grid-template-columns: 150px repeat(14, minmax(0, 1fr)); gap: 4px; align-items: center; }
.rd-wk-row.head span { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--text-secondary); text-transform: uppercase; }
.rd-wk-row.head span b { font-size: 13px; color: var(--text-color); }
.rd-wk-row.head span.we { opacity: .55; }
.rd-wk-row.head span.today b { color: var(--gold, #d4af37); }
.rd-wk-a { font-size: 13.5px; font-weight: 600; color: var(--text-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-wk-c { height: 30px; border: 1px solid transparent; border-radius: 6px; background: var(--mx-surface-2); color: var(--text-color); font-size: 13px; font-weight: 700; cursor: pointer; }
.rd-wk-c:hover { border-color: var(--mx-gold-line); }
.rd-wk-c.today { box-shadow: inset 0 0 0 1px var(--mx-gold-line); }
.rd-wk-c.l1 { background: rgba(212,175,55,.14); } .rd-wk-c.l2 { background: rgba(212,175,55,.28); }
.rd-wk-c.l3 { background: rgba(248,113,113,.32); } .rd-wk-c.l4 { background: rgba(248,113,113,.55); }

/* ===== 04. календарь ===== */
.rd-focus { margin-bottom: 10px; overflow-x: auto; }
.rd-focus .nw-seg { flex-wrap: nowrap; }
.rd-cal { border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); overflow: hidden; margin-bottom: 34px; max-height: 760px; overflow-y: auto; }
.rd-ev { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--mx-line); border-left: 3px solid transparent; }
.rd-ev.i3 { border-left-color: var(--gold, #d4af37); }
.rd-ev.past { opacity: .55; }
.rd-ev time { font: 600 15px/1.2 var(--mx-f-display); color: var(--text-color); display: flex; flex-direction: column; gap: 3px; }
.rd-ev time small { font: 500 12.5px/1.3 var(--mx-f-ui, inherit); color: var(--text-secondary); }
.rd-ev-b { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rd-ev-t { font-size: 14px; font-weight: 600; color: var(--text-color); }
.rd-ev-t .fa-star { color: var(--gold, #d4af37); font-size: 12.5px; }
.rd-ev-t em { display: block; font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--text-secondary); margin-top: 1px; }
.rd-ev-m { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-secondary); }
.rd-ev-m b { color: var(--text-color); }
.rd-why { font-style: italic; }
.rd-ev-h { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-secondary); }
.rd-ev-h b { color: var(--text-color); font-weight: 600; }
.rd-ev-h .rd-x, .rd-x { color: var(--gold, #d4af37); }
.rd-for { font-size: 12.5px; color: var(--gold, #d4af37); }
.rd-cn { font-size: 12.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--mx-surface-2); color: var(--text-secondary); vertical-align: 1px; }
.rd-more { font-size: 12.5px; color: var(--text-secondary); border-bottom: 1px dotted currentColor; cursor: help; }

/* ===== 06. правила ===== */
.rd-tg { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px 16px; border: 1px dashed rgba(41,171,226,.45); border-radius: 12px; background: rgba(41,171,226,.07); font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.rd-tg > i { font-size: 24px; color: #29abe2; } .rd-tg b { color: var(--text-color); }
.rd-tg > div { flex: 1; }
.rd-tg-st { padding: 3px 10px; border-radius: 999px; background: rgba(41,171,226,.16); color: #29abe2; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rd-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 34px; }
.rd-rule { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--mx-line); border-radius: 12px; background: var(--mx-surface); opacity: .6; transition: opacity .15s, border-color .15s; }
.rd-rule.on { opacity: 1; border-color: var(--mx-line-strong); }
.rd-rule > i { font-size: 17px; color: var(--gold, #d4af37); margin-top: 2px; text-align: center; }
.rd-rule-b { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rd-rule-b b { font-size: 14px; color: var(--text-color); }
.rd-rule-b > span { font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.rd-rule-p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; font-size: 13.5px; color: var(--text-color); }
.rd-rule-p small { width: 100%; font-size: 12.5px; color: var(--text-secondary); }
.rd-num, .rd-txt { padding: 5px 9px; border: 1px solid var(--mx-line-strong); border-radius: 8px; background: var(--mx-surface-2); color: var(--text-color); font: inherit; font-size: 13px; }
.rd-num { width: 68px; } .rd-txt { width: 100%; }
.rd-num:focus, .rd-txt:focus { outline: 0; border-color: var(--mx-gold-line); }
.rd-sw { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; cursor: pointer; }
.rd-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.rd-sw i { position: absolute; inset: 0; border-radius: 999px; background: var(--mx-surface-2); border: 1px solid var(--mx-line-strong); transition: background .15s; }
.rd-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-secondary); transition: transform .15s, background .15s; }
.rd-sw input:checked + i { background: var(--mx-gold-wash); border-color: var(--mx-gold-line); }
.rd-sw input:checked + i::after { transform: translateX(18px); background: var(--gold, #d4af37); }
.rd-sw input:focus-visible + i { outline: 2px solid var(--mx-gold-line); outline-offset: 2px; }
.rd-rules-f { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ===== 07. журнал ===== */
.rd-log { border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); overflow: hidden; }
.rd-log > .cm-empty { padding: 22px 16px; }
.rd-log-i { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--mx-line); border-left: 3px solid var(--mx-line-strong); }
.rd-log-i[data-id] { cursor: pointer; } .rd-log-i[data-id]:hover { background: var(--mx-surface-2); }
.rd-log-i.sev3 { border-left-color: var(--red, #f87171); } .rd-log-i.sev2 { border-left-color: var(--gold, #d4af37); }
.rd-log-i time { font: 600 14px/1.2 var(--mx-f-display); color: var(--text-color); display: flex; flex-direction: column; gap: 2px; }
.rd-log-i time small { font: 500 12.5px/1.3 inherit; font-family: inherit; color: var(--text-secondary); }
.rd-log-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rd-log-h b { font-size: 13.5px; color: var(--text-color); }
.rd-rule-tag { padding: 1px 8px; border-radius: 6px; border: 1px solid var(--mx-line-strong); font-size: 12.5px; color: var(--text-secondary); }
.rd-log-i.sev3 .rd-rule-tag { border-color: rgba(248,113,113,.5); color: var(--red, #f87171); }
.rd-log-t { margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.rd-log-a { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--text-secondary); text-align: right; white-space: nowrap; }
.rd-log-a b { color: var(--text-color); }

body.light .rd-tg { background: rgba(41,171,226,.08); }

@media (max-width: 900px) {
    .rd-rules { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .rd-ev { grid-template-columns: 1fr; gap: 6px; }
    .rd-ev time { flex-direction: row; align-items: baseline; gap: 8px; }
    .rd-log-i { grid-template-columns: 1fr; gap: 6px; }
    .rd-log-i time { flex-direction: row; gap: 8px; align-items: baseline; }
    .rd-log-a { flex-direction: row; gap: 14px; text-align: left; }
    .rd-add-g > span { width: 100%; }
    .rd-wk-row { grid-template-columns: 110px repeat(14, minmax(0, 1fr)); }
    .rd-tg { flex-wrap: wrap; }
}

/* ===== шапка: радар (renderScope) ===== */
.nw-page .page-content .hero { align-items: center; }
.rd-scope-wrap { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.rd-scope { width: 210px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rd-scope svg { width: 210px; height: 210px; overflow: visible; }
.rd-scope .grid circle, .rd-scope .grid line { fill: none; stroke: rgba(74,222,128,.18); stroke-width: 1; }
.rd-scope .grid circle:last-child { stroke: rgba(74,222,128,.32); }
.rd-scope .sweep { transform-origin: 105px 105px; animation: rdSweep 4s linear infinite; }
.rd-scope .sweep path { fill: url(#none); fill: rgba(74,222,128,.13); }
@keyframes rdSweep { to { transform: rotate(360deg); } }
.rd-blip { cursor: pointer; }
.rd-blip text { font: 600 11.5px var(--mx-f-ui, sans-serif); fill: var(--text-color); }
.rd-blip .ping { opacity: .5; transform-box: fill-box; transform-origin: center; animation: rdPing 2s ease-out infinite; }
.rd-blip.green .ping { animation-duration: 4s; opacity: .25; }
@keyframes rdPing { from { transform: scale(1); opacity: .55; } to { transform: scale(2.6); opacity: 0; } }
.rd-scope .empty { font-size: 12.5px; fill: var(--text-secondary); }
.rd-scope-leg { display: flex; gap: 10px; font-size: 12px; color: var(--text-secondary); }
.rd-scope-leg i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.rd-scope-leg i.red { background: #f87171; } .rd-scope-leg i.amber { background: #d4af37; } .rd-scope-leg i.green { background: #4ade80; }

/* ===== карточка: последняя новость ===== */
.rd-card-l { display: flex; gap: 8px; align-items: baseline; padding: 7px 9px; border-radius: 8px; background: var(--mx-surface-2); font-size: 13px; line-height: 1.4; color: var(--text-color); cursor: pointer; }
.rd-card-l:hover { outline: 1px solid var(--mx-gold-line); }
.rd-card-l i { color: var(--gold, #d4af37); font-size: 12.5px; }
.rd-card-l span { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-card-l em { font-style: normal; font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

/* ===== главное по каждому активу ===== */
.rd-tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 34px; }
.rd-tops > .cm-empty { grid-column: 1 / -1; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); }
.rd-top { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px 18px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: linear-gradient(160deg, color-mix(in srgb, var(--cc, #888) 9%, transparent), transparent 55%), var(--mx-surface); cursor: pointer; transition: border-color .15s, transform .15s; }
.rd-top::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cc, var(--mx-line-strong)); }
.rd-top:hover { border-color: var(--mx-line-strong); transform: translateY(-2px); }
.rd-top.none { cursor: default; opacity: .7; } .rd-top.none:hover { transform: none; }
.rd-top-a { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.rd-top-a b { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.rd-top-a span { font-weight: 700; }
.rd-top-t { font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--text-color); }
.rd-top-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--text-secondary); }
.rd-top-r { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 8px; border-top: 1px dashed var(--mx-line); font-size: 13px; color: var(--text-secondary); }
.rd-top-r b { font-weight: 700; color: var(--text-color); }

/* ===== шум против движения ===== */
.rd-map { padding: 10px 14px 8px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); }
.rd-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.rd-map .ax { stroke: var(--mx-line-strong); stroke-width: 1; }
.rd-map .ax.dash { stroke-dasharray: 4 5; stroke: var(--mx-line); }
.rd-map .ql { font: 700 13px var(--mx-f-ui, sans-serif); letter-spacing: .08em; fill: var(--text-secondary); opacity: .75; }
.rd-map .ql.dim { font-weight: 500; letter-spacing: 0; opacity: .55; }
.rd-map .tk { font-size: 12.5px; fill: var(--text-secondary); }
.rd-map .pt { cursor: pointer; }
.rd-map .pt circle { opacity: .85; stroke: var(--bg-color, #0a0a0a); stroke-width: 2; transition: opacity .15s; }
.rd-map .pt:hover circle { opacity: 1; }
.rd-map .pt text { font: 600 13px var(--mx-f-ui, sans-serif); fill: var(--text-color); }
.rd-map-ax { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-secondary); }
@media (max-width: 1100px) { .rd-scope-wrap { margin-left: 0; width: 100%; justify-content: flex-start; } }
@media (max-width: 700px) { .rd-map-ax span:nth-child(2) { display: none; } .rd-map .pt text { font-size: 18px; } .rd-map .ql { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .rd-scope .sweep, .rd-blip .ping { animation: none; } }

/* ===== радар без активов: только выбор + что появится ===== */
.rd-nomine .page-content > .strip-head, .rd-nomine .page-content > .rd-cards, .rd-nomine .page-content > .rd-now, .rd-nomine .page-content > .rd-tops,
.rd-nomine .page-content > .rd-map, .rd-nomine .page-content > .rd-week-wrap, .rd-nomine .page-content > .rd-focus, .rd-nomine .page-content > .rd-cal,
.rd-nomine .page-content > .nw-feed, .rd-nomine .page-content > .nw-more, .rd-nomine .page-content > .rd-tg, .rd-nomine .page-content > .rd-rules,
.rd-nomine .page-content > .rd-log, .rd-nomine .page-content > .cm-verdict { display: none; }
.rd-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 14px; }
.rd-preview > div { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; gap: 2px 10px; padding: 14px 16px; border: 1px solid var(--mx-line); border-radius: 12px; background: var(--mx-surface); }
.rd-preview i { grid-row: span 2; font-size: 20px; color: var(--gold, #d4af37); margin-top: 3px; }
.rd-preview b { font-size: 14px; color: var(--text-color); }
.rd-preview span { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
@media (max-width: 900px) { .rd-preview { grid-template-columns: 1fr; } }

/* ===== 01. Большой радар + досье (переделка 08.10) ===== */
.rd-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }
.rd-screen { position: relative; height: 560px; border: 1px solid rgba(74,222,128,.22); border-radius: var(--mx-r); overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(74,222,128,.06), transparent 65%), repeating-linear-gradient(0deg, rgba(74,222,128,.025) 0 1px, transparent 1px 3px), #070a08; }
body.light .rd-screen { background: radial-gradient(circle at 50% 50%, rgba(22,128,61,.08), transparent 65%), #f3f7f3; border-color: rgba(22,128,61,.25); }
.rd-screen canvas { display: block; width: 100%; height: 100%; }
.rd-screen-leg { position: absolute; left: 14px; bottom: 10px; display: flex; gap: 14px; font-size: 12.5px; color: rgba(160,220,175,.75); pointer-events: none; }
body.light .rd-screen-leg { color: #3d6b48; }
.rd-screen-leg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.rd-screen-leg i.up { background: #4ade80; } .rd-screen-leg i.down { background: #f87171; } .rd-screen-leg i.ring { border: 1.5px solid #f87171; }
.rd-panel { display: flex; flex-direction: column; gap: 12px; height: 560px; padding: 18px 18px 14px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); overflow: auto; }
.rd-pn-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rd-pn-h b { display: block; font: 600 26px/1.1 var(--mx-f-display); color: var(--text-color); }
.rd-pn-k { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.rd-st.s-red { color: var(--red, #f87171); } .rd-st.s-amber { color: var(--gold, #d4af37); } .rd-st.s-green { color: var(--green, #4ade80); }
.rd-st.s-red i, .rd-st.s-amber i, .rd-st.s-green i { background: currentColor; }
.rd-pn-p { display: flex; align-items: baseline; gap: 12px; }
.rd-pn-p span { font: 600 30px/1 var(--mx-f-display); color: var(--text-color); }
.rd-pn-p em { font-style: normal; font-size: 16px; font-weight: 700; }
.rd-pn-p small { font-size: 13px; color: var(--text-secondary); }
.rd-pn-sp { width: 100%; height: 90px; overflow: visible; flex: 0 0 auto; }
.rd-pn-sp path { fill: none; stroke: var(--gold, #d4af37); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rd-pn-sp path.f { stroke: none; fill: rgba(212,175,55,.08); }
.rd-pn-sp.up path { stroke: var(--green, #4ade80); } .rd-pn-sp.up path.f { fill: rgba(74,222,128,.08); stroke: none; }
.rd-pn-sp.down path { stroke: var(--red, #f87171); } .rd-pn-sp.down path.f { fill: rgba(248,113,113,.08); stroke: none; }
.rd-pn-sp circle { fill: var(--gold, #d4af37); stroke: var(--bg-color, #0a0a0a); stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: help; }
.rd-pn-sp circle.up { fill: var(--green, #4ade80); } .rd-pn-sp circle.down { fill: var(--red, #f87171); }
.rd-pn-n { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rd-pn-n span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--mx-line); border-radius: 10px; font-size: 12px; color: var(--text-secondary); }
.rd-pn-n b { font-size: 17px; color: var(--text-color); }
.rd-pn-n b i { font-style: normal; font-size: 13px; }
.rd-pn-st { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--mx-gold-line); background: var(--mx-gold-wash); cursor: pointer; }
.rd-pn-st.none { border-color: var(--mx-line); background: transparent; cursor: default; }
.rd-pn-st > b { display: block; font-size: 14px; line-height: 1.4; color: var(--text-color); }
.rd-pn-st:hover > b { color: var(--gold-light, #f5d97a); }
.rd-pn-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 13px; color: var(--text-secondary); }
.rd-pn-e { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-secondary); }
.rd-pn-e i { color: var(--gold, #d4af37); margin-top: 2px; }
.rd-pn-e b { color: var(--text-color); }
.rd-pn-go { display: flex; gap: 8px; margin-top: auto; }
.rd-pn-go .nm-btn { flex: 1; justify-content: center; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 34px; }
.rd-chips .rd-chip { cursor: pointer; }
.rd-chips .rd-chip.on { border-color: var(--gold, #d4af37); background: var(--mx-gold-wash); color: var(--text-color); }
.rd-chips .rd-chip em { font-style: normal; font-weight: 700; margin-left: 2px; }
.rd-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--green, #4ade80); }
.rd-dot.s-amber { background: var(--gold, #d4af37); } .rd-dot.s-red { background: var(--red, #f87171); }
/* тревоги и журнал — свёрнуты */
.rd-fold { margin: 0 0 34px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); }
.rd-fold > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.rd-fold > summary::-webkit-details-marker { display: none; }
.rd-fold > summary > i:first-child { color: var(--gold, #d4af37); }
.rd-fold > summary b { font-size: 14px; color: var(--text-color); }
.rd-fold > summary span { flex: 1; font-size: 13px; color: var(--text-secondary); }
.rd-fold > summary em { font-style: normal; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--mx-surface-2); color: var(--text-secondary); }
.rd-fold > summary em.on { background: rgba(248,113,113,.15); color: var(--red, #f87171); }
.rd-fold-ch { color: var(--text-secondary); transition: transform .2s; }
.rd-fold[open] .rd-fold-ch { transform: rotate(180deg); }
.rd-fold[open] { padding: 0 18px 4px; }
.rd-fold[open] > summary { margin: 0 -18px 14px; border-bottom: 1px solid var(--mx-line); }
@media (max-width: 1000px) { .rd-main { grid-template-columns: 1fr; } .rd-screen { height: 440px; } .rd-panel { height: auto; } }
@media (max-width: 520px) { .rd-screen { height: 340px; } .rd-pn-n { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 01. Сводка по активам (вместо canvas-радара) ===== */
.rd-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); margin-bottom: 34px; }
.rd-list { display: flex; flex-direction: column; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); overflow: hidden; align-self: start; }
.rd-r { display: grid; grid-template-columns: minmax(110px, 1.1fr) 112px 160px 92px 70px minmax(120px, 1.2fr); align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--mx-line); background: transparent; color: var(--text-color); text-align: left; font: inherit; cursor: pointer; transition: background .15s; }
.rd-r:last-child { border-bottom: 0; }
.rd-r:not(.rd-r-h):hover { background: var(--hover-bg); }
.rd-r.on { background: var(--mx-gold-wash); box-shadow: inset 3px 0 0 var(--gold, #d4af37); }
.rd-r-h { cursor: default; padding: 9px 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); background: var(--mx-surface-2); }
.rd-r-a { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rd-r-a b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-r-a .rd-dot { margin: 0; flex: 0 0 auto; width: 9px; height: 9px; }
.rd-r-p { display: flex; flex-direction: column; line-height: 1.25; }
.rd-r-p b { font-size: 14px; font-variant-numeric: tabular-nums; }
.rd-r-p em { font-style: normal; font-size: 13.5px; font-weight: 700; }
.rd-r-sp { width: 160px; height: 34px; overflow: visible; font-size: 12.5px; }
.rd-r-sp path { fill: none; stroke: var(--gold, #d4af37); stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.rd-r-sp.up path { stroke: var(--green, #4ade80); } .rd-r-sp.down path { stroke: var(--red, #f87171); }
.rd-r-sp circle { fill: var(--gold, #d4af37); stroke: var(--bg-color, #0a0a0a); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rd-r-sp circle.up { fill: var(--green, #4ade80); } .rd-r-sp circle.down { fill: var(--red, #f87171); }
.rd-r-n { display: flex; align-items: baseline; gap: 6px; }
.rd-r-n b { font-size: 18px; }
.rd-r-n em { font-style: normal; font-size: 12.5px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: rgba(248,113,113,.15); color: var(--red, #f87171); }
.rd-r-n small { font-size: 12.5px; color: var(--text-secondary); }
.rd-r-t { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: var(--mx-line); }
.rd-r-t i { display: block; height: 100%; } .rd-r-t i.up { background: var(--green, #4ade80); } .rd-r-t i.down { background: var(--red, #f87171); }
.rd-r-e { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; min-width: 0; }
.rd-r-e small { font-size: 12.5px; color: var(--text-secondary); }
.rd-panel { height: auto; min-height: 420px; }
@media (max-width: 1300px) { .rd-main { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .rd-r { grid-template-columns: minmax(0, 1fr) 96px 70px; } .rd-r > :nth-child(3), .rd-r > :nth-child(5), .rd-r > :nth-child(6) { display: none; } }
.rd-r-e { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rd-r-e small { display: block; }
.rd-panel { align-self: start; min-height: 0; }
.rd-panel .rd-pn-go { margin-top: 4px; }
