/* owner: P1 (Hom nay + man chao) */

.titlerow { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.helplink { font: inherit; font-size: .85rem; color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .8rem; cursor: pointer; min-height: 44px; }
.helplink:hover { border-color: var(--accent); }
.helplink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.today-head { margin: -.2rem 0 .8rem; }
.stagebar { margin: .4rem 0 .2rem; }
.stage-l { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .3rem; }

.today-card { position: relative; padding-bottom: .4rem; }
.today-card h3 { margin-bottom: .3rem; }
.today-note { margin: .4rem 0 .8rem; }
.stepwrap + .stepwrap { border-top: 1px solid var(--line); }
.stepwrap.active { background: var(--accent-soft); margin: 0 -.5rem; padding: 0 .5rem; border-radius: 10px; }
.step { display: flex; align-items: center; gap: .8rem; min-height: 56px; padding: .5rem 0; color: inherit; text-decoration: none; }
.step .chk { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--muted); }
.stepwrap.active .step .chk { border-color: var(--accent); color: var(--accent); }
.step.done .chk { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step .st-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.step .st-t { font-size: 1rem; }
.st-badge { margin-left: .5rem; font-size: .8rem; font-weight: 400; color: var(--muted); }
.step .st-s { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.step .chev { color: var(--muted); font-size: 1.4rem; }
.step:hover .st-t { color: var(--accent); }
.step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.step-sub { display: block; margin: -.2rem 0 .5rem 2.3rem; font-size: .82rem; }
.st-cta { padding: .1rem 0 .7rem; }
.today-card .hanko { top: 8px; right: 12px; }

.backup { margin: .8rem 0; }

.more { margin: .6rem 0 1rem; }
.more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--muted); }
.more summary::before { content: '▸'; margin-right: .5rem; }
.more[open] summary::before { content: '▾'; }
.more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.more-body { display: flex; flex-direction: column; gap: .5rem; padding-bottom: .5rem; }

/* welcome */
.welcome { padding: 1.2rem; }
.welcome .w-jp { font-size: 1.1rem; color: var(--muted); letter-spacing: .1em; }
.welcome h2 { margin: .1rem 0 .6rem; }
.w-steps { margin: .4rem 0 .8rem; padding-left: 1.4rem; }
.w-steps li { padding: .15rem 0; }
.w-pace { border: 0; padding: 0; margin: 1rem 0 .6rem; }
.w-pace legend { font-weight: 600; padding: 0; margin-bottom: .4rem; }
.pace { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .3rem .7rem; margin: .3rem 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pace:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pace input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.pace:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.w-exam { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .8rem 0 1.2rem; }
.w-exam input { min-height: 44px; }
.welcome .cta + .cta { margin-top: .6rem; }
