.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-switch {
  height: 32px;
  min-width: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .04);
  color: #dbe3f4;
  font: 700 11px/1 inherit;
  cursor: pointer;
}

.language-switch:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

#sign-form > .primary {
  margin-top: 20px;
}

.app-select-field {
  margin-top: 0;
}

.field-title {
  display: block;
  margin: 0 0 10px 2px;
  color: #cbd3e3;
  font-size: 12px;
  font-weight: 700;
}

.app-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
}

.app-option {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 16px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: .18s ease;
}

.app-option:hover {
  transform: translateY(-2px);
  border-color: #687590;
}

.app-option:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(98,220,255,.07);
  box-shadow: 0 0 0 2px rgba(98,220,255,.12);
}

.app-option input {
  position: absolute;
  opacity: 0;
}

.app-option img,
.app-icon-fallback {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.app-icon-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,var(--violet),var(--cyan));
  color: #08101a;
  font-size: 25px;
  font-weight: 900;
}

.app-option strong,
.app-option small {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-option strong {
  font-size: 12px;
}

.app-option small {
  color: var(--muted);
  font-size: 10px;
}

.catalog-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 0 12px;
}

.code-field-top {
  margin-top: 0;
}

.catalog-title span {
  font-size: 15px;
  font-weight: 800;
}

.catalog-title small {
  color: var(--muted);
  font-size: 10px;
}

.app-catalog {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
}

.catalog-app {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.02);
}

.catalog-app > img,
.catalog-app > .app-icon-fallback {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 14px;
  object-fit: cover;
}

.catalog-app > div {
  min-width: 0;
}

.catalog-app strong {
  display: block;
  font-size: 14px;
}

.catalog-app p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.catalog-app small {
  color: #69758b;
  font-size: 9px;
}

.telegram-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 17px;
  border: 1px solid rgba(98,220,255,.2);
  border-radius: 18px;
  background: linear-gradient(110deg,rgba(98,220,255,.08),rgba(139,124,255,.06));
}

.telegram-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #229ed9;
  color: #fff;
  font-size: 22px;
}

.telegram-card strong {
  font-size: 14px;
}

.telegram-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.telegram-card a {
  padding: 11px 14px;
  border-radius: 10px;
  background: #229ed9;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

@media(max-width:600px) {
  .telegram-card {
    grid-template-columns: 44px 1fr;
  }
  .telegram-card a {
    grid-column: 1 / -1;
    text-align: center;
  }
}

.password-field select {
  width: 100%;
  min-width: 0;
  appearance: none;
  background: #111827;
  border: 0;
  color: #fff;
  padding: 15px;
  font: inherit;
  outline: 0;
}

#signing-code {
  text-transform: uppercase;
  letter-spacing: .12em;
}

.loading .progress.uploading span {
  animation: none;
  transform: none;
  transition: width .2s ease;
}

.loading .status {
  width: 100%;
  height: 44px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  overflow: hidden;
}

.loading .status.upload-metrics {
  display: grid;
  grid-template-columns: 92px minmax(190px, 1fr) 110px 52px;
  gap: 8px;
  text-align: right;
  white-space: nowrap;
  overflow: visible;
}

.upload-metrics .metric-phase {
  text-align: left;
}

.upload-metrics .metric-amount,
.upload-metrics .metric-speed,
.upload-metrics .metric-percent {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 600px) {
  .loading .status.upload-metrics {
    grid-template-columns: 76px minmax(142px, 1fr) 82px 43px;
    gap: 4px;
    font-size: 10px;
  }
}

.install-feedback {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 14px 0 0;
}

.manifest-test {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  text-underline-offset: 3px;
}
