:root {
  color-scheme: dark;
  --bg: #0f1720;
  --bg-elevated: #15202c;
  --bg-panel: #192432;
  --border: #273546;
  --text: #e6edf3;
  --muted: #99a7b5;
  --accent: #7bc4a8;
  --accent-strong: #9ae6bf;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(123, 196, 168, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #0c1219 0%, #111a24 100%);
  color: var(--text);
}

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

a:hover {
  text-decoration: underline;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar h1,
.panel h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.content {
  display: grid;
  gap: 18px;
}

.panel {
  background: rgba(21, 32, 44, 0.88);
  border: 1px solid rgba(39, 53, 70, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-tight {
  padding: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs span:last-child {
  color: var(--text);
}

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

.panel-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #102018;
  font-weight: 700;
  text-decoration: none;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
}

.listing {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.listing th,
.listing td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(39, 53, 70, 0.75);
}

.listing th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(12, 18, 25, 0.25);
}

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

.listing tr:hover td {
  background: rgba(123, 196, 168, 0.05);
}

.name-cell {
  font-weight: 600;
}

.code-shell {
  overflow-x: auto;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--border);
  background: #0b1117;
}

.code-shell pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  line-height: 1.55;
}

.code-shell .codehilite {
  background: #0b1117;
}

.file-header h2 {
  word-break: break-word;
}

.empty-state {
  display: grid;
  gap: 12px;
}

@media (max-width: 720px) {
  .topbar,
  .panel-header {
    flex-direction: column;
    align-items: start;
  }

  .shell {
    padding: 18px 12px 24px;
  }

  .panel-tight {
    padding: 14px;
  }
}