/* The idea (evidence.html) only. Shared pieces live in styles.css.
   Everything here is prefixed .pe- so it can't collide with other pages. */

:root {
  /* Directions use the brand grounds: Builder Lapis, Musician Heather,
     Strong body Moss, Present friend Clay. */
  --pe-d1: #314dff; --pe-d2: #a500c8; --pe-d3: #008321; --pe-d4: #a94e00;
  --pe-paper: #f6f3ec; --pe-paper-ink: #1d1b17; --pe-paper-muted: #6a6459;
  --pe-serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
}
[data-theme="dark"] {
  --pe-d1: #6084f2; --pe-d2: #ca3df0; --pe-d3: #30a73f; --pe-d4: #d26c29;
  --pe-paper: #1f1e1b; --pe-paper-ink: #f1ede4; --pe-paper-muted: #aaa396;
}

/* ---------- small shared atoms ---------- */
.pe-tag { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pe-tag--plain { background: var(--hover); color: var(--muted); }
.pe-tag--designed { background: var(--warn-soft); color: var(--warn); }
.pe-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-st { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.pe-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pe-st--built { background: var(--ok-soft); color: var(--ok); }
.pe-st--designed { background: var(--warn-soft); color: var(--warn); }
.pe-st--deleted { background: var(--hover); color: var(--muted); }
.pe-st--deleted::before { width: 9px; height: 2px; border-radius: 2px; }
.cite { margin-left: 0; }
.stagebg .cite { background: rgba(255, 255, 255, 0.08); color: var(--stage-accent); }
.stagebg .pe-tag--designed { background: rgba(242, 181, 68, 0.15); color: #f2b544; }
.stagebg .pe-tag--plain { background: rgba(255, 255, 255, 0.08); color: var(--stage-muted); }

/* ---------- hero ---------- */
.pe-hero .h1 { max-width: 12ch; }
.pe-chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pe-chapters a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); font-size: 0.92rem; font-weight: 550; color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.3s; }
.pe-chapters a:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.pe-chapters span { font-family: var(--mono); font-size: 0.7rem; color: var(--accent-text); }

/* ---------- 1. the trouble ---------- */
.pe-trouble { padding-top: clamp(40px, 6vw, 90px); }
.pe-lightup { margin-top: 24px; }
.pe-vs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); margin-top: clamp(48px, 7vw, 100px); }
.pe-vs__card { background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-md); padding: clamp(22px, 2.8vw, 36px); display: grid; gap: 18px; align-content: start; }
.pe-vs__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pe-vs__top b { color: var(--ink); font-size: 1.1rem; letter-spacing: -0.02em; }
.pe-vs__cap { color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
.pe-vs__cap strong { color: var(--ink); display: block; font-size: 1.12rem; letter-spacing: -0.015em; }
.pe-streak { display: flex; align-items: baseline; gap: 12px; min-height: 1em; }
.pe-streak b { font-size: clamp(4rem, 8vw, 6.4rem); font-weight: 640; letter-spacing: -0.065em; line-height: 0.9; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 1.2ch; transition: color 0.3s; }
.pe-streak b.is-reset { color: var(--danger); }
.pe-streak span { color: var(--muted); font-size: 1rem; }
.pe-dots { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; }
.pe-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--inset); box-shadow: inset 0 0 0 1px var(--line-soft); }
.pe-dots i.on { background: var(--ink); box-shadow: none; }
.pe-dots i.miss { background: var(--danger-soft); box-shadow: inset 0 0 0 1.5px var(--danger); }
.pe-mini { position: relative; }
.pe-mini svg { width: 100%; height: clamp(120px, 12vw, 150px); overflow: visible; }
.pe-mini__gl { stroke: var(--line-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pe-mini__curve { fill: none; stroke: var(--accent-text); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pe-mini__area { fill: var(--accent-soft); }
.pe-mini__miss { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--page); box-shadow: inset 0 0 0 2px var(--danger); }
.pe-mini__lab { position: absolute; transform: translate(-50%, 12px); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--danger); background: var(--danger-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pe-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); margin-top: clamp(48px, 6vw, 80px); }
.pe-note { padding: clamp(22px, 2.4vw, 30px); background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); display: grid; gap: 12px; align-content: start; justify-items: start; }
.pe-note h3 { font-size: 1.28rem; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); font-weight: 620; }
.pe-note p { color: var(--muted); font-size: 0.98rem; line-height: 1.45; }

/* ---------- 2. the rule ---------- */
.pe-rule { background: var(--page); border-block: 1px solid var(--line-soft); }
.pe-rule__head { display: grid; gap: 26px; justify-items: center; text-align: center; }
.pe-rule__head .lead { max-width: 44ch; }
.pe-big { font-size: clamp(3rem, 9.4vw, 8.6rem); line-height: 0.92; letter-spacing: -0.062em; font-weight: 640; color: var(--ink); text-wrap: balance; }
.pe-wall { margin-top: clamp(56px, 7vw, 100px); text-align: center; display: grid; gap: 22px; justify-items: center; }
.pe-wall__label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); }
.pe-wall__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 1.2vw, 14px); max-width: 980px; }
.pe-wall__chips li { --k: 1; position: relative; padding: clamp(10px, 1.2vw, 14px) clamp(18px, 2vw, 26px); border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); font-size: clamp(1.05rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.025em; color: var(--muted); }
.pe-wall__chips s { text-decoration: none; position: relative; }
.pe-wall__chips s::after { content: ""; position: absolute; left: -6px; right: -6px; top: 54%; height: 2.5px; border-radius: 2px; background: var(--danger); transform: scaleX(var(--k)); transform-origin: 0 50%; }
.pe-wall__why { max-width: 58ch; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.pe-days { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); margin-top: clamp(56px, 7vw, 100px); max-width: 980px; margin-inline: auto; }
.pe-day { padding: clamp(22px, 2.6vw, 32px); background: var(--canvas); border: 1px solid var(--line-soft); display: grid; gap: 14px; align-content: start; }
.pe-day__k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.pe-day__n { font-size: clamp(2.6rem, 5vw, 3.8rem); letter-spacing: -0.055em; line-height: 0.95; color: var(--ink); font-weight: 640; }
.pe-day__n small { font-size: 1rem; letter-spacing: -0.01em; color: var(--muted); font-weight: 500; margin-left: 4px; }
.pe-day__sq { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.pe-day__sq i { width: 20px; height: 20px; border-radius: 6px; background: var(--p4); opacity: 0.45; }
.pe-day__sq i.d { background: var(--accent); opacity: 1; }
.pe-day p { color: var(--muted); }
.pe-day__verdict { grid-column: 1 / -1; text-align: center; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.02em; color: var(--muted); padding-top: 10px; }
.pe-day__verdict strong { color: var(--ink); }

/* ---------- 3. walkthrough ---------- */
.pe-walk { display: block; }
.pe-walk__stage { display: none; }
.pe-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(28px, 5vw, 80px); row-gap: 14px; align-content: center; padding-block: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line-soft); }
.pe-step > :not(.pe-vis) { grid-column: 1; }
.pe-step > .pe-vis { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
.pe-step__n { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--accent-text); }
.pe-step h3 { font-size: clamp(1.8rem, 3.3vw, 2.9rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 630; color: var(--ink); text-wrap: balance; }
.pe-step p { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.14rem); line-height: 1.5; max-width: 46ch; }
.pe-step p em { font-style: normal; color: var(--ink); font-weight: 600; }
.pe-step__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }

.pe-vis { position: relative; background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-md); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 30px); }
@supports (corner-shape: squircle) { .pe-vis { corner-shape: squircle; border-radius: 46px; } }
.pe-vis__label { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.pe-vis[data-kind="designed"] .pe-vis__label { color: var(--warn); }
.pe-vis__cap { color: var(--muted); font-size: 0.92rem; margin-top: 14px; }

/* live mode: text scrolls, the visual sits on a sticky stage */
.pe-walk.is-live { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); }
.pe-walk.is-live .pe-walk__stage { display: block; position: sticky; top: max(96px, 13vh); align-self: start; height: min(66vh, 580px); }
.pe-walk.is-live .pe-step { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 78vh; border-top: 0; padding-block: 0; opacity: 0.3; transition: opacity 0.5s var(--ease); }
.pe-walk.is-live .pe-step.is-active { opacity: 1; }
.pe-walk.is-live .pe-step:first-child { min-height: 62vh; justify-content: flex-start; padding-top: 8vh; }
.pe-stage { height: 100%; display: flex; flex-direction: column; background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); padding: clamp(20px, 2.4vw, 32px); }
@supports (corner-shape: squircle) { .pe-stage.sq { border-radius: 50px; } }
.pe-stage__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pe-stage__dots { display: flex; gap: 6px; }
.pe-stage__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.3s, transform 0.4s var(--ease); }
.pe-stage__dots i.on { background: var(--accent); transform: scale(1.25); }
.pe-stage__count { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.06em; }
.pe-stage__slot { position: relative; flex: 1; min-height: 0; }
.pe-stage .pe-vis { position: absolute; inset: 0; background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; }
.pe-stage .pe-vis.is-on { opacity: 1; visibility: visible; }
.pe-stage .pe-vis__label { position: absolute; top: 0; left: 0; margin: 0; }

/* visual: what came out */
.pe-gone { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pe-gone__i { --k: 1; position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 18px; border-radius: 16px; background: var(--inset); color: var(--muted); font-weight: 550; font-size: 0.98rem; }
.pe-gone__i b { color: var(--ink); font-size: 1.3rem; letter-spacing: -0.03em; }
.pe-gone__i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2.5px; border-radius: 2px; background: var(--danger); transform: scaleX(var(--k)); transform-origin: 0 50%; }
.pe-stamp { display: table; margin: 26px auto 0; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--danger); border: 2px solid var(--danger); padding: 8px 16px; border-radius: 10px; transform: rotate(-4deg); }

/* visual: receipts */
.pe-card { display: grid; gap: 20px; }
.pe-card__big { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 630; letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); }
.pe-card__big em { font-style: normal; color: var(--accent-text); }

/* visual: spread overdue */
.pe-spread { display: grid; gap: 14px; }
.pe-spread__btn .m { font-size: 0.76rem; padding: 6px 12px; }
.pe-spread__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pe-spread__col { padding: 10px; border-radius: 16px; background: var(--inset); display: grid; gap: 7px; align-content: start; min-height: 120px; min-width: 0; }
.pe-spread__col small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.pe-spread__col .tk { background: var(--page); box-shadow: var(--shadow-sm); padding: 8px 10px; font-size: 0.82rem; gap: 8px; }
.pe-spread__col .ring { width: 16px; height: 16px; }
.pe-bubble { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed var(--line); }
.pe-bubble p { color: var(--ink); font-size: 0.97rem; line-height: 1.4; }

/* visual: four Directions */
.pe-dirs { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.2vw, 14px); }
.pe-dir { display: grid; gap: 10px; justify-items: center; text-align: center; min-width: 0; }
.pe-dir i { width: 100%; aspect-ratio: 1; border-radius: 26%; background: var(--c); display: grid; place-items: center; }
.pe-dir b { font-size: 0.82rem; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.pe-dir--no i { background: transparent; border: 2px dashed var(--line); color: var(--faint); }
.pe-dir--no i svg { width: 22px; height: 22px; }
.pe-dir--no b { color: var(--faint); }

/* visual: today + not doing */
.pe-today { display: grid; gap: 8px; }
.pe-today small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 6px; }
.pe-today__one .tk { background: var(--page); box-shadow: 0 0 0 1.5px var(--accent-line), var(--shadow-sm); padding: 14px 16px; font-size: 1.02rem; }
.pe-today__one { margin-bottom: 6px; }
.pe-today__not { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.pe-today__not small { margin-bottom: 0; }
.pe-today__not .tk { opacity: 0.6; }
.pe-today__not .tk__t { color: var(--muted); }

/* visual: if-then */
.pe-ifthen { display: grid; gap: 14px; }
.pe-ifthen__line { min-height: 0; font-size: 0.9rem; }
.pe-ifthen__parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pe-ifthen__parts div { padding: 12px 14px; border-radius: 14px; background: var(--inset); display: grid; gap: 4px; min-width: 0; }
.pe-ifthen__parts small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.pe-ifthen__parts b { color: var(--ink); font-size: 0.95rem; font-weight: 600; line-height: 1.25; }

/* visual: letters */
.pe-letter { background: var(--pe-paper); color: var(--pe-paper-ink); padding: clamp(22px, 3vw, 36px); border-radius: 18px; display: grid; gap: 12px; box-shadow: var(--shadow-sm); }
.pe-letter small { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pe-paper-muted); }
.pe-letter p { font-family: var(--pe-serif); font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.5; letter-spacing: -0.005em; color: var(--pe-paper-ink); max-width: 52ch; }
.pe-letter--mini p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

/* visual: endowed progress */
.pe-endow { display: grid; gap: 14px; }
.pe-endow__row { display: grid; grid-template-columns: 150px 1fr 110px; gap: 12px; align-items: center; }
.pe-endow__row small { font-size: 0.85rem; color: var(--ink); font-weight: 550; }
.pe-endow__row em { font-style: normal; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); text-align: right; }
.pe-endow__bar { height: 14px; border-radius: 999px; background: var(--inset); overflow: hidden; }
.pe-endow__bar i { display: block; height: 100%; width: 62%; background: var(--accent); border-radius: 999px; transform-origin: 0 50%; }
.pe-endow__weeks { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin-top: 6px; }
.pe-endow__weeks i { aspect-ratio: 1; border-radius: 5px; background: var(--accent); opacity: var(--o, 1); }

/* ---------- 4. built today ---------- */
.pe-tilehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pe-bento .tile h3 { max-width: 22ch; }
.pe-hours { height: 110px; }
.pe-capbar { margin-top: 8px; }
.pe-verdict { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.pe-verdict__cuts { display: inline-flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 5. coming (dark stage) ---------- */
.pe-coming .h2 { max-width: 14ch; }
.pe-lab { background: var(--stage-2); border: 1px solid var(--stage-line); padding: clamp(22px, 3vw, 44px); display: grid; gap: clamp(18px, 2.4vw, 28px); border-radius: var(--r-lg); }
@supports (corner-shape: squircle) { .pe-lab.sq { border-radius: 50px; } }
.pe-lab h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 630; color: var(--stage-ink); margin-top: 14px; max-width: 22ch; }
.pe-lab__head p { color: var(--stage-muted); margin-top: 10px; max-width: 56ch; font-size: 1.05rem; }
.pe-lab__charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pe-chart { padding: 16px 18px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--stage-line); min-width: 0; }
.pe-chart__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pe-chart__top b { color: var(--stage-ink); font-size: 1rem; letter-spacing: -0.015em; }
.pe-chart__top span { color: var(--stage-muted); font-size: 0.86rem; white-space: nowrap; }
.pe-chart__top em { font-style: normal; color: var(--stage-ink); font-weight: 650; font-size: 1.25rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pe-chart svg { width: 100%; height: clamp(130px, 16vw, 190px); overflow: visible; }
.pe-gl { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pe-gap { fill: rgba(242, 181, 68, 0.12); }
.pe-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pe-line--streak { stroke: #d9dcdf; }
.pe-line--strength { stroke: var(--stage-accent); }
.pe-area { fill: color-mix(in srgb, var(--stage-accent) 16%, transparent); }
.pe-chart__foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.68rem; color: var(--stage-muted); margin-top: 6px; }
.pe-lab__ctrl { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 20px; align-items: center; }
.pe-lab__ctrl label { color: var(--stage-ink); font-weight: 600; font-size: 0.98rem; white-space: nowrap; }
.pe-lab__ctrl output { display: inline-block; min-width: 2.4ch; text-align: center; padding: 2px 8px; margin-left: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pe-lab__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-lab__presets button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--stage-line); color: var(--stage-ink); font-size: 0.84rem; font-weight: 550; transition: background 0.25s, color 0.25s; }
.pe-lab__presets button:hover { background: rgba(255, 255, 255, 0.08); }
.pe-lab__presets button[aria-pressed="true"] { background: var(--stage-ink); color: #0e0e0e; border-color: var(--stage-ink); }
.stagebg :focus-visible { outline-color: var(--stage-accent); }
input[type="range"]#lab-skip { --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0; }
#lab-skip::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #f2b544 var(--p), rgba(255, 255, 255, 0.16) var(--p)); }
#lab-skip::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
#lab-skip::-moz-range-progress { height: 6px; border-radius: 999px; background: #f2b544; }
#lab-skip::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #f4f4f3; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
#lab-skip::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #f4f4f3; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
#lab-skip:focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 4px; border-radius: 999px; }
.pe-lab__say { color: var(--stage-ink); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.45; min-height: 2.9em; max-width: 70ch; }
.pe-lab__fine { color: var(--stage-muted); font-size: 0.85rem; line-height: 1.5; max-width: 90ch; border-top: 1px solid var(--stage-line); padding-top: 16px; }

.pe-cbento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(12px, 1.6vw, 20px); }
.pe-ctile { grid-column: span 6; background: var(--stage-2); border: 1px solid var(--stage-line); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pe-ctile--4 { grid-column: span 4; } .pe-ctile--5 { grid-column: span 5; } .pe-ctile--6 { grid-column: span 6; } .pe-ctile--7 { grid-column: span 7; } .pe-ctile--8 { grid-column: span 8; }
.pe-ctile h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); letter-spacing: -0.033em; line-height: 1.08; font-weight: 620; color: var(--stage-ink); margin-top: 6px; }
.pe-ctile > p { color: var(--stage-muted); font-size: 1rem; line-height: 1.45; max-width: 48ch; }
.pe-ctile__note { color: var(--stage-ink) !important; font-weight: 550; margin-top: auto; }
.pe-dirrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: auto; padding-top: 10px; }
.pe-sdir { display: grid; gap: 7px; justify-items: start; min-width: 0; }
.pe-sdir i { width: 100%; aspect-ratio: 1; border-radius: 26%; background: var(--c); }
.pe-sdir b { color: var(--stage-ink); font-size: 0.86rem; font-weight: 600; line-height: 1.2; }
.pe-sdir span { color: var(--stage-muted); font-size: 0.72rem; font-family: var(--mono); }
.pe-sdir--upkeep i { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22); transform: scale(0.72); transform-origin: 0 100%; }
.pe-notif { margin-top: auto; padding: 14px 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--stage-line); display: grid; gap: 4px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.pe-notif__app { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pe-notif__app .brand__mark { width: 20px; height: 20px; border-radius: 6px; }
.pe-notif__app .brand__mark svg { width: 12px; height: 12px; }
.pe-notif__app b { color: var(--stage-ink); font-size: 0.8rem; font-weight: 600; }
.pe-notif__app small { margin-left: auto; color: var(--stage-muted); font-size: 0.74rem; }
.pe-notif__t { color: var(--stage-ink); font-size: 1.04rem; letter-spacing: -0.015em; }
.pe-notif p { color: var(--stage-muted); font-size: 0.95rem; line-height: 1.4; }
.pe-ledger { display: grid; gap: 6px; margin-top: auto; padding-top: 8px; }
.pe-ledger li { display: grid; grid-template-columns: 12px minmax(0, 1fr) 72px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.pe-ledger li > i { width: 12px; height: 12px; border-radius: 3.5px; background: var(--c); }
.pe-ledger li.is-upkeep > i { background: rgba(255, 255, 255, 0.3); }
.pe-ledger b { display: block; color: var(--stage-ink); font-size: 0.93rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-ledger small { display: block; color: var(--stage-muted); font-size: 0.78rem; }
.pe-w { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; }
.pe-w::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--c, rgba(255, 255, 255, 0.3)); border-radius: 999px; }
.pe-evening { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); margin-block: auto; padding-top: 18px; flex-wrap: wrap; }
.pe-evening__ring { position: relative; width: clamp(116px, 12vw, 150px); height: clamp(116px, 12vw, 150px); flex: none; }
.pe-evening__ring svg { width: 100%; height: 100%; }
.pe-evening__ring .t { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 6; }
.pe-evening__ring .d { fill: none; stroke: var(--stage-accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50% 50%; }
.pe-evening__ring b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--stage-ink); font-size: 1.45rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pe-evening__list { display: grid; gap: 12px; }
.pe-evening__list small { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stage-muted); }
.pe-evening__list b { color: var(--stage-ink); font-size: 1.08rem; letter-spacing: -0.015em; }
.pe-coming .pe-letter { --pe-paper: #f6f3ec; --pe-paper-ink: #1d1b17; --pe-paper-muted: #6a6459; margin-top: 6px; }
.pe-grad { margin-top: auto; }
.pe-grad svg { width: 100%; height: 110px; overflow: visible; }
.pe-grad__a { fill: none; stroke: var(--stage-accent); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pe-grad__b { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pe-grad__leg { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 0.8rem; color: var(--stage-muted); }
.pe-grad__leg span { display: inline-flex; align-items: center; gap: 8px; }
.pe-grad__leg i { width: 14px; height: 4px; border-radius: 2px; background: var(--stage-accent); }
.pe-grad__leg i.b { background: rgba(255, 255, 255, 0.45); }

/* ---------- 6. ground rules ---------- */
.pe-rulelist { border-top: 1px solid var(--line); max-width: 1040px; }
.pe-rulelist li { display: grid; grid-template-columns: clamp(56px, 9vw, 120px) 1fr; gap: 12px; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pe-rulelist li > span { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 640; letter-spacing: -0.06em; color: var(--accent-text); line-height: 1; font-variant-numeric: tabular-nums; }
.pe-rulelist b { display: block; font-size: clamp(1.45rem, 3vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.05; font-weight: 630; color: var(--ink); }
.pe-rulelist p { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); margin-top: 8px; max-width: 56ch; }

/* ---------- 7. status ---------- */
.pe-deleted { margin-top: clamp(14px, 2vw, 24px); padding: clamp(20px, 2.4vw, 28px); background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.pe-deleted ul { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-deleted li { padding: 7px 14px; border-radius: 999px; background: var(--hover); font-size: 0.92rem; font-weight: 550; }
.pe-deleted s { color: var(--muted); text-decoration-color: var(--danger); text-decoration-thickness: 2px; }

/* ---------- FAQ refs + CTA ---------- */
.pe-refs { max-width: 860px; margin: clamp(32px, 4vw, 52px) auto 0; }
.pe-refs summary { cursor: pointer; color: var(--ink); font-weight: 600; font-size: 0.98rem; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--hover); list-style: none; }
.pe-refs summary::-webkit-details-marker { display: none; }
.pe-refs summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.pe-refs[open] summary::after { content: "\2212"; }
.pe-refs ul { margin-top: 18px; display: grid; gap: 10px; }
.pe-refs li { font-size: 0.88rem; line-height: 1.5; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--line-soft); }
.pe-refs em { color: var(--body); }
.pe-cta__card { display: grid; justify-items: center; text-align: center; gap: 22px; padding: clamp(44px, 7vw, 110px) clamp(22px, 5vw, 80px); box-shadow: var(--shadow-lg); }
@supports (corner-shape: squircle) { .pe-cta__card.sq { border-radius: 60px; } }
.pe-cta__card .h2 { color: var(--stage-ink); }
.pe-cta__card .lead { text-align: center; max-width: 44ch; }
.pe-cta__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pe-ctile, .pe-ctile--5, .pe-ctile--7 { grid-column: span 6; }
  .pe-ctile--4, .pe-ctile--8 { grid-column: span 12; }
  .pe-dirrow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pe-vs, .pe-lab__charts, .pe-notes { grid-template-columns: 1fr; }
  .pe-step { grid-template-columns: 1fr; }
  .pe-step > .pe-vis { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .pe-lab__ctrl { grid-template-columns: 1fr; }
  .pe-cbento .pe-ctile { grid-column: span 12; }
}
@media (max-width: 760px) {
  .pe-days { grid-template-columns: 1fr; }
  .pe-dots { gap: 3px; }
  .pe-endow__row { grid-template-columns: 1fr auto; }
  .pe-endow__row .pe-endow__bar { grid-column: 1 / -1; grid-row: 2; }
  .pe-ifthen__parts { grid-template-columns: 1fr; }
  .pe-dir b, .pe-sdir b { font-size: 0.74rem; }
  .pe-sdir span { font-size: 0.64rem; }
  .pe-chapters a { font-size: 0.86rem; padding: 8px 13px 8px 10px; }
  .pe-cta__row .btn { width: 100%; }
  .pe-spread__col .tk { font-size: 0.76rem; padding: 7px 8px; }
  .pe-spread__col .ring { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pe-wall__chips li, .pe-gone__i { --k: 1 !important; }
  .pe-walk.is-live .pe-step { opacity: 1; }
}
