/* ArbHQ Help V0.1 — static, calm guidance for first-time tree-business owners. */
.help-v01 {
  --help-ink: #101828;
  --help-copy: #475467;
  --help-muted: #667085;
  --help-brand: #143d35;
  --help-brand-strong: #0f302a;
  --help-brand-soft: #edf5f2;
  --help-line: #dfe7e3;
  --help-warm: #fffbeb;
  --help-warm-line: #f4d58d;
  color: var(--help-ink);
  font-size: 15px;
  line-height: 1.6;
}

.help-v01 *,
.help-v01 *::before,
.help-v01 *::after { box-sizing: border-box; }

.help-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.help-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfe3dc;
  border-radius: 24px;
  background: linear-gradient(135deg, #fbfffc 0%, #edf5f2 100%);
  padding: clamp(24px, 5vw, 52px);
  box-shadow: 0 8px 30px rgba(20, 61, 53, 0.07);
}

.help-hero::after {
  position: absolute;
  right: -76px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 38px solid rgba(20, 61, 53, 0.05);
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.help-eyebrow {
  margin: 0 0 8px;
  color: #176b45;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.help-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--help-ink);
  font-size: clamp(31px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.help-hero-copy {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--help-copy);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.62;
}

.help-home-message {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 790px;
  margin-top: 24px;
  align-items: center;
  gap: 14px;
  border: 1px solid #b9d8cd;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 15px 17px;
}

.help-home-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--help-brand);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.help-home-message strong,
.help-home-message span { display: block; }
.help-home-message strong { font-size: 16px; }
.help-home-message span { margin-top: 2px; color: var(--help-copy); }

.help-workflow-wrap {
  position: relative;
  z-index: 1;
  margin-top: 32px;
}

.help-workflow-title {
  margin: 0 0 11px;
  color: var(--help-copy);
  font-size: 13px;
  font-weight: 800;
}

.help-workflow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-workflow li {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: solid var(--help-line);
  border-width: 1px 1px 1px 0;
  background: #fff;
  padding: 13px 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.help-workflow li:first-child {
  border-left-width: 1px;
  border-radius: 12px 0 0 12px;
}
.help-workflow li:last-child { border-radius: 0 12px 12px 0; }
.help-workflow li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  right: -7px;
  width: 13px;
  height: 13px;
  border: solid var(--help-line);
  border-width: 1px 1px 0 0;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.help-quick-links {
  display: flex;
  margin: 18px 0 0;
  flex-wrap: wrap;
  gap: 8px;
}

.help-quick-links a {
  border: 1px solid var(--help-line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  color: var(--help-brand);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.help-quick-links a:hover { border-color: var(--help-brand); background: #fbfffc; }

.help-section {
  margin-top: 22px;
  border: 1px solid var(--help-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.035);
}

.help-home-base { padding: clamp(20px, 4vw, 30px); }

.help-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.help-section-heading h2,
.help-topic h2,
.help-support h2 {
  margin: 0;
  color: var(--help-ink);
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.help-section-heading p,
.help-topic-intro,
.help-support p {
  margin: 7px 0 0;
  color: var(--help-copy);
}

.help-home-link,
.help-primary-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--help-brand);
  padding: 10px 14px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.help-home-link:hover,
.help-primary-link:hover { background: var(--help-brand-strong); }

.help-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.help-overview-card {
  border: 1px solid #e4ebe8;
  border-radius: 14px;
  background: #fbfcfc;
  padding: 15px;
}
.help-overview-card h3 { margin: 0; font-size: 14px; font-weight: 800; }
.help-overview-card p { margin: 5px 0 0; color: var(--help-muted); font-size: 14px; line-height: 1.5; }

.help-caught-up {
  display: flex;
  margin-top: 16px;
  align-items: flex-start;
  gap: 10px;
  border-left: 4px solid #22a06b;
  border-radius: 0 12px 12px 0;
  background: var(--help-brand-soft);
  padding: 12px 14px;
  color: #344054;
}
.help-caught-up strong { color: var(--help-brand); }

.help-topic-list { display: grid; gap: 12px; margin-top: 22px; }

.help-topic {
  overflow: hidden;
  border: 1px solid var(--help-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.035);
}

.help-topic-toggle {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 0;
  background: transparent;
  padding: 20px 22px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.help-topic-toggle:hover { background: #fbfcfc; }
.help-topic-toggle:focus-visible,
.help-quick-links a:focus-visible,
.help-home-link:focus-visible,
.help-primary-link:focus-visible,
.help-image-button:focus-visible,
.help-lightbox-close:focus-visible {
  outline: 3px solid rgba(20, 61, 53, 0.25);
  outline-offset: 3px;
}

.help-topic-toggle-copy { min-width: 0; }
.help-topic-toggle-kicker {
  display: block;
  margin-bottom: 3px;
  color: #176b45;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.help-topic-toggle-title { display: block; color: var(--help-ink); font-size: 19px; font-weight: 800; line-height: 1.3; }
.help-topic-toggle-summary { display: block; margin-top: 4px; color: var(--help-muted); font-size: 14px; line-height: 1.45; }

.help-topic-toggle-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--help-brand-soft);
  color: var(--help-brand);
  font-size: 21px;
  font-weight: 500;
  transition: transform 160ms ease;
}
.help-topic-toggle[aria-expanded="true"] .help-topic-toggle-icon { transform: rotate(45deg); }

.help-topic-panel { border-top: 1px solid #edf1ef; padding: 22px; }
.help-topic-panel[hidden] { display: none !important; }

.help-topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.help-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-steps > li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  color: var(--help-copy);
}
.help-step-number {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--help-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.help-steps strong { display: block; margin-bottom: 2px; color: var(--help-ink); }
.help-steps p { margin: 0; }

.help-note,
.help-warning,
.help-future-media {
  border: 1px solid #cfe3dc;
  border-radius: 14px;
  background: #fbfffc;
  padding: 15px 16px;
  color: #344054;
}
.help-note h3,
.help-warning h3,
.help-future-media h3 { margin: 0; color: var(--help-ink); font-size: 15px; font-weight: 800; }
.help-note p,
.help-warning p,
.help-future-media p { margin: 6px 0 0; }
.help-warning { border-color: var(--help-warm-line); background: var(--help-warm); }

.help-check-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.help-check-list li { position: relative; padding-left: 22px; color: var(--help-copy); }
.help-check-list li::before { position: absolute; left: 0; color: #176b45; font-weight: 900; content: "✓"; }

.help-invoice-flow {
  display: flex;
  margin: 16px 0 20px;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.help-invoice-flow span {
  border: 1px solid var(--help-line);
  border-radius: 999px;
  background: #fbfcfc;
  padding: 7px 10px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}
.help-invoice-flow b { color: #98a2b3; font-weight: 500; }

.help-page-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}
.help-page-link {
  display: block;
  border: 1px solid var(--help-line);
  border-radius: 13px;
  background: #fff;
  padding: 13px 14px;
  color: inherit;
  text-decoration: none;
}
.help-page-link:hover { border-color: #9bc8b7; background: #fbfffc; }
.help-page-link strong { display: block; color: var(--help-brand); }
.help-page-link span { display: block; margin-top: 3px; color: var(--help-muted); font-size: 13px; line-height: 1.45; }

.help-tool-grid,
.help-choice-grid {
  display: grid;
  gap: 12px;
}
.help-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.help-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.help-tool-card,
.help-choice-card {
  border: 1px solid var(--help-line);
  border-radius: 14px;
  background: #fbfcfc;
  padding: 15px;
}
.help-tool-card h3,
.help-choice-card h3 { margin: 0; font-size: 15px; font-weight: 800; }
.help-tool-card p,
.help-choice-card p { margin: 6px 0 0; color: var(--help-copy); font-size: 14px; }
.help-choice-card.recommended { border-color: #9bc8b7; background: #fbfffc; }
.help-choice-card.xero { border-color: #b8d5ec; background: #f7fbff; }

.help-badges { display: flex; margin-bottom: 10px; flex-wrap: wrap; gap: 7px; }
.help-badge {
  display: inline-flex;
  border-radius: 999px;
  background: #f2f4f7;
  padding: 5px 9px;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.help-badge.optional { background: #eaf2ff; color: #175cd3; }

.help-xero-intro { margin-bottom: 20px; }
.help-xero-intro > p { margin: 0 0 14px; color: var(--help-copy); }

.help-xero-steps { display: grid; gap: 20px; }
.help-xero-step {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: start;
  border-top: 1px solid #edf1ef;
  padding-top: 20px;
}
.help-xero-step:first-child { border-top: 0; padding-top: 0; }
.help-xero-step-copy { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; }
.help-xero-step-copy h3 { margin: 0; color: var(--help-ink); font-size: 16px; font-weight: 800; }
.help-xero-step-copy p { margin: 5px 0 0; color: var(--help-copy); }

.help-figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.help-figure { min-width: 0; margin: 0; }
.help-image-button {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d7e0dc;
  border-radius: 12px;
  background: #f8faf9;
  padding: 0;
  cursor: zoom-in;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}
.help-image-button:hover { border-color: #9bc8b7; }
.help-image-button img { display: block; width: 100%; height: auto; max-width: 100%; }
.help-figure figcaption { margin-top: 7px; color: var(--help-muted); font-size: 12px; line-height: 1.4; }
.help-figure.tall .help-image-button { max-width: 360px; margin-inline: auto; }

.help-support {
  margin-top: 22px;
  border: 1px solid #cfe3dc;
  border-radius: 20px;
  background: #fbfffc;
  padding: 24px;
  text-align: center;
}
.help-support .help-primary-link { margin-top: 14px; }
.help-support .help-legal-link { display: block; width: max-content; margin: 12px auto 0; color: var(--help-copy); font-size: 13px; font-weight: 700; }
.help-support .help-legal-link:hover { color: var(--help-brand-strong); }

.help-lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 16px;
  background: #fff;
  padding: 48px 14px 14px;
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.35);
}
.help-lightbox::backdrop { background: rgba(16, 24, 40, 0.72); }
.help-lightbox img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.help-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 20px;
  cursor: pointer;
}

.dark .help-v01 { --help-ink: #f2f4f7; --help-copy: #d0d5dd; --help-muted: #98a2b3; --help-line: #344054; }
.dark .help-hero,
.dark .help-section,
.dark .help-topic,
.dark .help-support { border-color: #344054; background: #101828; }
.dark .help-home-message,
.dark .help-workflow li,
.dark .help-workflow li::after,
.dark .help-overview-card,
.dark .help-page-link,
.dark .help-tool-card,
.dark .help-choice-card { border-color: #344054; background: #1d2939; }
.dark .help-topic-toggle:hover { background: #1d2939; }
.dark .help-topic-panel { border-color: #344054; }

@media (max-width: 900px) {
  .help-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-topic-layout,
  .help-xero-step { grid-template-columns: 1fr; }
  .help-tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .help-shell { padding: 14px 12px 34px; }
  .help-hero { border-radius: 18px; padding: 23px 18px; }
  .help-home-message { align-items: flex-start; }
  .help-workflow { grid-template-columns: 1fr; gap: 7px; }
  .help-workflow li {
    justify-content: flex-start;
    border-width: 1px;
    border-radius: 10px !important;
    padding: 10px 13px 10px 42px;
    text-align: left;
  }
  .help-workflow li::before {
    position: absolute;
    left: 13px;
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--help-brand-soft);
    color: var(--help-brand);
    font-size: 11px;
    font-weight: 900;
    content: counter(list-item);
  }
  .help-workflow li:not(:last-child)::after { display: none; }
  .help-section-heading { display: block; }
  .help-home-link { margin-top: 14px; }
  .help-overview-grid,
  .help-page-map,
  .help-choice-grid,
  .help-figure-grid { grid-template-columns: 1fr; }
  .help-topic-toggle { min-height: 72px; padding: 17px 16px; }
  .help-topic-panel { padding: 18px 16px; }
  .help-topic-toggle-summary { display: none; }
  .help-xero-step { gap: 14px; }
  .help-figure.tall .help-image-button { max-width: 100%; }
  .help-invoice-flow { align-items: stretch; }
  .help-invoice-flow span { width: 100%; border-radius: 10px; }
  .help-invoice-flow b { display: none; }
}

@media (max-width: 390px) {
  .help-home-icon { width: 34px; height: 34px; }
  .help-quick-links a { width: 100%; border-radius: 10px; text-align: center; }
  .help-overview-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .help-topic-toggle-icon { transition: none; }
  .help-v01 * { scroll-behavior: auto !important; }
}

/* Help V0.2 recovery console. The V0.1 rules above remain in place temporarily
   for a later proven-dead mechanical cleanup; this surface uses only the rules below. */
.help-recovery { width: min(1120px, 100%); margin: 0 auto; padding: 24px; color: #101828; font-size: 15px; line-height: 1.5; }
.help-recovery * { box-sizing: border-box; }
.help-page-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); gap: 20px; align-items: start; }
.help-page-heading { padding: 4px 0; }
.help-page-heading h1 { margin: 0; color: #101828; font-size: clamp(28px, 4vw, 34px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.help-locator-card, .help-console, .help-faq { border: 1px solid #dfe7e3; border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.help-locator-card { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 16px; }
.help-locator-heading h1, .help-console-heading h2, .help-faq h2, .help-console-panel h3, .help-console-panel h4 { margin: 0; color: #101828; font-weight: 800; line-height: 1.25; }
.help-locator-heading h2 { margin: 0; color: #101828; font-size: 17px; font-weight: 800; line-height: 1.25; }
.help-locator-heading p, .help-console-panel p, .help-faq p { margin: 6px 0 0; color: #475467; }
.help-locator-search { display: flex; align-items: center; gap: 8px; }
.help-locator-search input { width: 100%; min-width: 0; border: 1px solid #cfd8d4; border-radius: 10px; background: #fff; padding: 11px 12px; color: #101828; font: inherit; }
.help-locator-search input:focus, .help-topic-select:focus-visible { border-color: #143d35; outline: 3px solid rgba(20,61,53,.15); outline-offset: 1px; }
.help-locator-search button { flex: 0 0 auto; border: 0; background: transparent; color: #475467; font: inherit; font-weight: 700; cursor: pointer; }
.help-locator-results { overflow: hidden; border-top: 1px solid #edf1ef; }
.help-locator-results[hidden] { display: none; }
.help-locator-state { margin: 0; padding: 13px 2px 0; color: #667085; font-size: 14px; }
.help-locator-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 13px 2px; border-bottom: 1px solid #edf1ef; }
.help-locator-result:last-child { border-bottom: 0; }
.help-locator-title { margin: 0; color: #101828; font-weight: 800; overflow-wrap: anywhere; }
.help-locator-meta { margin: 3px 0 0; color: #667085; font-size: 13px; overflow-wrap: anywhere; }
.help-locator-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.help-locator-primary, .help-locator-alt, .help-link-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.help-locator-primary, .help-link-button { background: #143d35; color: #fff; }
.help-locator-primary:hover, .help-link-button:hover { background: #0f302a; }
.help-locator-alt { border: 1px solid #d0d5dd; color: #344054; background: #fff; }
.help-locator-alt:hover { border-color: #9bc8b7; color: #143d35; }
.help-console { margin-top: 16px; overflow: hidden; }
.help-console-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 18px 10px; }
.help-console-heading h2 { font-size: 21px; }
.help-topic-select-label { display: none; }
.help-topic-select { display: none; max-width: 100%; border: 1px solid #cfd8d4; border-radius: 9px; background: #fff; padding: 9px 10px; color: #101828; font: inherit; }
.help-topic-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 14px; border-bottom: 1px solid #edf1ef; }
.help-topic-tab { border: 1px solid #d8e2de; border-radius: 999px; background: #fff; padding: 7px 10px; color: #344054; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.help-topic-tab[aria-selected="true"] { border-color: #143d35; background: #143d35; color: #fff; }
.help-topic-tab:focus-visible, .help-locator-primary:focus-visible, .help-locator-alt:focus-visible, .help-link-button:focus-visible, .help-faq summary:focus-visible { outline: 3px solid rgba(20,61,53,.25); outline-offset: 2px; }
.help-topic-panels { padding: 19px; }
.help-console-panel[hidden] { display: none !important; }
.help-console-panel h3 { font-size: 20px; }
.help-console-panel p { font-size: 15.5px; }
.help-console-panel h4 { margin-top: 18px; font-size: 15px; }
.help-console-panel a:not(.help-link-button) { color: #143d35; font-weight: 800; }
.help-console-panel > .help-link-button { margin-top: 15px; }
.help-copy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.help-copy-grid article { border: 1px solid #e2e9e6; border-radius: 12px; background: #fbfcfc; padding: 13px; }
.help-copy-grid h3 { font-size: 14px; }
.help-copy-grid p { font-size: 14px; }
.help-compact-figure { max-width: 350px; margin: 16px 0 0; }
.help-faq { margin-top: 16px; padding: 18px; }
.help-faq h2 { font-size: 20px; }
.help-faq-list { display: grid; gap: 8px; margin-top: 12px; }
.help-faq details { border: 1px solid #e1e7e4; border-radius: 10px; background: #fff; padding: 0 13px; }
.help-faq summary { padding: 12px 0; color: #101828; font-weight: 700; cursor: pointer; }
.help-faq details p { padding: 0 0 12px; }
.help-recovery + .help-support { margin: 16px auto 0; width: min(1120px, calc(100% - 48px)); }
.help-lightbox { position: fixed; inset: 0; width: auto; max-width: 90vw; height: auto; max-height: 85vh; margin: auto; overflow: visible; border-radius: 12px; background: transparent; padding: 0; box-shadow: none; }
.help-lightbox::backdrop { background: rgba(16,24,40,.76); }
.help-lightbox img { width: auto; max-width: 90vw; height: auto; max-height: 85vh; object-fit: contain; }
.help-lightbox-close { top: -12px; right: -12px; z-index: 1; box-shadow: 0 2px 8px rgba(16,24,40,.25); }
.dark .help-locator-card, .dark .help-console, .dark .help-faq, .dark .help-copy-grid article, .dark .help-faq details { border-color: #344054; background: #101828; }
.dark .help-recovery, .dark .help-page-heading h1, .dark .help-locator-heading h2, .dark .help-console-heading h2, .dark .help-faq h2, .dark .help-console-panel h3, .dark .help-console-panel h4, .dark .help-locator-title, .dark .help-faq summary { color: #f2f4f7; }
.dark .help-locator-search input, .dark .help-topic-select, .dark .help-locator-alt, .dark .help-topic-tab { border-color: #475467; background: #1d2939; color: #f2f4f7; }
@media (max-width: 700px) { .help-recovery { padding: 14px 12px 34px; } .help-page-top { grid-template-columns: 1fr; gap: 12px; } .help-page-heading { padding: 2px 0; } .help-locator-result { grid-template-columns: 1fr; } .help-locator-actions { justify-content: flex-start; } .help-topic-tabs { display: none; } .help-topic-select-label, .help-topic-select { display: block; } .help-console-heading { align-items: flex-start; } .help-console-heading h2 { padding-top: 7px; } .help-copy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .help-recovery + .help-support { width: calc(100% - 24px); } .help-lightbox-close { top: 8px; right: 8px; } }
@media (max-width: 390px) { .help-copy-grid { grid-template-columns: 1fr; } .help-locator-search { align-items: stretch; flex-direction: column; } .help-locator-search button { min-height: 34px; } }

/* Help V0.2 final desktop layout. The right rail is one independent vertical flow. */
.help-recovery { width: 100%; max-width: none; margin: 0; padding: 24px; display: grid; grid-template-columns: minmax(480px, 1fr) minmax(220px, clamp(220px, calc(100vw - 1073px + 220px), 400px)); gap: 16px 20px; align-items: start; }
.help-page-top { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.help-page-heading { display: none; }
.help-locator-card { grid-area: auto; min-width: 0; }
.help-page-top > .help-locator-card, .help-page-top > .help-locator-workspace { width: 100%; align-self: stretch; }
.help-console { grid-column: 1; grid-row: 1; margin-top: 0; }
.help-faq { grid-column: 1; grid-row: 2; margin-top: 0; }
.help-recovery .help-support { grid-column: 1; grid-row: 3; width: auto; margin: 0; }
.help-console-heading { min-height: 0; padding: 0; }
.help-locator-search input { min-width: 0; width: 100%; flex: 1 1 auto; }
.help-recovery .help-support h2 { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.help-locator-workspace { grid-area: auto; min-height: 0; border: 1px solid #dfe7e3; border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.help-locator-workspace[hidden] { display: none; }
.help-locator-workspace-inner { max-height: min(620px, 65vh); overflow: auto; padding: 10px; }
.help-locator-result-select { display: block; width: 100%; border: 0; border-bottom: 1px solid #edf1ef; background: transparent; padding: 12px; color: inherit; text-align: left; cursor: pointer; }
.help-locator-result-select:last-child { border-bottom: 0; }
.help-locator-result-select:hover { background: #fbfffc; }
.help-locator-result-select:focus-visible, .help-locator-back:focus-visible, .help-locator-history-action:focus-visible { outline: 3px solid rgba(20,61,53,.25); outline-offset: -3px; }
.help-locator-result-select .help-locator-meta { margin-top: 4px; }
.help-locator-state-line { margin: 5px 0 0; color: #143d35; font-size: 13px; font-weight: 800; }
.help-locator-selected { padding: 16px; }
.help-locator-back { border: 0; background: transparent; padding: 0; color: #143d35; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.help-locator-selected h3 { margin: 14px 0 0; color: #101828; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.help-locator-selected .help-locator-meta { margin-top: 4px; }
.help-locator-section { margin-top: 16px; border-top: 1px solid #edf1ef; padding-top: 14px; }
.help-locator-section h4 { margin: 0; color: #101828; font-size: 13px; font-weight: 800; }
.help-locator-current-state { margin: 5px 0 0; color: #143d35; font-weight: 800; }
.help-locator-open-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.help-locator-history { display: grid; gap: 8px; margin: 9px 0 0; padding: 0; list-style: none; }
.help-locator-history li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; align-items: baseline; color: #475467; font-size: 13px; }
.help-locator-history time { color: #667085; white-space: nowrap; }
.help-locator-history-action { margin-left: 6px; color: #143d35; font-weight: 800; text-decoration: none; }
.help-locator-record-link { margin-top: 15px; }
.help-xero-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0; color: #143d35; font-weight: 800; }
.help-xero-route span[aria-hidden="true"] { color: #667085; }
.dark .help-locator-workspace { border-color: #344054; background: #101828; }
.dark .help-locator-result-select:hover { background: #1d2939; }
.dark .help-locator-selected h3, .dark .help-locator-section h4 { color: #f2f4f7; }

@media (min-width: 701px) and (max-width: 1072px) {
  .help-recovery {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .help-page-top {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }
  .help-console { grid-column: 1; grid-row: 2; }
  .help-faq { grid-column: 1; grid-row: 3; }
  .help-recovery .help-support { grid-column: 1; grid-row: 4; }
  .help-copy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1500px) { .help-topic-tabs { flex-wrap: nowrap; } .help-topic-tab { flex: 1 1 0; padding-inline: 7px; white-space: nowrap; } }
@media (max-width: 700px) { .help-recovery { display: block; padding: 14px 12px 34px; } .help-page-top { display: flex; gap: 14px; } .help-locator-card, .help-console, .help-faq, .help-recovery .help-support, .help-locator-workspace { margin-top: 14px; } .help-locator-card { margin-top: 0; } .help-console-heading { padding: 14px 16px 0; } .help-locator-workspace-inner { max-height: min(560px, 65vh); } }
