/* WAHAJ prototype — Green the Desert, the system look (docs/DECISIONS.md V6G-20): calm, alive, Apple-like. Colour carries
   meaning: blue Know, green Do, purple Become; green when something works, pink when it needs fixing (never red). */
:root { --ph-know: #0A84FF; --ph-do: #00FF6F; --ph-become: #8B5CF6; --sys-pink: #FF4FA3 }
[data-theme="light"] { --ph-know: #0071E3; --ph-do: #00B050; --ph-become: #7C3AED; --sys-pink: #C2185B }

/* the header: how far the mission has come */
.mx-prog { position: absolute; inset-inline-start: 836px; top: 17px; width: 300px; display: grid; gap: 7px}
.mx-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px}
.mx-ph b { font-weight: 600; color: #f5f5f7}
.mx-ph span { color: #a1a1a6; white-space: nowrap}
.mx-ph em { font-style: normal; font-weight: 700; color: #f5f5f7}
.mx-pseg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px}
.mx-pseg i { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden}
.mx-pseg i.done.know { background: var(--ph-know)} .mx-pseg i.done.do { background: var(--ph-do)} .mx-pseg i.done.become { background: var(--ph-become)}
.mx-pseg i.now { box-shadow: none; outline: 1.5px solid rgba(255, 255, 255, 0.7); outline-offset: 1px}
.mx-pseg i.now:not(.done)::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: inherit; background: rgba(255, 255, 255, 0.45); animation: sysSweep 2.2s ease-in-out infinite}
@keyframes sysSweep { 0% { transform: translateX(-100%) } 100% { transform: translateX(260%) } }
[data-theme="light"] .mx-ph b, [data-theme="light"] .mx-ph em { color: #1d1d1f}
[data-theme="light"] .mx-ph span { color: #6e6e73}
[data-theme="light"] .mx-pseg i { background: rgba(0, 0, 0, 0.08)}
[data-theme="light"] .mx-pseg i.now { outline-color: rgba(0, 0, 0, 0.55)}
[data-theme="light"] .mx-pseg i.now:not(.done)::after { background: rgba(0, 0, 0, 0.18)}

/* the seven steps as a timeline of round icons */
.fg-sts { position: relative; gap: 2px}
.fg-st { position: relative; min-height: 36px}
.fg-st i { width: 26px; height: 26px; color: #c7c7cc; background: rgba(255, 255, 255, 0.08); transition: transform .2s ease}
.fg-st:not(:last-child) i::after { content: ""; position: absolute; inset-inline-start: 20px; top: 33px; width: 2px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, 0.12)}
.fg-st.done i { color: #0a0a0b}
.fg-st.done.ph-know i { background: var(--ph-know); color: #fff} .fg-st.done.ph-do i { background: var(--ph-do)} .fg-st.done.ph-become i { background: var(--ph-become); color: #fff}
.fg-st.done:not(:last-child) i::after { background: rgba(255, 255, 255, 0.28)}
.fg-st.now i { color: #0a0a0b; background: #f5f5f7; animation: sysBeat 2.4s ease-in-out infinite}
.fg-st.now.ph-know i { background: var(--ph-know); color: #fff} .fg-st.now.ph-do i { background: var(--ph-do)} .fg-st.now.ph-become i { background: var(--ph-become); color: #fff}
.fg-st:hover:not(.lock) i { transform: scale(1.08)}
.fg-st.lock i { color: #6e6e73; background: rgba(255, 255, 255, 0.05)}
@keyframes sysBeat { 0%, 100% { outline: 0 solid transparent } 50% { outline: 4px solid rgba(255, 255, 255, 0.12) } }
[data-theme="light"] .fg-st i { color: #3a3a3c; background: rgba(0, 0, 0, 0.06)}
[data-theme="light"] .fg-st:not(:last-child) i::after { background: rgba(0, 0, 0, 0.1)}
[data-theme="light"] .fg-st.done.ph-do i, [data-theme="light"] .fg-st.now.ph-do i { color: #fff}
[data-theme="light"] .fg-st.now i { outline-color: rgba(0, 0, 0, 0.1)}
@media (prefers-reduced-motion: reduce) { .mx-pseg i.now::after, .fg-st.now i, .fg-prow.flow .fg-pdot, .s3d-label.fgl.from, .g-pipe .g-ps { animation: none !important } }
