.home { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; }
.home h2 { margin: 28px 0 10px; font-size: 18px; }
.h-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.h-hero h1 { margin: 0 0 6px; }
.h-ways { margin: 0 0 14px; padding-left: 20px; }
.h-last { margin: 6px 0 0; font-size: 13px; }
.h-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.h-tile { display: flex; flex-direction: column; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.h-tile b { font-size: 22px; line-height: 1.2; }
.h-tile span { color: var(--muted); font-size: 12px; }
a.h-tile:hover, a.h-tile:focus-visible { border-color: var(--accent); outline: none; }
.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-tile { font: inherit; text-align: left; cursor: pointer; }
button.h-tile:hover, button.h-tile:focus-visible { border-color: var(--accent); outline: none; }
.h-today h2 { margin-top: 0; }
.h-today h2 small { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.h-today h3, .h-how h3 { margin: 14px 0 6px; font-size: 14px; }
.h-today:focus { outline: none; }
.h-ses-list, .h-up, .h-lvs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.h-up, .h-lvs { gap: 4px; font-size: 14px; }
.h-ses { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.h-ses-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.h-ses-h .h-link { font-weight: 600; }
.h-ses-m, .h-due { color: var(--muted); font-size: 13px; }
.h-due { color: var(--accent); }
.h-ses-a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.h-ses-d { display: flex; justify-content: flex-end; margin-top: 8px; }
.h-ask { margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 10px; font-size: 14px; }
.h-fc a { color: var(--accent); text-decoration: none; }
.h-fc a:hover { text-decoration: underline; }
.h-none, .h-fc { margin: 0 0 8px; font-size: 14px; }
.h-how summary { cursor: pointer; font-weight: 600; }
.h-how summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.h-how p { font-size: 14px; line-height: 1.55; }
.h-tw { overflow-x: auto; }
.h-how table { border-collapse: collapse; width: 100%; font-size: 13px; }
.h-how th, .h-how td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.h-how th { color: var(--muted); font-weight: 600; }
@media (max-width: 520px) { .h-ph { display: none; } .h-ses-d .btn { width: 100%; } }
.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); }
.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); }
.h-last a { color: var(--accent); text-decoration: none; }
.h-last a:hover { text-decoration: underline; }

/* one screen: next step, sitting picker, track line, week */
.h-next-card { margin-top: 12px; }
.h-next-card h1 { font: 700 26px/1.2 var(--sans); margin: 0 0 6px; }
.h-next { display: grid; gap: 2px; margin: 10px 0 14px; }
.h-next b { font-size: 19px; line-height: 1.3; }
.h-next span { color: var(--muted); font-size: 14px; }
.h-start { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; font-size: 16px; text-decoration: none; }
.h-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.h-pick .btn { min-height: 44px; min-width: 64px; }
.h-pick .btn[aria-pressed="true"]::before { content: "\2713\00a0"; }
.h-line p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.h-week { margin: 4px 2px 14px; }
.h-week p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.h-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.h-wd { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); min-width: 28px; }
.h-wd i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); box-sizing: border-box; }
.h-wd.on i { background: var(--accent); border-color: var(--accent); }
.h-wd.today i { border-color: var(--text); box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--text); }
.h-wd.today { color: var(--text); font-weight: 600; }
.h-browse { margin-top: 18px; }
.h-browse > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--accent); }
.h-browse > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.h-set .h-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.h-set .btn, .h-set select, .h-set input[type="time"], .h-set input[type="file"] { min-height: 44px; }
.h-msg { min-height: 1.4em; margin: 0 0 8px; font-size: 14px; }
.h-rem summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.h-rem form { display: grid; gap: 10px; margin-bottom: 12px; }
.h-rem fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.h-chk { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 14px; }
.h-chk input { width: 18px; height: 18px; }
.h-set :is(select, input, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
