:root {
  --bg: #f6f8fa; --panel: #ffffff; --ink: #14202c; --muted: #5b6b7c; --line: #dfe5ec;
  --accent: #0f6f8f; --accent-ink: #ffffff; --soft: #e4f1f6; --ok: #1f7a4d; --warn: #9a6200; --warn-bg: #fbefd6;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1520; --panel: #142030; --ink: #e3ebf3; --muted: #93a4b7; --line: #263649;
    --accent: #52b6d6; --accent-ink: #0d1520; --soft: #16303f; --ok: #6fd19c; --warn: #f0bd5c; --warn-bg: #3a2c10;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); margin: 0; }
a { color: var(--accent); }
code { font: .92em var(--mono); }
.wrap { margin: 0 auto; max-width: 1080px; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); background: var(--panel); }
header.site .wrap { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; min-height: 64px; }
.brand { align-items: center; color: var(--ink); display: flex; font-weight: 700; gap: 10px; letter-spacing: .01em; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav.main a { color: var(--muted); font-size: 15px; text-decoration: none; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }

.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 18px; max-width: 18ch; }
.hero p.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin: 0 0 28px; max-width: 62ch; }
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.01em; line-height: 1.15; margin: 0 0 12px; }
.page-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 66ch; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { border: 1px solid var(--accent); border-radius: 8px; display: inline-block; font-weight: 600; padding: 11px 20px; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--accent); }

.notice { background: var(--warn-bg); border-radius: 8px; color: var(--ink); font-size: 15px; margin: 0 0 8px; padding: 12px 16px; }
.notice b { color: var(--warn); }

section.block { padding: 40px 0; }
section.block > .wrap > h2 { font-size: 28px; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 8px; }
section.block > .wrap > p.sub { color: var(--muted); margin: 0 0 24px; max-width: 70ch; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid, .grid.two, .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; }
.card ul { color: var(--muted); margin: 8px 0 0; padding-left: 20px; }
.card .tag { border-radius: 4px; display: inline-block; font: 600 12px var(--mono); margin-bottom: 10px; padding: 2px 8px; }
.tag.ok { background: var(--soft); color: var(--ok); }
.tag.later { background: var(--warn-bg); color: var(--warn); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1px solid var(--line); border-radius: 999px; font: 14px var(--mono); padding: 4px 12px; background: var(--panel); }

.stats { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }
.stats div { background: var(--panel); padding: 18px 20px; }
.stats b { display: block; font: 600 26px var(--mono); }
.stats span { color: var(--muted); font-size: 14px; }

.pipe { counter-reset: s; display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pipe { grid-template-columns: 1fr; } }
.pipe li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; counter-increment: s; padding: 16px; }
.pipe li::before { color: var(--accent); content: counter(s); display: block; font: 700 22px var(--mono); }
.pipe b { display: block; margin-bottom: 4px; }
.pipe span { color: var(--muted); font-size: 15px; }

table { border-collapse: collapse; font-size: 15px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.table { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }

svg.dep { display: block; height: auto; margin: 4px 0 12px; width: 100%; }
.dep .b { fill: none; stroke: var(--muted); stroke-dasharray: 6 5; stroke-width: 1.2; }
.dep .n { fill: var(--panel); stroke: var(--accent); stroke-width: 1.5; }
.dep .m { fill: var(--soft); stroke: var(--accent); stroke-width: 1.5; }
.dep .x { fill: var(--bg); stroke: var(--muted); stroke-width: 1.2; }
.dep text { fill: var(--ink); font: 12px var(--body); }
.dep text.s { fill: var(--muted); font-size: 11px; }
.dep text.h { font-weight: 700; }
.dep .a { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.dep .a.d { stroke-dasharray: 5 4; }
.dep .head { fill: var(--muted); }

.cta { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 16px; padding: 32px; }
.cta h2 { font-size: 26px; margin: 0; }
.cta p { color: var(--muted); margin: 0; max-width: 64ch; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; margin-top: 40px; padding: 28px 0 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); }
