/* zcatstatusui: the look of the one-line status bar (line.js). Markup is built by mountStatusLine: <p class="zstat" role="status" ...> icon, text, number, "+N", action.
   NO colour literal and NO custom property is declared here: the host defines every --zstat-* (API.md) in its own token file, like zcatselectui's --zsel-*; colours default to currentColor/transparent/inherit.
   Logical properties only (RTL). No inline style is ever needed: state is a class or a data-* attribute. */
.zstat { display: flex; align-items: baseline; gap: var(--zstat-gap, 0.5rem); box-sizing: border-box; inline-size: 100%; min-block-size: var(--zstat-min-height, 2.25rem); margin: 0; padding-block: var(--zstat-pad-y, 0.4rem); padding-inline: var(--zstat-pad-x, 0.75rem); padding-block-end: max(var(--zstat-pad-y, 0.4rem), env(safe-area-inset-bottom, 0px)); font: inherit; font-size: var(--zstat-font-size, 0.9rem); line-height: var(--zstat-line-height, 1.35); color: var(--zstat-text, inherit); background: var(--zstat-bg, transparent); border-block-start: var(--zstat-border-width, 1px) solid var(--zstat-border, currentColor); overflow-wrap: anywhere; transition: color var(--zstat-fade, 150ms) ease, background-color var(--zstat-fade, 150ms) ease; }
.zstat [hidden] { display: none; }
.zstat-icon { flex: none; inline-size: 1.1em; text-align: center; color: var(--zstat-icon, currentColor); }
.zstat[data-cls="attention"] .zstat-icon { color: var(--zstat-attention, currentColor); }
.zstat[data-cls="error"] .zstat-icon { color: var(--zstat-error, currentColor); }
.zstat[data-cls="result"] .zstat-icon { color: var(--zstat-ok, currentColor); }
.zstat[data-cls="error"] .zstat-text, .zstat[data-cls="attention"] .zstat-text { font-weight: 600; }
.zstat-text { flex: 0 1 auto; min-inline-size: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 22.5rem) { .zstat-text { -webkit-line-clamp: 2; } }
.zstat-num { flex: none; color: var(--zstat-muted, inherit); font-variant-numeric: tabular-nums; }
.zstat-more, .zstat-action { flex: none; font: inherit; font-size: inherit; color: var(--zstat-link, inherit); background: transparent; border: var(--zstat-border-width, 1px) solid var(--zstat-border, currentColor); border-radius: var(--zstat-radius, 0.45rem); margin: 0; padding-block: var(--zstat-btn-pad-y, 0.1rem); padding-inline: var(--zstat-btn-pad-x, 0.55rem); cursor: pointer; }
.zstat-more { margin-inline-start: auto; }
.zstat-more:hover, .zstat-action:hover { background: var(--zstat-hover-bg, transparent); color: var(--zstat-text-hover, inherit); }
.zstat :focus-visible { outline: var(--zstat-focus-width, 2px) solid var(--zstat-focus, currentColor); outline-offset: 2px; }
.zstat-swap { animation: zstat-fade var(--zstat-fade, 150ms) ease-out; }
@keyframes zstat-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .zstat, .zstat * { transition: none; animation: none; } }
/* The action log (log.js, 0.3.0): <div class="zlog"> head (heading + toggle, Copy / Save / Clear) and body (empty line, role=log list, "last N" note, polite message). Same tokens as the line (no new ones). */
.zlog { display: flex; flex-direction: column; min-block-size: 0; box-sizing: border-box; font: inherit; font-size: var(--zstat-font-size, 0.9rem); line-height: var(--zstat-line-height, 1.35); color: var(--zstat-text, inherit); }
.zlog [hidden] { display: none; }
.zlog-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--zstat-gap, 0.5rem); flex: none; }
.zlog-heading { flex: 1 1 auto; min-inline-size: 0; margin: 0; font: inherit; font-weight: 600; }
.zlog-toggle { display: inline-flex; align-items: baseline; gap: var(--zstat-gap, 0.5rem); max-inline-size: 100%; margin: 0; padding-block: var(--zstat-btn-pad-y, 0.1rem); padding-inline: 0; font: inherit; font-weight: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; text-align: start; }
.zlog-chev { flex: none; inline-size: 0.5em; block-size: 0.5em; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg) translateY(-0.1em); transition: transform var(--zstat-fade, 150ms) ease; }
.zlog[data-collapsed="true"] .zlog-chev { transform: rotate(-45deg); }
.zlog-count { color: var(--zstat-muted, inherit); font-weight: 400; font-variant-numeric: tabular-nums; }
.zlog-btn { flex: none; margin: 0; font: inherit; font-size: inherit; color: var(--zstat-link, inherit); background: transparent; border: var(--zstat-border-width, 1px) solid var(--zstat-border, currentColor); border-radius: var(--zstat-radius, 0.45rem); padding-block: var(--zstat-btn-pad-y, 0.1rem); padding-inline: var(--zstat-btn-pad-x, 0.55rem); cursor: pointer; }
.zlog-btn:hover { background: var(--zstat-hover-bg, transparent); color: var(--zstat-text-hover, inherit); }
.zlog-btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.zlog-btn[aria-disabled="true"]:hover { background: transparent; }
.zlog :focus-visible { outline: var(--zstat-focus-width, 2px) solid var(--zstat-focus, currentColor); outline-offset: 2px; }
.zlog-body { display: flex; flex-direction: column; flex: 1 1 auto; min-block-size: 0; margin-block-start: var(--zstat-gap, 0.5rem); }
.zlog-empty, .zlog-dropped { margin: 0; color: var(--zstat-muted, inherit); }
.zlog-list { flex: 1 1 auto; min-block-size: 0; margin: 0; padding: 0; list-style: none; overflow: auto; overscroll-behavior: contain; }
.zlog-item { display: flex; align-items: baseline; gap: var(--zstat-gap, 0.5rem); padding-block: 0.15rem; overflow-wrap: anywhere; }
.zlog-item + .zlog-item { border-block-start: var(--zstat-border-width, 1px) solid var(--zstat-border, currentColor); }
.zlog-mark { flex: none; inline-size: 1em; text-align: center; }
.zlog-item[data-sev="warn"] .zlog-mark { color: var(--zstat-attention, currentColor); }
.zlog-item[data-sev="error"] .zlog-mark, .zlog-item[data-sev="error"] .zlog-text { color: var(--zstat-error, currentColor); }
.zlog-time { flex: none; color: var(--zstat-muted, inherit); font-variant-numeric: tabular-nums; }
.zlog-text { min-inline-size: 0; }
.zlog-detail { min-inline-size: 0; color: var(--zstat-muted, inherit); }
.zlog-msg { margin: 0; min-block-size: 1.2em; color: var(--zstat-muted, inherit); }
.zlog-msg:empty { display: none; }
.zlog-ghost { position: fixed; inset-block-start: 0; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .zlog-chev { transition: none; } }
