:root {
  --help-bg: #e7e8ec;
  --help-bg-deep: #d9dbe1;
  --help-surface: rgba(248, 248, 250, 0.92);
  --help-surface-strong: #ffffff;
  --help-sidebar: rgba(25, 25, 26, 0.98);
  --help-sidebar-border: rgba(255, 255, 255, 0.08);
  --help-sidebar-text: #f2f2f3;
  --help-sidebar-muted: rgba(242, 242, 243, 0.52);
  --help-sidebar-link: rgba(242, 242, 243, 0.8);
  --help-sidebar-link-active: #ffffff;
  --help-content-text: #202225;
  --help-content-muted: #666b73;
  --help-border: rgba(32, 34, 37, 0.1);
  --help-border-strong: rgba(32, 34, 37, 0.16);
  --help-accent: #4a4d52;
  --help-accent-strong: #1f5eff;
  --help-accent-soft: rgba(74, 77, 82, 0.08);
  --help-code-bg: #18191b;
  --help-code-text: #f5f5f6;
  --help-shadow: 0 22px 60px rgba(17, 18, 20, 0.12);
  --help-sidebar-width: 286px;
  --help-sidebar-collapsed-width: 52px;
  --help-radius-xl: 28px;
  --help-radius-lg: 20px;
  --help-radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.is-help-shell-pending {
  overflow: hidden;
}

body {
  position: relative;
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--help-content-text);
  overflow-x: hidden;
  overflow-y: hidden;
}

body::before {
  content: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.help-layout {
  transition: opacity 180ms ease, transform 220ms ease;
}

html.is-help-shell-pending .help-layout {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

html.is-help-shell-ready .help-layout {
  opacity: 1;
  transform: none;
}

.help-layout {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: grid;
  grid-template-columns: var(--help-sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.help-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 22%),
    var(--help-sidebar);
  color: var(--help-sidebar-text);
  border-right: 1px solid var(--help-sidebar-border);
  overflow: hidden;
  backdrop-filter: blur(18px);
  box-shadow: 18px 0 50px rgba(14, 14, 15, 0.16);
}

.help-sidebar-top {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  min-height: 38px;
}

.help-sidebar-search {
  margin-bottom: 10px;
}

.help-sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.help-sidebar-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.help-sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}

.help-sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.help-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.help-brand-mark {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.help-brand-mark img {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
}

.help-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.help-brand-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f4f4f5;
}

.help-brand-subtitle {
  font-size: 0.68rem;
  color: var(--help-sidebar-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-sidebar-toggle {
  position: static;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f4f5;
  cursor: pointer;
  font: inherit;
  padding: 0;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.help-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.help-toggle-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.help-nav-group {
  margin-bottom: 14px;
}

.help-nav-root-link {
  display: block;
  margin-bottom: 14px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--help-sidebar-link);
  text-decoration: none;
  line-height: 1.3;
  font-size: 0.92rem;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.help-nav-root-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.help-nav-root-link.is-active {
  color: var(--help-sidebar-link-active);
  background: #2f3032;
  box-shadow: 0 6px 16px rgba(10, 10, 11, 0.16);
  font-weight: 700;
}

.help-nav-group h2 {
  margin: 0 0 6px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 0 10px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: none;
  background: transparent;
}

.help-nav-group h2::before {
  content: "";
  position: absolute;
  inset: 2px 0 8px;
  border-radius: 10px;
  background: rgba(30, 30, 32, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.help-nav-group-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.help-nav-group-title-link {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.help-nav-group-title-link:hover {
  color: #ffffff;
  background: transparent;
}

.help-nav-group-title-link.is-active {
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

.help-nav-group-toggle {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.help-nav-group-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.help-nav-group-toggle-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.help-nav-group-toggle[aria-expanded="false"] .help-nav-group-toggle-icon {
  transform: rotate(-90deg);
}

.help-nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-nav-group-list {
  margin-left: 16px;
}

.help-nav-group li + li {
  margin-top: 3px;
}

.help-nav-group li > a {
  display: block;
  padding: 8px 10px 8px 12px;
  border-radius: 10px;
  color: var(--help-sidebar-link);
  text-decoration: none;
  line-height: 1.28;
  font-size: 0.92rem;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.help-nav-group li > a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.help-nav-group li > a.is-active {
  color: var(--help-sidebar-link-active);
  background: #2f3032;
  box-shadow: 0 6px 16px rgba(10, 10, 11, 0.16);
  font-weight: 700;
}

.help-nav-subgroup-item {
  margin-top: 4px;
}

.help-nav-subgroup-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 12px;
  padding-right: 4px;
  border-radius: 10px;
  transition: background 150ms ease, transform 150ms ease;
}

.help-nav-subgroup-head:hover,
.help-nav-subgroup-head.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.help-nav-subgroup-head:hover {
  transform: translateX(2px);
}

.help-nav-subgroup-link {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 10px 7px 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  line-height: 1.28;
  font-size: 0.86rem;
  font-weight: 700;
  transition: color 150ms ease;
}

.help-nav-subgroup-link:hover {
  color: #ffffff;
}

.help-nav-subgroup-link.is-active,
.help-nav-subgroup-head:hover .help-nav-subgroup-link {
  color: #ffffff;
}

.help-nav-subgroup-toggle {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.help-nav-subgroup-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.help-nav-subgroup-toggle-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.help-nav-subgroup-toggle[aria-expanded="false"] .help-nav-subgroup-toggle-icon {
  transform: rotate(-90deg);
}

.help-nav-subgroup-list {
  --help-tree-line-offset: 12px;
  margin-top: 4px;
  margin-left: 0;
  padding-left: 30px;
  position: relative;
}

.help-nav-subgroup-list::before {
  content: "";
  position: absolute;
  left: var(--help-tree-line-offset);
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.help-nav-subgroup-list-depth-2 {
  --help-tree-line-offset: 20px;
  padding-left: 40px;
}

.help-nav-subgroup-list .help-nav-subgroup-link {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

.help-nav-subgroup-list li > a {
  font-size: 0.84rem;
  padding-left: 16px;
}

.help-main {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
  padding: 0 34px 34px;
  display: flex;
  flex-direction: column;
}

.help-main-scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 77, 82, 0.26) transparent;
}

.help-main-scroll::-webkit-scrollbar {
  width: 8px;
}

.help-main-scroll::-webkit-scrollbar-thumb {
  background: rgba(74, 77, 82, 0.26);
  border-radius: 999px;
}

.help-page-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 48px;
  align-items: start;
}

.help-page-content {
  min-width: 0;
}

.help-page-outline {
  position: sticky;
  top: 22px;
  align-self: start;
  max-height: 60vh;
  overflow: hidden;
}

.help-page-outline[hidden] {
  display: none;
}

.help-page-outline-inner {
  max-height: inherit;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 77, 82, 0.22) transparent;
}

.help-page-outline-inner::-webkit-scrollbar {
  width: 7px;
}

.help-page-outline-inner::-webkit-scrollbar-thumb {
  background: rgba(74, 77, 82, 0.22);
  border-radius: 999px;
}

.help-page-outline-title {
  margin: 0 0 14px;
  color: #4e5560;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.help-page-outline-nav {
  display: grid;
  gap: 2px;
}

.help-page-outline-link {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  color: #6c727c;
  text-decoration: none;
  line-height: 1.35;
  font-size: 0.88rem;
  transition: color 150ms ease, border-color 150ms ease;
}

.help-page-outline-link:hover {
  color: #202225;
}

.help-page-outline-link.is-active {
  color: #202225;
  border-left-color: #202225;
  font-weight: 700;
}

.help-page-outline-h3 {
  padding-left: 22px;
  font-size: 0.82rem;
}

.help-page-outline-h4 {
  padding-left: 32px;
  font-size: 0.78rem;
}

.help-article {
  position: relative;
  max-width: none;
  padding: 18px 8px 28px 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.help-context-bar {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-context-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f6f7f9;
  border: 1px solid #e3e7ec;
  color: #4b5564;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.help-context-pill-secondary {
  background: #fafbfd;
  border-color: #edf1f5;
  color: #6d7583;
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.help-article h1,
.help-article h2,
.help-article h3,
.help-article h4 {
  margin: 0 0 16px;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #111926;
}

.help-article h1 {
  font-size: 1.8rem;
  margin-bottom: 18px;
  max-width: none;
}

.help-article h2 {
  font-size: clamp(1.3rem, 1.1vw, 1.75rem);
  margin-top: 30px;
}

.help-article h3 {
  font-size: 1.08rem;
  margin-top: 22px;
}

.help-article p,
.help-article li,
.help-article blockquote,
.help-article td,
.help-article th {
  line-height: 1.72;
  font-size: 1rem;
  color: #334052;
}

.help-article p,
.help-article ul,
.help-article ol,
.help-article blockquote,
.help-article table,
.help-article pre {
  margin: 0 0 18px;
}

.help-article ul,
.help-article ol {
  padding-left: 22px;
}

.help-article li + li {
  margin-top: 8px;
}

.help-article hr {
  border: 0;
  height: 1px;
  margin: 30px 0;
  background: linear-gradient(90deg, rgba(32, 34, 37, 0), rgba(32, 34, 37, 0.14), rgba(32, 34, 37, 0));
}

.help-article a {
  color: var(--help-accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.help-article strong {
  color: #131d2a;
}

.help-article blockquote {
  padding: 16px 18px;
  border-left: 4px solid #4d5157;
  border-radius: 0 16px 16px 0;
  background: rgba(77, 81, 87, 0.06);
}

.help-article code {
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(24, 25, 27, 0.045);
  border: 1px solid rgba(24, 25, 27, 0.07);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8em;
  color: #111926;
}

.help-article p code,
.help-article li code,
.help-article td code,
.help-article th code,
.help-article blockquote code {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.help-search-highlight {
  padding: 0.08em 0.2em;
  border-radius: 0.28em;
  background: #fff1a8;
  box-shadow: 0 0 0 1px rgba(224, 177, 0, 0.18);
  color: inherit;
}

.help-article pre {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--help-code-bg);
  color: var(--help-code-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.help-article pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.help-article table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--help-border);
  background: rgba(255, 255, 255, 0.7);
}

.help-article th,
.help-article td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--help-border);
}

.help-article th {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #495466;
  background: rgba(24, 25, 27, 0.04);
}

.help-article tr:last-child td {
  border-bottom: 0;
}

.help-article > :first-child {
  margin-top: 0;
}

.help-page-intro {
  max-width: 760px;
  margin: 0 0 22px;
}

.help-page-intro h1 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #111926;
}

.help-page-intro p {
  margin: 0;
  max-width: 62ch;
  color: #334052;
  font-size: 1rem;
  line-height: 1.72;
}

.help-home-hero {
  margin: 0 0 34px;
}

.help-home-hero-copy {
  max-width: none;
}

.help-search-form-home {
  max-width: 760px;
  margin-bottom: 22px;
}

.help-home-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 34px;
}

.help-home-area-card {
  display: block;
  padding: 24px;
  border: 1px solid rgba(27, 29, 32, 0.08);
  border-radius: 22px;
  background: #fbfbfc;
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.help-home-area-card:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 29, 32, 0.16);
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(20, 22, 24, 0.06);
}

.help-home-area-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: #6a737e;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.help-home-area-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.help-home-area-card p {
  margin: 0;
  color: var(--help-content-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.help-home-intro {
  max-width: 760px;
  margin-bottom: 0;
}

.help-search-page {
  max-width: none;
}

.help-search-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--help-content-muted);
  text-decoration: none;
  font-weight: 700;
}

.help-search-back:hover {
  color: var(--help-content-text);
}

.help-search-form {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.help-search-form-inline {
  margin-bottom: 18px;
}

.help-search-form-sidebar {
  position: relative;
  align-items: stretch;
  margin-bottom: 10px;
}

.help-search-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  color: var(--help-content-text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.help-sidebar .help-search-input {
  height: 42px;
  padding: 0 44px 0 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.98);
}

.help-sidebar .help-search-button {
  position: absolute;
  top: 50%;
  right: 6px;
  min-width: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  background: transparent;
  color: #202225;
  box-shadow: none;
}

.help-search-input::placeholder {
  color: #7c8796;
}

.help-search-input:focus {
  outline: none;
  border-color: rgba(74, 77, 82, 0.28);
  box-shadow: 0 0 0 4px rgba(74, 77, 82, 0.1);
}

.help-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 52px;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2b2c2f, #4a4d52);
  color: #f7f7f8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(24, 25, 27, 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.help-search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(24, 25, 27, 0.24);
  filter: brightness(1.04);
}

.help-sidebar .help-search-button:hover {
  transform: translateY(-50%);
  background: transparent;
  color: #202225;
  box-shadow: none;
  filter: none;
}

.help-search-button-icon {
  padding: 0;
}

.help-search-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-search-status {
  min-height: 24px;
  margin-bottom: 18px;
  color: var(--help-content-muted);
  font-weight: 600;
}

.help-search-results {
  display: grid;
  gap: 16px;
}

.help-search-result {
  padding: 22px;
  border: 1px solid rgba(24, 32, 43, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
}

.help-search-result h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.help-search-result p {
  margin-bottom: 0;
}

.help-search-result-meta {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(58, 58, 61, 0.08);
  color: #4a4d52;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-meta {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--help-border);
  color: var(--help-content-muted);
  font-size: 0.9rem;
}

.help-empty {
  color: var(--help-sidebar-muted);
}

.help-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-help-sidebar-collapsed .help-layout {
  grid-template-columns: var(--help-sidebar-collapsed-width) minmax(0, 1fr);
}

.is-help-sidebar-collapsed .help-sidebar {
  padding-left: 5px;
  padding-right: 5px;
}

.is-help-sidebar-collapsed .help-brand-copy,
.is-help-sidebar-collapsed .help-sidebar-search,
.is-help-sidebar-collapsed .help-sidebar-scroll {
  opacity: 0;
  pointer-events: none;
}

.is-help-sidebar-collapsed .help-brand-copy {
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.is-help-sidebar-collapsed .help-sidebar-top {
  justify-content: center;
}

.is-help-sidebar-collapsed .help-brand {
  width: 42px;
  gap: 0;
  justify-content: center;
}

.is-help-sidebar-collapsed .help-toggle-icon {
  transform: rotate(180deg);
}

.is-help-sidebar-collapsed .help-sidebar-actions {
  justify-content: center;
}

.is-help-sidebar-collapsed .help-sidebar-toggle {
  margin: 0 auto;
  transform: none;
}

@media (max-width: 1100px) {
  .help-main {
    padding: 24px;
  }

  .help-page-frame {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px;
  }

  .help-article {
    padding: 10px 0 24px;
  }
}

@media (max-width: 900px) {
  .help-home-areas {
    grid-template-columns: 1fr;
  }

  .help-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .help-sidebar {
    position: relative;
    height: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--help-sidebar-border);
  }

  .help-sidebar-top {
    min-height: 42px;
  }

  .help-sidebar-scroll {
    height: auto;
    max-height: none;
  }

  .help-main {
    height: auto;
    overflow: visible;
    padding: 18px;
  }

  .help-main-scroll {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .help-page-frame {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .help-page-outline {
    display: none;
  }

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

  .help-search-form {
    flex-direction: column;
  }

  .help-search-form-sidebar {
    display: none;
  }

  .is-help-sidebar-collapsed .help-layout {
    grid-template-columns: 1fr;
  }

  .is-help-sidebar-collapsed .help-sidebar {
    padding: 18px;
  }

  .is-help-sidebar-collapsed .help-sidebar-top {
    justify-content: flex-start;
  }

  .is-help-sidebar-collapsed .help-brand-copy,
  .is-help-sidebar-collapsed .help-sidebar-scroll {
    opacity: 1;
    pointer-events: auto;
  }

  .is-help-sidebar-collapsed .help-sidebar-toggle {
    transform: none;
  }

  .is-help-sidebar-collapsed .help-toggle-icon {
    transform: none;
  }
}

@media (max-width: 640px) {
  .help-sidebar {
    padding: 16px 14px 14px;
  }

  .help-article h1 {
    font-size: 1.8rem;
  }

  .help-article h2 {
    font-size: 1.3rem;
  }

  .help-article p,
  .help-article li,
  .help-article blockquote,
  .help-article td,
  .help-article th {
    font-size: 0.96rem;
  }

  .help-search-result {
    padding: 18px;
  }
}

/* ── Login widget & topbar ───────────────────────────────────────── */

.help-main-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 24px 0;
  min-height: 36px;
  flex-shrink: 0;
}

.help-user-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}

.help-user-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--help-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.help-user-name {
  color: var(--help-content-text);
  font-weight: 600;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-user-role {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.help-user-role--admin {
  background: #e0e0e0;
  color: #333;
}

.help-user-role--partner {
  background: #dcf5e1;
  color: #1f6b3a;
}

.help-user-role--user {
  background: #eef2ff;
  color: #3a5bc7;
}

.help-user-logout {
  color: var(--help-content-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.help-user-logout:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--help-content-text);
}

.help-user-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 8px;
  background: var(--help-accent);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.help-user-login:hover {
  background: #3a3d42;
}

/* ── Role-based content gating ───────────────────────────────────── */
/* Autores de markdown pueden envolver secciones con:
   <div class="help-role-partner">contenido solo para partner y admin</div>
   <div class="help-role-admin">contenido solo para admin</div>
   Anónimos y users sin rol ven solo contenido sin wrapper.           */

body[data-help-role="anonymous"] .help-role-partner,
body[data-help-role="anonymous"] .help-role-admin,
body[data-help-role="user"] .help-role-admin {
  display: none;
}

body[data-help-role="partner"] .help-role-admin {
  display: none;
}

/* Indicador visual sutil para admin que ve contenido restringido */
body[data-help-role="admin"] .help-role-admin,
body[data-help-role="admin"] .help-role-partner {
  border-left: 3px solid var(--help-accent);
  padding-left: 16px;
  margin-left: -19px;
}

body[data-help-role="partner"] .help-role-partner {
  border-left: 3px solid #1f6b3a;
  padding-left: 16px;
  margin-left: -19px;
}
