:root {
  --bg: #ffffff; --text: #1c1f24; --dim: #5f6773; --line: #dfe3e8; --panel: #f5f6f8; --accent: #1f7a4d; --on-accent: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #14161a; --text: #e8eaee; --dim: #9aa1ad; --line: #333842; --panel: #1e2127; --accent: #3fae75; --on-accent: #0c1410; }
}
:root[data-theme="dark"] { --bg: #14161a; --text: #e8eaee; --dim: #9aa1ad; --line: #333842; --panel: #1e2127; --accent: #3fae75; --on-accent: #0c1410; }

* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 900px; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, sans-serif; }
h1 { font-size: 22px; margin: 4px 0; } h2 { font-size: 19px; margin: 0 0 4px; } h3 { font-size: 17px; margin: 0 0 6px; }
header p { margin: 0 0 12px; }
.dim { color: var(--dim); }
.actions { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.button { display: inline-block; text-align: center; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.button.small { padding: 8px 12px; font-weight: 500; font-size: 14px; }
.how { background: var(--panel); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
progress { width: 100%; height: 14px; }
#status { font-weight: 600; }
section section { border-top: 1px solid var(--line); padding: 14px 0; }
.strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.strip figure { margin: 0; flex: none; }
.strip canvas { height: 220px; width: auto; border-radius: 6px; display: block; }
.strip figcaption { font-size: 13px; color: var(--dim); text-align: center; }
.tip { display: flex; gap: 12px; flex-wrap: wrap; background: var(--panel); border-radius: 10px; padding: 12px; margin: 12px 0; }
.tip canvas { width: 220px; max-width: 100%; height: auto; border-radius: 6px; }
.tip > div { flex: 1; min-width: 220px; } .tip p { margin: 4px 0; }
.notice { background: var(--panel); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
table { border-collapse: collapse; width: 100%; margin-top: 8px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
summary { cursor: pointer; margin-top: 8px; }
footer { margin-top: 24px; font-size: 13px; }
