:root {
  --bg: #fafaf7;
  --ink: #1a1a1a;
  --ink-quiet: #6b6b6b;
  --border: #d6d6d3;
  --accent: #b15c1f;
  --accent-bg: #fff3e7;
  --error: #c0392b;
}

* { box-sizing: border-box; }

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

header {
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}

header h1 {
  font-size: 16px;
  margin: 0;
}

header nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  margin-right: 16px;
}

header nav a.active {
  color: var(--accent);
}

button.linklike {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

h2 {
  font-size: 22px;
  margin: 0 0 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f3f3ee;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-quiet);
}

tr:last-child td {
  border-bottom: none;
}

tr.clickable:hover {
  background: var(--accent-bg);
  cursor: pointer;
}

.detail-grid {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
}

.detail-grid dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-quiet);
  margin-top: 12px;
}

.detail-grid dt:first-child { margin-top: 0; }

.detail-grid dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.role-pill {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dev-pill {
  display: inline-block;
  padding: 2px 8px;
  background: #e3eef9;
  color: #1f5fa0;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-quiet);
}

.actions {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.actions button, .actions a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
  font: inherit;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.actions button:hover, .actions a:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
}

.error-banner {
  background: #fdecea;
  color: var(--error);
  border: 1px solid #f5c6c0;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.token-prompt {
  max-width: 420px;
  margin: 80px auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}

.token-prompt h2 { margin-top: 0; }
.token-prompt input {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.token-prompt button {
  padding: 8px 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
