:root{--bg:#fff;--text:#37352f;--muted:rgba(55,53,47,.68);--line:rgba(55,53,47,.14);--hover:rgba(55,53,47,.06);--card:#f7f6f3;--surface:#fff;--red-bg:#fbe4e4;--red:#5d1715;--blue-bg:#d3e5ef;--blue:#183347;--gray-bg:#e3e2e0;--gray:#32302c;--accent:#2383e2;--accent-soft:rgba(35,131,226,.14);--warn-bg:#fef3c7;--warn:#92400e}
@media (prefers-color-scheme:dark){:root{--bg:#191919;--text:rgba(255,255,255,.92);--muted:rgba(255,255,255,.64);--line:rgba(255,255,255,.14);--hover:rgba(255,255,255,.08);--card:#232323;--surface:#191919;--red-bg:#5c1d1a;--red:#ffdcd8;--blue-bg:#1f3a4d;--blue:#d3e5ef;--gray-bg:#373737;--gray:#e3e2e0;--accent:#2f8be6;--accent-soft:rgba(47,139,230,.2);--warn-bg:rgba(245,158,11,.16);--warn:#fcd34d}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:17px/1.65 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Noto Sans JP",sans-serif;-webkit-font-smoothing:antialiased}
main{max-width:640px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 24px) 16px calc(env(safe-area-inset-bottom) + 96px)}
.page-head{margin-bottom:20px}
.icon{font-size:48px;line-height:1;margin-bottom:6px}
h1{margin:0 0 4px;font-size:32px;line-height:1.25;font-weight:700}
.prop{margin:0;color:var(--muted);font-size:15px}
body.onb main{padding-top:calc(env(safe-area-inset-top) + 10px)}
body.onb .page-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
body.onb .icon{font-size:24px;margin:0}
body.onb h1{font-size:19px;margin:0}
body.onb .prop{display:none}
h2{margin:28px 0 8px;font-size:17px;font-weight:700;color:var(--muted)}
.card h2,.sec:first-child h2{margin-top:0}
.card h2{font-size:20px;color:var(--text);line-height:1.25;margin-bottom:4px}
.lead{font-size:15px;line-height:1.45;margin:2px 0 8px}
.hl{font-weight:700;color:var(--accent)}
.note{color:var(--muted);font-size:14px;line-height:1.5;margin:6px 0}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;margin:0 0 16px}
.card p{margin:6px 0}
.dots{display:flex;gap:6px;margin-bottom:8px}
.dots i{flex:1;height:5px;border-radius:99px;background:var(--line);transition:background .2s}
.dots i.on{background:var(--accent)}
.dots i.done{background:rgba(47,139,230,.5)}
.step-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.step{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.step-pill{background:var(--accent-soft);color:var(--accent);font-weight:700;font-size:12px;padding:2px 8px;border-radius:99px;letter-spacing:.02em}
.step-name{font-weight:600;color:var(--muted)}
.step-back{border:0;background:var(--hover);color:var(--muted);font-size:13px;font-weight:600;min-height:28px;padding:2px 9px;border-radius:8px}
.actions{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.period{display:flex;align-items:center;gap:14px;min-height:50px;padding:8px 10px;margin:0 -10px;border-radius:8px}
.period,.hw{min-height:50px;margin:0 -10px;border-radius:8px}
.hw{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"tag date" "what what";align-items:center;gap:3px 10px;padding:10px}
.hw .tag{grid-area:tag}
.num{flex:none;width:26px;color:var(--muted);font-size:17px;text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.period span:last-child,.hw .what{font-size:18px;line-height:1.35;font-weight:600}
.hw .what{grid-area:what;min-width:0}
.tag{flex:none;font-size:13.5px;line-height:22px;padding:0 8px;border-radius:5px;background:var(--gray-bg);color:var(--gray);white-space:nowrap;font-weight:700}
.tag.hot{background:var(--red-bg);color:var(--red)}
.tag.soon{background:var(--blue-bg);color:var(--blue)}
.hw .date{grid-area:date;color:var(--muted);font-size:13.5px}
.sec{margin:0 0 12px}
button{font:inherit;font-size:16.5px;min-height:46px;padding:8px 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .08s,background .15s}
button:active{transform:scale(.99);background:var(--hover)}
button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700;min-height:48px}
button.sub-btn{background:transparent;color:var(--muted);font-size:14.5px;min-height:38px;padding:6px 12px}
button.danger{background:#d44c47;border-color:#d44c47;color:#fff;font-weight:700}
button.link{border:0;background:none;color:var(--muted);text-decoration:underline;min-height:44px;padding:8px 6px;font-size:15px}
footer{margin-top:36px;border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;align-items:flex-start}
details{margin-top:8px;width:100%}
summary{color:var(--muted);font-size:16px;padding:10px 6px;min-height:44px}
input{font:inherit;font-size:18px;width:100%;min-height:52px;padding:10px 14px;margin:8px 0;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--text)}
[hidden]{display:none!important}
@media (min-width:600px){.actions{flex-direction:row}.actions button.primary{flex:2}.actions button.sub-btn{flex:1}h1{font-size:36px}}
