:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-hover: #f1f1f1;
  --ink: #111111;
  --muted: #6b6b6b;
  --muted-strong: #4a4a4a;
  --line: #e3e3e3;
  --line-strong: #c9c9c9;
  --dark: #181818;
  --dark-hover: #2b2b2b;
  --positive: #111111;
  --negative: #737373;
  --radius: 8px;
  --sidebar-width: 228px;
  --shadow-dialog: 0 24px 64px rgb(0 0 0 / 14%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

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

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fafafa;
}

.auth-panel {
  width: min(100%, 390px);
  display: grid;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 32px rgb(0 0 0 / 5%);
}

.auth-panel h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--dark);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark-small {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  font-size: 12px;
  font-weight: 600;
}

.input-with-action {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  transition: border-color 160ms ease, background 160ms ease;
}

.input-with-action:focus-within {
  border-color: var(--ink);
}

.input-with-action input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 2px 0 13px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: #505050;
  font-size: 12px;
}

.auth-health {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: #fafafa;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 22px;
}

.sidebar-brand > div:last-child {
  min-width: 0;
  display: grid;
}

.sidebar-brand strong {
  font-size: 14px;
  font-weight: 700;
}

.sidebar-brand span {
  color: var(--muted);
  font-size: 11px;
}

.main-nav {
  display: grid;
  gap: 3px;
}

.nav-item {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.nav-item:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.nav-item.is-active {
  background: #eaeaea;
  color: var(--ink);
  font-weight: 600;
}

.nav-item svg {
  width: 17px;
  height: 17px;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.runtime-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 10px;
}

.runtime-mini > div {
  min-width: 0;
  display: grid;
}

.runtime-mini strong {
  font-size: 12px;
}

.runtime-mini span:last-child {
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border: 1px solid #8a8a8a;
  border-radius: 50%;
  background: #d8d8d8;
}

.status-dot.is-online {
  border-color: #111;
  background: #111;
}

.status-dot.is-warning {
  border-color: #6a6a6a;
  background: #9b9b9b;
}

.main-content {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.topbar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.last-updated {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.icon-button:hover {
  border-color: var(--line);
  background: var(--surface-hover);
}

.icon-button.is-spinning svg {
  animation: spin 800ms linear infinite;
}

.icon-button-dark {
  color: #fff;
}

.icon-button-dark:hover {
  border-color: #4a4a4a;
  background: #2d2d2d;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.content-area {
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 28px clamp(20px, 3vw, 40px) 52px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  min-width: 0;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  transition: background 150ms ease;
}

.metric:last-child {
  border-right: 0;
}

.metric:hover {
  background: var(--surface-hover);
}

.metric-primary {
  background: var(--dark);
  color: #fff;
}

.metric-primary:hover {
  background: var(--dark-hover);
}

.metric-primary .metric-label,
.metric-primary .metric-sub {
  color: #c9c9c9;
}

.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.metric-label svg {
  width: 16px;
  height: 16px;
}

.metric strong {
  max-width: 100%;
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
}

.metric-sub {
  color: var(--muted);
  font-size: 11px;
}

.positive {
  color: var(--positive) !important;
}

.negative {
  color: var(--negative) !important;
}

.metric-primary .positive,
.metric-primary .negative {
  color: #fff !important;
}

.chart-grid,
.lower-grid,
.strategy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 16px;
  margin-top: 16px;
}

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

.panel,
.process-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel {
  margin-top: 16px;
  overflow: hidden;
}

.chart-grid .panel,
.lower-grid .panel,
.strategy-grid .panel {
  margin-top: 0;
}

.panel-heading {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.legend,
.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.legend-line {
  width: 16px;
  height: 2px;
  background: #161616;
}

.chart-frame {
  position: relative;
  width: 100%;
  height: 292px;
  padding: 16px;
}

.chart-frame-compact {
  height: 254px;
}

.chart-frame canvas {
  width: 100% !important;
  height: 100% !important;
}

.text-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 11px;
}

.text-button:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.text-button svg {
  width: 14px;
  height: 14px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

.table-wrap-tall {
  max-height: calc(100vh - 240px);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}

th {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  text-align: left;
}

td {
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid #ededed;
  color: var(--muted-strong);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--surface-hover);
}

.symbol-cell {
  color: var(--ink);
  font-weight: 650;
}

.side-tag,
.action-tag,
.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 650;
}

.side-tag.side-long {
  border-color: #222;
  background: #222;
  color: #fff;
}

.number-strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.empty-row td,
.empty-state {
  height: 120px;
  color: var(--muted);
  text-align: center;
}

.decision-list {
  max-height: 254px;
  overflow: auto;
}

.decision-item {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 16px;
  border-bottom: 1px solid #ededed;
  transition: background 150ms ease;
}

.decision-item:last-child {
  border-bottom: 0;
}

.decision-item:hover {
  background: var(--surface-hover);
}

.decision-symbol {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.decision-reason {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-score {
  color: var(--muted-strong);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.summary-strip > div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  transition: background 150ms ease;
}

.summary-strip > div:last-child {
  border-right: 0;
}

.summary-strip > div:hover {
  background: var(--surface-hover);
}

.summary-strip span,
.count-label {
  color: var(--muted);
  font-size: 11px;
}

.summary-strip strong {
  overflow: hidden;
  font-size: 19px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segmented-control {
  width: fit-content;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafafa;
}

.segmented-control button {
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  transition: background 150ms ease, color 150ms ease;
}

.segmented-control button:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.segmented-control button.is-active {
  background: var(--dark);
  color: #fff;
}

.activity-panel {
  margin-top: 14px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.process-panel {
  padding: 18px;
}

.process-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.process-head > div:nth-child(2) {
  min-width: 0;
  display: grid;
}

.process-head span {
  color: var(--muted);
  font-size: 11px;
}

.process-head strong {
  font-size: 16px;
  font-weight: 650;
}

.process-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafafa;
}

.process-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-details > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px 10px 13px 0;
}

.process-details dt {
  color: var(--muted);
  font-size: 10px;
}

.process-details dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
  transition: background 150ms ease, border-color 150ms ease;
}

.button:hover {
  border-color: #aaa;
  background: var(--surface-hover);
}

.button:disabled {
  cursor: wait;
  opacity: .5;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button-dark {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.button-dark:hover {
  border-color: var(--dark-hover);
  background: var(--dark-hover);
}

.button-wide {
  width: 100%;
  min-height: 44px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 11px;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle span {
  position: relative;
  width: 32px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #eee;
  transition: background 150ms ease;
}

.toggle span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #888;
  content: "";
  transition: transform 150ms ease, background 150ms ease;
}

.toggle input:checked + span {
  border-color: #111;
  background: #111;
}

.toggle input:checked + span::after {
  background: #fff;
  transform: translateX(14px);
}

.log-panel {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #262626;
  border-radius: var(--radius);
  background: #151515;
  color: #dedede;
}

.log-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid #333;
  color: #999;
  font-size: 11px;
}

.log-lines {
  height: calc(100vh - 210px);
  min-height: 420px;
  overflow: auto;
  padding: 10px 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.6;
}

.log-line {
  display: grid;
  grid-template-columns: 164px 58px minmax(0, 1fr);
  gap: 10px;
  padding: 3px 16px;
}

.log-line:hover {
  background: #242424;
}

.log-time,
.log-stream {
  color: #777;
}

.log-text {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.config-panel {
  margin-top: 0;
}

.config-meta {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.config-meta span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#configEditor {
  width: 100%;
  height: calc(100vh - 250px);
  min-height: 520px;
  display: block;
  resize: vertical;
  padding: 18px;
  border: 0;
  background: #fbfbfb;
  color: #202020;
  outline: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.65;
  tab-size: 2;
}

#configEditor:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1px #aaa;
}

.confirm-dialog {
  width: min(calc(100% - 32px), 410px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-dialog);
}

.confirm-dialog::backdrop {
  background: rgb(0 0 0 / 32%);
  backdrop-filter: blur(2px);
}

.confirm-dialog form {
  display: grid;
  justify-items: start;
  padding: 24px;
}

.dialog-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f7f7;
}

.confirm-dialog h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}

.confirm-dialog p {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.dialog-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 40px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #333;
  border-radius: 7px;
  background: #191919;
  color: #fff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 16%);
  font-size: 12px;
  animation: toast-in 180ms ease-out;
}

.toast svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

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

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric:nth-child(3) {
    border-right: 0;
  }

  .metric:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .chart-grid,
  .lower-grid,
  .strategy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --sidebar-width: 72px;
  }

  .sidebar {
    align-items: stretch;
    padding: 14px 8px;
  }

  .sidebar-brand {
    justify-content: center;
    padding: 0 0 20px;
  }

  .sidebar-brand > div:last-child,
  .nav-item span,
  .runtime-mini > div,
  .sidebar-footer .status-dot {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .runtime-mini {
    display: none;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    height: 100vh;
    display: block;
    overflow: hidden;
    padding-bottom: 64px;
  }

  .main-content {
    height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar {
    position: fixed;
    z-index: 50;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    display: block;
    padding: 6px 8px;
    border-top: 1px solid var(--line);
    border-right: 0;
    background: rgb(250 250 250 / 96%);
    backdrop-filter: blur(12px);
  }

  .sidebar-brand,
  .sidebar-footer {
    display: none;
  }

  .main-nav {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
  }

  .nav-item {
    min-height: 50px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 0 2px;
  }

  .nav-item span {
    display: block;
    font-size: 9px;
  }

  .nav-item svg {
    width: 16px;
    height: 16px;
  }

  .topbar {
    min-height: 66px;
    padding: 10px 14px;
  }

  .topbar h2 {
    font-size: 17px;
  }

  .last-updated {
    display: none;
  }

  .content-area {
    padding: 16px 12px 28px;
  }

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

  .metric {
    min-height: 112px;
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line);
  }

  .metric:nth-child(even) {
    border-right: 0 !important;
  }

  .metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .metric strong {
    font-size: 20px;
  }

  .chart-frame {
    height: 250px;
    padding: 12px;
  }

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

  .summary-strip > div:nth-child(2) {
    border-right: 0;
  }

  .summary-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .panel-heading {
    min-height: 58px;
    padding: 11px 12px;
  }

  .segmented-control {
    width: 100%;
    overflow-x: auto;
  }

  .segmented-control button {
    flex: 1 0 auto;
  }

  .process-panel {
    padding: 14px;
  }

  .process-details {
    grid-template-columns: 1fr 1fr;
  }

  .process-details > div:last-child {
    display: none;
  }

  .button-row .button {
    flex: 1 0 calc(50% - 8px);
  }

  .toolbar-row {
    align-items: stretch;
    flex-direction: column;
  }

  .log-lines {
    height: calc(100vh - 280px);
    min-height: 360px;
  }

  .log-line {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 7px 12px;
  }

  .log-time,
  .log-stream {
    display: inline;
    font-size: 9px;
  }

  .config-meta {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 7px 12px;
  }

  #configEditor {
    min-height: 460px;
    padding: 14px;
    font-size: 11px;
  }

  .auth-panel {
    padding: 26px 22px;
  }
}
