/* Peer rails stay left, the local rail stays right, in every rhythm mode. */
.status-float { position: fixed; inset: 0; z-index: 9; pointer-events: none; }
.status-side {
  --status-high: #f5a2bd;
  --status-low: #df668e;
  --status-glow: #ed83aa55;
  position: absolute;
  top: 50%;
  left: env(safe-area-inset-left, 0px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.status-side[data-side="right"] {
  --status-high: #c0a4af;
  --status-low: #947b85;
  --status-glow: #b29aa52b;
  left: auto;
  right: env(safe-area-inset-right, 0px);
}
.status-person { position: relative; margin: 0; color: #fff; }
.status-person summary {
  display: grid;
  place-items: center;
  width: 28px;
  height: min(120px, calc(55dvh / var(--status-count)));
  padding: 19px 0 4px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.status-side[data-side="left"] summary { height: calc(50dvh / var(--status-count) + 25px); }
.status-person summary:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.status-person summary::-webkit-details-marker { display: none; }
.status-segments {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 8px;
  height: 100%;
  border: 1px solid #ffffff24;
  border-radius: 6px;
  background: #ffffff0d;
  -webkit-backdrop-filter: blur(36px) saturate(100%);
  backdrop-filter: blur(36px) saturate(100%);
  box-shadow: inset 0 1px 1px #ffffff20, 0 1px 5px #0003;
}
.status-segments i {
  display: block;
  width: 100%;
  height: var(--status-fill, 0%);
  border-radius: inherit;
  background: linear-gradient(0deg, var(--status-low), var(--status-high));
  transition: height .35s ease;
}
.status-segments small {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  color: #fff;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  line-height: 12px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px #000b;
}
.status-side[data-side="right"] small { color: #d1c5ca; }
.status-segments[data-level="3"] { box-shadow: 0 0 10px var(--status-glow); }
.status-segments[data-level="3"]::after { content: ''; position: absolute; inset: -3px; border: 1px solid var(--status-high); border-radius: 9px; pointer-events: none; animation: status-spill 1.3s ease-out 3; opacity: 0; }
.status-detail {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: min(160px, calc(100vw - 72px));
  padding: 8px 12px;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff18, #ffffff04 55%, #ffffff0c), #20202024;
  -webkit-backdrop-filter: blur(36px) saturate(100%);
  backdrop-filter: blur(36px) saturate(100%);
  box-shadow: inset 0 1px 0 #ffffff40, 0 6px 20px #0002;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.status-side[data-side="right"] .status-detail { left: auto; right: 30px; }
.status-title { font-size: 10px; font-weight: 500; color: #ffffffba; }
@keyframes status-spill { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2, 1.04); } }
@media (prefers-reduced-motion: reduce) { .status-segments i { transition: none; } .status-segments[data-level="3"]::after { animation: none; opacity: .35; } }
.status-segments.status-pulse {
  box-shadow: 0 0 calc(6px + var(--status-power) * 4px) var(--status-high);
}
.status-segments.status-pulse::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1px solid var(--status-high);
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  animation: status-tap .65s ease-out;
}
@keyframes status-tap {
  from { opacity: .75; transform: scale(1); }
  to { opacity: 0; transform: scale(calc(1.3 + var(--status-power) * .3), 1.02); }
}
@media (prefers-reduced-motion: reduce) { .status-segments.status-pulse::before { animation: none; } }
.status-adjust { display: flex; gap: 6px; margin-top: 4px; pointer-events: auto; }
.status-adjust button { min-width: 32px; min-height: 32px; padding: 0 8px; font-size: 20px; line-height: 1; }
