/* mini-matt-voice 1.0.0 (APP-LOCAL, appmatt build 9): playground view-voice voice.css, every rule scoped under .mattx-voice (prep-views150-build9.py). */
.mattx-voice{--ink:#14171f;--ivory:#fdfcf6;--muted:#4a4f5c;--navy:#122c4f;--line:#d9d4c0;--night:#0e1626;--focus:#b07d00;--gold:#b8892a}
.mattx-voice,.mattx-voice *{box-sizing:border-box}
.mattx-voice{margin:0;background:var(--ivory);color:var(--ink);font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.mattx-voice .bar{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px 16px;border-bottom:1px solid var(--line)}
.mattx-voice .bar h1{font-size:1.05rem;margin:0;flex:1}
.mattx-voice .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-voice a.btn{text-decoration:none;display:inline-flex;align-items:center}
.mattx-voice .btn:focus-visible,.mattx-voice .t-item:focus-visible,.mattx-voice .sets input:focus-visible,.mattx-voice summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.mattx-voice .notice{margin:0;padding:6px 16px;background:#fff4d6;font-size:.88rem;border-bottom:1px solid #e8d9a8}
.mattx-voice .stage{position:relative;height:70vh;min-height:320px;background:linear-gradient(#3f8fd8,#8cc6ee 55%,#eaf4f8)}
[data-matt-mode=night] .mattx-voice .stage{background:var(--night)}
.mattx-voice #cv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
.mattx-voice .fallback{position:absolute;inset:16px;display:flex;align-items:center;justify-content:center}
.mattx-voice .fallback p{background:var(--ivory);color:var(--ink);padding:16px;border-radius:10px;max-width:28em;margin:0}
.mattx-voice .hint{position:absolute;left:16px;right:16px;bottom:6px;margin:0;font-size:.78rem;color:#14171f;background:rgba(253,252,246,.88);border-radius:8px;padding:2px 8px;pointer-events:none}
.mattx-voice .panel{padding:10px 16px;border-top:1px solid var(--line)}
.mattx-voice .sets{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 14px}
.mattx-voice .sets legend{font-weight:700;font-size:.9rem;padding:0;float:left;width:100%}
.mattx-voice .sets label{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:.92rem;cursor:pointer}
.mattx-voice .sets input{width:20px;height:20px}
.mattx-voice .who{margin:4px 0 0;font-size:.88rem;color:var(--muted)}
.mattx-voice .who b{color:var(--ink)}
.mattx-voice details{border:1px solid var(--line);border-radius:10px;margin:0 0 8px;background:#fff}
.mattx-voice summary{min-height:44px;display:flex;align-items:center;padding:6px 12px;font-weight:700;cursor:pointer}
.mattx-voice .list,.mattx-voice .legend{list-style:none;margin:0;padding:0 12px 10px;display:flex;flex-direction:column;gap:6px}
.mattx-voice .legend{font-size:.9rem;color:var(--muted)}
.mattx-voice .t-item{font:inherit;font-weight:600;width:100%;min-height:44px;padding:6px 12px;border-radius:8px;border:1px solid var(--line);border-left:6px solid var(--navy);background:#fdfcf6;color:var(--ink);cursor:pointer;text-align:left}
.mattx-voice .t-item.bard{border-left-color:#7a5a2e}
.mattx-voice .t-item.goal{border-left-color:#5b3fa0;border-left-style:dashed}
.mattx-voice .t-empty{color:var(--muted);font-size:.9rem}
.mattx-voice #voice{padding:0 12px 10px}
.mattx-voice .foot{padding:10px 16px;border-top:1px solid var(--line);font-size:.82rem;color:var(--muted)}
.mattx-voice .foot p{margin:0}
.mattx-voice [hidden]{display:none!important}
.mattx-voice .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)}
[data-matt-mode=night] .mattx-voice .m3-scrim{background:rgba(5,9,18,.35)}
.mattx-voice .m3-card{width:100%;max-width:440px;background:#1b2a44;border:2px solid #c9a24a;border-radius:14px;padding:10px;box-shadow:0 10px 30px rgba(20,23,31,.3)}
.mattx-voice .m3-cardTop{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.mattx-voice .m3-kind{font-size:.8rem;font-weight:700;letter-spacing:.04em;background:#fdfcf6;color:#14171f;border:1px solid #b9b298;border-radius:6px;padding:2px 8px}
.mattx-voice .m3-x{min-width:44px;min-height:44px;border:1px solid #b9b298;border-radius:8px;background:#fdfcf6;color:#14171f;font-size:1.4rem;cursor:pointer}
.mattx-voice .m3-x:focus-visible{outline:3px solid #f0c43c;outline-offset:2px}
.mattx-voice .m3-read{background:#fdfcf6;color:#14171f;border-radius:10px;padding:12px;max-height:52vh;overflow:auto}
.mattx-voice .m3-read h3{margin:0 0 6px;font-size:1.1rem}
.mattx-voice .m3-read p{margin:0 0 6px}
.mattx-voice .m3-cite{font-size:.82rem;color:#3c4250;word-break:break-word}
.mattx-voice .m3-labels{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
.mattx-voice .m3-label{position:absolute;left:0;top:0;display:none;white-space:nowrap;font:600 14px/18px system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;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-voice .m3-labels.m3-wide .m3-label{font-size:15px;line-height:19px}
.mattx-voice .m3-label.m3-sel{border:2px solid #b07d00;padding:2px 7px}
.mattx-voice .shelves{padding:0 12px}
.mattx-voice .shelf h3{font-size:.92rem;margin:6px 0 4px}
.mattx-voice .slots{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.mattx-voice .slot{font-size:.85rem;padding:6px 10px;border-radius:8px;border:1px solid var(--line);background:#fff;min-height:36px;display:flex;align-items:center}
.mattx-voice .slot.fact{border-left:5px solid #b8892a}
.mattx-voice .slot.ghost{border:1px dashed #8a8f9c;color:var(--muted);background:#f1efe8}
.mattx-voice .slot.open{border-style:dashed;color:var(--muted)}
.mattx-voice .note{font-size:.82rem;color:var(--muted);margin:0;padding:0 12px 10px}
.mattx-voice .when{display:flex;gap:8px;padding:6px 16px}
.mattx-voice .when .btn[aria-pressed=true]{background:var(--navy);color:#fff}
.mattx-voice .b-acts{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}
.mattx-voice .b-actsRow{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.mattx-voice .b-btn{font:inherit;font-weight:600;min-height:44px;padding:8px 14px;border-radius:8px;border:2px solid var(--ink);background:#fff;color:var(--ink);cursor:pointer}
.mattx-voice .b-btn.primary{background:var(--navy);border-color:var(--navy);color:#fff}
.mattx-voice .b-btn:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.mattx-voice .b-actsNote{font-size:.8rem;color:var(--muted);margin:4px 0 0}
.mattx-voice .script{margin:0;padding:12px 14px;background:#fff;border-left:6px solid #7a2e3b;border-radius:8px;font-size:1.05rem;line-height:1.45}
.mattx-voice .script b{display:block;font-size:.82rem;color:var(--muted);letter-spacing:.04em}
