:root {
  color-scheme: dark;
  --bg: #111315;
  --panel: #181b1f;
  --line: #2a3037;
  --text: #eef2f6;
  --muted: #9aa4b2;
  --accent: #4f8cff;
  --accent-strong: #2f6fe5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 0;
  font-size: 32px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--accent-strong);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button:disabled {
  opacity: 0.55;
  cursor: default;
}

.settings {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 280px);
  gap: 12px;
  margin-bottom: 14px;
}

.settings label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.settings input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  user-select: none;
}

.toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 1500px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

a {
  color: #7fb0ff;
}

.app-icon {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: #242a31;
  object-fit: cover;
}

.empty-icon {
  border: 1px solid var(--line);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.truncate {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  font-weight: 700;
}

.status-alive {
  color: #66d48f;
}

.status-awaiting_test_app,
.status-waiting_for_tester,
.status-testing,
.status-failure_confirmation {
  color: #f2c96d;
}

.status-dead,
.status-manual_removed {
  color: #ff7d7d;
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 24px, 1180px);
    padding: 20px 0;
  }

  .topbar,
  .settings {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  h1 {
    font-size: 26px;
  }
}
