:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #667085;
  --border: #d9e0ea;
  --accent: #1f7a5c;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

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

.shell {
  width: min(1500px, calc(100vw - 32px));
  margin: 24px auto;
}

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

h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

p {
  margin: 0;
  color: var(--muted);
}

.token-field {
  display: grid;
  gap: 6px;
  min-width: min(420px, 100%);
  color: var(--muted);
  font-size: 14px;
}

.token-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

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

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

th {
  background: #eef2f6;
  color: #344054;
  font-weight: 700;
}

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

.status {
  display: inline-flex;
  align-items: center;
  min-width: 76px;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 12px;
}

.running {
  background: #dcfae6;
  color: #067647;
}

.stopped {
  background: #fee4e2;
  color: var(--danger);
}

.url {
  max-width: 280px;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  gap: 8px;
}

button {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

a {
  color: #175cd3;
}

#message {
  min-height: 24px;
  margin-top: 14px;
}

#message.error {
  color: var(--danger);
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 20px, 1500px);
    margin: 14px auto;
  }

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