:root {
  --bg: #f7f8f5;
  --panel: #ffffff;
  --line: #d8ddd4;
  --ink: #202421;
  --muted: #68716a;
  --green: #2f7d63;
  --blue: #386fa4;
  --red: #b24a3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.4;
}

button {
  color: inherit;
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.topbar h1,
.topbar p,
.column h2,
.panel h3 {
  margin: 0;
}

.topbar h1 {
  font-size: 20px;
  font-weight: 700;
}

.topbar p,
.meta,
.empty,
.small {
  color: var(--muted);
  font-size: 13px;
}

.topbar-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef3ed;
  cursor: pointer;
}

.layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.column,
.workspace,
.run-workspace {
  min-width: 0;
}

.workspace {
  display: grid;
  gap: 14px;
}

.view-hidden {
  display: none !important;
}

.column h2 {
  padding: 8px 4px 12px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
}

.list {
  display: grid;
  gap: 8px;
}

.list button {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
}

.list button:hover,
.list button.active,
.topbar-actions button:hover {
  border-color: var(--green);
}

.item-title,
.metric strong,
.kv strong {
  overflow-wrap: anywhere;
}

.item-title {
  display: block;
  font-weight: 650;
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.metric {
  min-height: 78px;
  padding: 12px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}

.experiment-panels {
  margin: 0;
}

.run-view {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  min-width: 0;
  padding: 14px;
}

.panel h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.panel h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
}

.panel.wide {
  grid-column: 1 / -1;
}
