/* Hallmark · shape: app screen · genre: modern-minimal · theme: Cobalt (by request) · redesign: full
 * nav: compact utility bar · signature: live event table · states: disconnected, connecting, live, paused, error
 * axes: light/grotesk-sans/cool · posture: restrained · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E5 S5 R4 V3 · weakest: V, the old glass dashboard remains the baseline; the new table-first layout changes its hierarchy */
/* Hallmark · waive 1 · the user named Inter and Kanit · the requested fonts override Cobalt's default faces */
/* Hallmark · dropped eventCount, messageCount, screenCount, lastSignal · user requested removing the summary strip */
@import url("./tokens.css");
@import url("./base.css");

html, body { overflow-x: clip; }
body { min-width: 320px; background: var(--color-paper); }
button, input { color: var(--color-ink); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
.topbar { position: sticky; z-index: var(--z-sticky-nav); top: 0; border-bottom: var(--rule-hair) solid var(--color-rule); background: color-mix(in oklab, var(--color-paper) 94%, transparent); backdrop-filter: blur(14px) saturate(130%); }
.topbar-inner { width: 100%; max-width: var(--container); min-height: 60px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.brand { display: inline-flex; align-items: flex-start; gap: var(--space-3xs); color: var(--color-ink); font: 700 19px/1 var(--font-display); letter-spacing: -.045em; text-decoration: none; }
.brand-registered { margin-top: 1px; font: 500 10px/1 var(--font-body); letter-spacing: 0; }
.topbar-actions { display: flex; align-items: center; justify-content: end; gap: var(--space-xs); }
.connection-state { min-height: 36px; display: inline-flex; align-items: center; gap: var(--space-xs); padding-inline: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); white-space: nowrap; }
.connection-state svg, .live-state svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.connection-state.is-connected { color: var(--color-success); }
.connection-state.is-connecting { color: var(--color-accent); }
.connection-state.is-paused, .connection-state.is-error { color: var(--color-muted); }
.connection-state.is-connected svg circle { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: center; animation: signal-pulse 1.8s ease-out infinite; }
.button { position: relative; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs); padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input); background: none; color: var(--color-ink); font: 500 var(--text-sm)/1.1 var(--font-body); text-decoration: none; box-shadow: var(--shadow-key); transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.button::after { content: ""; position: absolute; inset: -2px; }
.button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(2px); box-shadow: var(--shadow-key-press); }
.button--primary { border-color: var(--color-accent-edge); background: var(--color-accent); color: var(--color-accent-ink); box-shadow: var(--shadow-key-accent); }
.button--primary:hover:not(:disabled) { background: var(--color-accent-deep); }
.button--quiet { background: none; }
.button--small { min-height: 36px; padding-inline: var(--space-sm); }
.workspace { width: 100%; max-width: var(--container); min-height: calc(100vh - 60px); margin-inline: auto; padding: var(--space-lg) var(--gutter) 20px; }
.event-panel { border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); box-shadow: var(--shadow-card); }
.panel-tabs { display: flex; gap: var(--space-md); padding-inline: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.panel-tab { min-height: 46px; display: inline-flex; align-items: center; gap: var(--space-xs); padding: 0 var(--space-2xs); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--color-muted); font: 500 var(--text-sm)/1 var(--font-body); transition: color var(--dur-micro) ease-out, border-color var(--dur-micro) ease-out; }
.panel-tab:hover, .panel-tab.is-active { color: var(--color-ink); }
.panel-tab.is-active { border-bottom-color: var(--color-accent); }
.panel-tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tab-count { min-width: 21px; padding: var(--space-3xs) var(--space-2xs); border: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); text-align: center; font: 500 10px/1.2 var(--font-outlier); }
.listen-glyph { display: inline-flex; align-items: center; gap: var(--space-3xs); height: 13px; }
.listen-glyph i { width: 2px; height: 5px; background: currentColor; animation: listen-wave .8s ease-in-out infinite alternate; }
.listen-glyph i:last-child { height: 10px; animation-delay: .25s; }
.button[aria-pressed="false"] .listen-glyph i { animation-play-state: paused; }
.presence { display: inline-flex; align-items: center; gap: var(--space-2xs); margin-top: var(--space-2xs); color: var(--color-muted); font-size: 10px; line-height: 1.2; }
.presence i { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; background: currentColor; }
.presence.is-detected { color: var(--color-success); }
.presence.is-offline { color: var(--color-error); }
.presence.is-offline i, .presence.is-paused i, .presence.is-unknown i { background: transparent; }
.presence.is-unknown, .presence.is-paused { color: var(--color-muted); }
.log-view[hidden], #eventsView[hidden] { display: none; }
.log-heading { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--space-md); }
.log-heading .button { flex: none; white-space: nowrap; }
.log-heading h2 { max-width: none; font-size: var(--text-lg); line-height: 1.2; }
.log-heading p { margin-top: var(--space-2xs); color: var(--color-muted); font-size: var(--text-xs); }
.log-scroll { min-height: 226px; max-height: 480px; overflow: auto; border-block: var(--rule-hair) solid var(--color-rule); }
.activity-table { min-width: 600px; }
.activity-table td { height: auto; min-height: 46px; padding-block: var(--space-xs); white-space: normal; }
.activity-table td:first-child { width: 100px; color: var(--color-muted); font: 400 var(--text-xs)/1.3 var(--font-outlier); white-space: nowrap; }
.activity-table td:nth-child(2) { width: 190px; color: var(--color-ink); font-weight: 500; }
.log-kind { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.log-kind::before { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--color-accent); content: ""; }
.log-kind.is-success::before { background: var(--color-success); }
.log-kind.is-warning::before, .log-kind.is-error::before { background: var(--color-error); }
.log-empty { min-height: 170px; display: grid; place-items: center; padding: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); text-align: center; }
.log-empty[hidden] { display: none; }
.panel-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--space-md); }
.panel-title { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs); }
.panel-title h2 { max-width: none; font-size: var(--text-lg); line-height: 1.2; letter-spacing: -.025em; }
.result-count { min-width: 24px; padding: var(--space-2xs) var(--space-xs); border: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); text-align: center; font: 500 var(--text-xs)/1.3 var(--font-outlier); }
.live-state { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--color-muted); font-size: var(--text-xs); }
.live-state.is-live { color: var(--color-success); }
.live-state.is-live svg circle { fill: currentColor; stroke: none; }
.table-tools { display: flex; align-items: center; gap: var(--space-xs); }
.search-field { min-width: 180px; min-height: 36px; display: flex; align-items: center; gap: var(--space-2xs); padding: 0 var(--space-xs); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper); }
.search-field:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.search-field svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--color-muted); stroke-width: 1.5; stroke-linecap: round; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: var(--text-xs); }
.search-field input::placeholder { color: var(--color-muted); opacity: 1; }
.search-field kbd { flex: none; color: var(--color-muted); font: 400 10px/1 var(--font-body); white-space: nowrap; }
.sort-button svg { width: 14px; height: 14px; }
.table-scroll { overflow-x: auto; border-top: var(--rule-hair) solid var(--color-rule); }
table { width: 100%; min-width: 700px; border-collapse: collapse; text-align: left; }
thead { background: var(--color-paper-2); }
th { height: 40px; padding: 0 var(--space-sm); color: var(--color-ink-2); font: 500 var(--text-xs)/1.2 var(--font-body); white-space: nowrap; }
th:first-child, td:first-child { padding-left: var(--space-md); }
th:last-child, td:last-child { padding-right: var(--space-md); }
tbody tr { border-top: var(--rule-hair) solid var(--color-rule); transition: background-color var(--dur-micro) ease-out; }
tbody tr:hover { background: var(--color-paper-2); }
td { height: 60px; padding: var(--space-xs) var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); white-space: nowrap; }
td.align-right, th.align-right { text-align: right; }
.event-cell { display: flex; align-items: center; gap: var(--space-xs); }
.event-glyph { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-left: 2px solid var(--color-accent); background: var(--color-accent-wash); color: var(--color-accent-deep); font: 500 var(--text-xs)/1 var(--font-outlier); }
.event-prefix { color: var(--color-ink); font: 500 var(--text-sm)/1.2 var(--font-outlier); }
.event-first-seen { margin-top: var(--space-2xs); color: var(--color-muted); font-size: var(--text-xs); }
.time-cell strong { display: block; color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; }
.time-cell span { display: block; margin-top: var(--space-2xs); color: var(--color-muted); font-size: var(--text-xs); }
.message-count { color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-outlier); font-variant-numeric: tabular-nums; }
.screen-list, .stream-list { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.screen-tag { min-width: 22px; padding: var(--space-2xs) var(--space-xs); border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink-2); text-align: center; font: 400 var(--text-xs)/1.1 var(--font-outlier); }
.stream-tag { color: var(--color-muted); font-size: var(--text-xs); }
.dashboard-link { width: 30px; height: 30px; display: grid; place-items: center; border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-micro) ease-out, border-color var(--dur-micro) ease-out, transform var(--dur-micro) var(--ease-out); }
.dashboard-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-link:hover { transform: translateY(-1px); border-color: var(--color-accent); color: var(--color-accent); }
.empty-state { min-height: 226px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-lg); text-align: center; }
.empty-state[hidden] { display: none; }
.empty-mark { width: 64px; height: 24px; display: flex; align-items: center; justify-content: center; gap: var(--space-2xs); border-block: var(--rule-hair) solid var(--color-rule-2); }
.empty-mark span { display: block; width: 3px; height: 4px; background: var(--color-glyph-2); }
.empty-mark span:nth-child(2) { height: 9px; background: var(--color-glyph-3); }
.empty-mark span:nth-child(3) { height: 15px; background: var(--color-accent); }
.empty-mark span:nth-child(4) { height: 7px; background: var(--color-glyph-2); }
.empty-state h3 { max-width: none; margin-top: var(--space-sm); font-size: var(--text-md); line-height: 1.3; }
.empty-state p { margin-top: var(--space-2xs); color: var(--color-muted); font-size: var(--text-sm); }
.empty-status { display: flex; align-items: center; gap: var(--space-2xs); margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-xs); }
.empty-status span:first-child { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.empty-status.is-ready span:first-child { border-color: var(--color-accent); background: var(--color-accent); }
.panel-foot { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: 0 var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-xs); }
.panel-foot time { color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.notice { display: flex; align-items: start; gap: var(--space-xs); margin-top: var(--space-sm); padding: var(--space-xs) var(--space-sm); border: var(--rule-hair) solid var(--color-error); color: var(--color-ink-2); font-size: var(--text-sm); }
.notice svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--color-error); stroke-width: 1.5; stroke-linecap: round; }
.footer { display: flex; justify-content: space-between; gap: var(--space-sm); padding-top: var(--space-md); color: var(--color-muted); font-size: var(--text-xs); }
.connect-dialog { width: min(440px, calc(100% - 32px)); max-width: 440px; padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper); color: var(--color-ink); box-shadow: none; }
.connect-dialog[open] { animation: dialog-in var(--dur-short) var(--ease-out) both; }
.connect-dialog::backdrop { background: color-mix(in oklab, var(--color-ink) 38%, transparent); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.dialog-heading h2 { max-width: none; font-size: var(--text-xl); line-height: 1.2; }
.dialog-heading p { max-width: 43ch; margin-top: var(--space-2xs); color: var(--color-muted); font-size: var(--text-sm); line-height: 1.5; }
.dialog-close { width: 34px; height: 34px; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); color: var(--color-ink-2); font-size: 20px; line-height: 1; }
.dialog-close:hover { background: var(--color-paper-2); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2xs); margin-top: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); }
.form-field input { width: 100%; min-height: 42px; padding: 0 var(--space-xs); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); }
.form-field input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.form-field input:disabled { background: var(--color-paper-2); color: var(--color-muted); cursor: not-allowed; }
.dialog-error { margin-top: var(--space-sm); color: var(--color-error); font-size: var(--text-sm); }
.dialog-actions { display: flex; justify-content: end; gap: var(--space-xs); margin-top: var(--space-lg); }
.toast { position: fixed; z-index: var(--z-toast); right: var(--gutter); bottom: var(--space-md); max-width: min(420px, calc(100% - 32px)); padding: var(--space-xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-card); font-size: var(--text-sm); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.toast.show { opacity: 1; transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.boot-splash { position: fixed; z-index: 9999; inset: 0; display: grid; align-content: center; justify-items: center; gap: var(--space-md); overflow: hidden; background: var(--color-paper); opacity: 1; transition: opacity 360ms var(--ease-out), visibility 360ms var(--ease-out); }
.boot-splash[hidden] { display: none; }
.boot-splash::before { position: absolute; width: min(76vw, 820px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--color-accent-wash) 0, color-mix(in oklab, var(--color-accent-wash) 52%, transparent) 38%, transparent 70%); content: ""; animation: splash-aura 3.2s ease-in-out infinite alternate; }
.boot-splash.is-leaving { visibility: hidden; opacity: 0; pointer-events: none; }
.splash-lockup { position: relative; display: flex; align-items: flex-start; gap: var(--space-xs); color: var(--color-ink); font: 700 clamp(4.25rem, 16vw, 12rem)/.9 var(--font-display); letter-spacing: -.09em; animation: splash-wordmark 900ms var(--ease-out) both; }
.splash-lockup sup { margin-top: .08em; color: var(--color-accent); font: 500 .24em/1 var(--font-body); letter-spacing: 0; }
.splash-rule { position: relative; width: clamp(72px, 12vw, 150px); height: 3px; overflow: hidden; border-radius: 99px; background: var(--color-rule); }
.splash-rule::after { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; border-right: 2px solid var(--color-accent); border-left: 2px solid var(--color-accent); border-radius: inherit; box-shadow: 0 0 8px color-mix(in oklab, var(--color-accent) 45%, transparent); content: ""; animation: splash-scan 1.25s var(--ease-out) both; }
.welcome-screen { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; display: grid; place-items: center; padding: var(--space-lg); border: 0; margin: 0; overflow: auto; background: transparent; color: var(--color-ink); }
.welcome-screen:not([open]) { display: none; }
.welcome-screen::backdrop { background: color-mix(in oklab, var(--color-paper) 76%, transparent); backdrop-filter: blur(16px) saturate(120%); }
.welcome-card { position: relative; width: min(900px, 100%); padding: var(--space-3xl) var(--space-lg); overflow: hidden; border: var(--rule-hair) solid color-mix(in oklab, var(--color-accent) 20%, var(--color-rule)); border-radius: var(--radius-card); background: linear-gradient(145deg, color-mix(in oklab, var(--color-paper) 92%, white), color-mix(in oklab, var(--color-accent-wash) 35%, var(--color-paper))); box-shadow: var(--shadow-card); text-align: center; animation: welcome-in 720ms var(--ease-out) both; }
.welcome-card::before { position: absolute; top: -45%; left: 50%; width: min(74vw, 680px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--color-accent-wash) 68%, transparent), transparent 68%); content: ""; transform: translateX(-50%); pointer-events: none; }
.welcome-lockup { position: relative; max-width: none; display: flex; align-items: flex-start; justify-content: center; gap: var(--space-xs); font: 700 clamp(3.8rem, 13vw, 9.5rem)/.95 var(--font-display); letter-spacing: -.085em; }
.welcome-lockup sup { margin-top: .08em; color: var(--color-accent); font: 500 .23em/1 var(--font-body); letter-spacing: 0; }
.welcome-card p { position: relative; margin-top: var(--space-md); color: var(--color-ink-2); font-size: clamp(var(--text-md), 2.2vw, var(--text-lg)); }
.welcome-enter { position: relative; min-width: 184px; min-height: 48px; margin-top: var(--space-xl); }
body.welcome-open { overflow: hidden; }
@keyframes signal-pulse { 0% { opacity: .9; transform: scale(.82); } 70%, 100% { opacity: .2; transform: scale(1.2); } }
@keyframes listen-wave { from { transform: scaleY(.6); opacity: .65; } to { transform: scaleY(1.2); opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(5px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes splash-aura { from { transform: scale(.88); opacity: .55; } to { transform: scale(1.08); opacity: .95; } }
@keyframes splash-wordmark { from { opacity: 0; transform: translateY(16px) scale(.975); filter: blur(8px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes splash-scan { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes welcome-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 760px) {
  .topbar-inner, .workspace { padding-inline: var(--space-md); }
  .topbar-inner { gap: var(--space-sm); }
  .topbar-actions { gap: var(--space-2xs); }
  .connection-state { padding-inline: var(--space-2xs); font-size: var(--text-xs); }
  .button--small { padding-inline: var(--space-xs); }
  .workspace { padding-top: var(--space-lg); }
  .panel-head { align-items: stretch; flex-direction: column; gap: var(--space-sm); padding: var(--space-sm); }
  .panel-tabs { padding-inline: var(--space-sm); }
  .log-heading { align-items: start; padding-inline: var(--space-sm); }
  .table-tools { justify-content: space-between; }
  .search-field { flex: 1; min-width: 0; }
  table { min-width: 680px; }
  .panel-foot { padding-inline: var(--space-sm); }
}
@media (max-width: 600px) {
  .workspace { padding-inline: var(--space-sm); }
  .topbar-inner { padding-inline: var(--space-sm); }
  .topbar-actions { gap: var(--space-2xs); }
  .connection-state { width: 34px; min-height: 44px; justify-content: center; padding: 0; }
  .connection-state > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #refreshButton { width: 44px; min-height: 44px; gap: 0; padding: 0; overflow: hidden; font-size: 0; }
  #refreshButton svg { width: 14px; height: 14px; }
  #connectButton, #listenButton { min-height: 44px; padding-inline: var(--space-xs); font-size: var(--text-xs); }
  .search-field, .sort-button, .log-heading .button { min-height: 44px; }
  .sort-button { min-width: 44px; }
  .dashboard-link { width: 44px; height: 44px; }
  .table-scroll { overflow: visible; }
  table { display: block; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  tbody { display: grid; gap: var(--space-xs); padding: var(--space-xs); }
  tbody tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "event dashboard" "signal messages" "screens streams"; align-items: start; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); }
  td { min-width: 0; height: auto; padding: var(--space-xs); white-space: normal; }
  td:first-child { padding-left: var(--space-xs); }
  td:last-child { padding-right: var(--space-xs); }
  td:nth-child(1) { grid-area: event; padding-right: 0; }
  td:nth-child(2) { grid-area: signal; }
  td:nth-child(3) { grid-area: messages; text-align: left; }
  td:nth-child(4) { grid-area: screens; }
  td:nth-child(5) { grid-area: streams; }
  td:nth-child(6) { grid-area: dashboard; justify-self: end; }
  td:nth-child(2)::before, td:nth-child(3)::before, td:nth-child(4)::before, td:nth-child(5)::before { display: block; margin-bottom: var(--space-2xs); color: var(--color-muted); font-size: 10px; line-height: 1.2; }
  td:nth-child(2)::before { content: "Last signal"; }
  td:nth-child(3)::before { content: "Messages"; }
  td:nth-child(4)::before { content: "Screens"; }
  td:nth-child(5)::before { content: "Streams"; }
  .event-prefix { overflow-wrap: anywhere; white-space: normal; }
  .activity-table { display: block; min-width: 0; }
  .activity-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .activity-table tbody { padding: var(--space-xs); }
  .activity-table tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "when action" "details details"; gap: 0 var(--space-sm); padding: var(--space-xs); border: var(--rule-hair) solid var(--color-rule); }
  .activity-table td { min-height: 0; padding: var(--space-2xs); }
  .activity-table td:first-child { grid-area: when; width: auto; }
  .activity-table td:nth-child(2) { grid-area: action; width: auto; }
  .activity-table td:nth-child(3) { grid-area: details; }
  .log-scroll { max-height: none; overflow: visible; }
  .panel-foot { align-items: start; flex-direction: column; justify-content: center; gap: var(--space-2xs); padding-block: var(--space-xs); }
}
@media (max-width: 430px) {
  .brand { font-size: 17px; }
  .topbar-inner { min-height: 56px; }
  .topbar-actions { gap: var(--space-3xs); }
  .connection-state { gap: var(--space-2xs); }
  .button--small { font-size: var(--text-xs); }
  .button--primary.button--small { padding-inline: var(--space-xs); }
  .workspace { padding-inline: var(--space-sm); }
  .welcome-screen { padding: var(--space-sm); }
  .welcome-card { padding: var(--space-2xl) var(--space-sm); }
  .welcome-lockup { font-size: clamp(2.75rem, 13vw, 4.2rem); }
  .welcome-card p { margin-top: var(--space-sm); font-size: var(--text-sm); }
  .welcome-enter { min-width: 0; margin-top: var(--space-lg); }
  .splash-lockup { font-size: clamp(3.6rem, 15vw, 5.5rem); }
  .footer { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--color-paper); backdrop-filter: none; }
  .connect-dialog::backdrop { backdrop-filter: none; }
  .welcome-screen::backdrop { backdrop-filter: none; }
  .welcome-card { background: var(--color-paper); }
}
@media (prefers-contrast: more) {
  .topbar, .event-panel, .search-field, .form-field input, .button { border-color: var(--color-muted); }
  .connection-state, .panel-foot, .footer { color: var(--color-ink-2); }
}
