:root {
  --bg: #ffffff;
  --text: #0f1b2d;
  --text-2: #3c4a5e;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #1d4ed8;
  --card: #f6f8fb;
  --warn-bg: #fff7e6;
  --warn-line: #f5c46b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #040c18;
    --text: #e8eef8;
    --text-2: #b8c4d6;
    --muted: #8a99b0;
    --line: #1c2a40;
    --accent: #6e9bff;
    --card: #0b1628;
    --warn-bg: #2a1f08;
    --warn-line: #7a5a17;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; padding-top: max(20px, env(safe-area-inset-top)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.back { color: var(--accent); text-decoration: none; font-weight: 650; font-size: 15px; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 6px 0 6px; }
h2 { font-size: 21px; line-height: 1.3; margin: 34px 0 8px; padding-top: 6px; border-top: 1px solid var(--line); }
h3 { font-size: 17px; margin: 22px 0 6px; }
p, li { color: var(--text-2); }
a { color: var(--accent); }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.draft { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 20px; color: var(--text); }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
.input-needed { background: #fde68a; color: #422006; padding: 0 4px; border-radius: 4px; font-weight: 650; }
.attorney { display: block; background: var(--warn-bg); border-left: 4px solid var(--warn-line); padding: 8px 12px; margin: 10px 0; font-size: 14px; color: var(--text); border-radius: 0 8px 8px 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
th { background: var(--card); color: var(--text); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.toc { columns: 2; column-gap: 24px; padding-left: 18px; font-size: 15px; }
@media (max-width: 560px) { .toc { columns: 1; } h1 { font-size: 26px; } }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; }
