.home h3 { margin: 22px 0 8px; font-size: 16px; }
.h-next h1 { margin: 0 0 8px; font-size: 22px; }
.h-kind { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.h-title { margin: 0 0 8px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.h-last { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.h-next .btn.primary { min-height: 44px; min-width: 140px; font-size: 16px; }
.h-pick, .h-days { border: 0; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h-pick legend, .h-days legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.h-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 14px; }
.h-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.h-opt input, .h-chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.h-opt:focus-within, .h-fld input:focus-visible, .h-fld select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.h-line { margin: 4px 0 16px; }
.h-trk { margin: 0 0 8px; font-size: 15px; }
.h-week { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.h-dots { display: inline-flex; gap: 6px; }
.h-wd { display: inline-block; box-sizing: border-box; width: 16px; height: 16px; border: 2px solid var(--accent); border-radius: 50%; background: transparent; }
.h-wd.on { background: var(--accent); border-radius: 4px; transform: rotate(45deg) scale(.85); }
.h-fold { margin: 12px 0; }
.h-fold > summary { cursor: pointer; font-weight: 600; font-size: 16px; min-height: 44px; display: flex; align-items: center; padding: 0 4px; }
.h-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.h-ask { margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 10px; font-size: 14px; }
.h-fld { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0; }
.h-fld > label:not(.h-chk) { min-width: 130px; font-size: 14px; }
.h-fld input[type=range] { flex: 1 1 160px; min-height: 44px; accent-color: var(--accent); }
.h-fld select, .h-fld input[type=time], .h-fld input[type=file] { min-height: 44px; font: inherit; }
.h-fld output { font-size: 13px; color: var(--muted); min-width: 90px; }
.h-chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.h-status { margin: 0; min-height: 1.4em; font-size: 14px; }
.home { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; }
.h-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.h-tag { display: inline-block; font-size: 11px; padding: 0 7px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); text-transform: capitalize; margin: 1px 0; }
.h-tag.on { color: var(--accent); border-color: var(--accent); }
.h-path summary { cursor: pointer; display: grid; gap: 6px; list-style: none; }
.h-path summary::-webkit-details-marker { display: none; }
.h-path summary:focus-visible, .h-link:focus-visible, .home .btn:focus-visible, .home a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.h-pname { font-weight: 600; font-size: 16px; }
.h-why { color: var(--muted); font-size: 13px; line-height: 1.5; }
.h-bar { display: block; height: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.h-bar i { display: block; height: 100%; background: var(--accent); }
.h-path small { color: var(--muted); }
.h-items { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.h-items li { display: flex; align-items: center; gap: 8px; min-width: 0; position: relative; }
.h-link { background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--text); text-align: left; text-decoration: none; font-size: 14px; }
.h-link:hover { color: var(--accent); text-decoration: underline; }
.h-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.h-dot, .h-sw { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); box-sizing: border-box; }
.h-dot.s0, .h-sw.s0 { background: transparent; }
.h-dot.s1, .h-sw.s1 { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.h-dot.s2, .h-sw.s2 { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.h-dot.s3, .h-sw.s3 { background: color-mix(in srgb, var(--accent) 75%, transparent); }
.h-sw.s4 { background: var(--accent); }
.h-lv { flex: none; min-width: 26px; text-align: center; font: 600 11px/18px var(--sans); border: 1.5px solid var(--accent); border-radius: 6px; color: var(--text); box-sizing: border-box; }
.h-lv.l0 { color: var(--muted); border-color: var(--line-2); }
.h-lv.l1 { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.h-lv.l2 { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.h-lv.l3 { background: color-mix(in srgb, var(--accent) 75%, transparent); }
.h-lv.l4 { background: var(--accent); color: var(--on-accent); }
.h-ph { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
.h-up, .h-lvs { gap: 4px; font-size: 14px; }
.h-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.h-legend span { display: inline-flex; align-items: center; gap: 6px; }
.h-sub { font-size: 13px; margin: 0 0 8px; }
.h-hint { display: none; color: var(--muted); font-size: 12px; margin: 0 0 6px; }
.h-mapwrap { container-type: inline-size; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.h-map { display: block; max-width: none; }
.h-gl { font: 600 12px var(--sans); fill: var(--text); }
.h-edge { fill: none; stroke-width: 1.2; opacity: .35; }
.h-node { cursor: pointer; }
.h-node rect { fill: transparent; stroke: var(--c); stroke-width: 1.5; }
.h-node text { font: 12px var(--sans); fill: var(--text); pointer-events: none; }
.h-node.s1 rect { fill: color-mix(in srgb, var(--c) 18%, transparent); }
.h-node.s2 rect { fill: color-mix(in srgb, var(--c) 45%, transparent); }
.h-node.s3 rect { fill: color-mix(in srgb, var(--c) 75%, transparent); }
.h-node.s4 rect { fill: var(--c); }
.h-node.s4 text { fill: var(--code-bg); }
.h-node:focus { outline: none; }
.h-node:focus-visible rect { stroke: var(--text); stroke-width: 3; }
.h-map.dim .h-node, .h-map.dim .h-edge, .h-map.dim .h-gl { opacity: .15; }
.h-map.dim .h-node.hl, .h-map.dim .h-edge.hl { opacity: 1; }
.h-map.dim .h-edge.hl { stroke-width: 2; }
.h-side { min-height: 2.4em; margin-top: 10px; font-size: 13px; }
.h-foot { margin-top: 28px; }
@media (max-width: 818px) { .h-hint { display: block; } }
@media (max-width: 700px) { .h-mapwrap { padding: 8px; } }
@container (min-width: 760px) { .h-map { width: 100%; height: auto; } }
.btn.primary .h-tag { color: var(--on-accent); background: transparent; border-color: color-mix(in srgb, var(--on-accent) 60%, transparent); }
@media (max-width: 520px) { .h-ph { display: none; } .h-next .btn.primary { width: 100%; } }

.h-sec { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--accent); }
.h-place, .h-rev p { margin: 0; }
.h-placerow { gap: 8px 12px; font-size: 14px; }
.h-placerow .btn { min-height: 44px; }
.h-rev .btn { min-height: 44px; display: inline-flex; align-items: center; }
