:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --panel: #15171d;
  --panel-2: #1d2028;
  --line: #2a2e38;
  --text: #f4f5f7;
  --muted: #a1a8b5;
  --dim: #717a89;
  --fortuna: #ffdb01;
  --fortuna-deep: #d8a900;
  --teal: #48d6bd;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  background: rgba(11, 12, 15, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand-home {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-home:hover {
  color: var(--fortuna);
}

.brand-sep,
.brand-lab,
.access-note {
  color: var(--muted);
}

.brand-lab,
.access-note {
  font-size: 13px;
  font-weight: 600;
}

.topbar-spacer {
  flex: 1;
}

.access-note {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--fortuna);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 10px;
}

.metric {
  min-width: 96px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-value {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.metric-label {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.brand-tab {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.brand-tab.is-active {
  border-color: var(--fortuna);
  background: #211f12;
  color: var(--fortuna);
}

.search {
  width: min(360px, 100%);
}

.search input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  outline: none;
}

.search input:focus {
  border-color: var(--fortuna);
}

.content-head {
  display: flex;
  justify-content: flex-end;
  min-height: 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.card {
  display: grid;
  grid-template-rows: 132px 1fr;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--fortuna);
  transform: translateY(-2px);
}

.card-visual {
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(255, 219, 1, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 219, 1, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, rgba(72, 214, 189, 0.18), transparent 36%),
    linear-gradient(135deg, #191b20, #0f1014);
  background-size: 22px 22px, 22px 22px, auto, auto;
}

.card-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--fortuna);
  border-radius: 50%;
  color: var(--fortuna);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(255, 219, 1, 0.22);
}

.card-variant {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 219, 1, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--fortuna);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.card-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.card-action {
  margin-top: auto;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.empty {
  padding: 36px 0;
  color: var(--muted);
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .topbar {
    padding: 0 16px;
  }

  .page-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 27px;
  }

  .search {
    width: 100%;
  }
}
