:root {
  --bg: #0f172a;
  --panel: #111827;
  --card: #0b1220;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --accent-2: #38bdf8;
  --ok: #22c55e;
  --warn: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at top left, #1f2937, #0f172a 40%);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #0b1220;
  border-bottom: 1px solid #1f2937;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #1f2937;
  color: var(--muted);
}

.pill.ok {
  background: rgba(34, 197, 94, 0.2);
  color: var(--ok);
}

.pill.warn {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warn);
}

.auth {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.auth input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #1f2937;
  background: #111827;
  color: var(--text);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 1px solid #1f2937;
  background: #0b1220;
}

.tab {
  background: transparent;
  border: 1px solid #1f2937;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.tab.active {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.container {
  padding: 24px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.hero {
  background: linear-gradient(135deg, #0b1220, #111827);
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 8px 0;
}

.hero .meta {
  margin-top: 12px;
  color: var(--muted);
  display: flex;
  gap: 16px;
}

.hero .actions {
  margin-top: 16px;
  flex-wrap: wrap;
}

.file {
  position: relative;
  overflow: hidden;
}

.file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px;
}

.card textarea {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #111827;
  color: var(--text);
}

.card input {
  width: 100%;
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #111827;
  color: var(--text);
}

.list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.list li {
  padding: 8px 0;
  border-bottom: 1px solid #1f2937;
  color: var(--muted);
}

.token-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.token-form input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #1f2937;
  background: #111827;
  color: var(--text);
}


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

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  border-bottom: 1px solid #1f2937;
  padding: 10px;
  text-align: left;
}

.table input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #1f2937;
  background: #111827;
  color: var(--text);
}

.table button {
  padding: 6px 10px;
}

.primary, .secondary, .link {
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
}

.primary {
  background: var(--accent);
  color: #0b1220;
  font-weight: 600;
}

.secondary {
  background: #1f2937;
  color: var(--text);
}

.link {
  background: transparent;
  color: var(--accent-2);
  padding: 0;
}

.log {
  list-style: none;
  padding: 0;
  margin: 0;
}

.log li {
  padding: 10px 0;
  border-bottom: 1px solid #1f2937;
}

.time {
  color: var(--muted);
  margin-right: 12px;
}

.progress {
  background: #1f2937;
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
  margin: 8px 0;
}

.bar {
  height: 10px;
  background: var(--accent-2);
}
