.nr-dialog.nr-unit-dialog {
  width: min(calc(100vw - 28px), 520px);
  max-height: 86dvh;
  border: 1px solid #3776d8;
  border-radius: 20px;
  background: #081a32;
  color: #fff;
  overscroll-behavior: contain;
}
.nr-unit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 12px 14px 17px;
  color: #fff;
  border-bottom: 1px solid #306bc2;
  background: linear-gradient(112deg,#103a89cb,#091b42e5), url('/assets/leagues/achievement/background-e.webp') center 30% / cover;
}
.nr-unit-head h2 { color: inherit; margin: 0; font-size: clamp(17px,5vw,24px); line-height: 1.15; }
.nr-unit-head p { margin: 6px 0 0; font-size: 13px; color: #dce8ff; }
.nr-unit-controls { display: flex; flex: 0 0 auto; }
.nr-unit-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: 25px/1 system-ui,sans-serif;
  cursor: pointer;
}
.nr-unit-controls svg { width: 20px; height: 20px; }
.nr-unit-controls button:focus-visible { outline: 2px solid #a9cbff; outline-offset: -2px; }
.nr-unit-content { padding: 11px; }
.nr-unit-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.nr-unit-row {
  --nr-league-color: #839bc2;
  display: grid;
  grid-template-columns: 2ch 38px minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(5px,2vw,11px);
  min-height: 55px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb,var(--nr-league-color) 62%,#081a32);
  border-radius: 11px;
  background: color-mix(in srgb,var(--nr-league-color) 11%,#081a32);
}
.nr-unit-top { border-color: var(--nr-league-color); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--nr-league-color) 36%,transparent); }
.nr-unit-self:not(.nr-unit-top) { border-color: var(--nr-league-color); }
.nr-unit-rank { color: var(--nr-league-color); font-size: 13px; font-weight: 800; }
.nr-unit-avatar { position: relative; display: grid; place-items: center; width: 38px; height: 38px; }
.nr-unit-avatar .nr-avatar { width: 100%; height: 100%; font-size: 12px; }
.nr-unit-avatar-framed .nr-avatar { width: 87.4%; height: 87.4%; border: 0; }
.nr-league-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.nr-league-jewel { position: absolute; right: -2px; bottom: -1px; width: 15px; height: 15px; }
.nr-unit-name { color: #fff; font-size: clamp(12px,3.6vw,15px); font-weight: 700; overflow-wrap: anywhere; }
.nr-unit-name small { display: block; margin-top: 2px; color: #d7e5ff; font-size: 10px; font-weight: 500; }
.nr-unit-points { white-space: nowrap; color: #fff; font-size: clamp(12px,3.7vw,15px); font-variant-numeric: tabular-nums; }
.nr-unit-empty { padding: 14px 10px 20px; text-align: center; }
.nr-unit-empty svg { display: block; width: 28px; height: 28px; margin: 0 auto 8px; color: #80b3ff; }
.nr-unit-empty strong { display: block; font-size: 15px; }
.nr-unit-empty p,.nr-unit-message { margin: 6px 0 0; font-size: 12px; color: #d7e5ff; }
.shell-more > [data-shell-action="ranking-reset"][hidden] { display: none; }
