:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-soft: #eff6ff;
  --purple: #8b5cf6;
  --purple-soft: #f3e8ff;
  --success: #22c55e;
  --tip: #ecfdf5;
  --tip-border: #86efac;
  --note: #eff6ff;
  --note-border: #93c5fd;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#app {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 320px),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 320px, var(--bg) 100%);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button, input, select, textarea {
  font: inherit;
  font-size: 16px;
  max-width: 100%;
}

button {
  cursor: pointer;
  min-width: 0;
}

.help-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.brand-mark img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.brand span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.help-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--text);
  padding: 10px 12px;
}

.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--text);
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  user-select: none;
}

.language-picker:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: #f8fbff;
}

.language-picker-icon,
.language-picker-caret {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.language-picker-current {
  max-width: 120px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-user-menu {
  position: relative;
}

.user-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--text);
  padding: 6px 10px 6px 7px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.user-menu-button:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: #f8fbff;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.user-menu-copy {
  display: grid;
  gap: 1px;
  max-width: 190px;
  text-align: left;
}

.user-menu-copy strong,
.user-menu-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-copy strong {
  font-size: 13px;
}

.user-menu-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.user-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.user-menu-popover button {
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  padding: 10px 11px;
  text-align: left;
}

.user-menu-popover button:hover {
  background: var(--primary-soft);
}

.ghost-btn,
.primary-btn {
  border-radius: 10px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ghost-btn.small {
  padding: 6px 10px;
  font-size: 12px;
}

.primary-btn {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.primary-btn:hover {
  background: var(--primary-dark);
}

main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 16px;
}

.hero {
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding: 58px 0 38px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #10223f;
}

.hero p {
  max-width: 720px;
  margin: 18px auto 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-search {
  width: min(720px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 16px;
  padding: 13px 15px;
}

.search-tags {
  width: min(720px, 100%);
  max-width: 100%;
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.content-section {
  width: 100%;
  min-width: 0;
  margin: 28px 0 48px;
}

.content-section h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.article-card,
.result-row,
.help-section,
.admin-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.article-card {
  min-width: 0;
  min-height: 180px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card:hover,
.result-row:hover,
.admin-list button:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.article-card strong,
.result-row strong {
  font-size: 17px;
}

.article-card strong,
.article-card span,
.article-card small,
.result-row strong,
.result-row span,
.result-row small {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-card span,
.result-row span,
.article-card small,
.result-row small {
  color: var(--muted);
  line-height: 1.5;
}

.section-list {
  display: grid;
  gap: 12px;
}

.help-section {
  overflow: hidden;
}

.help-section summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.help-section summary::-webkit-details-marker { display: none; }

.help-section summary:hover {
  background: #f8fbff;
}

.help-section summary small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.help-section summary b {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

.section-summary-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.section-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.help-section[open] .section-caret {
  transform: rotate(90deg);
  color: var(--primary);
  background: var(--primary-soft);
}

.section-articles {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #f8fafc;
}

.section-articles button {
  border: 1px solid var(--border);
  background: white;
  text-align: left;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.section-articles button:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.section-article-card {
  display: grid;
  gap: 4px;
}

.section-article-card strong {
  color: var(--text);
  font-size: 15px;
}

.section-article-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.subsection-group {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-left: 3px solid #dbeafe;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.subsection-group > strong {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-tags,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.article-tags span {
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 13px;
}

.tag.active {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}

.result-list {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 12px;
}

.result-row {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  gap: 6px;
  padding: 18px;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 820px);
  gap: 38px;
  align-items: start;
  padding: 38px 0 70px;
}

.article-sidebar {
  position: sticky;
  top: 92px;
}

.back-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 20px;
}

.in-this-article {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.in-this-article a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.help-article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 54px);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.article-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.help-article h1 {
  margin: 16px 0;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.article-summary {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.article-body {
  margin-top: 28px;
  line-height: 1.75;
  font-size: 16px;
}

.article-body h1 {
  margin-top: 42px;
  font-size: 28px;
  letter-spacing: -0.025em;
}

.article-body h2 {
  margin-top: 32px;
}

.article-body img {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.article-body a {
  color: var(--primary);
}

.doc-note,
.doc-tip {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 16px;
}

.doc-note {
  background: var(--note);
  border: 1px solid var(--note-border);
}

.doc-tip {
  background: var(--tip);
  border: 1px solid var(--tip-border);
}

.video-embed {
  margin: 24px 0;
}

.video-embed video {
  display: block;
  width: 100%;
  max-height: 70vh;
  border: 0;
  border-radius: 16px;
  background: #0f172a;
}

.video-embed figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-shell {
  padding: 34px 0 80px;
}

.admin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 5px;
}

.admin-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
}

.admin-tabs button.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  text-align: left;
}

.admin-hero-copy {
  display: grid;
  gap: 8px;
}

.admin-eyebrow {
  width: fit-content;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-section-heading h2,
.admin-section-heading p {
  margin: 0;
}

.admin-section-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.admin-login,
.admin-panel form {
  display: grid;
  gap: 12px;
}

.admin-login {
  width: min(420px, 100%);
  margin: 60px auto;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.4;
}

.admin-modal textarea {
  width: 100%;
  min-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.admin-help-section summary {
  align-items: center;
}

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

.admin-section-actions .ghost-btn {
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.admin-help-section:hover .admin-section-actions .ghost-btn,
.admin-section-actions .ghost-btn:focus-visible {
  opacity: 1;
  transform: translateX(0);
}

.admin-article-list {
  display: grid;
  gap: 8px;
}

.admin-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
  text-align: left;
}

.admin-article-row:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.admin-article-row > span:first-child {
  display: grid;
  gap: 3px;
}

.admin-article-row strong {
  color: var(--text);
}

.admin-article-row small {
  color: var(--muted);
  line-height: 1.4;
}

.admin-article-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  flex: 0 0 auto;
}

.admin-status-pill {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.admin-status-pill.published {
  background: #dcfce7;
  color: #15803d;
}

.admin-status-pill.draft {
  background: #f1f5f9;
  color: #64748b;
}

.admin-status-pill.favorite {
  background: var(--purple-soft);
  color: #7c3aed;
}

.empty-admin-card {
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.admin-modal {
  width: min(680px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: white;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.admin-article-modal {
  width: min(980px, 100%);
}

.admin-modal-header,
.admin-modal-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.admin-modal-header h2,
.admin-modal-header p {
  margin: 0;
}

.admin-modal-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.admin-modal-form {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.admin-modal-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.admin-modal-form label > span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 12px;
}

.admin-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  padding: 10px 12px;
}

.admin-modal-footer {
  align-items: center;
  justify-content: flex-end;
  padding: 14px 0 0;
  border: 0;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-actions button,
.file-btn {
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
}

.editor-hint {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-list button {
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: 12px;
}

.admin-list small {
  color: var(--muted);
}

.loading,
.error-state {
  padding: 70px 0;
  text-align: center;
}

@media (max-width: 800px) {
  .article-layout,
  .admin-modal-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .admin-article-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-hero-actions,
  .admin-article-meta {
    justify-content: flex-start;
  }

  .article-sidebar {
    position: static;
  }

  .help-header {
    align-items: center;
    flex-direction: row;
    padding-inline: 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand small {
    display: none;
  }

  .language-picker {
    max-width: 158px;
    padding: 8px 10px;
  }

  .language-picker-current {
    max-width: 82px;
  }
}


/* Admin console table and section manager */
.admin-console-header,
.admin-table-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.admin-console-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 28px;
}

.admin-console-header h1 {
  margin: 4px 0 8px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1;
}

.admin-console-header p,
.admin-table-header p {
  margin: 0;
  color: var(--muted);
}

.admin-table-card {
  overflow: hidden;
}

.support-accounts-card {
  margin-top: 22px;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.admin-table-header h2 {
  margin: 0 0 4px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-pages-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.admin-pages-table th,
.admin-pages-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-pages-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f8fafc;
}

.admin-pages-table tbody tr {
  cursor: pointer;
}

.admin-pages-table tbody tr:hover {
  background: #f8fbff;
}

.admin-pages-table td strong,
.admin-pages-table td small {
  display: block;
}

.admin-pages-table td small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.empty-table-cell {
  color: var(--muted);
  text-align: center !important;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ghost-btn.danger {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff7f7;
}

.lang-pill,
.tag.mini {
  display: inline-flex;
  align-items: center;
  margin: 0 5px 5px 0;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.lang-pill {
  color: #2563eb;
  background: #eff6ff;
}

.tag.mini {
  color: #475569;
  background: #f1f5f9;
}

.section-manager-modal {
  max-width: 880px;
}

.section-manager-list {
  display: grid;
  gap: 12px;
}

.section-manager-item,
.section-manager-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.section-manager-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.section-manager-children {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.section-manager-child {
  background: #f8fafc;
}

.tox.tox-tinymce {
  border-color: var(--border) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

@media (max-width: 800px) {
  .admin-console-header {
    flex-direction: column;
    padding: 22px;
  }

  .section-manager-item,
  .section-manager-child {
    grid-template-columns: 1fr;
  }
}


/* Article readability refinements */
.article-card {
  min-height: 150px;
  gap: 8px;
  padding: 18px;
}

.article-card strong,
.result-row strong {
  font-size: 16px;
  line-height: 1.25;
}

.article-card span,
.result-row span,
.article-card small,
.result-row small {
  font-size: 13px;
  line-height: 1.38;
}

.section-article-card strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  line-height: 1.25;
}

.favorite-star {
  display: inline-flex;
  color: #f59e0b;
  font-size: 15px;
  line-height: 1;
}

.article-title-star {
  margin-right: 10px;
  font-size: 24px;
  vertical-align: 0.08em;
}

.in-this-article {
  background: #f8fafc;
}

.article-body {
  line-height: 1.6;
}

.article-summary {
  line-height: 1.5;
}

.article-body p,
.article-body li {
  line-height: 1.58;
}

.article-body img[data-zoomable] {
  cursor: zoom-in;
}

.doc-note,
.doc-tip {
  border: 1px solid;
  border-left-width: 7px;
  border-radius: 0 16px 16px 0;
}

.doc-note {
  border-color: var(--note-border);
  border-left-color: #2563eb;
}

.doc-tip {
  border-color: var(--tip-border);
  border-left-color: #16a34a;
}

.doc-note > strong,
.doc-tip > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 900;
}

.doc-note > strong {
  color: #1d4ed8;
}

.doc-tip > strong {
  color: #15803d;
}

/* Admin action refinements */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--primary);
}

.icon-btn.danger {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff7f7;
}

.icon-btn.danger:hover {
  background: #fee2e2;
}

.admin-language-select-field {
  max-width: 320px;
}

.admin-language-select-field select {
  width: 100%;
}

@media (max-width: 800px) {
  .article-layout {
    gap: 18px;
    padding-top: 22px;
  }

  .article-sidebar,
  .help-article,
  .in-this-article {
    border: 0;
  }

  .article-sidebar {
    background: transparent;
  }

  .in-this-article {
    border-radius: 14px;
  }

  .help-article {
    padding: clamp(24px, 5vw, 54px);
  }
}


.favorite-star {
  margin-left: 7px;
}

.article-title-star {
  margin-right: 0;
  margin-left: 10px;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  padding: 14px;
}

.history-item strong,
.history-item small,
.history-item p {
  display: block;
  margin: 0;
}

.history-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.history-item p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.history-item .ghost-btn svg {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
}

@media (max-width: 800px) {
  .history-item {
    grid-template-columns: 1fr;
  }
}


.article-card-title {
  display: block;
}

.favorite-star,
.section-article-card .favorite-star,
.help-article .favorite-star {
  color: #f5b301 !important;
}


.article-card-title {
  color: var(--text);
}


.history-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.history-preview {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f8fafc;
  padding: 18px;
}

.history-preview header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.history-preview header strong,
.history-preview header small {
  display: block;
}

.history-preview header small,
.history-preview-summary {
  color: var(--muted);
}

.history-preview-body {
  margin-top: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

@media (max-width: 800px) {
  .history-preview header {
    flex-direction: column;
  }

  .history-actions {
    justify-content: flex-start;
  }
}

@media print {
  body {
    background: white !important;
    color: #111827;
  }

  .help-header,
  .article-sidebar,
  .article-actions {
    display: none !important;
  }

  main.article-layout {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .help-article {
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .article-meta,
  .article-summary,
  .article-body {
    color: #111827;
  }

  .article-body a {
    color: #111827;
    text-decoration: underline;
  }

  .article-body img,
  .video-embed video {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
