:root {
  --bg: #0f0f10;
  --panel: #121316;
  --ink: #e5e7eb;
  --muted: #a1a1aa;
  --line: #32343a;
  --wrap: 1100px;
  --radius: 14px;
  --danger: #ef4444;
  --danger-ink: #2a0a0a;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif
}

/* Header */
.header {
  background: #0b0c0e;
  border-bottom: 1px solid var(--line)
}

.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px
}

.logo-square {
  width: 36px;
  height: 36px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #d1d5db
}

.nav {
  margin-left: auto
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0
}

.nav a {
  color: #e5e7eb;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px
}

.nav a:hover {
  background: #1b1c21
}

.login {
  color: #c7c9cf;
  font-size: 14px
}

/* Panel */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  margin: 28px 0
}

.panel-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 24px
}

/* List */
.list {
  list-style: none;
  margin: 0;
  padding: 8px
}

.row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: none
}

.col.title {
  color: #e9eaf0
}

.col.details {
  color: #d0d3dc
}

.col.actions {
  justify-self: end
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid #cfd3da;
  background: #f5f7fb;
  color: #0b0c0e;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer
}

.btn:hover {
  filter: brightness(.95)
}

.btn-danger {
  background: var(--danger);
  color: #ffecec;
  border-color: #ffc2c2
}

/* Pagination (optional) */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px
}

.page {
  color: #e5e7eb;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 8px
}

.page.current {
  background: #1b1c21
}

.page.disabled {
  opacity: .4;
  pointer-events: none
}

/* Responsive */
@media (max-width:720px) {
  .row {
    grid-template-columns: 1fr;
    gap: 8px
  }

  .col.actions {
    justify-self: start
  }
}