/* cobalt-mainframe.css — Mainframe command surface on the Cobalt schema (claude_20261002_cobalt, 2026-10-03).
 * Requires cobalt/cobalt-tokens.css + cobalt/cobalt-ui.css. Light by default; dark via the tokens.
 */
.mf { padding-bottom: calc(24px + var(--safe-b)); }
.mf-quick-nav { position: sticky; top: 0; z-index: 10; max-width: 760px; margin: 0 auto; padding: max(8px, env(safe-area-inset-top)) 12px 8px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--line-soft); }
@media (prefers-reduced-transparency: reduce) { .mf-quick-nav { background: var(--glass-strong); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.mf-quick-nav .c-chip { text-decoration: none; }
.mf-main { max-width: 760px; margin: 0 auto; }
.mf-section { padding: 16px 0 4px; scroll-margin-top: 52px; }
.mf-section > .c-label, .mf-head { margin: 0 12px 4px; }
.mf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mf-head .c-label { margin: 0; }
.mf-count { color: var(--muted); font-size: var(--fs-small); }
.mf-desc { margin: 0 12px 8px; color: var(--muted); font-size: var(--fs-small); }
.mf-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 12px 8px; }
.mf-search { flex: 1 1 220px; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--card); color: var(--muted); }
.mf-search:focus-within { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.mf-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: 400 16px/1 var(--font); outline: none; }
@media (min-width: 760px) { .mf-search input { font-size: 13px; } }
.mf-filter-bar .c-chips { flex: none; max-width: 100%; }

.mf-rows { border-top: 1px solid var(--line-soft); }
.mf-row { display: flex; align-items: center; gap: 10px; min-height: var(--hit); padding-right: 30px; }
.mf-tile { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-card); background: var(--accent-subtle); color: var(--cobalt); }
.mf-text { flex: 1; min-width: 0; }
.mf-text small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mf-state { flex: none; color: var(--muted); }
.mf-skel { height: 52px; margin: 8px 12px; }
.mf-more { margin: 4px 12px 0; }
.mf-more p { margin: 0 0 8px; font-size: var(--fs-small); }
.mf-more .mf-desc { margin: 0 0 8px; }
.node-list { margin: 0 0 8px; padding-left: 16px; font-size: var(--fs-small); }
.node-list li { margin: 3px 0; }
.mf code { font: 400 11px var(--mono); }

/* desktop: the catalog becomes a 2-column list, still rows (no giant cards) */
@media (min-width: 900px) {
  .mf-main, .mf-quick-nav { max-width: 980px; }
  #apps-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 0 12px; }
  #apps-grid .mf-row { padding-left: 0; }
}
.c-root a.c-row { color: var(--ink); }
