/*MATRIX LINKED APP SHELL — the toolbar, status bar and dense table furniture for preview windows.*/
.mla__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 7px 12px; border-bottom: 1px solid #ffffff1a; background: linear-gradient(180deg, #17222d, #101922); color: #a3b8c6; font: 700 .58rem/1.4 var(--ml-font); letter-spacing: .09em; text-transform: uppercase; }
.mla__module { padding: 3px 8px; border: 1px solid #38bdf845; border-radius: 5px; background: #12303f; color: #8fdcf6; }
.mla__chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #ffffff1f; border-radius: 5px; background: #ffffff07; color: #c3d6e2; }
.mla__chip--quiet { color: #90a8b8; }
.mla__jump { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid #38bdf84d; border-radius: 5px; background: #0f2836; color: #9ee2fb; font: inherit; letter-spacing: inherit; text-transform: uppercase; cursor: pointer; }
.mla__jump:hover { border-color: #7dd9f5; background: #163b4f; color: #fff; }
.mla__user { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #d7e8f2; }
.mla__sample { display: inline-flex; align-items: center; gap: 5px; color: #8be3b4; }
.mla__sample::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mla__status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 5px 12px; border-top: 1px solid #ffffff1a; background: #0b131a; color: #7d95a4; font: 700 .54rem/1.5 var(--ml-font); letter-spacing: .1em; text-transform: uppercase; }
.mla__meta { color: #6f8797; }
.ml-app-window__controls .ml-app-window__snap { font-size: .88rem; color: #93c5de; }
.ml-app-window__controls button[aria-pressed="true"] { background: #0ea5e933; color: #7dd3fc; }

/* Windows hold application layouts, not landing pages: tighter padding
   and a heading scale closer to a desktop tool. */
.ml-app-window__body { padding: clamp(14px, 1.8vw, 22px); overscroll-behavior: contain; }
.ml-app-window__body h2 { font-size: clamp(1.05rem, 1.9vw, 1.45rem); letter-spacing: -.02em; line-height: 1.2; }
.ml-app-window__body .ml-demo-app > p:not(.ml-label):not(.ml-demo-note) { margin-top: 10px; font-size: .8rem; line-height: 1.65; max-width: 78ch; }
.ml-app-window__body .ml-work-header { padding-bottom: 10px; }
.ml-app-window__body .ml-work-header h2 { margin-top: 2px; }

/* Existing list blocks sit inside the new panels, so their own frames and
   landing-page rhythm are dropped to keep rows at table density. */
.ml-app-window__body .ml-work-agenda { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.ml-app-window__body .ml-work-agenda li { padding: 8px 11px; gap: 12px; }
.ml-app-window__body .ml-work-agenda strong { font-size: .8rem; }
.ml-app-window__body .ml-work-agenda li > span { font-size: .7rem; }
.ml-app-window__body .ml-work-metrics { gap: 8px; }
.ml-app-window__body .ml-work-metrics article { padding: 9px 11px; border-radius: 8px; background: #0f1a24; }
.ml-app-window__body .ml-work-metrics article > span { font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; }
.ml-app-window__body .ml-work-metrics strong { margin: 4px 0 2px; font-size: 1.3rem; letter-spacing: -.04em; }
.ml-app-window__body .ml-work-metrics small { font-size: .58rem; line-height: 1.45; }
.ml-app-window__body .ml-dash__kpi { padding: 9px 11px; }
.ml-app-window__body .ml-dash__kpi > strong, .ml-app-window__body .ml-dash__kpi [data-dash-value] { font-size: 1.3rem; letter-spacing: -.04em; }

/* ── Shared primitives ─────────────────────────────────────────────── */
.mlui-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin: 12px 0; }
.mlui-kpi { min-width: 0; padding: 9px 11px; border: 1px solid #ffffff1e; border-left: 2px solid #38bdf8aa; border-radius: 8px; background: #0f1a24; }
.mlui-kpi span { display: block; color: #93aab9; font: 700 .54rem/1.4 var(--ml-font); letter-spacing: .1em; text-transform: uppercase; }
.mlui-kpi strong { display: block; margin: 5px 0 3px; color: #eaf5fd; font: 700 1.28rem/1 var(--ml-font); letter-spacing: -.04em; }
.mlui-kpi strong small { margin-left: 3px; color: #8fa8b8; font: 700 .58rem/1 var(--ml-font); letter-spacing: 0; }
.mlui-kpi em { display: block; color: #8ba3b3; font: 700 .56rem/1.5 var(--ml-font); font-style: normal; letter-spacing: .04em; }
.mlui-kpi--good { border-left-color: #4ade80aa; }
.mlui-kpi--good strong { color: #b6f0cd; }
.mlui-kpi--warn { border-left-color: #facc15aa; }
.mlui-kpi--warn strong { color: #f6e08a; }

.mlui-panel { display: grid; gap: 0; border: 1px solid #ffffff1c; border-radius: 9px; background: #0d1822; overflow: hidden; }
.mlui-panel + .mlui-panel, .ml-consolebar + .mlui-panel, .ml-demo-note + .mlui-panel { margin-top: 12px; }
.mlui-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 11px; border-bottom: 1px solid #ffffff14; background: #111d27; }
.mlui-panel__head h3 { margin: 0; color: #dcedf7; font: 700 .68rem/1.4 var(--ml-font); letter-spacing: .1em; text-transform: uppercase; }
.mlui-panel__head span { color: #8ba3b3; font: 700 .54rem/1.4 var(--ml-font); letter-spacing: .08em; text-transform: uppercase; }
.mlui-panel__body { padding: 10px 11px; }
.mlui-panel--flush .mlui-panel__body { padding: 0; }

.mlui-table { width: 100%; border-collapse: collapse; font-size: .7rem; }
.mlui-table thead th { padding: 6px 9px; border-bottom: 1px solid #ffffff24; background: #0b141c; color: #8ba3b3; font: 700 .52rem/1.4 var(--ml-font); letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.mlui-table thead th.is-num { text-align: right; }
.mlui-table tbody td { padding: 7px 9px; border-bottom: 1px solid #ffffff10; color: #d3e4ee; vertical-align: middle; }
.mlui-table tbody tr:last-child td { border-bottom: 0; }
.mlui-table tbody tr:hover td { background: #ffffff07; }
.mlui-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.mlui-table small { display: block; color: #8299a9; font: 700 .52rem/1.4 var(--ml-font); letter-spacing: .05em; }
.mlui-ref { color: #8fdcf6; font: 700 .62rem/1.3 var(--ml-font); letter-spacing: .04em; }
.mlui-scroll { overflow-x: auto; }

.mlui-row { display: grid; grid-template-columns: minmax(0, 1fr) 94px 104px 96px; align-items: center; gap: 8px; padding: 7px 9px; border-bottom: 1px solid #ffffff10; font-size: .7rem; color: #d3e4ee; }
.mlui-row--head { border-bottom: 1px solid #ffffff24; background: #0b141c; color: #8ba3b3; font: 700 .52rem/1.4 var(--ml-font); letter-spacing: .1em; text-transform: uppercase; }
.mlui-row > span { min-width: 0; }
.mlui-row strong { display: block; color: #e4f1f9; font-size: .74rem; font-weight: 600; }
.mlui-row small { display: block; margin-top: 2px; color: #8299a9; font: 700 .52rem/1.5 var(--ml-font); letter-spacing: .05em; }

/* A text link that happens to be a button: no inherited control chrome. */
.mlui-link { display: inline-flex; align-items: center; gap: 4px; width: auto; padding: 0; border: 0; border-radius: 0; background: none; color: #8fdcf6; font: 700 .58rem/1.5 var(--ml-font); letter-spacing: .06em; text-decoration: none; cursor: pointer; }
.mlui-link:hover { color: #bfeaff; text-decoration: underline; }

.mlui-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid #ffffff2e; border-radius: 999px; background: #ffffff0a; color: #bbcfdb; font: 700 .52rem/1.6 var(--ml-font); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.mlui-chip--ready { border-color: #38bdf855; background: #10303f; color: #9ddff8; }
.mlui-chip--active { border-color: #4ade8055; background: #10291f; color: #96e8b8; }
.mlui-chip--review { border-color: #facc1555; background: #2a2411; color: #f3dd8a; }
.mlui-chip--done { border-color: #ffffff26; background: #ffffff08; color: #a3b8c6; }
.mlui-chip--p1 { border-color: #fb718566; background: #34151c; color: #ffa7b4; }
.mlui-chip--p2 { border-color: #facc1544; background: #2a2411; color: #f3dd8a; }

.mlui-bar { display: block; overflow: hidden; width: 100%; height: 5px; border-radius: 3px; background: #ffffff14; }
.mlui-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #6ee7b7); }
.mlui-bar--warn i { background: linear-gradient(90deg, #facc15, #fb923c); }
.mlui-bar--done i { background: linear-gradient(90deg, #34d399, #6ee7b7); }
.mlui-table td .mlui-bar { min-width: 52px; margin-bottom: 3px; }

/* Task rows and table cells carry the same small action controls. */
.mlui-row button, .mlui-table button { width: 100%; min-height: 26px; padding: 3px 8px; border: 1px solid #38bdf855; border-radius: 6px; background: #12293a; color: #b6e6f8; font: 700 .56rem/1.4 var(--ml-font); letter-spacing: .06em; cursor: pointer; }
.mlui-row button:hover, .mlui-table button:hover { border-color: #7dd9f5; background: #1a4054; }
.mlui-row button[disabled], .mlui-table button[disabled] { border-color: #ffffff1c; background: #ffffff08; color: #8ba3b3; cursor: default; }
.mlui-table button.mlui-link { border: 0; background: none; color: #8fdcf6; text-decoration: none; }
.mlui-table button.mlui-link:hover { color: #bfeaff; text-decoration: underline; }

.mlui-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; align-items: start; margin: 12px 0; }
.mlui-stack { display: grid; gap: 10px; }

/* ── Communications inbox ──────────────────────────────────────────── */
.mlui-inbox { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0; margin: 12px 0; border: 1px solid #ffffff1c; border-radius: 9px; overflow: hidden; background: #0d1822; }
.mlui-channels { display: grid; align-content: start; gap: 2px; padding: 8px; border-right: 1px solid #ffffff14; background: #0b141c; }
.mlui-channels p { margin: 0 0 6px; padding-inline: 6px; color: #7d95a4; font: 700 .52rem/1.4 var(--ml-font); letter-spacing: .12em; }
.mlui-channels span { display: flex; justify-content: space-between; gap: 6px; padding: 6px 7px; border-radius: 6px; color: #b9cdda; font: 700 .6rem/1.4 var(--ml-font); letter-spacing: .04em; }
.mlui-channels span.is-active { background: #14313f; color: #9fe0f8; box-shadow: inset 2px 0 0 #38bdf8; }
.mlui-channels span b { color: #8be3b4; font-weight: 700; }
.mlui-thread { display: grid; align-content: start; }
.mlui-msg { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; padding: 10px 12px; border-bottom: 1px solid #ffffff10; }
.mlui-msg__avatar { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #ffffff26; border-radius: 50%; background: #16222c; color: #bcd3e0; font: 700 .58rem var(--ml-font); }
.mlui-msg__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: #8299a9; font: 700 .54rem/1.4 var(--ml-font); letter-spacing: .06em; text-transform: uppercase; }
.mlui-msg__meta b { color: #e4f1f9; font-size: .66rem; letter-spacing: .02em; text-transform: none; }
.mlui-msg h4 { margin: 3px 0 2px; color: #eaf5fd; font-size: .76rem; font-weight: 600; }
.mlui-msg p { margin: 0; color: #b3c7d4; font-size: .72rem; line-height: 1.6; }
.mlui-msg__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 7px; }
.mlui-msg__actions button { min-height: 26px; padding: 3px 9px; border: 1px solid #38bdf855; border-radius: 6px; background: #12293a; color: #b6e6f8; font: 700 .56rem/1.4 var(--ml-font); letter-spacing: .06em; cursor: pointer; }
.mlui-msg__actions button:hover { background: #1a4054; border-color: #7dd9f5; }
.mlui-msg__actions button[disabled] { border-color: #ffffff1c; background: #ffffff08; color: #8ba3b3; cursor: default; }
.mlui-msg__actions a, .mlui-msg__actions .mlui-link { color: #8fdcf6; font: 700 .56rem/1.4 var(--ml-font); letter-spacing: .06em; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.mlui-compose { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid #ffffff14; background: #0b141c; color: #7d95a4; font: 700 .56rem/1.4 var(--ml-font); letter-spacing: .06em; }
.mlui-compose span { flex: 1; padding: 6px 9px; border: 1px dashed #ffffff24; border-radius: 6px; color: #7d95a4; }
.mlui-msg.is-unread { box-shadow: inset 2px 0 0 #38bdf8; background: #0f1c26; }

/* ── Workday / queue panes ─────────────────────────────────────────── */
.mlui-donut { display: grid; justify-items: center; gap: 2px; }
.mlui-donut .ml-dash__ring { width: 66px; height: 66px; }
.mlui-donut strong { color: #eaf5fd; font: 700 .62rem/1.4 var(--ml-font); letter-spacing: .05em; }
.mlui-donut small { color: #8299a9; font: 700 .5rem/1.4 var(--ml-font); letter-spacing: .1em; text-transform: uppercase; }
.mlui-checklist { display: grid; gap: 6px; }
.mlui-checklist label { display: flex; align-items: flex-start; gap: 7px; padding: 6px 8px; border: 1px solid #ffffff1a; border-radius: 6px; background: #ffffff05; color: #cfe0ea; font-size: .7rem; line-height: 1.5; cursor: pointer; }
.mlui-checklist label:hover { border-color: #38bdf855; }
.mlui-checklist input { margin: 2px 0 0; accent-color: #38bdf8; }
.mlui-progress { display: flex; align-items: center; gap: 8px; color: #8ba3b3; font: 700 .56rem/1.4 var(--ml-font); letter-spacing: .05em; }

/* ── Audit trail and form builder ──────────────────────────────────── */
.mlui-panel .ml-demo-history { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.ml-demo-history { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ml-demo-history li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding: 7px 11px; border-bottom: 1px solid #ffffff10; }
.ml-demo-history li:last-child { border-bottom: 0; }
.ml-demo-history strong { color: #e4f1f9; font-size: .72rem; font-weight: 600; }
.ml-demo-history span { grid-column: 1; color: #8ba3b3; font-size: .66rem; line-height: 1.5; }
.ml-demo-history time { grid-column: 2; grid-row: 1; color: #7d95a4; font: 700 .54rem/1.6 var(--ml-font); letter-spacing: .06em; }
.mlui-panel .ml-demo-builder { margin: 0; border: 0; border-radius: 0; background: transparent; }
.mlui-panel .ml-demo-builder legend { display: flex; justify-content: space-between; width: 100%; box-sizing: border-box; }
.mlui-audit-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 5px 11px; border-bottom: 1px solid #ffffff1c; background: #0b141c; color: #8ba3b3; font: 700 .52rem/1.4 var(--ml-font); letter-spacing: .1em; text-transform: uppercase; }
.mlui-panel .ml-demo-builder legend h3 { margin: 0; font: 700 .68rem/1.4 var(--ml-font); letter-spacing: .1em; text-transform: uppercase; }
.mlui-panel .ml-demo-builder .mlui-checklist { padding: 10px 11px; }
.mlui-panel .ml-demo-tool { margin: 0; border: 0; border-radius: 0; background: transparent; }
.mlui-panel .ml-demo-tool h3 { margin-top: 6px; font-size: .92rem; }

/* Narrow windows stack their panes rather than squeeze them. */
/* ── Estate, permissions, automations, implementation ──────────────── */
.mlui-sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 8px; margin: 10px 0; }
.mlui-site { display: grid; gap: 7px; padding: 10px 11px; border: 1px solid #ffffff1e; border-radius: 9px; background: #0f1a24; }
.mlui-site header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mlui-site header b { color: #eaf5fd; font-size: .8rem; }
.mlui-site dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.mlui-site dt { color: #8299a9; font: 700 .5rem/1.4 var(--ml-font); letter-spacing: .1em; text-transform: uppercase; }
.mlui-site dd { margin: 2px 0 0; color: #dcedf7; font: 700 .82rem/1 var(--ml-font); }
.mlui-site p { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.mlui-site small { color: #8299a9; font: 700 .52rem/1.5 var(--ml-font); letter-spacing: .05em; }
.mlui-site--pending { border-style: dashed; border-color: #facc1540; }
.mlui-site[data-facility-site] { cursor: pointer; transition: border-color .15s, background .15s; }
.mlui-site[data-facility-site]:hover, .mlui-site[data-facility-site][aria-pressed="true"] { border-color: #38bdf899; background: #132635; }
.mlui-roles-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.mlui-roles-bar button { min-height: 28px; padding: 4px 10px; border: 1px solid #ffffff24; border-radius: 6px; background: #0f1a24; color: #b9cdda; font: 700 .58rem/1.4 var(--ml-font); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.mlui-roles-bar button:hover { border-color: #38bdf866; color: #eaf5fd; }
.mlui-roles-bar button[aria-pressed="true"] { border-color: #38bdf8aa; background: #143244; color: #9ee2fb; }
.mlui-decisions { padding-left: 0; list-style: none; gap: 8px; }
.mlui-decisions li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border: 1px solid #ffffff14; border-radius: 6px; background: #ffffff05; }
.mlui-decisions .mlui-link[disabled] { color: #8be3b4; text-decoration: none; cursor: default; }

.mlui-steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.mlui-steps li { position: relative; display: grid; gap: 2px; padding: 7px 9px 7px 27px; border: 1px solid #ffffff14; border-radius: 6px; background: #ffffff05; counter-increment: step; }
.mlui-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 8px; top: 8px; color: #8fdcf6; font: 700 .56rem/1.5 var(--ml-font); }
.mlui-steps li:has(.mlui-link) { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.mlui-steps li:has(.mlui-link) .mlui-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.mlui-steps b { color: #dcedf7; font-size: .7rem; }
.mlui-steps span { color: #93aab9; font-size: .66rem; line-height: 1.5; }

.mlui-matrix { width: 100%; border-collapse: collapse; font-size: .68rem; }
.mlui-matrix th { padding: 6px 8px; border-bottom: 1px solid #ffffff24; background: #0b141c; color: #8ba3b3; font: 700 .5rem/1.4 var(--ml-font); letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.mlui-matrix th:first-child { text-align: left; }
.mlui-matrix td { padding: 6px 8px; border-bottom: 1px solid #ffffff10; color: #cfe0ea; text-align: center; }
.mlui-matrix td:first-child { position: sticky; left: 0; background: #0d1822; color: #dcedf7; text-align: left; }
.mlui-matrix .is-scope { color: #9ddff8; font: 700 .52rem/1.4 var(--ml-font); letter-spacing: .04em; }
.mlui-matrix tbody tr:hover td { background: #ffffff07; }
.mlui-matrix tbody tr:hover td:first-child { background: #12202b; }

.mlui-kpis--tight { margin-bottom: 12px; }
.mlui-table tr.is-total td { background: #12202b; font-weight: 700; }
.mlui-scope { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.mlui-rules { display: grid; gap: 6px; margin: 0; padding-left: 16px; list-style: disc; color: #a9c0ce; font-size: .68rem; line-height: 1.55; }
.mlui-rules li::marker { color: #38bdf8; }
.mlui-roles, .mlui-decisions { padding-left: 0; list-style: none; gap: 8px; }
/* The role name and its description each get a row, so the description keeps the panel's full width
   instead of being squeezed into the middle column of a three-column row. */
.mlui-roles li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; }
.mlui-roles b { grid-area: 1 / 1; color: #eaf5fd; font-size: .7rem; }
.mlui-roles span { grid-area: 2 / 1 / 3 / -1; color: #a9c0ce; font-size: .66rem; line-height: 1.5; }
.mlui-roles .mlui-link { grid-area: 1 / 2; align-self: center; }

.mlui-flows { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 8px; margin: 10px 0; }
.mlui-flow { display: grid; gap: 8px; padding: 10px 11px; border: 1px solid #ffffff1e; border-left: 2px solid #6ee7b799; border-radius: 9px; background: #0f1a24; }
.mlui-flow header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mlui-flow header b { color: #eaf5fd; font-size: .72rem; line-height: 1.35; }
.mlui-flow__steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mlui-flow__steps li { position: relative; padding-left: 20px; color: #c1d5e2; font-size: .68rem; line-height: 1.5; }
.mlui-flow__steps li::before { content: "→"; position: absolute; left: 1px; color: #6ee7b7; }
.mlui-flow__steps li:first-child::before { content: "▶"; color: #8fdcf6; }
.mlui-flow footer { color: #8299a9; font: 700 .52rem/1.5 var(--ml-font); letter-spacing: .04em; }

.mlui-phases { display: grid; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.mlui-phases li { display: grid; grid-template-columns: 172px minmax(0, 1fr) 96px; align-items: start; gap: 10px; padding: 8px 11px; border: 1px solid #ffffff14; border-left: 2px solid #38bdf855; border-radius: 8px; background: #0f1a24; }
.mlui-phases b { color: #eaf5fd; font-size: .72rem; }
.mlui-phases span { color: #a9c0ce; font-size: .68rem; line-height: 1.55; }
.mlui-phases em { color: #8fdcf6; font: 700 .52rem/1.5 var(--ml-font); font-style: normal; letter-spacing: .06em; text-align: right; }

/* The toolbar and status strip sit outside the window body, so the narrow
   rules for them are viewport media queries rather than container ones. */
@media (max-width: 720px) {
  .mla__bar { gap: 4px 6px; padding: 6px 9px; font-size: .52rem; }
  .mla__chip, .mla__user { display: none; }
  .mla__sample { margin-left: auto; }
  .mla__status { padding: 4px 9px; font-size: .5rem; letter-spacing: .06em; }
}

@container (max-width: 640px) {
  .mlui-split { grid-template-columns: minmax(0, 1fr); }
  .mlui-inbox { grid-template-columns: minmax(0, 1fr); }
  .mlui-channels { display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid #ffffff14; }
  .mlui-channels p { width: 100%; }
  .mlui-row { grid-template-columns: minmax(0, 1fr) 86px; }
  .mlui-row > :nth-child(3) { display: none; }
  .mla__chip--quiet { display: none; }
  .mlui-sites, .mlui-flows { grid-template-columns: minmax(0, 1fr); }
  .mlui-site dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mlui-phases li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .mlui-phases em { text-align: left; }
  .mlui-roles li { grid-template-columns: minmax(0, 1fr); }
  .mlui-roles .mlui-link { grid-area: 3 / 1; justify-self: start; }
  .mlui-steps li:has(.mlui-link) { grid-template-columns: minmax(0, 1fr) auto; }
}
