/* Радар неэффективностей (deploy100, Н5, 10.10.2026): общий вид для
   «Опционов» и «Арбитража». Свои классы rd-*, чтобы не зависеть от стилей
   раздела: в «Арбитраже» options.css не подключается к этому виду. */
.rd-wrap { display: grid; gap: 10px; min-width: 0; }
.rd-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rd-head h3 { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.rd-head h4 { margin: 6px 0 0; font-size: 13px; font-weight: 600; }
.rd-head .rd-btn { margin-left: auto; }
.rd-muted { color: var(--text-muted); font-size: 12px; }
.rd-btn, .rd-chip {
    border: 1px solid var(--border); background: var(--surface-2, transparent); color: var(--text);
    border-radius: 6px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; min-height: 30px;
}
.rd-btn:hover, .rd-chip:hover { background: var(--surface-3, rgba(127, 127, 127, .12)); }
.rd-chip.on { border-color: rgba(59, 130, 246, .6); background: rgba(59, 130, 246, .15); }
.rd-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.rd-seg { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.rd-field { display: grid; gap: 2px; font-size: 11px; color: var(--text-muted); }
.rd-sel, .rd-in {
    border: 1px solid var(--border); background: var(--surface-1, transparent); color: var(--text);
    border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 12px; min-height: 30px;
}
.rd-in { width: 90px; }
.rd-check { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; min-height: 30px; }
.rd-msg { padding: 8px 10px; border: 1px solid rgba(245, 158, 11, .55); border-radius: 6px; font-size: 12px; }
.rd-list { overflow-x: auto; min-width: 0; }
.rd-skel { color: var(--text-muted); padding: 20px 12px; text-align: center; font-size: 13px; }
.rd-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.rd-table th { text-align: right; font-weight: 500; color: var(--text-muted); padding: 5px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rd-table td { text-align: right; padding: 6px; border-bottom: 1px solid var(--border); vertical-align: top; white-space: nowrap; }
.rd-table .rd-l { text-align: left; }
.rd-table td.rd-what { white-space: normal; min-width: 240px; }
.rd-cls { display: inline-grid; place-items: center; min-width: 22px; height: 20px; border-radius: 4px; font-size: 11px; font-weight: 700; border: 1px solid var(--border); color: var(--text-muted); cursor: help; }
.rd-cls-A { color: #fff; background: #1f8f84; border-color: #1f8f84; }
.rd-cls-B { color: #8a5a00; background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .55); }
[data-theme="dark"] .rd-cls-B { color: #fbbf24; }
.rd-diag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; border: 1px solid var(--border); color: var(--text-muted); }
.rd-life { display: inline-flex; gap: 3px; }
.rd-dot { display: inline-grid; place-items: center; min-width: 26px; height: 18px; border-radius: 9px; font-style: normal; font-size: 10px; border: 1px solid var(--border); color: var(--text-muted); }
.rd-dot.rd-ok { background: rgba(38, 166, 154, .2); border-color: rgba(38, 166, 154, .6); color: var(--text); }
.rd-dot.rd-no { background: rgba(239, 83, 80, .14); border-color: rgba(239, 83, 80, .5); color: var(--text); text-decoration: line-through; }
.rd-dot.rd-na { opacity: .45; }
.rd-dot.rd-wait { border-style: dashed; }
.rd-foot { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }

/* Телефон: таблица превращается в карточки, подписи — из data-label */
@media (max-width: 640px) {
    .rd-table thead { display: none; }
    .rd-table, .rd-table tbody, .rd-table tr, .rd-table td { display: block; width: 100%; }
    .rd-table tr { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; margin-bottom: 8px; }
    .rd-table td { border: 0; padding: 3px 0; text-align: left; white-space: normal; display: flex; gap: 10px; justify-content: space-between; }
    .rd-table td::before { content: attr(data-label); color: var(--text-muted); flex: 0 0 auto; }
    .rd-table td .rd-v { text-align: right; min-width: 0; }
    .rd-table td.rd-what { min-width: 0; display: block; }
    .rd-table td.rd-what::before { display: block; }
    .rd-table td.rd-what .rd-v { display: block; text-align: left; }
    .rd-in { width: 80px; }
}

/* U4 (11.11.2026): радар «Опционов» сгруппирован по «серия + тип сигнала» */
.rd-warn { display: inline-block; margin-left: 6px; color: #b45309; font-size: 11px; white-space: nowrap; }
[data-theme="dark"] .rd-warn { color: #fbbf24; }
.rd-tl { border: 0; background: none; color: var(--accent, #3b82f6); font: inherit; font-size: 11px; cursor: pointer; padding: 0 4px; }
.rd-tl:hover { text-decoration: underline; }
.rd-gtable td.rd-what { min-width: 280px; }
.rd-grow.on td { background: var(--surface-2, rgba(127, 127, 127, .06)); }
.rd-gsub td { font-size: 11.5px; padding-top: 3px; padding-bottom: 3px; background: var(--surface-2, rgba(127, 127, 127, .04)); }
.rd-gfoot { display: flex; gap: 10px; align-items: center; padding: 8px 2px 0; flex-wrap: wrap; }
.rd-more > summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 4px 0; }
.rd-more > summary:hover { color: var(--accent, #3b82f6); }
/* A9 (17.11.2026): пояснение и пример на живых данных */
.rd-intro { border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); padding: 8px 12px; margin: 4px 0 10px; font-size: 12.5px; line-height: 1.45; }
.rd-intro > summary { cursor: pointer; font-weight: 600; color: var(--text); }
.rd-intro p { margin: 6px 0 0; color: var(--text-muted); max-width: 980px; }
.rd-ex { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); color: var(--text); }
.rd-btn.rd-open-k { white-space: nowrap; }

/* B8 (18.11.2026): метка находок по бумагам США */
.rd-us { display: inline-block; padding: 0 5px; margin-right: 4px; border-radius: 4px; font-size: 11px; line-height: 16px;
    border: 1px solid var(--border, rgba(128,128,128,.4)); color: var(--text-muted, inherit); white-space: nowrap; }
