:root { --bg: #ECEFEA; --surface: #FFFFFF; --ink: #141B18; --muted: #56615B; --line: #D3D9D1; --accent: #2741D3; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #0E1210; --surface: #161B18; --ink: #E4EAE6; --muted: #98A49D; --line: #2A322E; --accent: #8E9DFF; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body, 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif); font-size: 16px; line-height: 1.6; }
a { color: var(--accent); }
.top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; }
.mark img { width: 26px; height: 26px; }
.top .go { margin-left: auto; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 8px; }
@media (prefers-color-scheme: dark) { .top .go { color: #0E1210; } }
main { max-width: 720px; margin: 0 auto; padding: 40px 20px 64px; }
h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
p, li { color: var(--ink); }
.lede { font-size: 19px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 22px 0; }
.card p { margin: 0; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
footer { border-top: 1px solid var(--line); padding: 20px; text-align: center; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); margin: 0 8px; }

/* Help pages */
main.help { max-width: 1120px; }
.help-hero { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; justify-content: space-between; margin-bottom: 10px; }
.help-hero .lede { margin: 0; max-width: 36em; }
.open-tool { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 9px; text-decoration: none; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .open-tool { color: #0E1210; } }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; } .crumbs a { color: var(--muted); }
.help-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin-top: 30px; }
.toc { position: sticky; top: 18px; align-self: start; font-size: 14px; max-height: calc(100vh - 36px); overflow: auto; }
.toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; padding: 4px 0 4px 10px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); line-height: 1.35; }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.help-body { min-width: 0; }
.help-body > h2 { scroll-margin-top: 16px; border-top: 1px solid var(--line); padding-top: 30px; margin-top: 40px; }
.help-body > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.help-body h3 { font-size: 17px; margin: 26px 0 6px; scroll-margin-top: 16px; }
.help-body p, .help-body li { max-width: 46em; }
figure { margin: 20px 0 24px; }
figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px -18px rgba(20, 27, 24, .45); }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin: 14px 0; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
@media (prefers-color-scheme: dark) { ol.steps > li::before { color: #0E1210; } }
kbd { font-family: "Fragment Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface); white-space: nowrap; }
.tablewrap { overflow-x: auto; margin: 14px 0 18px; }
table.t { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.t th, table.t td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); }
table.t tr:last-child td { border-bottom: 0; }
.tip { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 8px; margin: 16px 0; max-width: 46em; }
.tip.warn { border-left-color: #C2410C; }
.tip p { margin: 0; }
details.faq { border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin: 10px 0; background: var(--surface); max-width: 48em; }
details.faq summary { font-weight: 700; cursor: pointer; padding: 13px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding-bottom: 12px; }
details.faq > div p:first-child { margin-top: 0; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 24px 0 10px; }
.guide { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.guide:hover { border-color: var(--ink); }
.guide h2 { margin: 0 0 6px; font-size: 20px; }
.guide p { margin: 0; color: var(--muted); font-size: 15px; }
.guide span { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 700; font-size: 15px; }
.cols2 { columns: 2 240px; column-gap: 32px; } .cols2 li { break-inside: avoid; }
@media (max-width: 860px) {
  .help-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
  .toc a { border-left: 0; padding-left: 0; }
}
