:root {
  color-scheme: light dark;
  --bg: #faf8ff;
  --surface: #ffffff;
  --surface-muted: #f3f1f8;
  --text: #191b22;
  --muted: #5f6068;
  --subtle: #777780;
  --border: #dedce5;
  --accent: #34785a;
  --accent-soft: #e8f3ec;
  --warning-bg: #fff8e8;
  --warning-border: #ead8aa;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.notice {
  padding: 10px 20px;
  border-bottom: 1px solid var(--warning-border);
  background: var(--warning-bg);
  color: #6d5624;
  text-align: center;
  font-size: 13px;
}

.page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.eyebrow {
  display: none;
}

h1, h2, h3 { line-height: 1.35; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.025em; }
h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.012em; }
h3 { margin: 22px 0 8px; font-size: 17px; }
p { margin: 10px 0; }

.intro {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta.meta-four { grid-template-columns: repeat(4, 1fr); }

.meta-card {
  padding: 0;
}

.meta-card span { display: block; color: var(--subtle); font-size: 12px; }
.meta-card strong { display: block; margin-top: 3px; font-size: 15px; }
.meta-card .value { font-size: 24px; }
.meta-card .detail { margin-top: 3px; color: var(--muted); font-size: 12px; }

.toc {
  margin: 32px 0 0;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--border);
}

.toc strong { display: block; margin-bottom: 8px; }
.toc ol { columns: 2; margin: 0; padding-left: 22px; }
.toc li { break-inside: avoid; padding: 2px 8px 2px 0; }

.section {
  margin-top: 32px;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border);
}

.section ul, .section ol { padding-left: 22px; }
.section li + li { margin-top: 8px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 { margin-bottom: 0; }
.section-heading p { margin: 0; color: var(--subtle); font-size: 13px; }

.callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 4px 12px 12px 4px;
  background: var(--accent-soft);
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--surface-muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.sdk-table table { min-width: 980px; table-layout: fixed; }
.sdk-table th, .sdk-table td { border-right: 1px solid var(--border); overflow-wrap: anywhere; }
.sdk-table th:last-child, .sdk-table td:last-child { border-right: 0; }
.sdk-table td { color: var(--muted); font-size: 13px; }
.sdk-table td:first-child { color: var(--text); font-weight: 700; }
.sdk-table th:nth-child(1) { width: 12%; }
.sdk-table th:nth-child(2) { width: 12%; }
.sdk-table th:nth-child(3) { width: 12%; }
.sdk-table th:nth-child(4) { width: 13%; }
.sdk-table th:nth-child(5) { width: 15%; }
.sdk-table th:nth-child(6) { width: 12%; }
.sdk-table th:nth-child(7) { width: 8%; }
.sdk-table th:nth-child(8) { width: 6%; }
.sdk-table th:nth-child(9) { width: 10%; }

.system-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.system-item {
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
}

.system-item h3 { margin: 0 0 4px; font-size: 15px; }
.system-item p { margin: 0; color: var(--muted); font-size: 13px; }

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.footnote {
  margin-top: 28px;
  padding: 22px 4px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121318;
    --surface: #181a20;
    --surface-muted: #202229;
    --text: #ece2ec;
    --muted: #c3bbc4;
    --subtle: #a49ca6;
    --border: #393740;
    --accent: #8ed0ad;
    --accent-soft: #213b2d;
    --warning-bg: #302817;
    --warning-border: #5e4b25;
  }

  .notice { color: #ead399; }
}

@media (max-width: 680px) {
  .notice { padding: 9px 14px; text-align: left; }
  .page { width: min(100% - 36px, 760px); padding: 30px 0 52px; }
  .meta, .meta.meta-four, .system-list { grid-template-columns: 1fr; }
  .meta { gap: 0; }
  .meta-card { padding: 10px 0; }
  .meta-card + .meta-card { border-top: 1px solid var(--border); }
  .toc ol { columns: 1; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 5px; }
  .sdk-table { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .sdk-table table,
  .sdk-table thead,
  .sdk-table tbody,
  .sdk-table tr,
  .sdk-table th,
  .sdk-table td { display: block; min-width: 0; }
  .sdk-table table { width: 100%; }
  .sdk-table thead { display: none; }
  .sdk-table tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
  }
  .sdk-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 14px;
    border-right: 0;
  }
  .sdk-table td::before { content: attr(data-label); color: var(--subtle); font-size: 12px; }
  .sdk-table td:first-child { display: block; padding: 15px 14px 10px; background: var(--surface-muted); font-size: 15px; }
  .sdk-table td:first-child::before { display: none; }
  h2 { font-size: 21px; }
}

@media print {
  body { background: #fff; color: #000; }
  .notice { display: none; }
  .page { width: 100%; padding: 0; }
  .section, .meta-card { break-inside: avoid; }
}
