:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --ink: #141716;
  --muted: #66706b;
  --line: #dfe7e2;
  --line-strong: #c8d6ce;
  --green: #16966b;
  --green-dark: #087653;
  --blue: #2563eb;
  --violet: #7c3aed;
  --amber: #b87512;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(20, 23, 22, 0.08);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}

body.nav-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.topbar-title {
  justify-self: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.menu-toggle,
.close-nav {
  display: none;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.menu-toggle {
  justify-self: end;
  padding: 0 14px;
}

.close-nav {
  width: 40px;
  font-size: 28px;
  line-height: 1;
}

.guide-app {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow: auto;
  padding: 24px 18px 32px;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
}

.sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px 18px;
}

.sidebar h2,
.intro-copy h1,
.article-card h1,
.article-card h2,
.faq-panel h2 {
  margin: 0;
}

.sidebar h2 {
  margin-top: 4px;
  font-size: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.article-nav-list {
  display: grid;
  gap: 18px;
}

.nav-group {
  display: grid;
  gap: 8px;
}

.nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-group-title span:last-child {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--green-dark);
}

.nav-link {
  display: grid;
  width: 100%;
  gap: 4px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.hidden-link {
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: var(--line);
  background: var(--surface);
  outline: none;
}

.nav-link.is-active {
  border-color: #9ed2bf;
  background: #eef9f4;
  box-shadow: inset 3px 0 0 var(--green);
}

.nav-link span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.nav-link small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.content {
  width: 100%;
  max-width: 1280px;
  padding: 32px;
}

.help-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.intro-copy {
  display: flex;
  min-height: 370px;
  flex-direction: column;
  justify-content: center;
  padding: 36px 0;
}

.intro-copy h1 {
  max-width: 780px;
  margin-top: 10px;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: 0;
}

.intro-copy h1 span {
  display: block;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #4d5752;
  font-size: 18px;
  line-height: 1.55;
}

.search-field {
  display: grid;
  gap: 8px;
  width: min(100%, 720px);
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.intro-copy > .search-field:first-child {
  margin-top: 0;
  margin-bottom: 24px;
}

.search-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(20, 23, 22, 0.06);
}

.search-field input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(22, 150, 107, 0.16);
}

.mode-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  width: min(100%, 300px);
  min-height: 44px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mode-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.mode-tabs button.is-active {
  background: var(--ink);
  color: #fff;
}

.intro-media {
  position: relative;
  display: flex;
  min-height: 370px;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 42px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-media img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.intro-media figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #33413a;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

.quick-card {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(20, 23, 22, 0.05);
}

.quick-card:hover,
.quick-card:focus-visible {
  border-color: var(--accent, var(--green));
  outline: none;
  transform: translateY(-1px);
}

.quick-card.is-active {
  border-color: var(--accent, var(--green));
  background: #fbfcfb;
  box-shadow:
    inset 0 0 0 2px var(--accent, var(--green)),
    0 10px 30px rgba(20, 23, 22, 0.08);
}

.quick-card .quick-kicker {
  color: var(--accent, var(--green));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-card strong {
  font-size: 16px;
  line-height: 1.25;
}

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

.search-results {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-results h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

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

.result-item {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.result-item:hover,
.result-item:focus-visible {
  border-color: var(--green);
  outline: none;
}

.result-item small {
  color: var(--green-dark);
  font-weight: 800;
}

.result-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.article-panel,
.faq-panel {
  margin-top: 22px;
}

.article-card,
.faq-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(20, 23, 22, 0.06);
}

.article-card {
  overflow: hidden;
}

.article-header {
  display: grid;
  gap: 12px;
  padding: 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(238, 245, 241, 0.72), rgba(255, 255, 255, 0));
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: #edf7f2;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.pill.is-blue {
  background: #edf3ff;
  color: #1e4fc1;
}

.pill.is-violet {
  background: #f2edff;
  color: #6430c9;
}

.article-card h1,
.article-card h2 {
  font-size: 32px;
  line-height: 1.14;
  letter-spacing: 0;
}

.article-card .summary {
  max-width: 820px;
  margin: 0;
  color: #4d5752;
  font-size: 17px;
  line-height: 1.55;
}

.article-body {
  display: grid;
  gap: 24px;
  padding: 30px;
}

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

.article-section h3,
.faq-shell h3 {
  margin: 0;
  font-size: 18px;
}

.article-section ol,
.article-section ul,
.faq-answer {
  margin: 0;
  padding-left: 22px;
  color: #333c38;
  line-height: 1.7;
}

.article-section li + li,
.faq-answer li + li {
  margin-top: 8px;
}

.screenshot-section {
  gap: 16px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  align-items: start;
}

.screenshot-grid.is-single {
  grid-template-columns: minmax(220px, 360px);
}

.screenshot-card {
  margin: 0;
}

.screenshot-frame {
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fbfcfb, #eef5f1);
}

.screenshot-frame img {
  display: block;
  width: min(100%, 260px);
  max-height: 560px;
  border-radius: 24px;
  background: #101211;
  box-shadow: 0 16px 38px rgba(20, 23, 22, 0.18);
  object-fit: contain;
}

.contact-section {
  gap: 14px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-link {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: var(--green);
  outline: none;
}

.contact-link img,
.contact-initial {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.contact-initial {
  display: grid;
  place-items: center;
  background: #e9f6ef;
  color: var(--green-dark);
  font-weight: 900;
}

.contact-link span:not(.contact-initial) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-link strong,
.contact-link small {
  overflow-wrap: anywhere;
}

.contact-link strong {
  font-weight: 900;
}

.contact-link small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.callout {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #c8d6ce;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f3faf6;
}

.callout strong {
  color: var(--green-dark);
}

.callout p {
  margin: 0;
  color: #33413a;
  line-height: 1.6;
}

.callout.is-warning {
  border-color: #ead4ac;
  border-left-color: var(--amber);
  background: #fff8ea;
}

.callout.is-warning strong {
  color: #8b5200;
}

.callout.is-danger {
  border-color: #f3beb8;
  border-left-color: var(--danger);
  background: #fff5f4;
}

.callout.is-danger strong {
  color: var(--danger);
}

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

.related-link {
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.related-link:hover,
.related-link:focus-visible {
  border-color: var(--green);
  outline: none;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 30px 30px;
}

.article-nav-link {
  color: #0b57d0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-nav-link:hover,
.article-nav-link:focus-visible {
  color: #0842a0;
  outline: none;
}

.step-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.step-link:hover,
.step-link:focus-visible {
  border-color: var(--green);
  outline: none;
}

.faq-shell {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.faq-shell header {
  display: grid;
  gap: 8px;
}

.faq-shell h2 {
  font-size: 32px;
  line-height: 1.14;
  letter-spacing: 0;
}

.faq-shell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 16px 18px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  color: var(--green-dark);
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer-wrap {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px 40px;
}

.faq-answer {
  padding-left: 22px;
}

.faq-action {
  display: flex;
  justify-content: flex-end;
}

.faq-action .step-link {
  width: auto;
  min-width: 180px;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  line-height: 1.6;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand-link {
  color: inherit;
  text-decoration: none;
}

.footer-brand-link:hover,
.footer-brand-link:focus-visible {
  color: inherit;
  outline: none;
  text-decoration: none;
}

.trademark-mark {
  margin-left: 2px;
  font-size: 0.75em;
  vertical-align: super;
}

.nav-scrim {
  display: none;
}

@media (max-width: 1120px) {
  .quick-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-intro {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    min-height: 0;
    padding-bottom: 0;
  }

  .intro-media {
    min-height: 320px;
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 18px;
  }

  .topbar-title {
    display: none;
  }

  .menu-toggle,
  .close-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .guide-app {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: min(88vw, 360px);
    height: auto;
    padding-top: 22px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 24px 0 70px rgba(20, 23, 22, 0.16);
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    background: rgba(20, 23, 22, 0.32);
  }

  .content {
    max-width: none;
    padding: 24px 18px;
  }

  .intro-copy h1 {
    font-size: 36px;
  }

  .article-header,
  .article-body,
  .faq-shell {
    padding: 24px;
  }

  .article-footer {
    padding: 0 24px 24px;
  }
}

@media (max-width: 640px) {
  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    display: none;
  }

  .intro-copy h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .intro-media {
    min-height: 250px;
  }

  .intro-media img {
    min-height: 250px;
  }

  .intro-media figcaption {
    right: 10px;
    bottom: 10px;
    font-size: 12px;
  }

  .quick-paths,
  .contact-links,
  .result-grid,
  .related-links,
  .screenshot-grid,
  .screenshot-grid.is-single {
    grid-template-columns: 1fr;
  }

  .screenshot-frame {
    min-height: 0;
  }

  .screenshot-frame img {
    width: min(100%, 300px);
    max-height: 560px;
  }

  .article-card h1,
  .article-card h2,
  .faq-shell h2 {
    font-size: 26px;
  }

  .article-footer {
    flex-direction: column;
  }

  .step-link {
    width: 100%;
  }

  .page-footer {
    padding: 22px 18px;
  }
}

@media print {
  .topbar,
  .sidebar,
  .quick-paths,
  .search-results,
  .mode-tabs,
  .article-footer,
  .page-footer {
    display: none !important;
  }

  .guide-app,
  .help-intro {
    display: block;
  }

  .content {
    max-width: none;
    padding: 0;
  }

  .article-card,
  .faq-shell {
    border: 0;
    box-shadow: none;
  }
}
