.mm-mobile-context { display:none; }
/* Scoped matrix presentation. The workspace navigation remains unchanged. */
.message-matrix-page { min-width:0; }
.mm-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:28px; }
.mm-heading h1 { margin:0 0 8px; font-size:28px; line-height:1.2; letter-spacing:-.035em; }
.mm-heading p { margin:0; color:var(--muted); max-width:640px; }
.mm-heading-actions { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.mm-resources { position:relative; }
.mm-resources summary { cursor:pointer; padding:10px 4px; font-weight:500; }
.mm-resources[open] .messaging-resources { position:absolute; right:0; top:100%; z-index:8; padding:16px; min-width:260px; background:var(--paper); border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 32px #24253215; }
.mm-toolbar { display:grid; grid-template-columns:minmax(260px,2fr) minmax(160px,1fr) minmax(160px,1fr) auto; gap:16px; align-items:end; }
.mm-toolbar label,.mm-more label,.mm-alternatives { display:grid; gap:7px; font-size:13px; font-weight:600; min-width:0; }
.message-matrix-page :is(input,select,textarea) { width:100%; min-width:0; box-sizing:border-box; border:1px solid var(--line); border-radius:6px; padding:10px 12px; background:var(--paper); color:var(--ink); font:inherit; }
.mm-toolbar :is(input,select) { box-sizing:border-box; width:100%; min-width:0; height:42px; font-size:14px; font-weight:400; }
.mm-toolbar>.button { min-height:42px; }
.mm-more { margin-top:12px; color:var(--muted); font-size:13px; }
.mm-more summary { cursor:pointer; width:fit-content; padding:6px 0; }
.mm-more .matrix-filters { grid-template-columns:repeat(4,minmax(0,1fr)); padding:12px 0; }
.mm-viewbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:20px 0 14px; }
.mm-count { margin:0; color:var(--muted); font-size:13px; }
.lyrebird-message-filters { margin: 1rem 0 .8rem; }
.lyrebird-message-filters ~ .mm-table-scroll { max-height: none; margin-top: .75rem; }
.lyrebird-message-list :is(th, td) { padding: .75rem .9rem; }
.lyrebird-message-list :is(th, td):nth-child(-n+2) { width: 6.25rem; }
.lyrebird-message-list small { display: block; margin-top: .2rem; color: var(--muted); }
@media (max-width: 640px) {
  .mm-toolbar.lyrebird-message-filters { grid-template-columns: 1fr; }
  .lyrebird-message-list :is(th, td):nth-child(-n+2) { width: auto; }
}
.mm-view-toggle { display:flex; border:1px solid var(--line); border-radius:7px; background:var(--paper); padding:3px; }
.mm-view-toggle button { border:0; border-radius:4px; background:transparent; padding:8px 14px; color:var(--muted); font:inherit; font-size:13px; cursor:pointer; }
.mm-view-toggle button[aria-pressed="true"] { background:var(--selected); color:var(--action); font-weight:600; }
.mm-table-scroll { overflow:auto; max-height:calc(100dvh - 450px); border:1px solid var(--line); border-radius:8px; background:var(--paper); scrollbar-gutter:stable; }
.mm-table-scroll table { border-collapse:separate; border-spacing:0; width:100%; text-align:left; font-size:13px; line-height:1.4; }
.mm-table-scroll :is(th,td) { border-right:1px solid var(--line); border-bottom:1px solid var(--line); vertical-align:top; }
.mm-table-scroll tr>:last-child { border-right:0; }
.mm-table-scroll tbody tr:last-child>* { border-bottom:0; }
.mm-table-scroll thead th { position:sticky; top:0; z-index:3; background:#f3f4f7; padding:14px 16px; font-weight:600; white-space:nowrap; }
.mm-journey { min-width:calc(165px + var(--mm-columns)*154px); table-layout:fixed; }
.mm-journey thead th:first-child { width:165px; z-index:4; left:0; }
.mm-journey tbody tr:not(.mm-family)>th { position:sticky; left:0; z-index:2; background:var(--paper); padding:18px 16px; font-weight:600; }
.mm-journey td { padding:0; }
.mm-family th { background:var(--surface); padding:9px 16px; color:var(--action); font-size:11px; letter-spacing:.06em; text-transform:uppercase; font-weight:650; }
.mm-cell { display:flex; flex-direction:column; justify-content:space-between; gap:10px; width:100%; min-height:103px; border:0; background:transparent; text-align:left; padding:16px; color:var(--ink); font:inherit; cursor:pointer; }
.mm-cell:hover,.mm-list tbody tr:hover { background:#f8f7fc; }
.mm-cell small { font-size:11px; color:var(--action); }
.mm-unavailable { display:block; padding:16px; color:var(--muted); }
.mm-list { min-width:820px; }
.mm-list :is(th,td) { padding:16px; }
.mm-list tbody th { width:170px; font-weight:500; }
.mm-list td:nth-child(2) { width:110px; }
.mm-list td:nth-child(3) { width:210px; color:var(--muted); }
.mm-stage { font-size:12px; white-space:nowrap; }
.mm-row-title { display:block; padding:0; border:0; background:transparent; color:var(--ink); font:inherit; font-weight:600; text-align:left; cursor:pointer; }
.mm-row-title:hover { color:var(--action); text-decoration:underline; text-underline-offset:3px; }
.mm-list small { display:block; color:var(--muted); font-size:12px; margin-top:5px; }
.message-matrix-page > .collection-pager { margin-block-start:16px; }
.mm-empty { padding:56px 24px; text-align:center; background:var(--paper); border:1px solid var(--line); border-radius:8px; }
.mm-empty h2 { font-size:20px; }
.mm-proof-filter { padding:12px 0; font-size:13px; }
.mm-dialog { position:fixed; inset:12px 12px 12px auto; margin:0; width:min(660px,calc(100vw - 24px)); height:calc(100dvh - 24px); max-height:none; max-width:none; padding:0; box-sizing:border-box; overflow:auto; border:1px solid var(--line); border-radius:12px; background:var(--paper); color:var(--ink); box-shadow:0 8px 64px #24253222; }
.mm-dialog::backdrop { background:#24253245; }
.mm-dialog-top { position:sticky; top:0; z-index:2; display:flex; justify-content:flex-end; padding:10px 24px; background:var(--paper); border-bottom:1px solid var(--line); }
.mm-create-actions { display:flex; flex-wrap:wrap; gap:8px; margin-inline-end:auto; }
.mm-dialog-top:has(.mm-create-actions) { gap:8px; align-items:flex-start; }
@media(max-width:480px) { .mm-dialog-top:has(.mm-create-actions) { padding-inline:12px; } }
.mm-detail { padding:28px; }
.mm-detail h2 { margin:10px 0 14px; font-size:28px; line-height:1.2; letter-spacing:-.025em; }
.mm-detail-context { margin:0; color:var(--action); font-size:12px; font-weight:600; }
.mm-detail-copy { color:var(--muted); line-height:1.55; margin-bottom:24px; }
.mm-detail-actions { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0 28px; }
.mm-alternatives { margin-top:20px; }
.mm-detail-section { border-top:1px solid var(--line); padding:20px 0; }
.mm-detail-section h3,.mm-detail-section summary { font-size:15px; font-weight:650; margin:0; }
.mm-detail-section summary { cursor:pointer; }
.mm-detail-section dl { margin:18px 0 0; display:grid; gap:16px; }
.mm-detail-section dl>div { display:grid; grid-template-columns:126px minmax(0,1fr); gap:16px; font-size:13px; line-height:1.5; }
.mm-detail-section dt { color:var(--muted); font-weight:400; }
.mm-detail-section dd { margin:0; overflow-wrap:anywhere; }
.mm-detail-section> a { display:inline-block; margin-top:16px; font-size:13px; }
.mm-detail-section a { color:var(--action); }
.mm-detail-section ul { font-size:13px; line-height:1.6; padding-left:20px; }
.mm-campaign-example { display:grid; grid-template-columns:minmax(120px, 180px) minmax(0, 1fr); gap:18px; align-items:center; margin-top:16px; }
.mm-campaign-example p { margin:0 0 12px; color:var(--muted); font-size:13px; }
.mm-campaign-example .matrix-actions { flex-wrap:wrap; align-items:center; margin:0; }
.mm-campaign-preview { aspect-ratio:4/5; overflow:hidden; border:1px solid var(--line); border-radius:7px; }
@media (max-width:400px) { .mm-campaign-example { grid-template-columns:minmax(0, 1fr); } .mm-campaign-preview { width:min(100%,180px); } }

/* Supporting content uses the same controls and surfaces as the message matrix. */
.supporting-workspace { color:var(--ui-ink); min-width:0; }
.supporting-workspace :is(h2,h3,p) { margin:0; }
.supporting-workspace h2 { font-size:20px; font-weight:650; line-height:1.25; letter-spacing:-.02em; }
.supporting-workspace .supporting-provenance { color:var(--ui-muted); font-size:12px; }
.supporting-feature { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:16px; padding:20px; margin:12px 0 28px; border:1px solid var(--ui-line); border-radius:8px; background:var(--ui-surface); }
.supporting-feature > div { display:grid; gap:8px; }
.supporting-feature h2 + p { max-width:66ch; }
.supporting-workspace .supporting-inventory > .mm-toolbar { margin:12px 0; }
.supporting-workspace .supporting-content { margin:20px 0 0; }
.supporting-workspace .supporting-content h2 { font-size:16px; margin-bottom:12px; }
.supporting-workspace .supporting-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.supporting-workspace .supporting-card { display:grid; grid-template-rows:auto; align-content:start; gap:8px; min-width:0; padding:16px; margin:0; border:1px solid var(--ui-line); border-radius:8px; background:var(--ui-paper); color:var(--ui-ink); }
.supporting-workspace .supporting-card h3 { font-size:16px; font-weight:650; }
.supporting-workspace .supporting-card blockquote { margin:0; font-size:16px; line-height:1.5; }
.supporting-workspace .supporting-card cite { font-style:normal; }
.supporting-workspace .supporting-symbol { display:none; }
.supporting-workspace .supporting-handoff { display:grid; gap:10px; border-top:1px solid var(--ui-line); padding-top:10px; color:var(--ui-muted); font-size:13px; }
.supporting-workspace :is(.supporting-actions,.supporting-feature) .button { align-content:center; }
.supporting-actions { display:flex; flex-wrap:wrap; gap:8px; }
body.supporting-embed { background:var(--ui-paper); color:var(--ui-ink); }
:root[data-theme="dark"] body.supporting-embed { color-scheme:dark; }
body.embed .supporting-workspace .button { display:inline-flex; align-items:center; border:1px solid var(--ui-field-line); color:var(--ui-ink); background:var(--ui-paper); text-decoration:none; }
@media (max-width:700px) { .supporting-workspace .supporting-grid { grid-template-columns:minmax(0, 1fr); } }
.mm-revision { border-top:1px solid var(--line); padding-top:20px; color:var(--muted); font-size:12px; }
.mm-detail .matrix-editor { padding:0; border:0; box-shadow:none; }
.mm-detail .matrix-editor>h2 { display:none; }
.mm-detail .matrix-editor .matrix-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.mm-detail .matrix-editor label { font-size:12px; }
.mm-detail .matrix-editor .matrix-actions { position:sticky; bottom:0; background:var(--paper); padding:16px 0; border-top:1px solid var(--line); }
.message-matrix-page :focus-visible { outline:2px solid var(--action); outline-offset:3px; }
.mm-cell:focus-visible { outline-offset:-3px; }
.mm-visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:1050px) {
  .mm-resources[open] .messaging-resources { left:0; right:auto; }
  .mm-heading { flex-direction:column; gap:16px; margin-bottom:24px; }
  .mm-toolbar { grid-template-columns:minmax(180px,2fr) minmax(120px,1fr) minmax(120px,1fr); gap:12px; }
  .mm-toolbar>button { grid-column:3; }
  .mm-more { margin-top:-36px; min-height:36px; }
  .mm-more[open] { margin-top:12px; }
  .mm-more .matrix-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mm-table-scroll { max-height:65dvh; }
}
@media (max-width:700px) {
  .mm-heading h1 { font-size:25px; }
  .mm-heading p { font-size:14px; }
  .mm-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mm-search { grid-column:1/-1; }
  .mm-toolbar>button { grid-column:2; }
  .mm-more .matrix-filters { grid-template-columns:1fr; }
  .mm-viewbar { align-items:flex-start; flex-direction:column; gap:12px; }
  .mm-table-scroll { max-height:65dvh; }
  .mm-list { min-width:0; table-layout:fixed; }
  .mm-list tr>:nth-child(1),.mm-list tr>:nth-child(2) { display:none; }
  .mm-list .mm-mobile-context { display:block; margin-bottom:7px; font-size:11px; color:var(--muted); }
  .mm-list tr>:nth-child(3) { display:none; }
  .mm-list tbody th { width:120px; }
  .mm-list td:nth-child(2) { width:75px; }
  .mm-list :is(th,td) { padding:12px; }
  .mm-detail { padding:20px; }
  .mm-detail h2 { font-size:25px; }
  .mm-detail-section dl>div { grid-template-columns:1fr; gap:4px; }
  .mm-detail .matrix-editor .matrix-filters { grid-template-columns:1fr; }
}

.mm-brand { margin:4px 0 0; color:var(--muted); font-size:11px; }

/* Evolution 3: a readable table with explicit filtering and ordering. */
.mm-filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.mm-filter-chips:empty{display:none}.mm-filter-chips button{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:20px;padding:8px 12px;font:inherit;font-size:12px;cursor:pointer}.mm-filter-chips button span{margin-left:8px}.mm-sort{display:flex;align-items:center;justify-content:flex-end;gap:12px;font-size:12px;color:var(--muted);margin:12px 0}.mm-sort select{width:auto;max-width:220px;font-size:12px}.mm-table-scroll:has(.mm-list){max-height:none}.mm-list{min-width:0}.mm-list tr>:nth-child(3){display:none}.mm-list tbody th{width:155px}.mm-list td:nth-child(2){width:92px}.mm-list th,.mm-list td{border-right:0}.mm-row-title{font-size:15px;line-height:1.4}.mm-list small{font-size:11px}.mm-list tbody tr:hover{background:var(--selected)}@media(max-width:700px){.mm-sort{justify-content:flex-start}.mm-sort select{max-width:190px}}
.mm-results{scroll-margin-top:72px}

.mm-table-scroll:has(.mm-published-list,.mm-published-journey) { max-height:none; scrollbar-gutter:auto; }
.mm-table-scroll .mm-published-list { min-width:720px; table-layout:fixed; font-size:14px; line-height:1.45; }
.mm-published-list th:nth-child(1) { width:29%; }
.mm-published-list th:nth-child(2) { width:18%; }
.mm-published-list th:nth-child(3) { width:23%; }
.mm-published-list tbody :is(th,td) { padding:14px 16px; font-weight:400; overflow-wrap:anywhere; }
.mm-published-list small { display:block; margin-top:5px; color:var(--muted); font-size:12px; }
.mm-published-list tr:hover { background:var(--surface); }
.mm-published-list .mm-row-title { font-size:15px; }
.mm-evidence-copy { margin:0; }
.mm-evidence-source { display:inline-block; margin-top:4px; font-size:12px; text-underline-offset:2px; }
.mm-published-journey { min-width:calc(148px + var(--mm-columns)*205px); }
.mm-published-journey .mm-cell { min-height:0; gap:4px; padding:12px 14px 8px; font-weight:600; }
.mm-journey-summary { padding:0 14px 14px; line-height:1.45; }
.mm-journey-summary > p { margin:0 0 7px; }
.mm-journey-summary .mm-journey-audience { font-size:12px; color:var(--muted); }
.mm-journey-evidence { border-top:1px solid var(--line); padding-top:7px; }

/* Filtering is one deliberate disclosure; result context stays beside the work. */
.mm-controls { margin:12px 0 0; }
.mm-controls>summary { cursor:pointer; min-height:44px; display:flex; align-items:center; gap:8px; }
.mm-controls-body { display:grid; gap:12px; padding:12px 0; }
.mm-primary-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:16px; align-items:end; }
.mm-primary-filters label { display:grid; gap:7px; font-size:13px; font-weight:600; min-width:0; }
.mm-controls .mm-more { margin:0; min-height:0; }
.mm-controls .mm-view-controls { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.mm-controls .mm-sort { margin:0; }
.mm-editor-group { min-width:0; margin:0; padding:18px 0; border:0; border-top:1px solid var(--line); }
.mm-editor-group legend,.mm-editor-group>summary { font-size:16px; font-weight:600; }
.mm-editor-group>summary { cursor:pointer; min-height:44px; }
.mm-editor-group .matrix-filters { margin-top:12px; }
.mm-field-requirement { font-size:11px; font-weight:400; color:var(--muted); }
.mm-editor-group .studio-hint { font-weight:400; }
@media(max-width:700px) {
  .message-matrix-page .mm-toolbar { grid-template-columns:minmax(0,1fr); }
  .message-matrix-page .mm-heading { gap:12px; margin-bottom:12px; }
  .message-matrix-page .mm-heading p { display:none; }
  .message-matrix-page .mm-heading-actions { width:100%; justify-content:space-between; }
  .message-matrix-page .mm-primary-filters { grid-template-columns:minmax(0,1fr); }
  .message-matrix-page .mm-controls .mm-view-controls { display:grid; gap:12px; }
  .message-matrix-page .mm-viewbar { margin:8px 0; }
  .message-matrix-page .mm-controls :is(button,select,input,summary),.message-matrix-page .mm-heading-actions :is(button,summary),.message-matrix-page .mm-toolbar input { min-height:44px; }
  .message-matrix-page .mm-view-toggle { display:grid; grid-template-columns:1fr 1fr; }
  .message-matrix-page .mm-sort { justify-content:space-between; }
  .message-matrix-page .mm-sort select { max-width:none; width:100%; }
}
