.node-card > .flex.items-start:has(> .node-plan-bandwidth) {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: start !important;
  column-gap: 12px;
  row-gap: 8px;
}

.node-card > .flex.items-start:has(> .node-plan-bandwidth) > :first-child {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: 0;
}

.node-card > .flex.items-start:has(> .node-plan-bandwidth) > :nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.node-card > .flex.items-start:has(> .node-plan-bandwidth) > :nth-child(3) {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  min-width: max-content;
}

.node-plan-bandwidth {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  min-width: 108px;
  max-width: 150px;
  padding: 6px 12px 7px;
  color: var(--text);
  background: var(--chip);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  box-shadow: 0 4px 14px rgba(28, 43, 64, 0.06);
}

.node-plan-bandwidth-label,
.node-plan-bandwidth-value {
  display: block;
  white-space: nowrap;
}

.node-plan-bandwidth-label {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.node-plan-bandwidth-value {
  margin-top: 3px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.node-plan-bandwidth.is-pending .node-plan-bandwidth-value {
  color: var(--text-dim);
  font-size: 12px;
}

html[data-mode="day"] .node-plan-bandwidth {
  background: #eef2f6;
  border-color: #dfe6ec;
  box-shadow: none;
}

@media (max-width: 520px) {
  .node-card > .flex.items-start:has(> .node-plan-bandwidth) {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    column-gap: 8px;
  }

  .node-plan-bandwidth {
    grid-column: 3;
    grid-row: 1;
    min-width: 92px;
    padding: 5px 8px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .node-plan-bandwidth {
    transition: none !important;
  }
}
