:root { --bg: #f4f6fa; --card: #fff; --text: #1a1a2e; --muted: #5b6270; --line: #e5e7eb; --accent: #0069ff; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
a { -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; padding: 24px 16px; }
.doc { background: var(--card); max-width: 820px; margin: 0 auto; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.08); padding: 40px 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.top img { width: 130px; height: auto; display: block; }
.top a.back { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 15px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
h2 { font-size: 19px; margin: 32px 0 8px; }
p, li { font-size: 15.5px; }
ul { padding-left: 22px; }
a { color: var(--accent); }
.box { background: var(--bg); border-radius: 10px; padding: 16px 20px; margin: 12px 0; }
.box p { margin: 4px 0; }
.alert { border-left: 4px solid #dc2626; background: #fef2f2; padding: 14px 18px; border-radius: 6px; }
footer { max-width: 820px; margin: 18px auto 0; text-align: center; font-size: 13px; color: var(--muted); display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; }
footer a { color: var(--accent); text-decoration: none; }
@media (max-width: 640px), (max-height: 560px) and (pointer: coarse) {
  body { padding: 0; background: var(--card); }
  .doc { padding: calc(16px + env(safe-area-inset-top)) 18px 28px; border-radius: 0; box-shadow: none; }
  .top img { width: 108px; }
  .top a.back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  h1 { font-size: 25px; }
  h2 { font-size: 18px; margin-top: 28px; }
  p, li { font-size: 16px; }
  .box { padding: 14px 16px; overflow-wrap: anywhere; }
  footer { margin: 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
  footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
}
