/* mini-matt-journey 1.0.0 (APP-LOCAL, appmatt build 9): playground view-journey journey.css, every rule scoped under .mattx-journey (prep-views150-build9.py). */
.mattx-journey{--ink:#14171f;--ivory:#fdfcf6;--muted:#4a4f5c;--navy:#122c4f;--line:#d9d4c0;--sky:#8cc6ee;--focus:#b07d00;--gold:#8a5d08}
.mattx-journey,.mattx-journey *{box-sizing:border-box}
.mattx-journey{margin:0;background:var(--ivory);color:var(--ink);font:16px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.mattx-journey .bar{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:6px 16px;border-bottom:1px solid var(--line)}
.mattx-journey .bar h1{font-size:1.05rem;margin:0}
.mattx-journey .btn{font:inherit;min-height:44px;padding:8px 14px;border-radius:8px;border:1px solid var(--navy);background:#fff;color:var(--navy);cursor:pointer}
.mattx-journey .modeLink{color:var(--navy);font-size:.85rem;margin-right:6px;display:inline-block;min-height:44px;line-height:44px}
.mattx-journey .btn:focus-visible,.mattx-journey .chip:focus-visible,.mattx-journey .q-btn:focus-visible,.mattx-journey .nm input:focus-visible,.mattx-journey summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.mattx-journey .stage{position:relative;height:70vh;min-height:360px;background:var(--sky)}
[data-matt-mode=night] .mattx-journey .stage{background:#0e1626}
.mattx-journey #cv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
.mattx-journey .chipDemo{position:absolute;top:8px;left:8px;margin:0;padding:2px 10px;font-size:.78rem;background:#fff4d6;border:1px solid #e8d9a8;border-radius:999px;z-index:1}
.mattx-journey .fallback{position:absolute;inset:16px;display:flex;align-items:center;justify-content:center}
.mattx-journey .fallback[hidden],.mattx-journey .hint[hidden]{display:none}
.mattx-journey .fallback p{background:var(--ivory);padding:16px;border-radius:10px;max-width:28em;margin:0}
.mattx-journey .hint{position:absolute;left:8px;right:8px;bottom:6px;margin:0;font-size:.78rem;pointer-events:none;background:rgba(253,252,246,.92);padding:4px 8px;border-radius:8px}
.mattx-journey .bardRow{padding:8px 0 4px;border-bottom:1px solid var(--line)}
.mattx-journey .bardCards{list-style:none;margin:0;padding:0 16px;display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory}
.mattx-journey .bc{flex:0 0 78%;max-width:300px;scroll-snap-align:start;background:#fff;border:1px solid var(--line);border-left:4px solid #c08a3e;border-radius:8px;padding:8px 10px;font-size:.88rem}
.mattx-journey .bc b{display:block;color:var(--gold);font-size:.8rem}
.mattx-journey .bc small{display:block;color:var(--muted);font-size:.72rem;margin-top:4px;word-break:break-word}
.mattx-journey .more{border-bottom:1px solid var(--line);padding:0 16px}
.mattx-journey .more summary{min-height:44px;display:flex;align-items:center;font-weight:700;cursor:pointer}
.mattx-journey .plist{list-style:none;margin:0 0 8px;padding:0}
.mattx-journey .plist li{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 6px}
.mattx-journey .grp{width:100%;font-size:.8rem;color:var(--muted)}
.mattx-journey .chip{font:inherit;font-size:.86rem;min-height:44px;padding:4px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer}
.mattx-journey .chip.lost{background:#f1efe8;border-color:#7c8294}
.mattx-journey .chip.ghost,.mattx-journey .chip.more{border-style:dashed;border-color:#1d5a8a}
.mattx-journey .chip.me{border-color:var(--gold);font-weight:700}
.mattx-journey .legend{margin:0 0 8px;padding-left:18px;font-size:.88rem}
.mattx-journey .foot{padding:8px 16px;font-size:.78rem;color:var(--muted)}
.mattx-journey .foot p{margin:0}
.mattx-journey .m3-scrim{position:absolute;inset:0;z-index:2;display:flex;align-items:flex-end;justify-content:center;padding:12px;background:rgba(20,30,50,.18)}
.mattx-journey .m3-scrim[hidden]{display:none}
.mattx-journey .m3-card{width:100%;max-width:420px;max-height:calc(100% - 12px);overflow:auto;background:#f4efe0;border:1px solid #b9b298;border-radius:14px;padding:10px;box-shadow:0 10px 30px rgba(20,23,31,.25)}
.mattx-journey .m3-cardTop{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.mattx-journey .m3-kind{font-size:.8rem;font-weight:700;padding:2px 8px;border:1px solid #b9b298;border-radius:999px;background:#fdfcf6;color:var(--ink)}
.mattx-journey .m3-x{font:inherit;font-size:1.3rem;min-width:44px;min-height:44px;border-radius:8px;border:1px solid #b9b298;background:#fff;color:var(--ink);cursor:pointer}
.mattx-journey .m3-read{background:#fdfcf6;color:#14171f;border-radius:10px;padding:10px}
.mattx-journey .m3-read h3{margin:0 0 4px;font-size:1rem}
.mattx-journey .m3-read p{margin:0 0 4px;font-size:.92rem}
.mattx-journey .m3-cite{font-size:.78rem;color:var(--muted)}
.mattx-journey .q-acts{border-top:1px solid var(--line);margin-top:6px;padding-top:6px}
.mattx-journey .q-actsRow{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-end}
.mattx-journey .q-actsNote{font-size:.76rem;color:var(--muted);margin:4px 0 0}
.mattx-journey .q-btn{font:inherit;font-weight:600;min-height:44px;padding:6px 12px;border-radius:8px;border:2px solid var(--ink);background:#fff;color:var(--ink);cursor:pointer}
.mattx-journey .q-btn.primary{background:var(--navy);border-color:var(--navy);color:#fff}
.mattx-journey .nm{display:flex;flex-direction:column;font-size:.76rem;color:var(--muted)}
.mattx-journey .nm input{font:inherit;min-height:44px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;width:9.5em;color:var(--ink);background:#fff}
.mattx-journey .m3-labels{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
.mattx-journey .m3-label{position:absolute;left:0;top:0;display:none;white-space:nowrap;font:600 14px/18px ;padding:3px 8px;border:1px solid #7a5a2e;border-radius:999px;background:rgba(253,252,246,.96);color:#14171f;box-shadow:0 1px 3px rgba(20,23,31,.35);will-change:transform}
.mattx-journey .m3-labels.m3-wide .m3-label{font-size:15px;line-height:19px}
.mattx-journey .m3-label.m3-sel{border:2px solid #b07d00;padding:2px 7px}
.mattx-journey .stage{height:62vh}
.mattx-journey .ctl{padding:8px 16px;border-bottom:1px solid var(--line)}
.mattx-journey .row{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:4px 0}
.mattx-journey .seg{display:flex;gap:0}
.mattx-journey .seg .q-btn{border-radius:0}
.mattx-journey .seg .q-btn:first-child{border-radius:8px 0 0 8px}
.mattx-journey .seg .q-btn:last-child{border-radius:0 8px 8px 0}
.mattx-journey .q-btn[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy)}
.mattx-journey .q-btn[disabled]{opacity:.5;cursor:default}
.mattx-journey .selName{margin:4px 0;font-weight:700;font-size:.92rem}
.mattx-journey .msg{margin:2px 0;font-size:.8rem;color:var(--muted)}
.mattx-journey .msg:empty{display:none}
.mattx-journey .msg.warn{color:#6b4a00;background:#fff8e6;border:1px solid #b07d00;border-radius:8px;padding:4px 8px}
.mattx-journey .nm.wide{margin:6px 0}
.mattx-journey .nm.wide select,.mattx-journey .nm.wide input{width:100%;font:inherit;min-height:44px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.mattx-journey .showBar{position:absolute;left:8px;right:8px;top:40px;z-index:1;display:flex;flex-wrap:wrap;gap:6px}
.mattx-journey .showBar[hidden]{display:none}
.mattx-journey.show .stage{position:fixed;inset:0;height:100vh;z-index:5}
.mattx-journey.show .chipDemo{top:8px}
.mattx-journey .row[hidden],.mattx-journey .ctl [hidden]{display:none}
.mattx-journey .chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.mattx-journey .sets{border:0;margin:0 0 8px;padding:0}
.mattx-journey .seg{gap:6px}
.mattx-journey .seg .q-btn{border-radius:8px}
.mattx-journey .bardRow[hidden],.mattx-journey .msg[hidden]{display:none}
.mattx-journey .walk{justify-content:space-between}
.mattx-journey .chip.me{border-color:#8a5d08;font-weight:700}
.mattx-journey .seg{gap:6px}
.mattx-journey .seg .q-btn{border-radius:8px}
