/* Surface values match src/styles/base.css. */
:root {
  color-scheme: light;
  --page: #e2e2e2; --text: #151515; --muted: #666666;
  --line: #cfcfcf; --strong: #b8b8b8; --surface: #ffffff; --hover: #eeeeee;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility;
  background: var(--page); color: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #16181a; --text: #f2f3f4; --muted: #b7bcc0;
    --line: #44494d; --strong: #60666b; --surface: #222528; --hover: #303438;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #16181a; --text: #f2f3f4; --muted: #b7bcc0;
  --line: #44494d; --strong: #60666b; --surface: #222528; --hover: #303438;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -100px; padding: 12px; background: var(--surface); z-index: 3; }
.skip:focus { top: 12px; }
.help-header { position: sticky; top: 0; z-index: 2; height: 64px; border-bottom: 1px solid var(--line); background: var(--surface); }
.help-wordmark { position: absolute; top: 50%; left: 24px; display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 1.12rem; font-weight: 700; line-height: 1; text-decoration: none; transform: translateY(-50%); }
.help-wordmark img { flex: 0 0 22px; }
.help-compact-home { position: absolute; top: 50%; left: 8px; display: none; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; padding: 2px; background: var(--surface); transform: translateY(-50%); }
.help-compact-home:hover, .help-compact-home:focus-visible { border-color: var(--strong); background: var(--hover); outline: none; }
.help-compact-home:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.help-compact-home img { width: 22px; height: 22px; }
.help-account-menu { position: absolute; top: 50%; right: 24px; transform: translateY(-50%); }
.help-account-trigger { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; padding: 2px; background: var(--surface); color: var(--text); cursor: pointer; list-style: none; }
.help-home-link { position: absolute; top: 50%; right: 68px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); transform: translateY(-50%); }
.help-home-link svg { width: 16px; height: 16px; }
.help-home-link:hover, .help-home-link:focus-visible { background: var(--hover); border-color: var(--strong); }
.help-home-link:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (min-width: 1421px) { .help-home-link { right: calc(68px - (100vw - 100%)); } }
@media (min-width: 1921px) { .help-home-link { right: calc((100vw - 1920px) / 2 + 68px - (100vw - 100%)); } }
@media (min-width: 761px) and (max-width: 1420px) { .help-home-link { right: calc(5vw + 44px); } }
@media (max-width: 760px) { .help-home-link { right: 48px; width: 32px; height: 32px; } }
.help-account-trigger::-webkit-details-marker { display: none; }
.help-account-trigger:hover, .help-account-menu[open] .help-account-trigger, .help-account-trigger:focus-visible { border-color: var(--strong); background: var(--hover); outline: none; }
.help-account-trigger:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.help-account-avatar { display: grid; width: 100%; height: 100%; place-items: center; border-radius: 50%; background: var(--hover); }
.help-account-avatar svg { width: 14px; height: 14px; }
.help-account-popover { position: absolute; top: calc(100% + 10px); right: 0; display: grid; width: min(292px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 8px; padding: 0; background: var(--surface); box-shadow: 0 18px 36px rgb(0 0 0 / 14%); }
.help-account-section { position: relative; display: grid; gap: 9px; padding: 12px; }
.help-account-section + .help-account-section { border-top: 1px solid var(--line); }
.help-account-section strong { color: var(--text); font-size: 0.76rem; font-weight: 600; }
.help-setting-trigger { display: flex; align-items: center; gap: 8px; min-height: 36px; border: 0; border-radius: 6px; padding: 6px 8px; background: var(--hover); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.help-setting-trigger small { margin-left: auto; font-size: 0.7rem; color: var(--muted); }
.help-setting-trigger > span { font-size: 20px; line-height: 1; }
.help-account-choice-group { position: absolute; z-index: 3; display: grid; width: 168px; gap: 3px; border: 1px solid var(--line); border-radius: 8px; padding: 5px; background: var(--surface); box-shadow: 0 10px 28px rgb(0 0 0 / 16%); }
.help-account-choice-group[hidden] { display: none; }
.help-account-choice-group button, .help-account-choice-group a { display: grid; min-width: 0; min-height: 44px; align-items: center; border: 1px solid transparent; border-radius: 6px; padding: 6px 8px; background: var(--hover); color: var(--muted); cursor: pointer; font: inherit; font-size: 0.76rem; font-weight: 500; text-align: left; text-decoration: none; }
.help-account-choice-group button:hover, .help-account-choice-group button:focus-visible, .help-account-choice-group a:hover, .help-account-choice-group a:focus-visible { border-color: var(--strong); color: var(--text); outline: none; }
.help-account-choice-group [aria-pressed="true"], .help-account-choice-group [aria-current] { border-color: var(--text); background: var(--text); color: var(--surface); }
.help-settings-dialog { width: min(360px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); border: 1px solid var(--strong); border-radius: 8px; padding: 0; background: var(--surface); color: var(--text); box-shadow: 0 28px 80px rgb(0 0 0 / 34%); }
.help-settings-dialog::backdrop { background: rgb(7 9 11 / 64%); }
.help-settings-dialog > header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 18px; }
.help-settings-dialog h2 { margin: 0; font-size: 1.05rem; }
.help-settings-dialog > header button { width: 40px; height: 40px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.help-settings-options { padding: 12px; }
.help-settings-options .help-account-choice-group { position: static; width: auto; border: 0; padding: 0; box-shadow: none; gap: 6px; }
.help-settings-options button, .help-settings-options a { min-height: 48px; font-size: 0.9rem; }
@media (max-width: 1420px) { .help-setting-trigger { min-height: 44px; } }
@media (min-width: 1421px) { .help-account-menu { right: calc(24px - (100vw - 100%)); } }
@media (min-width: 1921px) { .help-wordmark { left: calc((100vw - 1920px) / 2 + 24px); } .help-account-menu { right: calc((100vw - 1920px) / 2 + 24px - (100vw - 100%)); } }
.layout { max-width: 1120px; margin: auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; padding: 32px 24px 64px; }
aside { align-self: start; position: sticky; top: 96px; max-height: calc(100dvh - 120px); overflow-y: auto; }
aside summary { padding: 8px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
aside summary svg { display: none; }
aside ol { padding-left: 22px; line-height: 1.6; color: var(--muted); }
aside li { margin: 4px 0; }
aside a { display: block; padding: 7px 8px; border-radius: 6px; font-size: 14px; text-decoration: none; }
aside a:hover, aside a:focus-visible, aside a.is-current { background: var(--hover); color: var(--text); }
aside a.is-current { font-weight: 600; }
main { min-width: 0; max-width: 760px; }
h1 { font-size: 30px; line-height: 1.3; margin: 0 0 16px; font-weight: 700; }
h2 { font-size: 21px; line-height: 1.4; margin: 0 0 16px; font-weight: 700; }
h3 { font-size: 16px; margin: 24px 0 8px; font-weight: 600; }
p, li { font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
p { margin: 12px 0; }
main section { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 32px; }
.intro { color: var(--muted); }
.example { border-left: 2px solid var(--strong); padding-left: 18px; margin: 24px 0; }
footer { border-top: 1px solid var(--line); padding: 10px 5%; background: var(--surface); font-size: 0.78rem; line-height: 1.7; color: var(--muted); }
footer a { font-weight: 600; }
@media (max-width: 760px) {
  html { scroll-padding-top: 128px; }
  .help-header { height: 60px; }
  .help-wordmark { display: none; }
  .help-compact-home { display: grid; width: 32px; height: 32px; }
  .help-account-menu { right: 8px; }
  .help-account-trigger { width: 32px; height: 32px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px 48px; }
  aside { align-self: start; justify-self: stretch; position: sticky; top: 68px; z-index: 1; height: 32px; overflow: visible; border: 0; padding: 0; background: transparent; box-shadow: none; }
  aside details { position: relative; width: 100%; }
  aside summary { display: flex; width: 100%; height: 32px; min-width: 0; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: var(--surface); color: var(--text); font-size: 0.78rem; list-style: none; }
  aside summary::-webkit-details-marker { display: none; }
  aside summary:hover, aside details[open] summary, aside summary:focus-visible { border-color: var(--strong); background: var(--hover); outline: none; }
  aside summary:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
  aside summary svg { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
  aside summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  aside details[open] ol { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; max-height: calc(100dvh - 116px); overflow-y: auto; list-style: none; counter-reset: contents; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin: 0; background: var(--surface); box-shadow: 0 10px 24px rgb(0 0 0 / 8%); }
  aside details[open] li { position: relative; counter-increment: contents; margin: 2px 0; }
  aside details[open] li::before { position: absolute; top: 7px; left: 8px; z-index: 1; width: 16px; color: var(--muted); content: counter(contents) "."; font-size: 0.78rem; line-height: 1.6; pointer-events: none; text-align: right; }
  aside details[open] a { padding-left: 32px; }
  h1 { font-size: 26px; } h2 { font-size: 20px; }
}
@media (min-width: 761px) and (max-width: 1420px) { .help-wordmark { display: none; } .help-compact-home { display: grid; left: 5vw; } .help-account-menu { right: 5vw; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  .help-home-link { right: 56px; width: 44px; height: 44px; }
  .help-account-trigger { width: 44px; height: 44px; }
  .help-account-choice-group button, .help-account-choice-group a { min-height: 44px; }
  aside, aside summary { height: 44px; }
  aside details[open] a { min-height: 44px; }
  aside details[open] ol { max-height: calc(100dvh - 132px); }
}
@media print {
  aside, header nav, .skip { display: none; }
  header { position: static; }
  .layout { display: block; padding: 0; }
  main { max-width: none; }
  :root, :root[data-theme] { color-scheme: light; background: white; color: black; --surface: white; --muted: #444; --line: #ccc; }
}
