.help-center {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.help-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.help-header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.help-header p {
  margin: 0;
  color: var(--muted);
}

.help-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  box-shadow: var(--shadow-mid);
}

.help-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-ghost);
  width: fit-content;
}

.help-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.help-tab.is-active {
  color: var(--text);
  background: var(--card);
  box-shadow: var(--shadow-mid);
}

.help-settings {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.help-settings-logo {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

.logo-preview {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  border: 1px dashed var(--border);
  background: var(--accent-ghost);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-placeholder {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 8px;
}

.logo-actions input[type="file"] {
  display: block;
}

.help-settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.help-list-note {
  margin: 0;
  color: var(--muted);
}

.subtle-field {
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.subtle-field .form-control {
  background: var(--accent-ghost);
  border-color: var(--accent-strong);
  color: var(--text);
}

.subtle-field .form-control:focus {
  background: var(--card);
}

.collection-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 18px;
  align-items: start;
}

.collection-slug {
  border-left: 1px dashed var(--border);
  padding-left: 16px;
}

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

  .collection-slug {
    border-left: 0;
    padding-left: 0;
    border-top: 1px dashed var(--border);
    padding-top: 12px;
  }
}

.collection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.collection-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collection-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.collection-articles {
  margin-left: 42px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--accent-ghost);
  border: 1px dashed var(--border);
}

.collection-empty {
  color: var(--text);
  opacity: 0.85;
}

.article-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
}

.collection-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-mid);
  border-color: var(--border);
  background: var(--card);
}

.collection-meta {
  font-size: 12px;
  color: var(--muted);
}

.collection-actions {
  display: inline-flex;
  gap: 8px;
}

.icon-btn-wrap {
  display: inline-flex;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--card);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.icon-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-mid);
  color: var(--text);
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.empty-state {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  color: var(--muted);
}

.empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
}

@media (max-width: 1100px) {
  .help-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .help-settings-logo {
    grid-template-columns: 1fr;
  }

  .logo-preview {
    width: 100%;
    height: 160px;
  }
}
