:root { --bg: #F5F6F7; --paper: #FFFFFF; --ink: #1E2328; --muted: #69717A; --line: #DEE1E5; --accent: #2F6F73; --ok: #1F7A4D; --ng: #B42318;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #121417; --paper: #1A1D21; --ink: #E8EAED; --muted: #9AA1A9; --line: #2C3036; --accent: #6FC1C5; --ok: #4CC38A; --ng: #FF7A6E; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #121417; --paper: #1A1D21; --ink: #E8EAED; --muted: #9AA1A9; --line: #2C3036; --accent: #6FC1C5; --ok: #4CC38A; --ng: #FF7A6E; color-scheme: dark; }
* { box-sizing: border-box; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.85; }
.wrap { max-width: 720px; margin: 0 auto; padding-block: 28px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.home { font-family: var(--font-mono); font-weight: 600; text-decoration: none; font-size: 18px; }
.home span { color: var(--accent); }
h1 { font-size: 24px; margin: 24px 0 8px; text-wrap: balance; }
.updated { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
h2 { font-size: 17px; margin: 28px 0 8px; border-left: 4px solid var(--accent); padding-left: 10px; }
p, ul, ol { margin: 0 0 10px; }
li { margin-bottom: 4px; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
dl { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 8px 12px; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
dt { color: var(--muted); }
dd { margin: 0; }
.todo { color: var(--ng); font-weight: 700; }
form { display: grid; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 4px; }
label small { font-weight: 400; color: var(--muted); margin-left: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.count { font-size: 12px; color: var(--muted); text-align: right; }
button.send { font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 6px; border: 0; background: var(--accent); color: var(--paper); cursor: pointer; justify-self: start; }
button.send[disabled] { opacity: .6; cursor: wait; }
.msg { border-radius: 6px; padding: 12px 14px; font-weight: 700; }
.msg.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.msg.ng { background: color-mix(in srgb, var(--ng) 14%, transparent); color: var(--ng); }
footer { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--muted); }
