:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --text: #172b4d;
  --muted: #505f79;
  --line: #dfe1e6;
  --brand: #0e7c7b;
  --brand-deep: #0a5f5e;
  --ok: #1f845a;
  --warn: #c9372c;
  --code-bg: #f1f2f4;
  --radius: 10px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161a1d;
    --bg-soft: #1d2125;
    --text: #dee4ea;
    --muted: #9fadbc;
    --line: #2c333a;
    --brand: #4fc2be;
    --brand-deep: #86d9d5;
    --ok: #4bce97;
    --warn: #f87168;
    --code-bg: #22272b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav.main { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav.main a { color: var(--muted); text-decoration: none; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); }
main { padding: 40px 0 64px; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 26px; margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
p.lead { font-size: 19px; color: var(--muted); max-width: 720px; }
.hero { padding: 32px 0 8px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); color: var(--text); background: var(--bg-soft);
}
.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-deep); color: #fff; }
.note { font-size: 14px; color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.card h3 { margin-top: 0; }
.flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.flow .step { flex: 1 1 180px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--bg-soft); }
.flow .step b { display: block; }
.flow .arrow { align-self: center; color: var(--muted); font-size: 22px; }
.flow .step.atlassian { border-color: var(--brand); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { font-weight: 600; background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }
code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--code-bg); padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
pre code { background: none; padding: 0; }
ul.checks { list-style: none; padding: 0; }
ul.checks li { padding-left: 26px; position: relative; margin: 6px 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.docs article { min-width: 0; }
td code, p code, li code { overflow-wrap: anywhere; }
.docs nav.toc { position: sticky; top: 76px; align-self: start; font-size: 15px; }
.docs nav.toc a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.docs nav.toc a:hover { color: var(--text); }
.docs article h2:first-child { margin-top: 0; }
.callout { border-left: 4px solid var(--brand); background: var(--bg-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; }
.legal { max-width: 760px; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
@media (max-width: 760px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs nav.toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
  nav.main { margin-left: 0; width: 100%; padding-bottom: 10px; }
  .flow .arrow { transform: rotate(90deg); width: 100%; text-align: center; }
}
