/* Map page · "By facility · live" — ranked list with proportional bars (Oct 29 2026, Jeremy). Display only. */
#todayByFacility.fac-ranked { display: block; }
.fac-rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fac-rank-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 12px; align-items: center;
  padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(232,121,249,.14); background: rgba(0,0,0,.22);
  font-variant-numeric: tabular-nums; }
.fac-rank-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #e9d5ff; background: rgba(168,85,247,.16); }
.fac-rank-main { min-width: 0; display: grid; gap: 6px; }
.fac-rank-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fac-rank-name { font-size: 13.5px; font-weight: 700; color: #f5e9ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fac-rank-tag { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; color: #fdf4ff; background: rgba(217,70,239,.32); }
.fac-rank-bar { display: block; height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.fac-rank-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a855f7, #e879f9); }
.fac-rank-nums { display: grid; justify-items: end; gap: 2px; text-align: right; white-space: nowrap; }
.fac-rank-pts { font-size: 15px; font-weight: 700; color: #fce7ff; }
.fac-rank-time { font-size: 12px; color: #c4b5fd; }
.fac-rank-row.is-top { padding: 13px 14px; border-color: rgba(232,121,249,.45); background: rgba(88,28,135,.26);
  box-shadow: 0 0 18px rgba(168,85,247,.18); }
.fac-rank-row.is-top .fac-rank-n { width: 30px; height: 30px; font-size: 14px; color: #fff; background: linear-gradient(135deg, #a855f7, #db2777); }
.fac-rank-row.is-top .fac-rank-name { font-size: 16px; }
.fac-rank-row.is-top .fac-rank-bar { height: 10px; }
.fac-rank-row.is-top .fac-rank-pts { font-size: 19px; }
.fac-rank-row.is-top .fac-rank-time { font-size: 13px; }
@media (min-width: 1100px) { .fac-rank-row { grid-template-columns: 28px minmax(0,1fr) 150px; } }
@media (max-width: 520px) {
  .fac-rank-row, .fac-rank-row.is-top { gap: 10px; padding: 9px 10px; grid-template-columns: 26px minmax(0,1fr) 104px; }
  .fac-rank-row.is-top { padding: 12px 10px; }
  .fac-rank-row.is-top .fac-rank-pts { font-size: 17px; }
  .fac-rank-n { width: 24px; height: 24px; }
  .fac-rank-row.is-top .fac-rank-n { width: 26px; height: 26px; font-size: 13px; }
  .fac-rank-row.is-top .fac-rank-name { font-size: 15px; }
  .fac-rank-line { flex-wrap: wrap; row-gap: 3px; }
}
/* Maroon */
html[data-theme="maroon"] body .fac-rank-row { background: #FAF7F2; border-color: #E7DDE0; box-shadow: none; }
html[data-theme="maroon"] body .fac-rank-n { background: #F1E4E9; color: #5C0632; }
html[data-theme="maroon"] body .fac-rank-name, html[data-theme="maroon"] body .fac-rank-pts { color: #1F1A1D; }
html[data-theme="maroon"] body .fac-rank-time { color: #6B5E63; }
html[data-theme="maroon"] body .fac-rank-bar { background: #EDE4E7; }
html[data-theme="maroon"] body .fac-rank-fill { background: linear-gradient(90deg, #9C4A6E, #5C0632); }
html[data-theme="maroon"] body .fac-rank-row.is-top { background: #FFFFFF; border-color: #5C0632; border-left: 4px solid #5C0632; }
html[data-theme="maroon"] body .fac-rank-row.is-top .fac-rank-n { background: #5C0632; color: #FFFFFF; }
html[data-theme="maroon"] body .fac-rank-row.is-top .fac-rank-pts { color: #5C0632; }
html[data-theme="maroon"] body .fac-rank-tag { background: #F1E4E9; color: #5C0632; }
/* Enterprise */
html[data-theme="enterprise"] body .fac-rank-row { background: #F4F6FA; border-color: #DCE3EB; border-radius: 6px; box-shadow: none; }
html[data-theme="enterprise"] body .fac-rank-n { background: #E3EAF2; color: #0F3550; }
html[data-theme="enterprise"] body .fac-rank-name, html[data-theme="enterprise"] body .fac-rank-pts { color: #14202E; }
html[data-theme="enterprise"] body .fac-rank-time { color: #4A5A6B; }
html[data-theme="enterprise"] body .fac-rank-bar { background: #E3EAF2; border-radius: 2px; }
html[data-theme="enterprise"] body .fac-rank-fill { background: #1F5A85; border-radius: 2px; }
html[data-theme="enterprise"] body .fac-rank-row.is-top { background: #FFFFFF; border-color: #0F3550; border-left: 4px solid #0F3550; }
html[data-theme="enterprise"] body .fac-rank-row.is-top .fac-rank-n { background: #0F3550; color: #FFFFFF; }
html[data-theme="enterprise"] body .fac-rank-row.is-top .fac-rank-fill { background: #0F3550; }
html[data-theme="enterprise"] body .fac-rank-row.is-top .fac-rank-pts { color: #0F3550; }
html[data-theme="enterprise"] body .fac-rank-tag { background: #E3EAF2; color: #0F3550; border-radius: 3px; }
