
/* RB_HORSE_TOP_COMPACT_V1: denser career/profile + form-stats headline */
.horse-section.rb-horse-top .horse-section-header { padding: 10px 14px; }
.horse-section.rb-horse-top .horse-stat-grid { grid-template-columns: repeat(6, 1fr); }
.horse-section.rb-horse-top .horse-stat { padding: 9px 14px 10px; }
.horse-section.rb-horse-top .horse-stat-label { margin-bottom: 3px; font-size: 0.6rem; white-space: nowrap; }
.horse-section.rb-horse-top .horse-stat-value { font-size: 0.98rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb-hs-head { padding: 10px 14px; }
.rb-hs-kpi { padding: 9px 14px 10px; }
.rb-hs-kpi-label { font-size: 0.6rem; margin-bottom: 3px; }
.rb-hs-kpi-value { font-size: 0.98rem; }
.rb-hs-summary { grid-template-columns: repeat(6, 1fr); }
.horse-section.rb-horse-top .horse-stat-label > * { transform: scale(.85); vertical-align: middle; }
@media (max-width: 900px) {
  .horse-section.rb-horse-top .horse-stat-grid, .rb-hs-summary { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .horse-section.rb-horse-top .horse-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .horse-section.rb-horse-top .horse-stat { padding: 8px 10px; }
  .horse-section.rb-horse-top .horse-stat-label { white-space: normal; }
  .rb-hs-summary { grid-template-columns: repeat(3, 1fr); }
  .rb-hs-kpi { padding: 8px 10px; }
  .rb-hs-kpi:nth-child(2n) { border-right: 1px solid var(--border); }
  .rb-hs-kpi:nth-child(3n) { border-right: 0; }
}


.rb-race-result { margin: 12px 0; }
.rb-rr-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 20px; }
.rb-rr-label { font-weight: 800; font-size: .74rem; letter-spacing: .08em; }
.rb-rr-kind { font-size: .6rem; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; background: var(--panel-soft); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.rb-rr-kind.is-wait { color: var(--text); }
.rb-rr-msg { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-rr-toggle { margin-left: auto; background: none; border: 0; padding: 2px 0; color: var(--accent); font-weight: 700; font-size: .76rem; cursor: pointer; white-space: nowrap; }
.rb-rr-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; padding: 0 14px 11px; }
.rb-rr-item { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .84rem; }
.rb-rr-ipos { flex: none; font-size: .66rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--panel-soft); border: 1px solid var(--border); }
.rb-rr-item.p1 .rb-rr-ipos { background: var(--accent); color: #0b0f0c; border-color: var(--accent); }
.rb-rr-itab { flex: none; color: var(--muted); font-weight: 700; font-size: .78rem; }
.rb-rr-iname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-rr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.rb-rr-list[hidden] { display: none; }
@media (max-width: 720px) {
  .rb-rr-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; padding: 0 12px 10px; }
  .rb-rr-bar { padding: 9px 12px; }
}
.rb-rr-row { display: grid; grid-template-columns: 44px 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: .86rem; }
.rb-rr-row:last-child { border-bottom: 0; }
.rb-rr-pos { font-weight: 800; font-size: .8rem; text-align: center; border-radius: 8px; padding: 4px 0; background: var(--panel-soft); border: 1px solid var(--border); }
.rb-rr-row.p1 .rb-rr-pos { background: var(--accent); color: #0b0f0c; border-color: var(--accent); }
.rb-rr-tab { color: var(--muted); font-weight: 700; text-align: right; }
.rb-rr-horse { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-rr-horse small { display: block; color: var(--muted); font-weight: 400; font-size: .72rem; }
.rb-rr-margin, .rb-rr-sp { color: var(--muted); font-size: .78rem; text-align: right; white-space: nowrap; }
.rb-rr-sp b { color: var(--text); }
@media (min-width: 721px) {
  #racePageContent .market-table tr.rb-rr-winner > td { background: rgba(185, 255, 53, .09); }
  #racePageContent .market-table tr.rb-rr-winner > td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
}
@media (max-width: 720px) {
  #racePage .market-wrap .market-table tr.rb-rr-winner { background: rgba(185, 255, 53, .08) !important; border-color: rgba(185, 255, 53, .55) !important; box-shadow: inset 4px 0 0 var(--accent) !important; }
}
#racePageContent .market-table tr.rb-rr-winner > td:first-child { color: var(--accent); font-weight: 800; }
.rb-rr-chip { display: inline-block; margin-left: 7px; padding: 1px 6px; border-radius: 999px; font-size: .62rem; font-weight: 800; letter-spacing: .05em; vertical-align: middle; background: var(--panel-soft); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.rb-rr-chip.is-win { background: var(--accent); color: #0b0f0c; border-color: var(--accent); }
.rb-rr-horse small.rb-rr-mob { display: none; }
@media (max-width: 640px) {
  .rb-rr-row { grid-template-columns: 38px 26px minmax(0, 1fr) auto; gap: 8px; padding: 8px 12px; }
  .rb-rr-margin { display: none; }
  .rb-rr-horse small.rb-rr-mob { display: block; }
}
