/* IP 限制（2026-11-06 从 GTM 的 /ip-limit 页搬进日志面板）。下面「从 GTM 抽出的规则」由脚本从 others/gtm-editor/public/styles.css
   原样抽出（选择器含 ipl 的规则，以及它用到的通用件 stat-strip / usage-* / icon-btn / refresh-btn / boslife-list，后者加 .ipl-root 前缀免得影响别的页面）。
   GTM 有、日志面板没有的颜色变量在 .ipl-root 里对到日志面板的配色上。 */
.ipl-root {
  --bg-soft: var(--fill);
  --surface-3: var(--fill);
  --accent-bg: var(--accent-soft);
  --accent-border: var(--accent-soft-2);
  --accent-solid: var(--accent);
  --accent-solid-hover: var(--accent-hover);
  --on-accent: #ffffff;
  --red-bg: var(--red-soft);
  --orange-bg: var(--orange-soft);
  --green-bg: var(--green-soft);
  --neutral-pill-bg: var(--fill);
  --neutral-pill-fg: var(--text-secondary);
  --metric-bg: var(--surface-2);
  --radius-xs: 4px;
  --shadow-sm: none;
  --switch-off: #cbd5e1;
  --switch-knob: #ffffff;
  --upload-curve: #dc6803;
  --upload-low: #5b7a99;
  --boslife-down: var(--accent-bar);
  --boslife-up: var(--orange-bar);
  display: grid;
  gap: 16px;
}
:root[data-theme="dark"] .ipl-root {
  --upload-curve: #fdb022;
  --upload-low: #9fb6cc;
}

/* 日志面板这边加的 */
.ipl-root .ipl-cidr-chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.ipl-root .ipl-cidr-chip:empty { display: none; }
.ipl-root .ipl-cidr-chip.bad { color: var(--red); border-color: var(--red-tint-line); }
.ipl-root a.ipl-tile { text-decoration: none; color: inherit; }
.ipl-root a.ipl-pause-open { text-decoration: none; white-space: nowrap; }
.ipl-user-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.ipl-user-head h3 { margin: 0; font-size: 15px; }
.ipl-user-sub { display: flex; flex-wrap: wrap; gap: 6px; }
.ipl-user .ipl-detail-body { padding: 0; overflow: visible; }
/* GTM 抽屉只有 460px 宽，统计栏排 2×2；用户页够宽就排一行 4 格，手机上仍是 2×2 */
@media (min-width: 761px) {
  .ipl-user .stat-strip.ipl-detail-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ipl-user .stat-strip.ipl-detail-stats > section:nth-child(3) { border-left: 1px solid var(--line); }
  .ipl-user .stat-strip.ipl-detail-stats > section:nth-child(n + 3) { border-top: 0; }
}

/* ---------- 从 GTM 抽出的规则 ---------- */
.ipl-root .usage-toolbar,
.ipl-root .usage-date-controls,
.ipl-root .usage-legend {
  display: flex;
  align-items: center;
}
.ipl-root .usage-toolbar {
  justify-content: space-between;
  gap: 12px;
}
.ipl-root .usage-toolbar > span {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 550;
}
.ipl-root .usage-date-controls {
  gap: 6px;
}
.ipl-root .usage-date-controls button {
  width: 40px;
  padding: 0;
  font-size: 1.35rem;
}
.ipl-root .usage-date-controls input {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.ipl-root .switch-label,
.ipl-root .mini-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.ipl-root .switch-label input,
.ipl-root .mini-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ipl-root .switch,
.ipl-root .mini-switch span {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--switch-off);
  transition: background 0.16s ease;
  flex-shrink: 0;
}
.ipl-root .switch::after,
.ipl-root .mini-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--switch-knob);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease;
}
.ipl-root .switch-label input:checked + .switch,
.ipl-root .mini-switch input:checked + span {
  background: var(--green);
}
.ipl-root .switch-label input:checked + .switch::after,
.ipl-root .mini-switch input:checked + span::after {
  transform: translateX(20px);
}
.ipl-root .mini-switch input:disabled + span {
  opacity: 0.5;
}
.ipl-root .switch-label input:focus-visible + .switch,
.ipl-root .mini-switch input:focus-visible + span {
  box-shadow: var(--focus);
}
.ipl-root .gtm-page button,
.ipl-root .gtm-page summary,
.ipl-root .gtm-page .mini-switch span {
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 860px) {
  .ipl-root .gtm-page .address-row > .mini-switch {
    grid-area: toggle;
  }
  .ipl-root .usage-toolbar {
    align-items: center;
  }
  .ipl-root .usage-toolbar > span {
    font-size: 0.75rem;
  }
}
.ipl-root :is(.panel-actions,
.ipl-root .row-actions,
.ipl-root .pool-actions,
.ipl-root .auto-head-actions,
.ipl-root .auto-savebar-actions,
.ipl-root .address-pool-add,
.ipl-root .address-pool-apply) button,
.ipl-root .refresh-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: none;
}
.ipl-root :is(.panel-actions,
.ipl-root .row-actions,
.ipl-root .pool-actions,
.ipl-root .auto-head-actions,
.ipl-root .auto-savebar-actions,
.ipl-root .address-pool-add,
.ipl-root .address-pool-apply) button:hover:not(:disabled),
.ipl-root .refresh-btn:hover:not(:disabled) {
  border-color: transparent;
  background: color-mix(in srgb, var(--surface-3) 72%, var(--line-strong));
  color: var(--text);
}
.ipl-root :is(.panel-actions,
.ipl-root .row-actions,
.ipl-root .pool-actions,
.ipl-root .auto-head-actions,
.ipl-root .auto-savebar-actions,
.ipl-root .address-pool-add,
.ipl-root .address-pool-apply) button:disabled,
.ipl-root .refresh-btn:disabled {
  border-color: transparent;
  background: var(--surface-2);
  color: var(--text-disabled);
  opacity: 1;
}
.ipl-root :is(.panel-actions,
.ipl-root .row-actions,
.ipl-root .pool-actions,
.ipl-root .auto-head-actions,
.ipl-root .auto-savebar-actions,
.ipl-root .address-pool-add,
.ipl-root .address-pool-apply) button:focus-visible,
.ipl-root .refresh-btn:focus-visible {
  box-shadow: var(--focus);
}
.ipl-root .refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  flex: none;
}
.ipl-root .refresh-btn::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M16.2 10a6.2 6.2 0 1 1-1.8-4.4'/><path d='M16.4 3.6v3.6h-3.6'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M16.2 10a6.2 6.2 0 1 1-1.8-4.4'/><path d='M16.4 3.6v3.6h-3.6'/></svg>") center / contain no-repeat;
}
.ipl-root .usage-date-controls {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.ipl-root .usage-date-controls .icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
}
.ipl-root .usage-date-controls .icon-btn svg,
.ipl-root .usage-date-pick svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ipl-root .usage-date-controls .icon-btn:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--accent);
}
.ipl-root .usage-date-controls .icon-btn:disabled {
  background: transparent;
  color: var(--text-disabled);
  opacity: 0.6;
}
.ipl-root .usage-date-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-inline: 1px solid var(--line);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}
.ipl-root .usage-date-pick svg {
  color: var(--accent);
}
.ipl-root .usage-date-pick:hover {
  background: var(--surface-2);
}
.ipl-root .usage-date-pick:focus-within {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}
.ipl-root .usage-date-controls .usage-date-pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.ipl-root .usage-date-pick input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.ipl-root .usage-toolbar > span {
  white-space: nowrap;
}
@media (max-width: 860px) {
  .ipl-root :is(.panel-actions,
.ipl-root .row-actions,
.ipl-root .pool-actions,
.ipl-root .auto-head-actions,
.ipl-root .auto-savebar-actions,
.ipl-root .address-pool-add,
.ipl-root .address-pool-apply) button,
.ipl-root .refresh-btn {
    min-height: 38px;
  }
  .ipl-root .panel-actions > .refresh-btn {
    align-self: flex-start;
  }
  .ipl-root .usage-date-controls {
    height: 38px;
  }
  .ipl-root .usage-date-controls .icon-btn {
    width: 38px;
  }
}
.ipl-root .boslife-summary span i,
.ipl-root .boslife-list .bar i {
  display: block;
}
.ipl-root .boslife-summary i.down,
.ipl-root .boslife-list i.down {
  background: var(--boslife-down);
}
.ipl-root .boslife-summary i.up,
.ipl-root .boslife-list i.up {
  background: var(--boslife-up);
}
.ipl-root .boslife-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ipl-root .boslife-list li {
  display: grid;
  grid-template-columns: 22px minmax(76px, 140px) minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 2px 6px;
  border-radius: 8px;
}
.ipl-root .boslife-list li:hover {
  background: var(--surface-2);
}
.ipl-root .boslife-list .rank {
  color: var(--text-disabled);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ipl-root .boslife-list .name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ipl-root .boslife-list .bar {
  display: flex;
  gap: 2px;
  height: 10px;
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}
.ipl-root .boslife-list .bar i {
  height: 100%;
  min-width: 0;
}
.ipl-root .boslife-list .bar i:first-child {
  border-radius: 999px 0 0 999px;
}
.ipl-root .boslife-list b {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .ipl-root .boslife-list li {
    grid-template-columns: 18px minmax(64px, 84px) minmax(0, 1fr) 62px;
    gap: 8px;
  }
  .ipl-root .boslife-list .name,
.ipl-root .boslife-list b {
    font-size: 0.8125rem;
  }
}
.ipl-root .usage-toolbar {
  min-width: 0;
}
.ipl-root .usage-toolbar > .usage-date-controls {
  flex: none;
}
@media (max-width: 520px) {
  .ipl-root .usage-toolbar > span {
    display: grid;
    justify-items: end;
    min-width: 0;
    line-height: 1.3;
  }
  .ipl-root .usage-date-pick {
    gap: 5px;
    padding: 0 9px;
    font-size: 0.8125rem;
  }
  .ipl-root .usage-date-controls .icon-btn {
    width: 34px;
  }
}
.ipl-root .boslife-list.boslife-regions {
  gap: 4px;
}
.ipl-root .boslife-list.boslife-regions li {
  grid-template-columns: minmax(84px, 120px) minmax(0, 1fr) 76px 44px;
  min-height: 36px;
}
@media (max-width: 860px) {
  .ipl-root .boslife-list.boslife-regions li {
    grid-template-columns: minmax(70px, 88px) minmax(0, 1fr) 64px 38px;
    gap: 8px;
  }
}
.ipl-root .stat-strip {
  display: grid;
  grid-template-columns: repeat(var(--stat-cols, 3), minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.ipl-root .stat-strip.cols-3 {
  --stat-cols: 3;
}
.ipl-root .stat-strip.cols-5 {
  --stat-cols: 5;
}
.ipl-root .stat-strip > section {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 16px 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ipl-root .stat-strip > section + section {
  border-left: 1px solid var(--line);
}
.ipl-root .stat-strip .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.ipl-root .stat-strip .label svg {
  width: 11px;
  height: 11px;
  flex: none;
  fill: var(--stat-color, var(--muted));
}
.ipl-root .stat-strip .label svg.stroke {
  width: 14px;
  fill: none;
  stroke: var(--stat-color, var(--muted));
  stroke-width: 2;
  stroke-linecap: round;
}
.ipl-root .stat-strip strong {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ipl-root .stat-strip strong.range {
  font-size: 1.2rem;
  letter-spacing: 0;
}
.ipl-root .stat-strip strong small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}
.ipl-root .stat-strip em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ipl-root .stat-strip .stat-peak,
.ipl-root .stat-strip .stat-high-period {
  --stat-color: var(--upload-curve);
}
.ipl-root .stat-strip .stat-average {
  --stat-color: var(--accent);
}
.ipl-root .stat-strip .stat-low,
.ipl-root .stat-strip .stat-low-period {
  --stat-color: var(--upload-low);
}
.ipl-root .stat-strip .stat-total {
  --stat-color: var(--accent);
}
.ipl-root .stat-strip .stat-down {
  --stat-color: var(--boslife-down);
}
.ipl-root .stat-strip .stat-up {
  --stat-color: var(--boslife-up);
}
.ipl-root .stat-strip .stat-peak strong {
  color: var(--upload-curve);
}
.ipl-root .stat-strip .stat-average strong,
.ipl-root .stat-strip .stat-total strong {
  color: var(--accent);
}
.ipl-root .boslife-section .stat-strip {
  margin: 0;
}
@media (max-width: 860px) {
  .ipl-root .stat-strip.cols-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .ipl-root .stat-strip.cols-5 > section {
    grid-column: span 2;
  }
  .ipl-root .stat-strip.cols-5 > section:nth-child(n + 4) {
    grid-column: span 3;
    border-top: 1px solid var(--line);
  }
  .ipl-root .stat-strip.cols-5 > section:nth-child(4) {
    border-left: 0;
  }
  .ipl-root .stat-strip > section {
    padding: 10px 10px 9px;
  }
  .ipl-root .stat-strip strong {
    font-size: 1.15rem;
  }
  .ipl-root .stat-strip strong.range {
    font-size: 1rem;
  }
  .ipl-root .stat-strip strong small,
.ipl-root .stat-strip em,
.ipl-root .stat-strip .label {
    font-size: 0.6875rem;
  }
}
:root {
  --ipl-online: var(--accent);
  --ipl-full: #dc6803;
  --ipl-reject: #d92d20;
  --ipl-p5: #0e9384;
  --ipl-p25: #dc6803;
  --ipl-p50: #7a5af8;
  --ipl-online-dot: #12b76a;
}
:root[data-theme="dark"] {
  --ipl-full: #fdb022;
  --ipl-reject: #f97066;
  --ipl-p5: #2ed3b7;
  --ipl-p25: #fdb022;
  --ipl-p50: #9b8afb;
  --ipl-online-dot: #32d583;
}
.ipl-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 14px;
}
.ipl-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ipl-title h2 {
  flex: none; white-space: nowrap;
}
.ipl-title .ipl-status {
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.ipl-title h2 {
  margin: 0; font-size: 1.125rem;
}
.ipl-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--neutral-pill-bg);
  color: var(--neutral-pill-fg);
  font-size: 0.75rem;
  font-weight: 600;
}
.ipl-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.ipl-status.ok {
  background: var(--green-bg); color: var(--green);
}
.ipl-status.bad {
  background: var(--red-bg); color: var(--red);
}
.ipl-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ipl-tools-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  flex: none;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: none;
}
.ipl-tools-btn:hover {
  background: color-mix(in srgb, var(--surface-3) 72%, var(--line-strong)); color: var(--text);
}
.ipl-tools-btn svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
.ipl-tools .ipl-detail-card {
  width: min(460px, 100%);
}
.ipl-tools .ipl-detail-head h2 {
  margin: 0; font-family: inherit; font-size: 1.125rem;
}
.ipl-tools .ipl-search {
  width: 100%;
}
.ipl-tools .ipl-search input {
  flex: 1; width: auto; min-width: 0;
}
.ipl-tools .ipl-search-error {
  margin-top: 6px;
}
.ipl-tools-section h3 {
  margin-bottom: 10px;
}
.ipl-tools-section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 10px;
}
.ipl-tools-section-head h3 {
  margin: 0;
}
.ipl-tools-source {
  color: var(--muted); font-size: 0.75rem;
}
.ipl-tools-source.bad {
  color: var(--red);
}
.ipl-tools-hint {
  margin: 8px 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.6;
}
.ipl-cidr-options {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.ipl-cidr-options button {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: auto;
  min-height: 0;
  padding: 10px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  cursor: pointer;
}
.ipl-cidr-options button b {
  font-size: 1rem; font-weight: 750; font-variant-numeric: tabular-nums;
}
.ipl-cidr-options button small {
  color: var(--muted); font-size: 0.6875rem; font-weight: 500; white-space: nowrap;
}
.ipl-cidr-options button:hover:not(:disabled):not(.active) {
  border-color: var(--accent-border);
}
.ipl-cidr-options button.active {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent);
}
.ipl-cidr-options button.active small {
  color: var(--accent);
}
.ipl-cidr-options button:disabled {
  cursor: progress; opacity: 0.7;
}
.ipl-cidr-note {
  margin: 10px 0 0; color: var(--text-secondary); font-size: 0.875rem; font-variant-numeric: tabular-nums;
}
.ipl-cidr-note b {
  color: var(--text);
}
.ipl-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 4px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}
.ipl-search:focus-within {
  box-shadow: var(--focus); border-color: var(--accent-border);
}
.ipl-search svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.ipl-search input {
  width: 150px;
  min-height: 0;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.875rem;
}
.ipl-search input:focus {
  outline: none; box-shadow: none;
}
.ipl-search button {
  width: auto;
  min-height: 28px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-solid);
  color: var(--on-accent);
  font-size: 0.8125rem;
  font-weight: 600;
}
.ipl-search button:hover {
  background: var(--accent-solid-hover);
}
.ipl-search-error {
  grid-column: 1 / -1;
  justify-self: end;
  margin: 0;
  min-height: 0;
  color: var(--red);
  font-size: 0.75rem;
}
.ipl-search-error:empty {
  display: none;
}
.ipl-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ipl-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 92px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.ipl-card span {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}
.ipl-card strong {
  color: var(--text);
  font-size: 2rem;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ipl-card em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ipl-card-sub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}
.ipl-card-sub small {
  color: var(--muted); font-size: 0.75rem; font-weight: 500;
}
.ipl-card-sub .v {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0;
}
.ipl-card-sub .v > * {
  white-space: nowrap;
}
.ipl-card-sub b {
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.ipl-card-sub .v small {
  font-weight: 400;
}
.ipl-card.primary .ipl-card-sub {
  border-top-color: var(--accent-border);
}
.ipl-card.primary {
  border-color: var(--accent-border); background: var(--metric-bg);
}
.ipl-card.primary strong {
  color: var(--accent);
}
.ipl-card.warn strong {
  color: var(--ipl-full);
}
.ipl-card.bad strong {
  color: var(--ipl-reject);
}
.ipl-dist {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.ipl-dist-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
}
.ipl-dist-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.ipl-dist-card header strong {
  font-size: 0.875rem;
}
.ipl-dist-card header span {
  color: var(--muted); font-size: 0.75rem;
}
.ipl-regions {
  gap: 2px;
}
.ipl-regions li {
  grid-template-columns: minmax(80px, 116px) minmax(0, 1fr) 56px 34px;
  min-height: 32px;
}
.ipl-regions .ipl-region-row {
  cursor: pointer;
}
.ipl-regions .name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
}
.ipl-regions .name small {
  color: var(--muted); font-size: 0.6875rem; font-weight: 550;
}
.ipl-regions .bar {
  height: 10px;
}
.ipl-regions .bar i.down {
  background: var(--ipl-online); border-radius: 999px;
}
.ipl-regions em {
  color: var(--muted); font-size: 0.6875rem; font-style: normal; text-align: right;
}
.ipl-regions .ipl-region-row.open em {
  color: var(--accent);
}
.ipl-regions .ipl-node-row {
  min-height: 26px; padding-left: 18px;
}
.ipl-regions .ipl-node-row .name {
  color: var(--text-secondary); font-size: 0.8125rem; font-weight: 550;
}
.ipl-regions .ipl-node-row .bar {
  height: 6px;
}
.ipl-regions .ipl-node-row .bar i.down {
  opacity: 0.6;
}
.ipl-regions .ipl-node-row b {
  font-size: 0.8125rem; font-weight: 600;
}
.ipl-empty-row {
  color: var(--muted); font-size: 0.8125rem; padding: 8px 4px; list-style: none;
}
.ipl-plan-bar {
  display: flex;
  gap: 2px;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}
.ipl-plan-bar i {
  display: block; height: 100%;
}
.ipl-dist-card:has(.ipl-plans) {
  grid-template-rows: auto 1fr;
}
.ipl-plans {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}
.ipl-plan-legend {
  display: grid;
  align-content: space-evenly;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ipl-plan-legend li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 96px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 8px;
}
.ipl-plan-legend li + li:not(.head) {
  border-top: 1px solid var(--line);
}
.ipl-plan-legend li:not(.head):hover {
  background: var(--surface-2);
}
.ipl-plan-legend li.head {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
}
.ipl-plan-legend li.head span,
.ipl-plan-legend li.head b,
.ipl-plan-legend li.head em {
  color: var(--muted); font-size: 0.6875rem; font-weight: 600;
}
.ipl-plan-legend span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
}
.ipl-plan-legend span i {
  align-self: center;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 3px;
}
.ipl-plan-legend small {
  color: var(--muted); font-size: 0.6875rem; font-weight: 550;
}
.ipl-plan-legend b,
.ipl-plan-legend em {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  color: var(--text);
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ipl-plan-legend em.warn {
  color: var(--ipl-full);
}
.ipl-plan-legend b small,
.ipl-plan-legend em small {
  min-width: 34px; color: var(--muted); font-size: 0.6875rem; font-weight: 550; text-align: right;
}
.ipl-plan-bar i.p5,
.ipl-plan-legend i.p5 {
  background: var(--ipl-p5);
}
.ipl-plan-bar i.p25,
.ipl-plan-legend i.p25 {
  background: var(--ipl-p25);
}
.ipl-plan-bar i.p50,
.ipl-plan-legend i.p50 {
  background: var(--ipl-p50);
}
.ipl-plan-bar i.px,
.ipl-plan-legend i.px {
  background: var(--text-disabled);
}
.ipl-toolbar {
  margin: 18px 0 10px;
}
.ipl-root .stat-strip.cols-4 {
  --stat-cols: 4;
}
.stat-strip .stat-ipl-online {
  --stat-color: var(--ipl-online);
}
.stat-strip .stat-ipl-online strong {
  color: var(--ipl-online);
}
.stat-strip .stat-ipl-full {
  --stat-color: var(--ipl-full);
}
.stat-strip .stat-ipl-reject {
  --stat-color: var(--ipl-reject);
}
.stat-strip .stat-ipl-reject strong {
  color: var(--ipl-reject);
}
.stat-strip .stat-ipl-recorded,
.stat-strip .stat-ipl-region {
  --stat-color: var(--muted);
}
.stat-strip .stat-ipl-ips {
  --stat-color: var(--ipl-online);
}
.stat-strip .stat-ipl-ratio-over {
  --stat-color: var(--ipl-reject);
}
.stat-strip .stat-ipl-ratio-over strong {
  color: var(--ipl-reject);
}
.stat-strip .stat-ipl-ratio-full {
  --stat-color: var(--ipl-full);
}
.stat-strip .stat-ipl-ratio-full strong {
  color: var(--ipl-full);
}
.stat-strip .stat-ipl-ratio-under {
  --stat-color: var(--ipl-online);
}
.ipl-chart-wrap {
  margin-top: 12px;
}
.ipl-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}
.ipl-chart-legend span {
  display: inline-flex; align-items: center; gap: 6px;
}
.ipl-chart-legend small {
  color: var(--muted); font-weight: 500;
}
.ipl-chart-legend i {
  display: inline-block; width: 12px; height: 4px; border-radius: 2px;
}
.ipl-chart-legend i.online {
  height: 10px; background: color-mix(in srgb, var(--ipl-online) 30%, transparent); border-top: 2px solid var(--ipl-online); border-radius: 0;
}
.ipl-chart-legend i.full {
  background: var(--ipl-full);
}
.ipl-chart-legend i.reject {
  width: 8px; height: 10px; background: var(--ipl-reject);
}
.ipl-chart-scroll {
  overflow-x: auto;
  padding: 28px 8px 2px 44px;
}
.ipl-chart {
  position: relative;
  min-width: 640px;
  height: 190px;
  border-bottom: 1px solid var(--line-strong);
  touch-action: pan-y;
}
.ipl-chart.empty {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 140px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.8125rem;
}
.ipl-chart svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
}
.ipl-chart svg .area {
  fill: color-mix(in srgb, var(--ipl-online) 16%, transparent);
}
.ipl-chart svg .line {
  fill: none; stroke: var(--ipl-online); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round;
}
.ipl-chart svg .full {
  fill: none; stroke: var(--ipl-full); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round;
}
.ipl-chart svg .reject {
  fill: var(--ipl-reject); opacity: 0.78;
}
.ipl-chart-grid {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed var(--line);
  pointer-events: none;
}
.ipl-chart-grid.base {
  border-top-style: solid; border-color: transparent;
}
.ipl-chart-grid span {
  position: absolute;
  right: calc(100% + 8px);
  top: -0.55em;
  color: var(--muted);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ipl-chart-unit {
  position: absolute;
  top: -22px;
  right: calc(100% + 8px);
  color: var(--muted);
  font-size: 0.6875rem;
}
.ipl-chart-peak {
  position: absolute;
  z-index: 4;
  width: 12px;
  height: 12px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--ipl-online);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ipl-online) 26%, transparent);
  transform: translate(-50%, 50%);
  pointer-events: none;
}
.ipl-chart-peak-label {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ipl-online);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.18);
  transform: translate(-50%, -14px);
  pointer-events: none;
}
.ipl-chart-peak-label b {
  font-size: 0.8125rem; font-weight: 750;
}
.ipl-chart-peak-label.edge-left {
  transform: translate(-6px, -14px);
}
.ipl-chart-peak-label.edge-right {
  transform: translate(calc(-100% + 6px), -14px);
}
.ipl-chart-now {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed var(--line-strong);
  pointer-events: none;
}
.ipl-chart-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  border-left: 1px solid color-mix(in srgb, var(--text) 30%, transparent);
  opacity: 0;
  pointer-events: none;
}
.ipl-chart-guide.show {
  opacity: 1;
}
.ipl-chart-tip {
  position: absolute;
  top: -6px;
  z-index: 5;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.ipl-chart-tip b {
  display: block; color: var(--text); font-size: 0.8125rem;
}
.ipl-chart-tip.show {
  opacity: 1;
}
.ipl-chart-axis {
  position: relative;
  min-width: 640px;
  height: 20px;
}
.ipl-chart-axis span {
  position: absolute;
  top: 4px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}
.ipl-chart-axis span:first-child {
  transform: none;
}
.ipl-chart-axis span:last-child {
  transform: translateX(-100%);
}
.ipl-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.ipl-section-head h2 {
  margin: 0 0 2px; font-size: 1.0625rem;
}
.ipl-section-head span {
  color: var(--muted); font-size: 0.75rem;
}
.ipl-legend {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
}
.ipl-legend span {
  display: inline-flex; align-items: center; gap: 5px; color: var(--text-secondary); font-size: 0.75rem; font-weight: 600;
}
.ipl-legend i {
  width: 10px; height: 10px; border-radius: 3px; border: 1px solid transparent;
}
.ipl-legend i.over {
  background: var(--red-bg); border-color: var(--ipl-reject);
}
.ipl-legend i.full {
  background: var(--orange-bg); border-color: var(--ipl-full);
}
.ipl-legend i.under {
  background: var(--surface-2); border-color: var(--line-strong);
}
.ipl-legend i.online {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ipl-online-dot);
}
.ipl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 8px;
}
.ipl-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "uid ratio" "rejects ratio";
  align-items: center;
  gap: 2px 8px;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 7px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ipl-tile:hover {
  border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px);
}
.ipl-tile:focus-visible {
  outline: none; box-shadow: var(--focus);
}
.ipl-tile .uid {
  grid-area: uid;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ipl-tile .dot,
.ipl-online-badge .dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ipl-online-dot);
}
.ipl-tile .ratio {
  grid-area: ratio;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ipl-tile .ratio small {
  color: var(--muted); font-size: 0.75rem; font-weight: 600;
}
.ipl-tile .rejects {
  grid-area: rejects;
  overflow: hidden;
  color: var(--ipl-reject);
  font-size: 0.75rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ipl-tile .rejects.none {
  color: var(--muted); font-weight: 550;
}
.ipl-tile.over {
  border-color: color-mix(in srgb, var(--ipl-reject) 45%, var(--line)); background: var(--red-bg);
}
.ipl-tile.over .ratio {
  color: var(--ipl-reject);
}
.ipl-tile.full {
  border-color: color-mix(in srgb, var(--ipl-full) 45%, var(--line)); background: var(--orange-bg);
}
.ipl-tile.full .ratio {
  color: var(--ipl-full);
}
.ipl-empty {
  padding: 28px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.ipl-grid .ipl-empty {
  grid-column: 1 / -1;
}
.ipl-empty.small {
  padding: 14px 10px; font-size: 0.8125rem;
}
.ipl-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}
.ipl-pager:empty {
  display: none;
}
.ipl-pager button {
  width: auto; min-height: 34px; padding: 0 16px;
}
.ipl-detail {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  background: rgba(16, 24, 40, 0.38);
}
.ipl-detail.hidden {
  display: none;
}
html.ipl-detail-open,
html.ipl-detail-open body {
  overflow: hidden;
}
.ipl-detail-card {
  display: flex;
  flex-direction: column;
  width: min(600px, 100%);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 30px rgba(16, 24, 40, 0.2);
}
.ipl-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.ipl-detail-head h2 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 6px; font-family: var(--mono); font-size: 1.25rem;
}
.ipl-detail-head h2 a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}
.ipl-detail-head h2 a svg {
  width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ipl-detail-head h2 a:hover {
  color: var(--accent); text-decoration: underline; text-underline-offset: 4px;
}
.ipl-detail-head h2 a:hover svg {
  stroke: var(--accent);
}
.ipl-detail-head h2 a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.ipl-detail-head h2 a.ipl-log-link {
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.ipl-detail-head h2 a.ipl-log-link svg {
  width: 12px; height: 12px;
}
.ipl-detail-head h2 a.ipl-log-link:hover {
  border-color: var(--accent-border); background: var(--accent-bg); color: var(--accent); text-decoration: none;
}
.ipl-detail-head #ipLimitDetailSub {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ipl-detail-head .icon-btn {
  width: 36px; min-height: 36px; padding: 0; flex: none;
}
.ipl-detail-head .icon-btn svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
.ipl-plan-badge,
.ipl-online-badge,
.ipl-offline-badge,
.ipl-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.ipl-plan-badge {
  background: var(--neutral-pill-bg); color: var(--neutral-pill-fg);
}
.ipl-plan-badge.p5 {
  background: color-mix(in srgb, var(--ipl-p5) 14%, transparent); color: var(--ipl-p5);
}
.ipl-plan-badge.p25 {
  background: color-mix(in srgb, var(--ipl-p25) 14%, transparent); color: var(--ipl-p25);
}
.ipl-plan-badge.p50 {
  background: color-mix(in srgb, var(--ipl-p50) 14%, transparent); color: var(--ipl-p50);
}
.ipl-online-badge {
  background: var(--green-bg); color: var(--green);
}
.ipl-offline-badge {
  background: var(--neutral-pill-bg); color: var(--neutral-pill-fg);
}
.ipl-date-badge {
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.ipl-detail-body {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 18px;
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 28px;
}
.ipl-detail-section h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0 0 8px;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.ipl-detail-section h3 small {
  color: var(--muted); font-size: 0.75rem; font-weight: 600;
}
.ipl-detail-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ipl-detail-section-head h3 {
  margin: 0;
}
.ipl-segment {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.ipl-segment button {
  width: auto;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: none;
}
.ipl-segment button.active {
  background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm);
}
.ipl-ip-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  list-style: none;
}
.ipl-ip-list li {
  display: grid;
  grid-template-columns: minmax(118px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 4px 12px;
  font-size: 0.8125rem;
}
.ipl-ip-list li + li {
  border-top: 1px solid var(--line);
}
.ipl-ip-list code {
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 600;
}
.ipl-ip-list span {
  color: var(--text); font-weight: 600;
}
.ipl-ip-list em {
  color: var(--muted); font-size: 0.75rem; font-style: normal; white-space: nowrap;
}
.ipl-ip-list li.relay span {
  color: var(--ipl-full);
}
.ipl-ip-list.compact li {
  min-height: 30px;
}
.ipl-note {
  margin: 6px 0 0; color: var(--muted); font-size: 0.75rem;
}
.ipl-ip-list li.live code {
  display: inline-flex; align-items: center; gap: 6px;
}
.ipl-ip-list li.live {
  background: color-mix(in srgb, var(--green) 9%, var(--surface));
  box-shadow: inset 3px 0 0 var(--green);
}
.ipl-ip-list li.live em {
  color: var(--text-secondary);
}
.ipl-live-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--green);
  color: var(--surface);
  font-size: 0.6875rem;
  font-weight: 700;
  vertical-align: 1px;
}
.ipl-ip-list li.group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 9px 12px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
}
.ipl-ip-list li.group.online {
  background: var(--surface); color: var(--green);
}
.ipl-ip-list li.group.online.none {
  color: var(--muted);
}
.ipl-ip-list li.group .dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ipl-online-dot);
}
.ipl-used-ranges {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ipl-used-date {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.ipl-used-date.active {
  background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm);
}
.ipl-used-date svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.ipl-used-date input {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.ipl-used-chart {
  margin: 0 0 10px;
  padding: 10px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.ipl-used-chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}
.ipl-used-chart-head span:first-child {
  color: var(--text-secondary); font-weight: 600;
}
.ipl-used-bars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--slots), minmax(0, 1fr));
  gap: 2px;
  height: 84px;
  border-bottom: 1px solid var(--line-strong);
}
.ipl-used-bars button {
  display: flex;
  align-items: flex-end;
  width: auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
.ipl-used-bars button i {
  display: block;
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: var(--ipl-online);
  opacity: 0.78;
  transition: opacity 0.12s ease;
}
.ipl-used-bars button.zero i {
  height: 2px !important; border-radius: 0; background: var(--line); opacity: 1;
}
.ipl-used-bars button:hover i {
  opacity: 1;
}
.ipl-used-bars button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.ipl-used-chart.has-selected .ipl-used-bars button i {
  opacity: 0.28;
}
.ipl-used-chart.has-selected .ipl-used-bars button.zero i {
  opacity: 1;
}
.ipl-used-chart.has-selected .ipl-used-bars button.selected i {
  opacity: 1;
}
.ipl-used-bars .ipl-chart-tip {
  top: 0; transform: translate(10px, 0);
}
.ipl-used-bars .ipl-chart-tip.flip {
  transform: translate(calc(-100% - 10px), 0);
}
.ipl-used-axis {
  display: grid;
  grid-template-columns: repeat(var(--slots), minmax(0, 1fr));
  gap: 2px;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.2;
}
.ipl-used-axis span {
  display: flex; justify-content: center; overflow: visible; white-space: nowrap;
}
.ipl-used-chart-note {
  margin: 6px 0 0; color: var(--muted); font-size: 0.6875rem;
}
.ipl-used-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}
.ipl-used-filter button {
  width: auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: none;
}
.ipl-ip-list li.used {
  grid-template-columns: minmax(118px, auto) minmax(0, 1fr) auto;
  grid-template-areas:
    "ip region nodes"
    "time time time";
  row-gap: 2px;
  padding: 7px 12px;
}
.ipl-ip-list li.used code {
  grid-area: ip; display: inline-flex; align-items: center; gap: 6px;
}
.ipl-ip-list li.used > span {
  grid-area: region;
}
.ipl-ip-list li.used .nodes {
  grid-area: nodes; overflow: hidden; text-overflow: ellipsis;
}
.ipl-ip-list li.used time {
  grid-area: time; color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums;
}
.ipl-ip-list li.used .dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ipl-online-dot);
}
.ipl-ip-list li.more {
  display: block;
  padding: 0;
}
.ipl-ip-list li.more button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}
.ipl-ip-list li.more button:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--accent);
}
.ipl-ip-list li.more svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}
.ipl-ip-list li.more button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.ipl-copy-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  min-height: 0;
  height: 28px;
  margin-left: auto;
  padding: 0 10px;
  border-color: var(--line);
  border-radius: 999px;
  box-shadow: none;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.ipl-copy-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ipl-copy-btn.copied,
.ipl-copy-btn.copied:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
  background: color-mix(in srgb, var(--green) 10%, var(--surface));
  color: var(--green);
}
.ipl-copy-btn.failed,
.ipl-copy-btn.failed:hover:not(:disabled) {
  border-color: var(--red); color: var(--red);
}
.ipl-ip-list li.live code .dot {
  animation: ipl-live-pulse 1.8s ease-in-out infinite;
}
@keyframes ipl-live-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 45%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .ipl-ip-list li.live code .dot {
    animation: none;
  }
}
.ipl-ip-list li code .dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ipl-online-dot);
}
.ipl-reject-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.ipl-reject-counts > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
}
.ipl-reject-counts > div + div {
  border-left: 1px solid var(--line);
}
.ipl-reject-counts span {
  color: var(--muted); font-size: 0.75rem; white-space: nowrap;
}
.ipl-reject-counts strong {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ipl-reject-counts strong small {
  margin-left: 3px; color: var(--muted); font-size: 0.75rem; font-weight: 500;
}
.ipl-reject-counts .zero strong {
  color: var(--text-disabled, var(--muted));
}
@media (max-width: 1100px) {
  .ipl-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .ipl-dist {
    grid-template-columns: 1fr;
  }
  .ipl-root .stat-strip.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ipl-root .stat-strip.cols-4 > section:nth-child(3) {
    border-left: 0;
  }
  .ipl-root .stat-strip.cols-4 > section:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .ipl-card {
    min-height: 84px; padding: 12px 14px;
  }
  .ipl-card strong {
    font-size: 1.6rem;
  }
  .ipl-chart-scroll {
    padding-left: 38px;
  }
  .ipl-detail-card {
    width: 100%;
  }
}
@media (max-width: 520px) {
  .ipl-head {
    gap: 8px;
  }
  .ipl-head-actions {
    gap: 6px;
  }
  .ipl-head-actions .btn-text {
    display: none;
  }
  .ipl-head-actions .refresh-btn,
.ipl-head-actions .ipl-tools-btn {
    width: 36px; min-height: 36px; padding: 0;
  }
  .ipl-title {
    gap: 8px;
  }
  .ipl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ipl-legend {
    gap: 4px 10px;
  }
  .ipl-ip-list li {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  }
  .ipl-ip-list em {
    grid-column: 1 / -1;
  }
  .ipl-ip-list li.used {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  }
  .ipl-ip-list li.used::before {
    content: ""; order: 2; flex-basis: 100%; height: 0;
  }
  .ipl-ip-list li.used time {
    order: 3; flex: none;
  }
  .ipl-ip-list li.used .nodes {
    order: 4; flex: 1 1 0; min-width: 0; text-align: right;
  }
  .ipl-reject-counts > div {
    padding: 8px 8px;
  }
  .ipl-reject-counts strong {
    font-size: 0.9375rem;
  }
  .ipl-chart-scroll {
    overflow: visible; padding-right: 4px;
  }
  .ipl-chart,
.ipl-chart-axis {
    min-width: 0;
  }
  .ipl-chart-axis span.minor {
    display: none;
  }
  .ipl-plan-legend li {
    grid-template-columns: minmax(0, 1fr) 82px 82px; gap: 6px; padding: 4px 4px;
  }
  .ipl-plan-legend span {
    flex-wrap: wrap; row-gap: 0; white-space: normal;
  }
  .ipl-plan-legend span small {
    flex-basis: 100%; padding-left: 18px;
  }
  .ipl-plan-legend li.head span small {
    display: none;
  }
}
:root {
  --ipl-geo-0: #f2f4f7;
  --ipl-geo-0-line: #c3cad5;
  --ipl-geo-1: #ddecff;
  --ipl-geo-2: #96b8ea;
  --ipl-geo-3: #5183ce;
  --ipl-geo-4: #1150a5;
  --ipl-geo-5: #001e70;
  --ipl-geo-ink-on-light: #101828;
  --ipl-geo-ink-on-dark: #ffffff;
}
:root[data-theme="dark"] {
  --ipl-geo-0: #20252d;
  --ipl-geo-0-line: #3b4450;
  --ipl-geo-1: #e7f6ff;
  --ipl-geo-2: #a8c5f1;
  --ipl-geo-3: #6b95d3;
  --ipl-geo-4: #2f65b4;
  --ipl-geo-5: #003787;
  --ipl-geo-ink-on-light: #101828;
  --ipl-geo-ink-on-dark: #f2f4f7;
}
.ipl-geo-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}
.ipl-geo-map {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 8px 8px 4px;
}
.ipl-geo-svg {
  display: block; width: 100%; height: auto;
}
.ipl-geo-svg .shapes {
  cursor: pointer;
}
.ipl-geo-shape {
  fill: url(#iplGeoHatch);
  stroke: var(--surface);
  stroke-width: 1.2;
  stroke-linejoin: round;
  transition: fill 0.25s ease;
}
.ipl-geo-shape.lv1,
.ipl-geo-legend i.lv1 {
  fill: var(--ipl-geo-1); background: var(--ipl-geo-1);
}
.ipl-geo-shape.lv2,
.ipl-geo-legend i.lv2 {
  fill: var(--ipl-geo-2); background: var(--ipl-geo-2);
}
.ipl-geo-shape.lv3,
.ipl-geo-legend i.lv3 {
  fill: var(--ipl-geo-3); background: var(--ipl-geo-3);
}
.ipl-geo-shape.lv4,
.ipl-geo-legend i.lv4 {
  fill: var(--ipl-geo-4); background: var(--ipl-geo-4);
}
.ipl-geo-shape.lv5,
.ipl-geo-legend i.lv5 {
  fill: var(--ipl-geo-5); background: var(--ipl-geo-5);
}
.ipl-geo-shape.hover,
.ipl-geo-shape.selected {
  stroke: var(--text); stroke-width: 2.4;
}
.ipl-geo-svg .labels text {
  fill: var(--ipl-geo-ink-on-light);
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}
.ipl-geo-svg .labels text.lv4,
.ipl-geo-svg .labels text.lv5 {
  fill: var(--ipl-geo-ink-on-dark);
}
:root[data-theme="dark"] .ipl-geo-svg .labels text.lv0 {
  fill: var(--ipl-geo-ink-on-dark);
}
.ipl-geo-svg .inset {
  pointer-events: none;
}
.ipl-geo-svg .inset .frame {
  fill: var(--surface); stroke: var(--line);
}
.ipl-geo-svg .inset .dash {
  fill: var(--muted); stroke: var(--muted);
}
.ipl-geo-tip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14);
  color: var(--text);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
}
.ipl-geo-tip[hidden] {
  display: none;
}
.ipl-geo-tip b {
  font-size: 0.8125rem;
}
.ipl-geo-tip span {
  color: var(--text-secondary);
}
.ipl-geo-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 4px 4px 2px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}
.ipl-geo-legend span {
  display: inline-flex; align-items: center; gap: 4px;
}
.ipl-geo-legend i {
  width: 14px; height: 10px; border-radius: 3px; background: var(--ipl-geo-0);
}
.ipl-geo-legend b {
  font-weight: 600;
}
.ipl-geo-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  max-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.ipl-geo-rank-head,
.ipl-geo-rank li {
  display: grid;
  grid-template-columns: 22px minmax(42px, auto) minmax(36px, 1fr) 44px 48px 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.ipl-geo-rank-head {
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 650;
}
.ipl-geo-rank-head span {
  grid-column: 1 / 4;
}
.ipl-geo-rank-head b,
.ipl-geo-rank-head em,
.ipl-geo-rank-head small {
  font: inherit; text-align: right;
}
.ipl-geo-rank {
  margin: 0; padding: 0; overflow-y: auto; list-style: none;
}
.ipl-geo-rank li {
  min-height: 36px;
  font-size: 0.8125rem;
  cursor: pointer;
}
.ipl-geo-rank li + li {
  border-top: 1px solid var(--line);
}
.ipl-geo-rank li:hover {
  background: var(--bg-soft);
}
.ipl-geo-rank li:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px;
}
.ipl-geo-rank li.selected {
  background: color-mix(in srgb, var(--ipl-geo-3) 12%, var(--surface)); box-shadow: inset 3px 0 0 var(--ipl-geo-3);
}
.ipl-geo-rank .rank {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
}
.ipl-geo-rank .rank.r1,
.ipl-geo-rank .rank.r2,
.ipl-geo-rank .rank.r3 {
  background: var(--ipl-geo-4); color: #ffffff;
}
.ipl-geo-rank .name {
  font-weight: 650; white-space: nowrap;
}
.ipl-geo-rank .bar {
  height: 6px; overflow: hidden; border-radius: 999px; background: var(--bg-soft);
}
.ipl-geo-rank .bar i {
  display: block; height: 100%; border-radius: 999px; background: var(--ipl-geo-3);
}
.ipl-geo-rank b,
.ipl-geo-rank em,
.ipl-geo-rank small {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ipl-geo-rank b {
  font-weight: 700;
}
.ipl-geo-rank em {
  color: var(--text-secondary); font-size: 0.75rem; font-style: normal;
}
.ipl-geo-rank small {
  color: var(--muted); font-size: 0.75rem;
}
.ipl-geo-extra {
  display: grid; gap: 6px; margin-top: 10px; color: var(--text-secondary); font-size: 0.8125rem;
}
.ipl-geo-extra p {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0;
}
.ipl-geo-extra b {
  color: var(--text); font-weight: 650;
}
.ipl-geo-extra span {
  color: var(--muted); font-size: 0.75rem;
}
@media (max-width: 860px) {
  .ipl-geo-body {
    grid-template-columns: 1fr;
  }
  .ipl-geo-side {
    max-height: 380px;
  }
}
@media (max-width: 560px) {
  .ipl-geo-svg .labels {
    display: none;
  }
  .ipl-geo-rank-head,
.ipl-geo-rank li {
    grid-template-columns: 22px minmax(38px, auto) minmax(24px, 1fr) 40px 44px 34px; gap: 6px; padding: 0 10px;
  }
}
:root {
  --ipl-isp-1: #2a78d6;
  --ipl-isp-2: #eb6834;
  --ipl-isp-3: #1baf7a;
  --ipl-isp-4: #eda100;
  --ipl-isp-x: #b4bcc8;
}
:root[data-theme="dark"] {
  --ipl-isp-1: #3987e5;
  --ipl-isp-2: #d95926;
  --ipl-isp-3: #199e70;
  --ipl-isp-4: #c98500;
  --ipl-isp-x: #4b5462;
}
.ipl-geo-isp {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
}
.ipl-geo-isp:empty {
  display: none;
}
.ipl-geo-isp header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
}
.ipl-geo-isp header > div:first-child {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
}
.ipl-geo-panel.loading :is(.ipl-geo-stats,
.ipl-geo-body,
.ipl-isp-body,
.ipl-geo-extra) {
  opacity: 0.5; transition: opacity 0.15s ease;
}
.ipl-geo-isp header strong {
  font-size: 0.875rem;
}
.ipl-geo-isp header span {
  color: var(--muted); font-size: 0.75rem;
}
.ipl-isp-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px 24px;
  align-items: center;
}
.ipl-isp-donut {
  display: grid; justify-items: center; gap: 8px; margin: 0;
}
.ipl-isp-donut svg {
  display: block; width: 160px; height: 160px;
}
.ipl-isp-donut circle {
  fill: none; stroke-width: 24;
}
.ipl-isp-donut circle.c1 {
  stroke: var(--ipl-isp-1);
}
.ipl-isp-donut circle.c2 {
  stroke: var(--ipl-isp-2);
}
.ipl-isp-donut circle.c3 {
  stroke: var(--ipl-isp-3);
}
.ipl-isp-donut circle.c4 {
  stroke: var(--ipl-isp-4);
}
.ipl-isp-donut circle.cx {
  stroke: var(--ipl-isp-x);
}
.ipl-isp-donut text {
  fill: var(--text); text-anchor: middle; dominant-baseline: middle; font-variant-numeric: tabular-nums;
}
.ipl-isp-donut text.total {
  font-size: 20px; font-weight: 750;
}
.ipl-isp-donut text.unit {
  fill: var(--muted); font-size: 11px; font-weight: 600;
}
.ipl-isp-bars i {
  display: block; border-radius: 3px;
}
.ipl-isp-bars i.c1 {
  background: var(--ipl-isp-1);
}
.ipl-isp-bars i.c2 {
  background: var(--ipl-isp-2);
}
.ipl-isp-bars i.c3 {
  background: var(--ipl-isp-3);
}
.ipl-isp-bars i.c4 {
  background: var(--ipl-isp-4);
}
.ipl-isp-bars i.cx {
  background: var(--ipl-isp-x);
}
.ipl-isp-bars {
  display: grid; gap: 2px; margin: 0; padding: 0; list-style: none;
}
.ipl-isp-bars li {
  display: grid;
  grid-template-columns: 76px minmax(60px, 1fr) 52px 128px;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  font-size: 0.8125rem;
}
.ipl-isp-bars .name {
  overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap;
}
.ipl-isp-bars .track {
  height: 12px; overflow: hidden; border-radius: 4px; background: var(--bg-soft);
}
.ipl-isp-bars .track i {
  height: 100%; border-radius: 0 4px 4px 0;
}
.ipl-isp-bars b {
  font-weight: 700; font-variant-numeric: tabular-nums; text-align: right;
}
.ipl-isp-bars em {
  color: var(--muted); font-size: 0.75rem; font-style: normal; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap;
}
@media (max-width: 640px) {
  .ipl-isp-body {
    grid-template-columns: 1fr;
  }
  .ipl-isp-bars li {
    grid-template-columns: 64px minmax(40px, 1fr) 46px;
  }
  .ipl-isp-bars em {
    grid-column: 2 / -1; text-align: left; margin-top: -4px;
  }
}
.ipl-dist-section {
  margin-bottom: 12px;
}
.ipl-dist-section .ipl-dist {
  margin-top: 0;
}
.ipl-dist-section .ipl-dist-card {
  box-shadow: var(--shadow-sm); padding: 14px 16px;
}
.ipl-root .stat-strip strong {
  flex-wrap: wrap;
  row-gap: 2px;
}
.stat-strip.ipl-detail-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stat-strip.ipl-detail-stats > section:nth-child(3) {
  border-left: 0;
}
.stat-strip.ipl-detail-stats > section:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.ipl-geo-svg .hatch-bg {
  fill: var(--ipl-geo-0);
}
.ipl-geo-svg .hatch-line {
  stroke: var(--ipl-geo-0-line); stroke-width: 1.6;
}
.ipl-geo-legend i.lv0 {
  background: repeating-linear-gradient(45deg, var(--ipl-geo-0) 0 3px, var(--ipl-geo-0-line) 3px 4.5px);
}
.ipl-geo-svg .labels text {
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.ipl-geo-svg .labels text.lv4,
.ipl-geo-svg .labels text.lv5,
:root[data-theme="dark"] .ipl-geo-svg .labels text.lv0 {
  stroke: rgba(0, 0, 0, 0.35);
}
.ipl-root .usage-toolbar {
  flex-wrap: wrap;
}
.ipl-root .usage-range {
  display: inline-flex;
  gap: 2px;
  height: 36px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
.ipl-root .usage-range button {
  min-height: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 550;
  box-shadow: none;
  cursor: pointer;
}
.ipl-root .usage-range button:hover {
  color: var(--text);
  background: var(--surface-2);
}
.ipl-root .usage-range button.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}
.ipl-root .usage-range button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
@media (max-width: 640px) {
  .ipl-root .usage-range {
    order: 3;
    width: 100%;
    height: 38px;
    margin-left: 0;
  }
  .ipl-root .usage-range button {
    flex: 1;
    padding: 0 4px;
  }
}
.ipl-trend-axis span,
.ipl-trend-axis span:first-child,
.ipl-trend-axis span:last-child {
  transform: translateX(-50%);
  white-space: nowrap;
}
.ipl-chart svg .reject.partial {
  opacity: 0.38;
}
#ipLimitChart .ipl-chart-tip {
  top: 4px;
  transform: translate(12px, 0);
}
#ipLimitChart .ipl-chart-tip.flip {
  transform: translate(calc(-100% - 12px), 0);
}
@media (max-width: 640px) {
  .ipl-trend-axis span.minor {
    display: none;
  }
}
.ipl-pause-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--orange) 55%, var(--surface));
  border-left: 5px solid var(--orange);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--orange) 14%, var(--surface));
}
.ipl-pause-banner.hidden {
  display: none;
}
.ipl-pause-banner > i {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--surface);
  font-style: normal;
  font-weight: 800;
  font-size: 1rem;
}
.ipl-pause-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ipl-pause-text b {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 750;
}
.ipl-pause-text span {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.ipl-pause-open {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: var(--surface);
  font-weight: 650;
  cursor: pointer;
}
.ipl-pause-hint {
  flex-shrink: 0;
  max-width: 14em;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-align: right;
}
.ipl-switch {
  margin-left: auto;
}
@media (max-width: 640px) {
  .ipl-pause-banner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .ipl-pause-text {
    flex: 1 1 calc(100% - 40px);
  }
  .ipl-pause-open,
.ipl-pause-hint {
    margin-left: 40px;
    max-width: none;
    text-align: left;
  }
}
.ipl-chart-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
}
.ipl-chart-panel {
  min-width: 0;
}
.ipl-chart-pair .ipl-chart,
.ipl-chart-pair .ipl-chart-axis {
  min-width: 0;
}
.ipl-chart-pair .ipl-chart {
  height: 180px;
}
.ipl-chart-pair .ipl-chart-scroll {
  overflow: visible; padding-left: 50px;
}
.ipl-chart svg .area.t-full {
  fill: color-mix(in srgb, var(--ipl-full) 16%, transparent);
}
.ipl-chart svg .line.t-full {
  stroke: var(--ipl-full);
}
.ipl-chart-peak.t-full {
  background: var(--ipl-full);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ipl-full) 26%, transparent);
}
.ipl-chart-legend i.full.bar {
  width: 8px; height: 10px;
}
.ipl-bar {
  position: absolute;
  bottom: 0;
  z-index: 1;
  min-width: 3px;
  max-width: 34px;
  border-radius: 4px 4px 0 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.ipl-bar.t-full {
  background: var(--ipl-full);
}
.ipl-bar.t-reject {
  background: var(--ipl-reject); opacity: 0.85;
}
.ipl-bar.partial {
  opacity: 0.4;
}
.ipl-trend-empty {
  position: absolute;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 760px) {
  .ipl-chart-pair {
    grid-template-columns: minmax(0, 1fr); gap: 16px;
  }
  .ipl-trend-empty {
    font-size: 0.6875rem;
  }
  .ipl-chart-pair .ipl-chart {
    height: 160px;
  }
  .ipl-chart-pair .ipl-chart-scroll {
    padding-left: 46px;
  }
}
.ipl-chart-last-label {
  position: absolute;
  z-index: 4;
  padding: 2px 8px;
  border: 1px solid var(--ipl-full);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ipl-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.12);
  transform: translate(12px, 50%);
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.ipl-chart-last-label.flip {
  transform: translate(calc(-100% - 12px), 50%);
}
.ipl-chart:has(.ipl-chart-tip.show) .ipl-chart-last-label {
  opacity: 0.18;
}
.ipl-bar-label {
  position: absolute;
  z-index: 2;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.ipl-bar-label.t-reject {
  color: var(--ipl-reject);
}
.ipl-bar-label.t-full {
  color: var(--ipl-full);
}
.ipl-bar-label.partial {
  opacity: 0.6;
}
.ipl-bar-label small {
  font-size: 0.6875rem; font-weight: 600;
}
.ipl-bar-label.dense {
  font-size: 0.65rem; letter-spacing: -0.01em;
}
.ipl-bar-label.dense small,
.ipl-bar-label.dense .gap {
  display: none;
}
.ipl-bar-label.vertical {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  transform: translateX(-50%) rotate(180deg);
}
.ipl-chart:has(.ipl-chart-tip.show) .ipl-bar-label {
  opacity: 0.25;
}
@media (max-width: 760px) {
  .ipl-bar-label {
    font-size: 0.65rem;
  }
  .ipl-bar-label small,
.ipl-bar-label .gap {
    display: none;
  }
}
@media (min-width: 900px) {
  .ipl-root .boslife-list.boslife-regions.two-col {
    grid-template-rows: repeat(var(--rows, 4), auto);
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    column-gap: 40px;
  }
}
.ipl-root .stat-strip.stat-inline > section {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "label label"
    "value note";
  align-items: baseline;
  gap: 6px 8px;
}
.ipl-root .stat-strip.stat-inline .label {
  grid-area: label;
}
.ipl-root .stat-strip.stat-inline strong {
  grid-area: value;
}
.ipl-root .stat-strip.stat-inline em {
  grid-area: note;
  justify-self: end;
  font-size: 0.8125rem;
}
@media (max-width: 860px) {
  .ipl-root .stat-strip.stat-inline > section {
    gap: 4px 6px;
  }
  .ipl-root .stat-strip.stat-inline em {
    font-size: 0.6875rem;
  }
}
.ipl-root .usage-toolbar {
  flex-wrap: nowrap;
}
.ipl-root .usage-date-today {
  margin-left: 6px; color: var(--muted); font-size: 0.75rem; font-style: normal; font-weight: 550;
}
@media (max-width: 640px) {
  .ipl-root .usage-toolbar {
    gap: 6px;
  }
  .ipl-root .usage-range {
    order: 0;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 36px;
    margin-left: 0;
  }
  .ipl-root .usage-range button {
    flex: 1; min-width: 0; padding: 0 2px; font-size: 0.75rem; white-space: nowrap;
  }
  .ipl-root .usage-date-pick svg {
    display: none;
  }
  .ipl-root .usage-date-pick {
    padding: 0 8px;
  }
  .ipl-root .usage-date-controls .icon-btn {
    width: 30px;
  }
  .ipl-root .usage-date-today {
    margin-left: 4px;
  }
}
@media (max-width: 380px) {
  .ipl-root .usage-date-today {
    display: none;
  }
  .ipl-root .usage-range button {
    font-size: 0.6875rem;
  }
  .ipl-root .usage-date-controls .icon-btn {
    width: 26px;
  }
  .ipl-root .usage-date-pick {
    padding: 0 6px;
  }
}


/* 11-06：第五张卡片「今日用户 IP」（总览原来顶上的「用户 IP」挪进来）。宽屏一行 5 张；窄屏两列时它占满一行 */
.ipl-cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .ipl-cards.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ipl-cards.five > .ipl-card:nth-child(5) { grid-column: 1 / -1; }
}

/* 11-06：用户页「IP 占用」整理——当前在线、使用过的 IP 电脑上左右两栏；拒绝次数点「今日拒绝」在统计栏下展开 */
.ipl-user .ipl-user-cols { display: grid; gap: 16px; align-items: start; }
.ipl-user .ipl-user-cols > .ipl-detail-section { margin: 0; min-width: 0; }
@media (min-width: 1100px) {
  .ipl-user .ipl-user-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.ipl-user .ipl-reject-toggle { cursor: pointer; }
.ipl-user .ipl-reject-toggle:hover, .ipl-user .ipl-reject-toggle.open { background: var(--surface-2); }
.ipl-user .ipl-reject-toggle:focus-visible { outline: none; box-shadow: inset var(--focus); }
.ipl-user .ipl-reject-toggle em::after { content: ' ▾'; }
.ipl-user .ipl-reject-toggle.open em::after { content: ' ▴'; }
.ipl-user .ipl-reject-inline { margin-top: -4px; }
@media (max-width: 560px) {
  .ipl-user .ipl-reject-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 11-06 样稿：用户页「近 7 天去过的地方」（当前在线下面） */
.ipl-user .ipl-user-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ipl-user .ipl-user-col > .ipl-detail-section { margin: 0; }
.ipl-travel h3 { margin: 0 0 8px; font-size: 14px; }
.ipl-travel-summary { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.6; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-secondary); }
.ipl-travel-summary.ok { background: var(--green-tint); border-color: var(--green-tint-line); color: var(--green); }
.ipl-travel-summary.warn { background: var(--orange-tint); border-color: var(--orange-tint-line); color: var(--orange); }
.ipl-travel-summary.bad { background: var(--red-tint); border-color: var(--red-tint-line); color: var(--red); }
.ipl-travel-map { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.ipl-travel-svg { display: block; width: 100%; height: auto; aspect-ratio: 1.3 / 1; max-height: 340px; }
.ipl-travel-shape { stroke: var(--surface); stroke-linejoin: round; }
.ipl-travel-shape.lv0 { fill: var(--ipl-geo-0); stroke: var(--ipl-geo-0-line); }
.ipl-travel-shape.lv1 { fill: var(--ipl-geo-1); }
.ipl-travel-shape.lv2 { fill: var(--ipl-geo-2); }
.ipl-travel-shape.lv3 { fill: var(--ipl-geo-3); }
.ipl-travel-shape.lv4 { fill: var(--ipl-geo-4); }
.ipl-travel-shape.lv5 { fill: var(--ipl-geo-5); }
.ipl-travel-dot { fill: #f97316; stroke: #ffffff; stroke-width: 0.25%; }
.ipl-travel-label { fill: var(--text); font-weight: 650; paint-order: stroke; stroke: var(--surface); stroke-width: 0.6%; stroke-linejoin: round; }
.ipl-travel-grid { margin-top: 10px; display: grid; gap: 4px; font-size: 12px; }
.ipl-travel-row { display: grid; grid-template-columns: minmax(64px, 1.6fr) repeat(var(--days, 7), minmax(0, 1fr)) 40px; gap: 4px; align-items: center; }
.ipl-travel-row b { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipl-travel-row i { height: 16px; border-radius: 3px; background: var(--fill); }
.ipl-travel-row i.on { background: var(--accent); }
.ipl-travel-row em { font-style: normal; color: var(--muted); text-align: right; white-space: nowrap; }
.ipl-travel-row.head span { color: var(--muted); text-align: center; font-size: 11px; }
.ipl-travel-more, .ipl-travel-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* 11-06 样稿 2：第二排左「当前在线 + 近 7 天每天在哪」、右「结论 + 地图」等高；「使用过的 IP」整宽，列表两列 */
.ipl-user .ipl-user-cols { align-items: stretch; }
.ipl-user .ipl-travel-where { display: flex; flex-direction: column; min-height: 0; }
.ipl-user .ipl-travel-where .ipl-travel-map { flex: 1; display: flex; min-height: 280px; }
.ipl-user .ipl-travel-where .ipl-travel-svg { flex: 1; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; }
.ipl-user .ipl-travel-days .ipl-travel-grid { margin-top: 0; }
@media (min-width: 900px) {
  .ipl-user .ipl-used-section .ipl-ip-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ipl-user .ipl-used-section .ipl-ip-list li + li { border-top: 0; }
  .ipl-user .ipl-used-section .ipl-ip-list li { border-bottom: 1px solid var(--line); }
  .ipl-user .ipl-used-section .ipl-ip-list li:nth-child(odd):not(.more) { border-right: 1px solid var(--line); }
  .ipl-user .ipl-used-section .ipl-ip-list li.more { grid-column: 1 / -1; border-bottom: 0; }
}
.ipl-travel-leader { stroke: var(--text-secondary); stroke-linecap: round; opacity: 0.75; }

/* 11-06 用户：地图把第二排撑得太高、左边留白多 → 电脑上两栏时地图不再自己决定高度，铺满左栏的高度（约比原来矮 20%）；
   至少 280px。手机上一栏时照旧按 1.3:1 */
@media (min-width: 1100px) {
  .ipl-user .ipl-travel-where .ipl-travel-map { position: relative; flex: 1 1 0; min-height: 280px; }
  .ipl-user .ipl-travel-where .ipl-travel-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
}
@media (max-width: 1099px) {
  .ipl-user .ipl-travel-where .ipl-travel-svg { height: auto; aspect-ratio: 1.3 / 1; }
}

/* 11-06 手机检查：窄屏上标签里的次要字（「上限」「合并」）、7 天格子表头的月份隐藏，免得多占一行；选日期按钮不折行 */
.ipl-travel-row.head s { text-decoration: none; }
.ipl-used-date { white-space: nowrap; }
@media (max-width: 560px) {
  .ipl-root .m-hide, .ipl-travel-row.head s { display: none; }
  .ipl-user-head { gap: 6px 10px; }
}

/* 11-14 用户页「IP 占用」精简：没有标题行；统计栏、在线 / 使用过的 IP、图表、地图都不再各套一个框，用细线分隔 */
.ipl-user-head:has(.ipl-user-sub:empty) { display: none; }
.ipl-user .ipl-detail-body { gap: 20px; }
.ipl-user .stat-strip.ipl-detail-stats { border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--line); }
.ipl-user .stat-strip.ipl-detail-stats > section { padding: 2px 16px 12px; }
.ipl-user .stat-strip.ipl-detail-stats > section:first-child { padding-left: 0; }
@media (min-width: 561px) {
  .ipl-root.ipl-user .stat-strip.ipl-detail-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ipl-root.ipl-user .stat-strip.ipl-detail-stats > section:nth-child(3) { border-left: 1px solid var(--line); }
  .ipl-root.ipl-user .stat-strip.ipl-detail-stats > section:nth-child(n + 3) { border-top: 0; }
}
@media (max-width: 560px) {
  .ipl-root.ipl-user .stat-strip.ipl-detail-stats > section:nth-child(odd) { padding-left: 0; }
  .ipl-root.ipl-user .stat-strip.ipl-detail-stats > section:nth-child(n + 3) { padding-top: 10px; }
}
.ipl-user .ipl-ip-list, .ipl-user .ipl-used-chart { border: 0; border-radius: 0; background: none; }
.ipl-user .ipl-ip-list li { padding-left: 0; padding-right: 0; }
.ipl-user .ipl-ip-list li.group { padding-left: 0; }
/* 11-14 晚 用户：「使用过的 IP」两列时节点名贴着中间竖线、溢出 → 两列各离竖线 16px，节点名放不下用省略号 */
.ipl-user .ipl-ip-list li.used .nodes { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) {
  .ipl-user .ipl-used-section .ipl-ip-list li:nth-child(odd):not(.more) { padding-right: 16px; }
  .ipl-user .ipl-used-section .ipl-ip-list li:nth-child(even) { padding-left: 16px; }
}
.ipl-user .ipl-used-chart { padding: 4px 0 0; }
.ipl-user .ipl-travel-map { border: 0; }
.ipl-user .ipl-ip-list li.live { padding-left: 10px; padding-right: 8px; }

/* 11-14 总览统一时间：IP 限制自己的日期翻页、趋势时段、地区分布时段按钮不显示 */
.ipl-global-time .usage-date-controls, .ipl-global-time #ipLimitRange, .ipl-global-time .ipl-segment:empty { display: none !important; }

/* 11-14 用户：总览「节点在线人数」字显示不全 —— 通用列表 .ipl-root .boslife-list li 的四列（第一列 22px 放序号）优先级更高，
   盖掉了本列表自己的列宽，地区名被塞进 22px 那列。这里按本列表的四列（名称、横条、人数、展开）重设，名称放不下时省略号、鼠标看全名 */
.ipl-root .boslife-list.ipl-regions li { grid-template-columns: minmax(96px, 1.1fr) minmax(48px, 1fr) 48px 32px; gap: 10px; }
.ipl-root .ipl-regions .name { min-width: 0; overflow: hidden; white-space: nowrap; }
.ipl-root .ipl-regions .ipl-node-row .name { display: block; text-overflow: ellipsis; }
@media (max-width: 860px) {
  .ipl-root .boslife-list.ipl-regions li { grid-template-columns: minmax(84px, 1.2fr) minmax(40px, 1fr) 44px 30px; gap: 8px; }
}
/* 列表里的「正在读取 / 读取失败」占位行不走列表的多列网格，免得被挤成一字一行 */
.ipl-root li.ipl-empty-row { display: block; }
.ipl-user .ipl-ip-list li.used { grid-template-columns: minmax(118px, auto) minmax(0, 1fr) minmax(0, auto); column-gap: 12px; }
.ipl-user .ipl-ip-list li.used > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* IP 列固定宽（原来每行按自己的 IP 长短定宽，地区一列左右错开）；IPv6 合并网段放不下时省略号，鼠标看全 */
@media (min-width: 561px) {
  .ipl-user .ipl-ip-list li { grid-template-columns: 142px minmax(0, 1fr) auto; }
  .ipl-user .ipl-ip-list li.used { grid-template-columns: 142px minmax(0, 1fr) minmax(0, auto); }
}
.ipl-user .ipl-ip-list li code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 11-14 全站整理：IP 限制几块的标题和别的块同一字号 */
.ipl-root .ipl-title h2, .ipl-root .ipl-section-head h2 { font-size: 1.0625rem; font-weight: 650; }
