.nav-count {
  min-width: 21px;
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #8f858d;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.4;
  text-align: center;
}

.nav.active .nav-count {
  border-color: rgba(240,165,198,.18);
  background: rgba(240,165,198,.09);
  color: #f0a5c6;
}

.nav { min-height: 44px; }

.launcher-heading,
.distribution-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.launcher-heading h2,
.distribution-heading h2 { margin-bottom: 6px; }
.launcher-heading .lede,
.distribution-heading p { margin-bottom: 0; }

.launcher-quota {
  flex: none;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #b6abb3;
  font: 12px "Cascadia Mono", monospace;
}

.launcher-create {
  display: grid;
  grid-template-columns: minmax(220px,460px) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 18px;
}

.launcher-create label { margin-top: 0; }
.launcher-create button,
.launcher-card-actions a,
.launcher-card-actions button,
.artifact-upload button,
.distribution-limit-save {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  padding: 11px 15px;
  background: linear-gradient(135deg,var(--pink),var(--pink2));
  color: #fff;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.launcher-create p {
  grid-column: 1/-1;
  min-height: 0;
  margin: 0;
  color: #b7abb3;
  font-size: 12px;
}

.launcher-list {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
  gap: 14px;
}

.launcher-card {
  display: grid;
  gap: 17px;
  min-height: 218px;
  padding: 19px;
}

.launcher-card-head,
.launcher-pc,
.launcher-version {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.launcher-card-head h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launcher-state,
.pc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #817880;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.launcher-state::before,
.pc-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #625a61;
  box-shadow: none;
}

.launcher-state.online,
.pc-status.online { color: var(--green); }
.launcher-state.online::before,
.pc-status.online::before {
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(112,213,170,.09),0 0 12px rgba(112,213,170,.25);
}

.launcher-state.unbound { color: #d7ae6d; }
.launcher-state.unbound::before { background: currentColor; }

.launcher-pc {
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.launcher-pc div { min-width: 0; }
.launcher-pc b,
.launcher-pc small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launcher-pc small,
.launcher-version {
  color: #817880;
  font-size: 11px;
}

.launcher-version strong { color: #cfc5cb; font-weight: 650; }
.launcher-update { color: #efb1cd; }
.launcher-card-actions { display: flex; gap: 8px; margin-top: auto; }
.launcher-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.launcher-card-actions a[aria-disabled="true"] {
  pointer-events: none;
  opacity: .45;
}

.launcher-card-actions button {
  flex: none;
  border: 1px solid rgba(239,130,149,.18);
  background: rgba(239,130,149,.06);
  color: #df8798;
}

.launcher-card-actions button:hover {
  border-color: rgba(239,130,149,.34);
  background: rgba(239,130,149,.11);
}

.launcher-empty {
  grid-column: 1/-1;
  min-height: 160px;
  display: grid;
  place-items: center;
  color: #776e75;
  text-align: center;
}

.assign-pc-copy { min-width: 0; }
.assign-pc-copy b,
.assign-pc-copy small { display: block; }
.assign-pc-copy small {
  max-width: 190px;
  margin-top: 4px;
  overflow: hidden;
  color: #817880;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assign-row.offline { opacity: .7; }
.assign-row > div:last-child { display: flex; align-items: center; gap: 9px; }
.distribution-release-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.artifact-upload {
  display: grid;
  grid-template-columns: 140px minmax(180px,1fr) auto;
  align-items: end;
  gap: 12px;
}

.artifact-upload > div { grid-column: 1/-1; }
.artifact-upload label { margin: 0; }
.artifact-upload input[type="file"] { padding: 9px; font-size: 11px; }
.artifact-current {
  margin: 6px 0 0;
  color: #817880;
  font: 11px/1.5 "Cascadia Mono",monospace;
}

.distribution-users { margin-top: 12px; }
.distribution-limit {
  width: 84px;
  min-height: 38px;
  padding: 8px 10px;
}

.distribution-limit-save {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .distribution-release-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .launcher-create,
  .artifact-upload { grid-template-columns: 1fr; }
  .launcher-create p,
  .artifact-upload > div { grid-column: auto; }
  .launcher-list { grid-template-columns: 1fr; }
  .launcher-heading { align-items: center; }
}
