/* =========================================================
   Mission screen (iPad 1448 x 1086): one immersive view of the whole mission.
   Top bar · left: objective, progress, Know / Do / Become steps, rewards ·
   middle: the farm · right: mentor, resources, tools · bottom: site map,
   every component, and the footer actions.
   ========================================================= */
.mx { position: absolute; inset: 0; background: #0a0a0b; overflow: hidden}
.mx-glass { background: rgba(13, 13, 13, 0.88); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none}
.mx-lab { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent)}

/* the farm fills the middle of the screen, behind the panels */
.mx-scene { position: absolute; inset-inline-start: 0; top: 80px; width: 1448px; height: 744px; overflow: hidden; background: #d2d2d7}
.mx-scene > svg, .mx-scene > .f2-host { position: absolute; inset: 0; width: 100%; height: 100%; display: block}
.mx-scene.dim::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 8, 0.58); pointer-events: none}

/* ---------- top bar ---------- */
.mx-top { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 0; height: 80px; z-index: 10; background: #0a0a0b; border-bottom: 1px solid #1d1d1f}
.mx-back { position: absolute; inset-inline-start: 20px; top: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #2c2c2e; background: #111112; color: #e5e5ea}
.mx-back:hover { border-color: var(--accent-line); color: var(--accent)}
.mx-ttl { position: absolute; inset-inline-start: 80px; top: 12px}
.mx-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #c7c7cc}
.mx-crumbs button:hover { color: var(--accent)}
.mx-crumbs .ico { color: #7c7c80}
.mx-ttl h1 { margin: 4px 0 0; display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; color: #ffffff; letter-spacing: -.01em}
.mx-pill { height: 24px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 6px; border: 1px solid var(--accent-line); background: rgba(124, 124, 124, 0.1); color: var(--accent); font-size: 12.5px; font-weight: 600}
.mx-pill.done { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.1); color: var(--warn)}
.mx-pill.idle { border-color: #3a3a3c; background: none; color: #c7c7cc}
.mx-kdb { position: absolute; inset-inline-start: 440px; top: 20px; height: 40px; display: flex; align-items: center}
.mx-kdb button { height: 40px; padding-block: 0 0; padding-inline: 6px 16px; display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; border: 1px solid #2c2c2e; background: #111112; font-size: 15px; font-weight: 600; color: #e5e5ea; transition: border-color .2s}
.mx-kdb button > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1d1d1f; color: #d2d2d7}
.mx-kdb button:hover { border-color: var(--accent-line)}
.mx-kdb button.now { border-color: var(--accent); background: rgba(124, 124, 124, 0.1); color: #ffffff; outline: 3px solid rgba(0, 255, 111, .12); outline-offset: 0; box-shadow: none}
.mx-kdb button.now > span { background: var(--accent); color: #0a0a0b}
.mx-kdb button.done > span { background: rgba(124, 124, 124, 0.18); color: var(--accent)}
.mx-kdb button.lock { color: #86868b}
.mx-kdb button.lock > span { color: #7c7c80}
.mx-kdb > i { width: 22px; height: 2px; background: #2c2c2e}
.mx-kdb > i.on { background: var(--accent)}
.mx-tr { position: absolute; inset-inline-end: 18px; top: 12px; height: 56px; display: flex; align-items: center; gap: 12px}
.mx-stat { display: flex; align-items: center; gap: 9px; padding: 0 6px}
.mx-stat .si { display: grid; place-items: center}
.mx-stat .si.xp { color: #a78bfa}
.mx-stat b { display: block; font-size: 18px; font-weight: 700; color: #ffffff; line-height: 1.1}
.mx-stat small { display: block; font-size: 12px; color: #aeaeb2}
.mx-ib { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid #2c2c2e; background: rgba(18, 18, 18, 0.92); color: #e5e5ea; flex: none}
.mx-ib:hover { border-color: var(--accent-line); color: var(--accent)}
.mx-ib.on { border-color: var(--accent-line); color: var(--accent)}
.mx-ib.sm { width: 32px; height: 32px; border-radius: 9px}
.mx-ib .ndot { position: absolute; top: 8px; inset-inline-end: 8px; width: 9px; height: 9px; border-radius: 50%; background: #A78BFA; outline: 2px solid #0a0a0b; outline-offset: 0; box-shadow: none}
.mx-me { display: flex; align-items: center; gap: 10px; height: 52px; padding-block: 0 0; padding-inline: 4px 12px; border-radius: 12px; font-size: 15.5px; color: #ffffff}
.mx-me:hover { background: #161617}
.mx-me .tb-av { width: 42px; height: 42px}

/* ---------- left: objective, progress, steps, rewards ---------- */
.mx-left { position: absolute; inset-inline-start: 16px; top: 92px; width: 264px; height: 732px; z-index: 5; display: flex; flex-direction: column; overflow: hidden}
.mx-left > section { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07)}
.mx-left > section:last-child { border-bottom: 0}
/* left panel: the goal, what it takes to win, and the six steps — each step says what you do in it */
.mx-left .mx-lab { display: flex; align-items: center; gap: 6px}
.mx-obj h2 { margin: 8px 0 12px; font-size: 16px; font-weight: 700; line-height: 1.3; color: #ffffff}
.mx-wl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #98989d}
.mx-win { list-style: none; margin: 7px 0 0; padding: 0; display: grid; gap: 6px}
.mx-win li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: center; font-size: 13px; line-height: 1.3; color: #e5e5ea}
.mx-win .wi { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #1d1d1f; color: var(--accent)}
.mx-win li.ok .wi { background: var(--accent); color: #0a0a0b}
.mx-win li.no .wi { background: rgba(255,79,163, .16); color: #FF5CAE}
.mx-pt { display: flex; align-items: center; justify-content: space-between}
.mx-pt > span { font-size: 12.5px; color: #aeaeb2}
.mx-steps { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 12px !important}
.mx-steps .mx-pt { padding: 0 4px}
.mx-steps > .progress { display: block; flex: none; height: 6px; margin: 0 4px 2px}
.mx-pg { --pc: var(--text); --pc-fill: var(--text); --pc-ink: var(--bg); display: grid; gap: 4px}
.mx-pg.do { --pc: var(--accent); --pc-fill: var(--accent-fill); --pc-ink: #000}
.mx-pg.become { --pc: var(--accent-2-text); --pc-fill: var(--accent-2); --pc-ink: #fff}
.mx-pgl { display: flex; align-items: center; gap: 6px; padding: 0 6px 2px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pc)}
.mx-s { position: relative; width: 100%; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; text-align: start; color: #e5e5ea; transition: background .2s, border-color .2s}
.mx-s:hover { background: rgba(255, 255, 255, 0.04)}
.mx-s .n { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #48484a; font-size: 12.5px; font-weight: 700; color: #f5f5f7}
.mx-s .n i { position: absolute; inset-block-end: -3px; inset-inline-end: -5px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: #2c2c2e; color: #c7c7cc}
.mx-s .t { min-width: 0}
.mx-s .t b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25}
.mx-s .t small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: #98989d}
.mx-s em { position: absolute; inset-block-start: -8px; inset-inline-end: 10px; font-style: normal; font-size: 10px; line-height: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--pc-fill); color: var(--pc-ink)}
.mx-s.now { border-color: var(--pc); background: var(--tile)}
.mx-s.now .n { border-color: var(--pc); border-width: 2px; color: var(--pc)}
.mx-s.now .t b { color: var(--text)}
.mx-s.done .n { border-color: var(--pc-fill); background: var(--pc-fill); color: var(--pc-ink)}
.mx-s.lock { color: #8e8e93}
.mx-s.lock .n { border-color: #3a3a3c; color: #8e8e93}
.mx-s.lock .t small { color: #8e8e93}

/* ---------- middle ---------- */
.mx-step { position: absolute; inset-inline-start: 296px; top: 92px; width: 344px; z-index: 5; padding: 14px 16px}
.mx-step small { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--accent)}
.mx-step h2 { margin: 6px 0 6px; font-size: 22px; font-weight: 700; color: #ffffff}
.mx-step p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #d2d2d7}
.mx-chip { position: absolute; inset-inline-start: 662px; top: 784px; z-index: 6; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(9, 9, 9, 0.88); border: 1px solid var(--accent-line); font-size: 13.5px; color: #e5e5ea; white-space: nowrap; pointer-events: none}
.mx-chip .ico { color: var(--accent)}
.mx-info.info-panel { inset-inline-start: 652px; inset-inline-end: auto; top: 92px; width: 376px; z-index: 7; padding: 16px 18px; border-radius: 14px; background: rgba(9, 9, 9, 0.94); font-size: 14px}
.mx-panel { position: absolute; inset-inline-start: 296px; top: 206px; width: 732px; height: 606px; z-index: 5; padding: 16px 16px; border-radius: 14px; background: rgba(13, 13, 13, 0.92); border: 1px solid rgba(255, 255, 255, 0.09); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none}
.mx-panel h4 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #ffffff}
.mx-panel h4 .ico { color: var(--accent)}
.mx-panel h4 span { margin-inline-start: auto; font-size: 13px; font-weight: 400; color: #aeaeb2}
.mx-csvg { height: 320px}
.mx-panel .e-legend { margin-top: 10px}
.mx-panel .mf-note { margin-top: 16px}
.mx-plan { padding: 12px}
.mx-plan > .g2d-host.mx-g2d { position: absolute; inset-inline-start: 12px; inset-inline-end: 12px; top: 12px; bottom: 116px; border-radius: 10px; overflow: hidden}
.mx-plan .g2d-rules { display: none}
.mx-plan .g2d-sel { inset-inline-start: auto; inset-inline-end: 10px; top: 10px}
.mx-plan .g2d-scale { bottom: 12px}
.mx-plan .g2d-xy { bottom: 12px}
.mx-phint { position: absolute; inset-inline-start: 12px; inset-inline-end: 12px; bottom: 86px; height: 26px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c7c7cc}
.mx-phint .ico { color: var(--accent); flex: none}
.mx-plan.v-farm > .f2-host { position: absolute; inset-inline-start: 12px; inset-inline-end: 12px; top: 12px; bottom: 86px; border-radius: 10px; overflow: hidden}
.mx-plan.v-balance #fd-chart { height: 330px}
.mx-met { position: absolute; inset-inline-start: 12px; inset-inline-end: 12px; bottom: 12px; height: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px}
.mx-met button { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); text-align: start}
.mx-met button .ico { flex: none}
.mx-met button.ok .ico { color: var(--accent)}
.mx-met button.bad .ico { color: var(--warn)}
.mx-met button.bad { border-color: rgba(255, 159, 10, 0.35)}
.mx-met small { display: block; font-size: 12px; color: #aeaeb2}
.mx-met b { display: block; font-size: 17px; font-weight: 700; color: #ffffff}
.mx-live { position: absolute; inset-inline-start: 652px; top: 92px; width: 376px; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 8px}
.mx-lc { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px; text-align: start; border-radius: 12px}
.mx-lc small { display: block; font-size: 11.5px; color: #aeaeb2}
.mx-lc b { display: block; font-size: 16px; font-weight: 700; color: #ffffff}
.mx .fb-sel { inset-inline-start: 652px; inset-inline-end: auto; top: 214px; z-index: 7}
.mx .f2-ov.mx-ov { inset-inline-start: 296px; inset-inline-end: auto; top: 206px; width: 732px; z-index: 5}
.mx .f2-narr.mx-narr { inset-inline-start: 296px; top: 700px; bottom: auto; width: 470px; z-index: 5}
.mx .ft-bar.mx-play { inset-inline-start: 296px; inset-inline-end: auto; top: 770px; bottom: auto; width: 732px; z-index: 6}
.mx #confetti { position: absolute; inset-inline-start: 0; top: 80px; width: 1448px; height: 744px; z-index: 8; pointer-events: none}
.mx-hero { position: absolute; inset-inline-start: 296px; top: 640px; width: 732px; z-index: 6; display: flex; align-items: center; gap: 16px; padding-block: 14px 14px; padding-inline: 12px 18px}
.mx-hero small { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent)}
.mx-hero h2 { margin: 4px 0 4px; font-size: 24px; font-weight: 700; color: #ffffff}
.mx-hero p { margin: 0; font-size: 14px; line-height: 1.4; color: #d2d2d7}
.mx-out.mf-body { position: absolute; inset-inline-start: 296px; top: 206px; width: 732px; height: 606px; bottom: auto; padding: 14px; grid-template-columns: 1fr; overflow-y: auto}

/* ---------- right: mentor, resources, tools ---------- */
.mx-right { position: absolute; inset-inline-start: 1040px; top: 92px; width: 392px; height: 732px; z-index: 5; display: flex; flex-direction: column; gap: 12px}
.mx-right > section { position: relative}
.mx-mentor { flex: none; padding: 14px 16px}
.mx-mentor h3, .mx-res h3, .mx-tools h3 { margin: 0; display: flex; align-items: center; gap: 8px}
.mx-mentor h3 { font-size: 17px; font-weight: 600; color: #ffffff}
.mx-mentor .vf { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #0a0a0b}
.mx-mentor h3 .mx-ib { margin-inline-start: auto}
/* mentor card: who is talking and which step, the message in full (no scrolling),
   two quick explanations and a three-rung hint ladder */
.mx-mh { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center}
.mx-mav { position: relative; width: 44px; height: 44px}
.mx-mav img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover}
.mx-mav i { position: absolute; inset-inline-end: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid #111112}
.mx-mh small { display: block; margin-top: 2px; font-size: 12.5px; color: #aeaeb2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
.mx-macts { display: flex; gap: 4px}
.mx-bub { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #161617; border: 1px solid rgba(255, 255, 255, 0.07); font-size: 14px; line-height: 1.5; color: #e5e5ea}
.mx-bub #st-msg.flash { animation: flashIn .5s ease}
.mx-kick { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent)}
.mx-kick .link { margin-inline-start: auto; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: none}
.mx-mlinks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px}
.mx-mlinks button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #c7c7cc}
.mx-mlinks button .ico { color: var(--accent)}
.mx-mlinks button:hover, .mx-mlinks button.on { color: #ffffff}
.mx-ladder { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.07)}
.mx-ladder > span { margin-inline-end: auto; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #aeaeb2}
.mx-rung { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding-block: 0 0; padding-inline: 7px 11px; border-radius: 10px; border: 1px solid #2c2c2e; font-size: 13.5px; font-weight: 500; color: #e5e5ea; transition: border-color .15s, color .15s}
.mx-rung i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #1d1d1f; font-size: 11px; font-weight: 700; font-style: normal; color: #e5e5ea}
.mx-rung:hover { border-color: var(--accent-line)}
.mx-rung.on { border-color: var(--accent); color: #ffffff}
.mx-rung.used i { background: var(--accent); color: #0a0a0b}
.mx-rung.go { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.1); color: #a78bfa}
.mx-rung.go:hover { background: rgba(139, 92, 246, 0.2); color: #ffffff}
.mx-res { flex: 1; min-height: 0; padding: 14px 16px 10px; display: flex; flex-direction: column}
.mx-res h3, .mx-tools h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: #e5e5ea}
.mx-res h3 small { margin-inline-start: auto; font-size: 12px; font-weight: 500; letter-spacing: 0; color: #aeaeb2}
.mx-rl { flex: 1; min-height: 0; overflow-y: auto; margin-top: 8px; padding-inline-end: 2px}
.mx-rr { width: 100%; display: grid; grid-template-columns: 34px 1fr auto 20px; align-items: center; gap: 10px; height: 38px; padding: 0 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 13.5px; text-align: start; color: #e5e5ea}
.mx-rr:last-of-type { border-bottom: 0}
.mx-rr:hover { background: rgba(255, 255, 255, 0.03)}
.mx-rr.sel { background: rgba(124, 124, 124, 0.08); border-radius: 8px}
.mx-rr .ri { display: grid; place-items: center; width: 34px; height: 30px}
.mx-rr .ri svg.f2-part { width: 34px; height: 30px}
.mx-rr .rn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
.mx-rr .rv { font-size: 13px; color: #d2d2d7; white-space: nowrap}
.mx-rr .rc { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center}
.mx-rr.ok .rc { background: var(--accent); color: #0a0a0b}
.mx-rr.bad .rc { background: var(--red); color: #ffffff}
.mx-rr.warn .rc { background: var(--warn); color: #0a0a0b}
.mx-rr.todo .rc { border: 1.5px solid #424245}
.mx-rr.ok .rn { color: #ffffff}
.mx-bud { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 12.5px; color: #d2d2d7}
.mx-bud .progress { height: 6px}
.mx-empty { margin: 10px 4px; font-size: 13.5px; color: #aeaeb2; line-height: 1.45}
.mx-wait { display: flex; align-items: center; gap: 12px; padding: 14px 8px; font-size: 13.5px; line-height: 1.45; color: #d2d2d7}
.mx-wait .ico { flex: none; color: var(--accent)}
.mx-score { display: flex; align-items: center; gap: 14px}
.mx-score .ring { position: relative; width: 78px; height: 78px; flex: none}
.mx-score .ring svg { width: 78px; height: 78px}
.mx-score .ring b { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 19px; text-align: center; font-size: 23px; font-weight: 700; color: #ffffff}
.mx-score .ring small { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 46px; text-align: center; font-size: 10.5px; color: #98989d}
.mx-score .parts { flex: 1; display: grid; gap: 3px; font-size: 12.5px}
.mx-score .parts em { font-style: normal; font-weight: 600; font-size: 12.5px; margin-bottom: 2px}
.mx-score .parts div { display: flex; justify-content: space-between; color: #d2d2d7}
.mx-score .parts b { font-weight: 600; color: #ffffff}
.mx-crit { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 13px; color: #e5e5ea}
.mx-crit > span { display: inline-flex; align-items: center; gap: 6px}
.mx-crit .ico { color: var(--accent)}
.mx-iss { width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); font-size: 12.5px; text-align: start; color: #e5e5ea}
.mx-iss span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
.mx-iss .sev { flex: none; font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px}
.mx-tools { flex: none; padding: 14px 16px}
.mx-tl { display: flex; gap: 8px; margin-top: 10px}
.mx-tool { position: relative; flex: 1; min-width: 0; height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); font-size: 12.5px; color: #e5e5ea; white-space: nowrap; transition: border-color .2s, background .2s}
.mx-tool > span { display: grid; place-items: center; color: #e5e5ea}
.mx-tool:hover { border-color: var(--accent-line)}
.mx-tool.on { border-color: var(--accent); background: rgba(124, 124, 124, 0.1); color: #ffffff}
.mx-tool.on > span { color: var(--accent)}
.mx-tool.hard > span { color: #ff9f0a}
.mx-tool > i { position: absolute; inset-inline-end: 4px; top: 4px; min-width: 22px; height: 16px; padding: 0 4px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 600; display: grid; place-items: center}
.mx-tool > i.ok { background: rgba(124, 124, 124, 0.18); color: var(--accent)}
.mx-tool > i.bad { background: rgba(255, 159, 10, 0.18); color: var(--warn)}
.mx-tl2 { display: flex; align-items: center; gap: 8px; margin-top: 10px}
.mx-tl2 .ip-seg { flex: 1}
.mx-tl2 .ip-seg button { flex: 1; justify-content: center; height: 34px; padding: 0 8px}
.mx-tl2 .ip-tgl { height: 44px}
.mx-run { flex: 1; height: 44px; font-size: 15px; gap: 8px}

/* ---------- bottom: site map and every component ---------- */
/* Build's top view: the plan's outlines, links and checks laid over the 3D world seen from above */
.g2d.over > .s3d { position: absolute; inset: 0; z-index: 0}
.g2d.over > .g2d-svg { position: relative; z-index: 1}
.g2d.over .g-bg { fill: transparent}
.g2d.over .g-minor { stroke: rgba(255, 255, 255, 0.06)}
.g2d.over .g-major { stroke: rgba(255, 255, 255, 0.14)}
.g2d.over .g-world { opacity: .6}
.g2d.over .g-it .g-sh { fill: #ffffff; fill-opacity: 0; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.2; stroke-dasharray: 3 3}
.g2d.over .g-it .g-ic, .g2d.over .g-it .g-cells, .g2d.over .g-it .g-door, .g2d.over .g-it .g-ring { display: none}
.g2d.over .g-it:hover .g-sh { fill-opacity: .14; stroke-dasharray: none}
.g2d.over .g-it.sel .g-sh { fill-opacity: .16; stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: none}
.g2d.over .g-it.bad .g-sh { fill: var(--red); fill-opacity: .16; stroke: var(--red); stroke-width: 2; stroke-dasharray: none}
.g2d.over .g-it.focus .g-sh { stroke: var(--warn); stroke-width: 2.4; stroke-dasharray: none}
/* Build on one screen: the 3D world fills the middle; in the top view the plan sits over a box in it */
.mx-bstage { position: absolute; inset-inline-start: 296px; top: 230px; width: 732px; height: 576px; z-index: 4; pointer-events: none}
.mx-bstage > * { pointer-events: auto}
.mx-bstage .mx-topgrid { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 0; bottom: 108px; border-radius: 12px; overflow: hidden; background: transparent; border: 1px solid rgba(255, 255, 255, 0.16)}
.mx-bstage .mx-topgrid .g2d-sel { inset-inline-start: auto; inset-inline-end: 10px; top: 10px}
.mx-bstage .mx-topgrid .g2d-rules { display: none}
.mx-sel3d { position: absolute; inset-inline-end: 0; top: 0; width: 260px; pointer-events: none}
.mx-sel3d .g2d-sel { position: relative; inset: auto; width: 260px; pointer-events: auto}
.mx-bhint { position: absolute; inset-inline-start: 0; bottom: 76px; max-width: 100%; height: 28px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; background: rgba(9, 9, 9, 0.8); font-size: 13px; color: #e5e5ea; white-space: nowrap; overflow: hidden}
.mx-bhint .ico { flex: none; color: var(--accent)}
.mx-bhint span { overflow: hidden; text-overflow: ellipsis}
.mx-bstage .mx-met { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0}
.mx-bstage .mx-met button { background: rgba(9, 9, 9, 0.86); border-color: rgba(255, 255, 255, 0.12)}
.mx-map { position: absolute; inset-inline-start: 16px; top: 836px; width: 264px; height: 178px; z-index: 5; overflow: hidden}
.mx-map .g2d-host { position: absolute; inset: 0; top: 0; border-radius: 14px}
.mx-map .g2d-north, .mx-map .g2d-scale, .mx-map .g2d-xy { display: none}
.mx-maplab { position: absolute; inset-inline-start: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(9, 9, 9, 0.8); font-size: 12px; color: #e5e5ea}
.mx-maplab .ico { color: var(--accent)}
.mx-map .mx-ib.z { position: absolute; inset-inline-end: 10px; top: 10px}
.mx-map .mx-ib.x { position: absolute; inset-inline-end: 10px; bottom: 10px}
.mx-inv { position: absolute; inset-inline-start: 16px; top: 836px; width: 1416px; height: 178px; z-index: 5; padding: 10px 16px 12px}
.mx-it { display: flex; align-items: center; gap: 6px; height: 34px}
.mx-it h3 { margin-block: 0 0; margin-inline: 4px 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #ffffff}
.mx-it .sp { flex: 1}
.mx-ihint { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #c7c7cc}
.mx-ihint .ico { color: var(--accent)}
.mx-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 132px); gap: 9px; margin-top: 8px}
.mx-card { position: relative; height: 112px; padding: 6px 6px 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: #161617; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; transition: border-color .2s, transform .2s}
.mx-card:hover { border-color: var(--accent-line); transform: translateY(-2px)}
.mx-card[draggable="true"] { cursor: grab}
.mx-card.on { border-color: var(--accent); outline: 2px solid rgba(0, 255, 111, .25); outline-offset: 0; box-shadow: none}
.mx-card.off { opacity: .45}
.mx-card.full .art { opacity: .6}
.mx-card .art { width: 84px; height: 72px; display: grid; place-items: center; pointer-events: none}
.mx-card .art svg { width: 84px; height: 72px; display: block}
.mx-card b { font-size: 12.5px; font-weight: 500; color: #e5e5ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; pointer-events: none}
.mx-card .cb { position: absolute; inset-inline-end: 5px; top: 5px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: #7c5cf0; color: #ffffff; font-style: normal; font-size: 11px; font-weight: 700}
.mx-card .cb.ok { background: var(--accent); color: #0a0a0b}
.mx-card.pulse { animation: pulse 1s 2}
.mx-map .g2d-host .g2d-svg { width: 100%; height: 100%}
.mx-bigmap { position: relative; height: 560px; border-radius: 12px; overflow: hidden}
.mx-bigmap .g2d-host { position: absolute; inset: 0; top: 0}

/* ---------- footer ---------- */
.mx-foot { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: auto; bottom: 0; height: 80px; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 18px 18px 18px 20px; border-top: 1px solid #1d1d1f; background: #0a0a0b}
.mx-foot .sp { flex: 1}
.mx-fb { height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 9px; border-radius: 10px; border: 1px solid #2c2c2e; background: #111112; font-size: 14.5px; color: #f5f5f7}
.mx-fb:hover { border-color: var(--accent-line)}
.mx-fb .ico { color: #d2d2d7}
/* the mission rewards beside Give Feedback */
.mx-rw { display: flex; align-items: center; gap: 20px; margin-inline-start: 8px; padding-inline-start: 20px; border-inline-start: 1px solid #2c2c2e; height: 40px}
.mx-rw .mx-lab { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px}
.mx-rwi { display: inline-flex; align-items: center; gap: 9px}
.mx-rwi > .ico { flex: none; color: #a78bfa}
.mx-rwi small { display: block; font-size: 11px; line-height: 1.2; color: #98989d}
.mx-rwi b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #ffffff; white-space: nowrap}
.mx-go { min-width: 300px; height: 48px; font-size: 16px; font-weight: 600; gap: 10px}

/* feedback */
.mx-fbk { display: grid; gap: 14px}
.mx-stars { display: flex; gap: 6px}
.mx-stars button { color: #545458}
.mx-stars button.on { color: #a78bfa}
.mx-fbk textarea { width: 100%; height: 120px; resize: none; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a0a0b; color: var(--text); font: inherit; font-size: 14px; outline: 0}
.mx-fbk textarea:focus { border-color: var(--accent-line)}
/* the step card sits above the panels and live cards */
.mx-panel, .mx-out.mf-body { top: 226px; height: 586px}
.mx .f2-ov.mx-ov { top: 226px}

/* ---------- v96: the farm's inventory has two shelves, Parts and Extras; Parts holds 14 cards in one row ---------- */
.mx-itabs { display: flex; gap: 4px; margin-inline-start: 14px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1)}
.mx-itabs button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #a1a1a6}
.mx-itabs button em { font-style: normal; font-weight: 500; font-size: 12px; color: #86868b}
.mx-itabs button:hover { color: #f5f5f7}
.mx-itabs button.on { background: #2c2c2e; color: #f5f5f7}
.mx-itabs button.on em { color: #00FF6F}
.mx-inv.dense .mx-cards { grid-auto-columns: minmax(0, 92px); gap: 6px}
.mx-inv.dense .mx-card { padding: 6px 4px 8px}
.mx-inv.dense .mx-card .art, .mx-inv.dense .mx-card .art svg { width: 74px; height: 66px}
.mx-inv.dense .mx-card b { font-size: 12px}
/* the footer stays on one line; seven or eight checks still fit without scrolling */
.mx-fb { flex: none; white-space: nowrap}
.mx-rl:has(> .mx-rr:nth-of-type(7)) .mx-rr { height: 32px}
.mx-rl:has(> .mx-rr:nth-of-type(8)) .mx-rr { height: 28px; font-size: 13px}

/* Match the header control height and its logical edge spacing. */
.mx-foot { padding-inline: 20px 18px }
.mx-foot .mx-go { height: 44px }
