.vault-root {
  --max: 1320px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.controls {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.82);
  font-weight: 750;
  margin-bottom: 2px;
}

.filter-label::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
  background: rgba(247,147,26,.18);
  border: 2px solid rgba(247,147,26,.55);
  vertical-align: -1px;
}

.tabs {
  height: 56px;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border-radius: 999px;
  background: rgba(14,14,14,.65);
  border: 2px solid rgba(247,147,26,.18);
  overflow: hidden;
}

.tab {
  height: 100%;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.76);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}

.tab + .tab {
  border-left: 2px solid rgba(247,147,26,.14);
}

.tab:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.tab.active {
  background: rgba(247,147,26,.15);
  color: var(--orange);
  box-shadow: 0 0 0 2px rgba(247,147,26,.08) inset;
}

.search {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid rgba(247,147,26,.22);
  background: rgba(14,14,14,.65);
}

.search span {
  opacity: .75;
  font-size: 14px;
  line-height: 1;
}

.search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
}

.search input::placeholder {
  color: rgba(255,255,255,.45);
}

.clear-btn {
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid rgba(247,147,26,.22);
  background: rgba(14,14,14,.65);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.clear-btn:hover {
  border-color: rgba(247,147,26,.4);
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-row .search {
  flex: 1 1 auto;
}

.search-row .clear-btn {
  flex: 0 0 auto;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 2px solid rgba(247,147,26,.38);
  background: rgba(247,147,26,.10);
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.1;
}

.pill:hover {
  background: rgba(247,147,26,.14);
  border-color: rgba(247,147,26,.55);
}

.pill.active,
.pill.selected {
  background: rgba(247,147,26,.22);
  border-color: rgba(247,147,26,.85);
}

.card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  grid-column: span 4;
  background: rgba(14,14,14,.7);
  border: 2px solid rgba(247,147,26,.18);
  border-radius: calc(var(--radius) + 2px);
  padding: 20px;
  min-height: 220px;
  transform: translateY(0);
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(247,147,26,.36);
  background: rgba(18,18,18,.8);
  box-shadow:
    0 14px 34px rgba(0,0,0,.26),
    0 0 0 1px rgba(247,147,26,.08) inset;
}

a.card:hover,
a.featured-card:hover {
  opacity: 1;
}

.card.disabled {
  opacity: .72;
  cursor: not-allowed;
}

.card.disabled:hover {
  transform: none;
  border-color: rgba(247,147,26,.18);
  background: rgba(14,14,14,.7);
  box-shadow: none;
}

.cover {
  flex: 0 0 104px;
  width: 104px;
}

.cover img {
  display: block;
  width: 104px;
  height: 156px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(247,147,26,.18);
  background: rgba(255,255,255,.04);
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.card:hover .cover img,
.featured-card:hover .cover img {
  transform: translateY(-1px);
  border-color: rgba(247,147,26,.34);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.card-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 10px;
  transition: color .16s ease;
}

.card:hover .card-title,
.featured-card:hover .card-title {
  color: rgba(255,255,255,.98);
}

.card-meta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255,255,255,.62);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
}

.card-meta-label {
  opacity: .75;
  margin-right: .3rem;
  font-weight: 700;
  text-transform: none;
  font-size: 0.78rem;
}

.card-meta-name {
  color: rgba(255,255,255,.78);
  font-weight: 600;
}

.card-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.featured-section {
  margin: 10px 0 32px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.featured-card {
  grid-column: span 4;
  position: relative;
  border-color: rgba(247,147,26,.38);
  background:
    linear-gradient(180deg, rgba(247,147,26,.10), rgba(255,255,255,.02)),
    rgba(14,14,14,.84);
  box-shadow:
    0 18px 42px rgba(0,0,0,.30),
    0 0 0 1px rgba(247,147,26,.12) inset,
    0 0 30px rgba(247,147,26,.08);
}

.featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(247,147,26,0),
    rgba(247,147,26,.95),
    rgba(247,147,26,0)
  );
  opacity: .9;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1.5px solid rgba(247,147,26,.34);
  background: rgba(247,147,26,.12);
  color: #f7931a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
}

.featured-card .card-title {
  font-size: 21px;
}

.featured-card .card-meta-name {
  color: rgba(255,255,255,.84);
  font-weight: 700;
}

.featured-card .card-desc {
  color: rgba(255,255,255,.76);
}

@media (min-width: 1200px) {
  .card {
    padding: 24px;
    gap: 20px;
    min-height: 230px;
  }

  .cover {
    flex-basis: 104px;
    width: 104px;
  }

  .cover img {
    width: 120px;
    height: 180px;
    border-radius: 18px;
  }
}

@media (max-width: 980px) {
  .card,
  .featured-card {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .card,
  .featured-card {
    grid-column: span 12;
    padding: 18px;
    gap: 16px;
    min-height: 0;
  }

  .cover {
    flex: 0 0 92px;
    width: 92px;
  }

  .cover img {
    width: 92px;
    height: 138px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-desc {
    margin-top: 6px;
    font-size: 15px;
  }

  .card-meta {
    margin-top: 0.25rem;
    font-size: 0.80rem;
  }

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

  .search,
  .clear-btn {
    width: 100%;
  }

  .pill {
    font-size: 13px;
    padding: 8px 12px;
  }

  .tab {
    font-size: 14px;
  }

  .featured-card::before {
    left: 18px;
    right: 18px;
  }
}
