.rd-root { --rd-first: #137a76; --rd-second: #488ba7; --rd-third: #9aa14b; --rd-fourth: #b8874c; --rd-fifth: #a47885; --rd-sixth: #7b7984; --muted: #596273; color: var(--ink); font-variant-numeric: tabular-nums; }
[data-theme="dark"] .rd-root { --muted: #b0bac9; }
.rd-root * { box-sizing: border-box; letter-spacing: 0; }
.rd-root h1 { font-size: 26px; }
.rd-root h2 { font-size: 19px; margin: 0; }
.rd-root small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.7; }
.rd-root a { color: var(--accent); text-underline-offset: 3px; }
.rd-root section { margin: 24px 0; border: 0; border-radius: 0; box-shadow: none; background: none; padding: 0; }
.rd-comparison { scroll-margin-top: 70px; }
.rd-context, .rd-muted { font-size: 13px; color: var(--muted); }
.rd-context span { margin-left: 12px; }
.rd-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; border-block: 1px solid var(--line); padding: 16px 0; }
.rd-filters label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; min-width: 120px; }
.rd-filters .rd-search { flex: 1 1 220px; }
.rd-filters input, .rd-filters select { min-height: 40px; max-width: 100%; width: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--card, var(--bg)); color: var(--ink); padding: 6px 9px; font-size: 14px; }
.rd-root .btn { min-height: 40px; border-radius: 4px; white-space: normal; }
.rd-reset { font-size: 13px; padding: 10px 0; }
.rd-section-head, .rd-selection-actions, .rd-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.rd-section-head { justify-content: space-between; }
.rd-section-head small { display: inline; }
.rd-scroll { overflow: auto; max-width: 100%; border: 1px solid var(--line); }
.rd-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-root table { border-collapse: collapse; width: 100%; table-layout: fixed; margin: 0; }
.rd-root th, .rd-root td { padding: 10px 12px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.rd-root thead th { background: var(--bg); font-size: 13px; position: sticky; top: 0; }
.rd-root tbody th { font-size: 14px; font-weight: 600; }
.rd-root td { font-size: 13px; }
.rd-list-table { min-width: 920px; }
.rd-list-table th:nth-child(1) { width: 58px; }
.rd-list-table th:nth-child(2) { width: 176px; }
.rd-list-table th:nth-child(3) { width: 108px; }
.rd-list-table th:nth-child(4) { width: 290px; }
.rd-root input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.rd-rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px 10px; margin-top: 6px; font-size: 12px; }
.rd-rates b { font-weight: 500; }
.rd-techniques { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.rd-techniques small { display: inline; }
.rd-bar { height: 12px; min-width: 80px; width: 100%; display: flex; overflow: hidden; border-radius: 2px; background: var(--line); }
.rd-bar span { min-width: 0; }
.rd-finish-1 { background: var(--rd-first); }.rd-finish-2 { background: var(--rd-second); }.rd-finish-3 { background: var(--rd-third); }
.rd-finish-4 { background: var(--rd-fourth); }.rd-finish-5 { background: var(--rd-fifth); }.rd-finish-6 { background: var(--rd-sixth); }.rd-other { background: #494b50; }
.rd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.rd-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; }
.rd-root .rd-compare-table { table-layout: auto; width: max-content; min-width: 100%; }
.rd-compare-table th, .rd-compare-table td { min-width: 160px; max-width: 240px; }
.rd-compare-table th:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; min-width: 130px; }
.rd-compare-table thead th:first-child { z-index: 2; }
.rd-compare-table .rd-remove { font-size: 12px; font-weight: 400; }
.rd-divider > * { border-top: 2px solid var(--line); }
.rd-root .rd-notes { border-top: 1px solid var(--line); padding-top: 16px; }
.rd-views { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.rd-views a { font-size: 13px; padding: 10px 12px; text-decoration: none; border-bottom: 3px solid transparent; }
.rd-views a[aria-current] { color: var(--ink); border-color: var(--accent); font-weight: 700; }
.rd-notes p { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 960px; }
.rd-error, #selection-error { color: var(--red, #b12639); font-size: 14px; }
.rd-selection-actions span { font-size: 13px; }
.rd-search-panel > summary { cursor: pointer; font-size: 15px; font-weight: 600; padding: 12px 0; }
.rd-mobile-pager[hidden] { display: none; }
.rd-mobile-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; font-size: 13px; }
.rd-mobile-pager button { min-height: 44px; padding: 8px 12px; color: var(--ink); background: var(--card, var(--bg)); border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.rd-mobile-pager button:disabled { opacity: .4; }
@media (max-width: 600px) {
  .rd-root h1 { font-size: 23px; }
  .rd-filters { gap: 10px; }
  .rd-filters label { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .rd-filters .rd-search { flex-basis: 100%; }
  .rd-context span { display: block; margin: 4px 0; }
  .rd-root th, .rd-root td { padding: 8px; }
  .rd-compare-table th, .rd-compare-table td { min-width: 145px; }
  .rd-compare-table th:first-child { min-width: 112px; max-width: 112px; }
  .rd-root { font-size: 15px; }
  .rd-context { line-height: 1.7; }
  .rd-filters input, .rd-filters select { min-height: 44px; font-size: 16px; }
  .rd-root .btn, .rd-views a, .rd-pagination a { min-height: 44px; }
  .rd-views a { padding: 12px 8px; }
  .rd-course-shortcuts a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 9px; margin: 3px 0; background: var(--card, var(--bg)); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: 14px; }
  .rd-root .rd-paged { width: 100%; min-width: 100%; table-layout: fixed; }
  .rd-paged .rd-column-hidden { display: none; }
  .rd-root .rd-paged th, .rd-root .rd-paged td { min-width: 0; max-width: none; padding: 9px 5px; }
  .rd-root .rd-paged th:first-child { width: 76px; min-width: 0; max-width: 76px; font-size: 12px; }
  .rd-paged .rd-bar { min-width: 0; }
  .rd-paged small { font-size: 12px; }
  .rd-paged .rd-remove { display: inline-flex; min-height: 44px; align-items: center; }
  .rd-root .rd-list-table { display: block; min-width: 0; width: 100%; }
  .rd-list-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rd-list-table tbody { display: block; }
  .rd-list-table tbody tr { display: grid; grid-template-columns: 44px minmax(0,1fr); margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card, var(--bg)); overflow: hidden; }
  .rd-root .rd-list-table tbody th { width: auto; padding: 12px 10px; font-size: 16px; }
  .rd-root .rd-list-table td { width: auto; font-size: 14px; }
  .rd-list-table td[data-label], .rd-list-table td[colspan] { grid-column: 1 / -1; }
  .rd-list-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
  .rd-list-table .rd-select-cell { display: flex; align-items: flex-start; padding: 6px 0; }
  .rd-list-table input[type=checkbox] { width: 24px; height: 24px; margin: 0; flex: none; }
  .rd-list-table .rd-rates { font-size: 14px; gap: 8px; }
  .rd-list-table .rd-techniques { gap: 8px 12px; }
  #directory-selection > .rd-scroll { border: 0; overflow: visible; }
}

@media (max-width: 600px) { .rd-check-target { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; } }
