:root {
  --bg: #edf2f7;
  --bg-soft: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --line: #d7e0ea;
  --line-strong: #c2cfdb;
  --text: #16202a;
  --muted: #5e6d7c;
  --accent: #205ea6;
  --accent-soft: #e1ecf8;
  --good: #21734d;
  --good-soft: #e2f3e9;
  --warn: #a7660f;
  --warn-soft: #f9edd9;
  --danger: #b1442f;
  --danger-soft: #fae5e1;
  --shadow: 0 18px 40px rgba(23, 39, 58, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.25)),
    linear-gradient(135deg, #eef3f8 0%, #f8fafc 42%, #e8eef5 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", "SF Pro Text", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--accent);
}

.app-shell {
  width: min(2400px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.surface {
  background: var(--surface);
  border: 1px solid rgba(194, 207, 219, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.topbar,
.run-strip,
.panel,
.filter-bar,
.overview-section {
  animation: lift-in 320ms ease both;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.35rem;
}

.brand-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 0.85rem;
  background: #050505;
  color: #d8ff3e;
  padding: 0.65rem;
}

.brand-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.public-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #bad447;
  border-radius: 999px;
  background: #f4facf;
  color: #4f6200;
  padding: 0.55rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-demo-badge > span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #789500;
}

.section-label,
.metric-label,
.meta-label,
.fact-tile dt,
.fact-label,
.status-badge,
.level-badge,
.refresh-toggle {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-weight: 700;
}

.topbar h1,
.overview-section h2,
.panel h2,
.run-strip h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.topbar h1 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.meta-label {
  color: var(--muted);
  font-weight: 700;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  align-items: center;
}

.topbar-title {
  min-width: 0;
}

.topbar-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-right: 0.4rem;
  white-space: nowrap;
}

.topbar-meta strong {
  font-size: 0.95rem;
}

.action {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.action:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.action-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.action.is-busy {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.refresh-toggle {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.refresh-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.run-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1.5rem 1.8rem;
}

.run-strip-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.run-strip h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.run-subline {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-pill {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.status-pill.is-live {
  background: var(--good-soft);
  color: var(--good);
}

.status-pill.is-attention {
  background: var(--danger-soft);
  color: var(--danger);
}

.live-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(32, 94, 166, 0.28);
  animation: pulse 2s infinite;
}

.run-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.fact-tile {
  margin: 0;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid var(--line);
}

.fact-tile dt {
  color: var(--muted);
  font-weight: 700;
}

.fact-tile dd {
  margin: 0.55rem 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.overview-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.overview-section {
  padding: 1.35rem;
}

.overview-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.overview-section-head .panel-note {
  max-width: 30ch;
  text-align: left;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 1rem;
  padding: 1.2rem 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.96)),
    var(--surface-strong);
}

.filter-bar-copy {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.filter-bar-copy .section-label {
  margin: 0;
}

.filter-bar-copy .panel-note {
  margin: 0;
  max-width: none;
  text-align: right;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(140px, 1fr)) max-content auto;
  gap: 0.85rem;
  align-items: end;
}

.filter-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.65rem 0.8rem 0.72rem;
  border: 1px solid rgba(194, 207, 219, 0.92);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.92)),
    rgba(255, 255, 255, 0.88);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.filter-field:hover,
.filter-toggle:hover {
  border-color: rgba(32, 94, 166, 0.26);
}

.filter-field:focus-within,
.filter-toggle:focus-within {
  border-color: rgba(32, 94, 166, 0.38);
  box-shadow: 0 0 0 3px rgba(32, 94, 166, 0.08);
}

.filter-field span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.filter-field input:focus,
.filter-field select:focus {
  outline: none;
}

.filter-toggle {
  align-self: stretch;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(194, 207, 219, 0.92);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.9);
  color: var(--text);
  white-space: nowrap;
}

.filter-controls .action {
  align-self: stretch;
  padding: 0.92rem 1rem;
  white-space: nowrap;
}

.metric {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 8.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.78);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(1.4rem, 1.5vw, 1.95rem);
  line-height: 1.05;
}

.metric-meta,
.metric-note,
.panel-note,
.fact-value-muted,
.detail-line,
.activity-meta,
.empty-state {
  color: var(--muted);
}

.metric-meta {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.metric-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.metric-secondary {
  background: rgba(245, 248, 252, 0.64);
}

.signal-feature {
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.96)),
    var(--surface-strong);
  border-color: rgba(194, 207, 219, 0.9);
}

.signal-feature strong {
  margin-top: 0.4rem;
}

.signals-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.metric-ci .metric-meta,
.metric-ci .metric-note {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trends-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0;
}

.trend-card {
  min-height: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(247, 250, 252, 0.72);
}

.trend-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(1.15rem, 1.4vw, 1.55rem);
  line-height: 1.08;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.panel {
  padding: 1.35rem;
}

.panel-activity {
  margin-top: 1rem;
}

.panel-attention {
  margin-top: 1.6rem;
}

.panel-targets {
  grid-column: span 7;
}

.panel-runs {
  grid-column: span 5;
}

.panel-inspector {
  grid-column: span 12;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 1.6rem;
}

.overview-section h2 {
  font-size: 1.6rem;
}

.panel-note {
  margin: 0;
  max-width: 26ch;
  text-align: right;
  line-height: 1.45;
}

.panel-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pagination-controls {
  display: flex;
  gap: 0.5rem;
}

.action-compact {
  padding: 0.55rem 0.8rem;
  border-radius: 0.75rem;
}

.action:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.stack-list {
  display: grid;
  gap: 0.85rem;
}

.panel-attention .stack-list {
  max-height: min(34rem, 65vh);
  overflow: auto;
  padding-right: 0.2rem;
}

.target-entry,
.run-entry,
.activity-entry,
.attention-entry {
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.94);
  padding: 1rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.target-entry:hover,
.run-entry:hover,
.activity-entry:hover,
.attention-entry:hover {
  transform: translateY(-1px);
  background: var(--surface-strong);
}

.target-entry[role="button"],
.run-entry[role="button"],
.attention-entry {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.target-entry[data-selected="true"],
.run-entry[data-selected="true"],
.activity-entry[data-selected="true"],
.attention-entry[data-selected="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32, 94, 166, 0.12);
  background: #ffffff;
}

.activity-entry {
  overflow: hidden;
}

.activity-entry-summary {
  display: grid;
  gap: 0.65rem;
  cursor: pointer;
  list-style: none;
}

.activity-entry-summary::-webkit-details-marker {
  display: none;
}

.target-entry[data-tone="good"],
.run-entry[data-tone="good"],
.activity-entry[data-tone="good"],
.attention-entry[data-tone="good"] {
  border-left-color: var(--good);
}

.target-entry[data-tone="warn"],
.run-entry[data-tone="warn"],
.activity-entry[data-tone="warn"],
.attention-entry[data-tone="warn"] {
  border-left-color: var(--warn);
}

.target-entry[data-tone="danger"],
.run-entry[data-tone="danger"],
.activity-entry[data-tone="danger"],
.attention-entry[data-tone="danger"] {
  border-left-color: var(--danger);
}

.target-header,
.run-entry-head,
.activity-entry-head,
.attention-entry-head,
.drawer-item-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.target-repo {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.target-branch,
.run-entry h3,
.activity-entry h3 {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.target-message,
.run-entry p,
.activity-entry p,
.attention-entry p,
.drawer-item p {
  margin: 0.5rem 0 0;
  line-height: 1.55;
}

.status-badge,
.level-badge,
.summary-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.status-badge,
.level-badge {
  padding: 0.45rem 0.7rem;
}

.status-badge {
  background: #ebf0f5;
  color: var(--muted);
}

.status-badge.tone-good,
.level-badge.tone-good {
  background: var(--good-soft);
  color: var(--good);
}

.status-badge.tone-warn,
.level-badge.tone-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.status-badge.tone-danger,
.level-badge.tone-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.target-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.fact-item {
  min-width: 0;
}

.fact-label {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.fact-value {
  margin-top: 0.32rem;
  font-size: 0.95rem;
  line-height: 1.45;
  word-break: break-word;
}

.fact-value code,
.state-inspector {
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.summary-chip {
  padding: 0.38rem 0.6rem;
  background: #ebf1f7;
  color: var(--text);
  font-size: 0.82rem;
}

.detail-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.detail-line {
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

.activity-meta {
  font-size: 0.9rem;
}

.activity-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.activity-expand-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.activity-expand-hint::before {
  content: "Show details";
}

.activity-expand-hint::after {
  content: "▾";
  font-size: 0.95rem;
  transition: transform 160ms ease;
}

.activity-entry[open] {
  background: var(--surface-strong);
  border-color: var(--line-strong);
}

.activity-entry[open] .activity-entry-summary {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.activity-entry[open] .activity-expand-hint::before {
  content: "Hide details";
}

.activity-entry[open] .activity-expand-hint::after {
  transform: rotate(180deg);
}

.activity-details {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.9rem;
}

.activity-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.activity-detail {
  min-width: 0;
}

.activity-detail-wide {
  grid-column: 1 / -1;
}

.activity-detail-label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-detail-value {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
}

.activity-payload {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  background: #112133;
  color: #ebf3fb;
  overflow: auto;
  line-height: 1.55;
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
  font-size: 0.84rem;
}

.attention-entry {
  appearance: none;
}

.inspector-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.inspector-drawer.is-open {
  pointer-events: auto;
}

.inspector-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 33, 51, 0.32);
  opacity: 0;
  transition: opacity 180ms ease;
}

.inspector-drawer.is-open .inspector-backdrop {
  opacity: 1;
}

.inspector-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(620px, 100vw);
  height: 100vh;
  padding: 1.3rem 1.35rem 1.5rem;
  overflow: auto;
  transform: translateX(100%);
  transition: transform 220ms ease;
  border-left: 1px solid rgba(194, 207, 219, 0.8);
}

.inspector-drawer.is-open .inspector-panel {
  transform: translateX(0);
}

.inspector-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.inspector-panel h2 {
  font-size: 1.75rem;
}

.inspector-panel-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
}

.drawer-subtitle {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.drawer-section + .drawer-section {
  margin-top: 1.15rem;
}

.drawer-section h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.drawer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.drawer-stack {
  display: grid;
  gap: 0.75rem;
}

.drawer-item {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 0.95rem;
  background: rgba(248, 250, 252, 0.72);
}

.drawer-item[data-tone="good"] {
  border-left-color: var(--good);
}

.drawer-item[data-tone="warn"] {
  border-left-color: var(--warn);
}

.drawer-item[data-tone="danger"] {
  border-left-color: var(--danger);
}

.drawer-item-action {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.drawer-item-action:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--surface-strong);
}

.drawer-payload {
  margin: 0;
  max-height: none;
}

.inspector-toggle summary {
  cursor: pointer;
  font-weight: 700;
}

.state-inspector {
  margin: 1rem 0 0;
  padding: 1rem;
  max-height: 26rem;
  overflow: auto;
  border-radius: 1rem;
  background: #112133;
  color: #ebf3fb;
  line-height: 1.55;
}

.empty-state {
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.65);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .run-strip,
  .overview-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: start;
  }

  .topbar-nav {
    justify-content: flex-start;
  }

  .panel-targets,
  .panel-runs,
  .panel-inspector {
    grid-column: span 12;
  }

  .panel-note {
    max-width: none;
    text-align: left;
  }

  .filter-bar-copy {
    align-items: start;
  }

  .filter-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-section-head {
    flex-direction: column;
  }

  .metrics-grid,
  .signals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 1.25rem, 100%);
    padding: 1rem 0 2rem;
  }

  .topbar,
  .run-strip,
  .panel,
  .filter-bar,
  .overview-section,
  .metric,
  .trend-card {
    padding: 1rem;
  }

  .brand-logo {
    width: 52px;
  }

  .topbar-nav {
    width: 100%;
  }

  .run-facts,
  .target-facts,
  .drawer-facts {
    grid-template-columns: 1fr;
  }

  .target-header,
  .run-entry-head,
  .activity-entry-head,
  .attention-entry-head,
  .drawer-item-head,
  .inspector-panel-head,
  .panel-head {
    flex-direction: column;
    align-items: start;
  }

  .panel-actions {
    align-items: start;
    flex-direction: column;
  }

  .activity-meta-row {
    flex-direction: column;
    align-items: start;
  }

  .activity-detail-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .signals-grid,
  .trends-grid {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .inspector-panel {
    width: 100vw;
  }

  .inspector-panel-actions {
    justify-items: start;
  }
}
