/* Compact index header shared by personal and public binders. */
.zbd-binder-index-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(25, 29, 36, 0.98), rgba(16, 19, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 12px 28px rgba(0, 0, 0, 0.14);
}

.zbd-binder-index-shell::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #58a6ff 0%, rgba(88, 166, 255, 0.72) 31%, rgba(246, 201, 76, 0.72) 69%, #f6c94c 100%);
  opacity: 0.72;
  content: "";
  pointer-events: none;
}

.zbd-binder-index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.86rem 1rem 0.78rem;
}

.zbd-binder-index-copy {
  position: relative;
  min-width: 0;
  padding-left: 0.82rem;
}

.zbd-binder-index-copy::before {
  position: absolute;
  top: 0.14rem;
  bottom: 0.12rem;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6c94c, #58a6ff);
  content: "";
}

.zbd-binder-index-title {
  margin: 0;
  color: #f4f7fa;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.zbd-binder-index-description {
  margin: 0.22rem 0 0;
  color: #9da8b4;
  font-size: 0.78rem;
  font-weight: 560;
  line-height: 1.35;
}

#binders-app .zbd-binder-index-action.zbd-btn-create-binder {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  width: auto;
  min-width: 0;
  min-height: 38px;
  max-width: none;
  padding: 0.5rem 0.82rem;
  border: 1px solid rgba(88, 166, 255, 0.4);
  border-radius: 10px;
  background: rgba(88, 166, 255, 0.115);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #eaf4ff;
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

#binders-app .zbd-binder-index-action.zbd-btn-create-binder:hover {
  border-color: rgba(88, 166, 255, 0.68);
  background: rgba(88, 166, 255, 0.19);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065);
  color: #fff;
}

#binders-app .zbd-binder-index-action.zbd-btn-create-binder:focus-visible {
  outline: 3px solid rgba(88, 166, 255, 0.3);
  outline-offset: 2px;
}

.zbd-binder-index-action-mark {
  color: #8fc3ff;
  font-size: 1rem;
  font-weight: 540;
  line-height: 0;
}

.zbd-binder-index-nav {
  padding: 0 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(5, 8, 12, 0.13);
}

.zbd-binder-index-shell .binders-nav {
  margin: 0 !important;
}

.zbd-binder-index-shell .binders-nav .zbd-binders-nav {
  border-bottom: 0;
}

.zbd-binder-index-shell .binders-nav .zbd-binders-nav-link {
  min-height: 2.72rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-size: 0.67rem;
}

.zbd-binder-index-shell .binders-nav .zbd-binders-nav-link::after {
  bottom: 0;
}

.zbd-binder-index-shell--nav-only .zbd-binder-index-nav {
  border-top: 0;
}

@media (max-width: 575.98px) {
  .zbd-binder-index-header {
    gap: 0.72rem;
    padding: 0.78rem 0.78rem 0.72rem;
  }

  .zbd-binder-index-copy {
    padding-left: 0.7rem;
  }

  .zbd-binder-index-title {
    font-size: 1.04rem;
  }

  .zbd-binder-index-description {
    margin-top: 0.18rem;
    font-size: 0.72rem;
  }

  #binders-app .zbd-binder-index-action.zbd-btn-create-binder {
    min-height: 36px;
    padding: 0.46rem 0.66rem;
    font-size: 0.72rem;
  }

  .zbd-binder-index-nav {
    padding: 0 0.62rem;
  }

  .zbd-binder-index-shell .binders-nav .zbd-binders-nav-link {
    min-height: 2.82rem;
    padding-right: 0.25rem;
    padding-left: 0.25rem;
    font-size: 0.61rem;
    letter-spacing: 0.025em;
  }
}

@media (max-width: 359.98px) {
  .zbd-binder-index-header {
    align-items: stretch;
    flex-direction: column;
  }

  #binders-app .zbd-binder-index-action.zbd-btn-create-binder {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #binders-app .zbd-binder-index-action.zbd-btn-create-binder {
    transition: none;
  }
}
