.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-settings-footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.help-settings-footer-links-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.help-settings-footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-settings-footer-link-item {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.help-settings-footer-link-fields {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(240px, 1.4fr);
  gap: 10px;
  flex: 1 1 auto;
}

.help-settings-footer-link-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.help-settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.help-settings-embed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.help-settings-embed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.help-settings-embed-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.help-settings-embed-form-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(260px, 1.4fr);
  gap: 10px;
}

.help-settings-embed-form-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.help-settings-embed-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.help-settings-embed-item.is-disabled {
  opacity: 0.78;
}

.help-settings-embed-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.help-settings-embed-origins {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.help-settings-embed-origins code {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.help-settings-embed-item-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.help-settings-embed-install {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--bg);
}

.help-settings-embed-install summary {
  cursor: pointer;
  font-weight: 600;
}

.help-settings-embed-list-plain {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.website-chat-page .website-chat-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.website-chat-page .website-chat-create-panel,
.website-chat-page .website-chat-sites-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
}

.website-chat-page .website-chat-create-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.website-chat-page .website-chat-sites-panel {
  background: #ffffff;
}

.website-chat-page .website-chat-locked-panel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.website-chat-page .website-chat-locked-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  background: #f6f9fe;
  color: #3b4c69;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.website-chat-page .help-settings-embed-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.website-chat-page .help-settings-embed-form {
  border: 0;
  background: transparent;
  padding: 0;
  gap: 12px;
}

.website-chat-page .help-settings-toggle-row {
  background: #f4f8ff;
}

.website-chat-page .help-settings-embed-list {
  gap: 10px;
}

.website-chat-page .help-settings-embed-item {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fcfdff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.website-chat-page .help-settings-embed-item-head strong {
  font-size: 16px;
}

.website-chat-page .help-settings-embed-install {
  background: #f6f9fe;
  border-radius: 12px;
}

.ha-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.ha-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ha-toggle-track {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #c9d2df;
  border: 1px solid #b9c5d6;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background 140ms ease, border-color 140ms ease;
}

.ha-toggle-thumb {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transform: translateX(0);
  transition: transform 140ms ease;
}

.ha-toggle input:checked + .ha-toggle-track {
  background: var(--accent);
  border-color: var(--accent-strong);
}

.ha-toggle input:checked + .ha-toggle-track .ha-toggle-thumb {
  transform: translateX(22px);
}

/* ── Knowledge base link button ──────────────────────────── */
.help-kb-link {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  border-radius: 999px;
  gap: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.help-kb-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ghost);
  color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

.help-kb-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  flex-shrink: 0;
  animation: kb-live-pulse 2.4s ease-in-out infinite;
}

@keyframes kb-live-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
  }
}

.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);
}

.sources-summary-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 18px;
}

.sources-summary-header h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

/* ── Sources panel header ─────────────────────────────────── */
.src-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.src-panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--accent-ghost);
  color: var(--accent);
  border: 1px solid var(--accent-strong);
}

.src-panel-icon--pdf {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.3);
}

.src-panel-icon--web {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  border-color: rgba(22, 163, 74, 0.3);
}

.src-panel-icon--cloud {
  background: rgba(109, 40, 217, 0.09);
  color: #6d28d9;
  border-color: rgba(109, 40, 217, 0.25);
}

.src-panel-title {
  flex: 1 1 auto;
  min-width: 0;
}

.src-panel-title h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.src-panel-title p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Upload zone ──────────────────────────────────────────── */
.src-upload-zone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: border-color 160ms ease, background 160ms ease;
}

.src-upload-zone:focus-within {
  border-color: var(--accent);
  background: var(--accent-ghost);
}

.src-upload-input {
  font-size: 13px;
  color: var(--text);
  width: 100%;
}

.src-upload-input::file-selector-button {
  margin-right: 10px;
  border: 1px solid var(--accent-strong);
  border-radius: 8px;
  background: var(--accent-ghost);
  color: var(--accent);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.src-upload-input::file-selector-button:hover {
  background: var(--accent);
  color: #fff;
}

.src-upload-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Inline states ────────────────────────────────────────── */
.src-success-msg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #166534;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 8px;
  padding: 6px 12px;
}

.src-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
}

.src-empty i {
  font-size: 18px;
  opacity: 0.5;
  flex-shrink: 0;
}

.src-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.src-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ── List item main content ───────────────────────────────── */
.src-item-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

/* ── Settings tab helpers ─────────────────────────────────── */
.stg-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stg-field .form-text {
  margin-top: 2px;
}

.stg-head-btn {
  flex-shrink: 0;
  align-self: flex-start;
  margin-left: auto;
  white-space: nowrap;
}

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

.sources-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sources-stat-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sources-stat-item span {
  color: var(--muted);
  font-size: 13px;
}

.sources-stat-item strong {
  font-size: 22px;
  line-height: 1;
  color: var(--text);
}

.sources-layout {
  gap: 16px;
}

.sources-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sources-upload-row input[type="file"] {
  max-width: 320px;
}

.sources-website-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sources-website-input {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sources-website-input .form-control {
  min-width: 260px;
  flex: 1 1 auto;
}

.sources-website-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sources-action-btn {
  min-height: 34px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  white-space: nowrap;
  border-radius: 10px;
}

.sources-action-btn i {
  font-size: 13px;
}

.sources-action-btn.is-validate {
  border-color: var(--border);
  color: var(--text);
  background: var(--card);
}

.sources-action-btn.is-validate:hover:not(:disabled) {
  border-color: var(--accent-strong);
  color: var(--accent);
  background: var(--accent-ghost);
}

.sources-action-btn.is-add {
  border-color: #15803d;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
}

.sources-action-btn.is-add:hover:not(:disabled) {
  border-color: #166534;
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
}

.sources-action-btn.is-connect {
  border-color: #1d4ed8;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.sources-action-btn.is-connect:hover:not(:disabled) {
  border-color: #1e40af;
  color: #1e40af;
  background: rgba(37, 99, 235, 0.14);
}

.sources-advanced {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 0;
}

.sources-advanced summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.sources-advanced summary::-webkit-details-marker {
  display: none;
}

.sources-advanced summary::before {
  content: "\f282";
  font-family: "bootstrap-icons";
  margin-right: 8px;
  color: var(--muted);
}

.sources-advanced[open] summary {
  border-bottom: 1px solid var(--border);
}

.sources-advanced[open] summary::before {
  content: "\f286";
}

.sources-advanced-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.sources-website-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sources-website-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--text);
}

.sources-website-checkbox input {
  margin: 0;
}

.sources-website-preview {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sources-website-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sources-website-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sources-website-preview-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sources-website-preview-grid span {
  font-size: 12px;
  color: var(--muted);
}

.sources-website-preview-grid strong {
  font-size: 14px;
  color: var(--text);
}

.sources-cloud-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sources-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 12px 14px;
}

.sources-list-item-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sources-list-meta {
  display: inline-flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sources-list-actions {
  display: inline-flex;
  align-items: center;
}

.sources-cloud-selection {
  margin-top: 10px;
}

.sources-cloud-selection-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .sources-list-item-head {
    flex-direction: column;
  }

  .sources-cloud-selection-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.sources-connect-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 10px;
}

.sources-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-ghost);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.sources-pill.is-processing {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  animation: source-pill-pulse 1.6s ease-in-out infinite;
}

.sources-pill.is-processing::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.sources-pill.is-ready {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
}

.sources-pill.is-failed {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
}

@keyframes source-pill-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.28);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(37, 99, 235, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.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-group--nested {
  margin-left: calc(var(--collection-depth, 0) * 18px);
}

.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;
  }

  .help-settings-footer-links-header {
    flex-direction: column;
    align-items: stretch;
  }

  .help-settings-footer-link-item {
    flex-direction: column;
    align-items: stretch;
  }

  .help-settings-footer-link-fields {
    grid-template-columns: 1fr;
  }

  .help-settings-footer-link-actions {
    justify-content: flex-end;
  }

  .help-settings-embed-header {
    flex-direction: column;
    align-items: stretch;
  }

  .help-settings-embed-form-grid {
    grid-template-columns: 1fr;
  }

  .website-chat-page .website-chat-create-panel,
  .website-chat-page .website-chat-sites-panel {
    padding: 12px;
  }

  .website-chat-page .help-settings-embed-item-actions .btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
  }

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

  .sources-summary-stats {
    grid-template-columns: 1fr;
  }

  .sources-list-item {
    flex-direction: column;
  }

  .sources-list-meta {
    width: 100%;
    align-items: flex-start;
  }

  .sources-website-input {
    flex-direction: column;
    align-items: stretch;
  }

  .sources-website-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .sources-action-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .sources-website-settings {
    grid-template-columns: 1fr;
  }

  .sources-website-checkbox {
    margin-top: 0;
  }

  .sources-website-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .help-center {
    gap: 12px;
  }

  .help-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .help-header h1 {
    margin: 0 0 4px;
    font-size: 24px;
  }

  .help-header p {
    font-size: 14px;
    line-height: 1.35;
  }

  .help-header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .help-header-actions .btn {
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
  }

  .help-header-actions .btn-with-icon {
    gap: 5px;
  }

  .help-tabs {
    width: 100%;
    max-width: 340px;
    padding: 4px;
    gap: 4px;
  }

  .help-tab {
    flex: 1 1 0;
    padding: 6px 10px;
    font-size: 13px;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .help-header h1 {
    font-size: 22px;
  }

  .help-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .help-header-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 7px 10px;
    font-size: 12px;
    white-space: normal;
  }
}
