:root {
  --bg: #0b0b0c;
  --surface: #131315;
  --surface-alt: #19191b;
  --border: #26262a;
  --text: #e4e4e0;
  --text-dim: #84847e;
  --accent: #ffb000;
  --accent-dim: #3a2c10;
  --danger: #ff5c5c;
  --danger-dim: #361414;
  --radius: 2px;
  --mono: "DM Mono", "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: var(--mono);
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.wordmark {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.wordmark span {
  color: var(--accent);
}

.tagline {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.identity img {
  width: 22px;
  height: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.identity-name {
  color: var(--text-dim);
}

main {
  padding: 48px 0 80px;
}

.eyebrow {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.eyebrow::before {
  content: "// ";
  color: var(--accent);
}

h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
}

.lede {
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

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

.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dim);
}

.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-dim);
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.panel {
  background: var(--surface);
  border: 0px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  background: rgba(0,0,0,.451);
  border-radius: 1rem;
  box-shadow: 0rem 0rem 2rem 0rem rgba(0,0,0,0.369);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel h2 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text-dim);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.dot.live {
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(255, 176, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .dot.live {
    animation: none;
  }
}

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

.field {
  margin-bottom: 4px;
}

.field-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.field-value {
  font-size: 14px;
}

.monitor {
  position: relative;
  width: 96px;
  height: 96px;
  border: 1px solid var(--border);
  background: #000;
  image-rendering: pixelated;
  overflow: hidden;
}

.monitor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.monitor-label {
  position: absolute;
  bottom: 2px;
  left: 3px;
  font-size: 9px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 3px;
}

.empty {
  color: var(--text-dim);
  font-size: 13px;
  padding: 12px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
}

td {
  border-bottom: 1px solid var(--border);
  padding: 10px;
  vertical-align: middle;
}

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

.cell-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cell-user img {
  width: 20px;
  height: 20px;
  border-radius: var(--radius);
}

.error-banner {
  border: 1px solid var(--danger);
  color: var(--danger);
  background: var(--danger-dim);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 24px;
}

.success-banner {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 24px;
}

input[type="text"] {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: var(--radius);
}

footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--text-dim);
  font-size: 12px;
}

@media (max-width: 600px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

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

  table, thead, tbody, th, td, tr {
    display: block;
  }

  th {
    display: none;
  }

  td {
    border-bottom: none;
    padding: 4px 0;
  }

  tr {
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
  }
}
