.svm2-modal.rdp-panel { width: min(1000px, calc(100vw - 32px)); max-width: 100%; }
.rdp-panel .svm2-body { max-height: calc(100dvh - 170px); overflow: auto; overscroll-behavior: contain; }
.rdp-panel .svm2-actions:empty, .rdp-menu-panel .svm2-actions:empty { display: none; }
.rdp { color: var(--text-main, #eef0f3); font-size: 13px; line-height: 1.5; min-width: 0; }
.rdp * { box-sizing: border-box; }
.rdp button, .rdp select, .rdp input { min-height: 40px; max-width: 100%; border: 1px solid var(--line-strong, var(--line, #454b56)); background: var(--bg-core, #101217); color: inherit; border-radius: 7px; padding: 8px 12px; font: inherit; }
.rdp button { cursor: pointer; touch-action: manipulation; }
.rdp button:disabled { opacity: .45; cursor: not-allowed; }
.rdp button:focus-visible, .rdp select:focus-visible, .rdp input:focus-visible, .rdp a:focus-visible, .rdp summary:focus-visible, .rdp-table-wrap:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.rdp a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.rdp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rdp-toolbar label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rdp-note, .rdp-caption { margin: 12px 0; color: var(--text-secondary, #a2a8b4); overflow-wrap: anywhere; }
.rdp-caption { font-size: 12px; }
.rdp-status { color: var(--warn-text, #af8500); }
.rdp-empty { padding: 28px 10px; text-align: center; color: var(--text-secondary, #a2a8b4); }
.rdp h3 { font-size: 14px; margin: 18px 0 10px; }
.rdp-facts { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 18px 0; }
.rdp-facts > div { min-width: 0; flex: 1 1 160px; }
.rdp-facts dt, .rdp-facts small { color: var(--text-secondary, #a2a8b4); font-size: 12px; }
.rdp-facts dd { margin: 4px 0; font-size: 19px; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rdp-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line, #454b56); border-radius: 8px; }
.rdp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rdp-table th, .rdp-table td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line, #454b56); }
.rdp-table th:first-child { text-align: left; }
.rdp-table thead th { font-weight: 500; font-size: 12px; color: var(--text-secondary, #a2a8b4); background: var(--bg-hover, rgba(128,128,128,.08)); }
.rdp-table tbody tr:last-child > * { border-bottom: 0; }
.rdp-history { margin: 16px 0; }
.rdp-history summary { margin-bottom: 8px; cursor: pointer; }
.rdp-history .rdp-table-wrap { max-height: 300px; }
.rdp-chart { display: block; width: 100%; height: auto; min-width: 0; margin: 8px 0 16px; }
.rdp-chart text { fill: var(--text-secondary, #a2a8b4); font-size: 11px; font-family: var(--font-mono, ui-monospace, monospace); }
.rdp-grid { stroke: var(--line, rgba(128,128,128,.2)); }
.rdp-series path { fill: none; stroke: currentColor; stroke-width: 2; }
.rdp-series circle { fill: currentColor; }
.rdp-line-0 { color: var(--text-main, #eef0f3); }
.rdp-line-1 { color: #4c9fe6; }
.rdp-line-2 { color: #b68bd4; }
.rdp-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.rdp-legend span { display: flex; align-items: center; gap: 6px; }
.rdp-legend i { width: 16px; border-top: 2px solid currentColor; }
.svm2-modal.rdp-menu-panel { width: min(400px, calc(100vw - 24px)); }
.rdp-menu { display: grid; gap: 10px; }
.rdp-menu button { text-align: left; min-height: 48px; }
@media (max-width: 640px) {
  .svm2-modal.rdp-panel { width: calc(100vw - 16px); }
  .rdp-panel .svm2-body { padding: 16px 12px; max-height: calc(100dvh - 130px); }
  .rdp-facts { gap: 12px; }
  .rdp-facts > div:first-child { flex-basis: 100%; }
  .rdp-facts > div { flex-basis: calc(50% - 12px); }
  .rdp-facts dd { font-size: 17px; }
}
