.header-actions,
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.language-switch {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
}
.language-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}
.language-switch button.active {
  background: var(--accent);
  color: #152a22;
}
.download-link {
  display: inline-block;
  margin: 0 auto 18px;
}
.config-guide {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.config-guide summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid select,
textarea {
  width: 100%;
  padding: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
}
.config-guide > textarea {
  width: 100%;
  margin: 8px 0 12px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  resize: vertical;
}
.form-grid .check {
  flex-direction: row;
  align-items: center;
}
.form-grid .check input {
  width: auto;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #0d151b;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  color: #d7e7e5;
  line-height: 1.55;
  font-size: 12px;
}
.download-card {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin: 20px 0;
}
.download-card div {
  min-width: 0;
}
.download-card span,
.download-card code {
  display: block;
}
.download-card code {
  font-size: 10px;
  overflow-wrap: anywhere;
  margin-top: 6px;
}
.command-card {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.command-card small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.notice {
  border-left: 3px solid var(--accent);
  background: #132129;
  padding: 15px 18px;
  margin-top: 28px;
}
.notice p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.copy {
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .header-actions {
    gap: 5px;
  }
  .language-switch button {
    padding: 5px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .download-card {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 420px) {
  header {
    flex-wrap: wrap;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .header-actions > .muted {
    display: none;
  }
}

.profile-edit-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.profile-edit-form fieldset:disabled input,
.profile-edit-form fieldset:disabled textarea { opacity: 1; color: inherit; background: transparent; cursor: default; }
