/* Scoped reading/feedback additions. Existing CardMira header, room, motion and story layout stay authoritative. */
.cmx-contexts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.cmx-contexts button{border-radius:999px;min-height:44px;font-size:.9rem;padding:8px 16px}
.cmx-contexts button,.cmx-whole-positions button,.cmx-whole>button{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
.cmx-context-text{color:var(--ink);font-size:.95rem;line-height:1.65}.cmx-whole{clear:both;margin-top:20px;padding:18px;border-radius:12px;background:var(--soft)}.cmx-whole h3{font-size:1rem;margin-bottom:8px}.cmx-whole p{font-size:.9rem;margin-bottom:12px}
.cmx-note-chips{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.cmx-note-chips button{font-size:.8rem;min-height:44px;padding:7px 12px;border-radius:999px}
.cmx-save-feedback{flex:0 0 auto;width:100%;border:1px solid var(--line);border-radius:14px;padding:18px;background:var(--sage);overflow-wrap:anywhere}.cmx-save-feedback h3{font-size:1.05rem;margin-bottom:8px}.cmx-save-feedback p{font-size:.9rem;line-height:1.6;margin:8px 0}.cmx-save-feedback[data-save-state=failed],.cmx-save-feedback[data-save-state=changed]{background:#f8eee4}.cmx-save-feedback .table-actions{margin-top:12px;gap:8px}.cmx-save-feedback summary{min-height:44px;cursor:pointer}.cmx-note-text{white-space:pre-wrap}.cmx-error{color:var(--coral-ink)}
.cmx-example{width:min(1000px,calc(100vw - 32px));max-width:1000px;padding:28px;max-height:calc(100svh - 32px);overflow:auto}.cmx-example h2{font-size:1.5rem}.cmx-example h3{font-size:1.1rem}.cmx-example p{font-size:.95rem;line-height:1.65}.cmx-example-boundary{padding:16px;background:var(--soft);border-radius:12px}.cmx-example-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:24px;margin:24px 0}.cmx-example-grid img{width:120px;height:198px;object-fit:contain;margin:0 auto 16px}.cmx-example>section{margin-bottom:20px}
@media(max-width:600px){.cmx-contexts{gap:6px}.cmx-contexts button{padding:8px 12px}.cmx-example{padding:20px;width:calc(100vw - 24px)}.cmx-example-grid{grid-template-columns:1fr}.cmx-save-feedback{padding:14px}.cmx-save-feedback .table-actions>*{max-width:100%}}

.cmx-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:18px}.cmx-gallery article{min-width:0;padding:14px;border:1px solid var(--line);border-radius:14px}.cmx-gallery img{width:100%;height:180px;object-fit:contain}.cmx-gallery h3{font-size:1rem;overflow-wrap:anywhere}.cmx-gallery span{display:inline-block;margin:4px 8px 4px 0;font-size:.8rem}.cmx-gallery a{display:block;min-height:44px;padding-top:10px}@media(max-width:380px){.cmx-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cmx-gallery article{padding:8px}}

@media(max-width:380px){.cmx-contexts button{padding-inline:6px}.cmx-whole{padding:12px 8px}.cmx-whole-positions ol{padding-inline-start:1em}.cmx-whole-positions button{padding-inline:6px;border-radius:12px;font-size:.9rem}}
