/* DB-V04-EMPTY-STATE-24: one shared empty-state contract for library, pending and projects. */
:root {
  --db-empty-width: 460px;
  --db-empty-min-height: 210px;
  --db-empty-radius: 18px;
  --db-empty-padding: 34px 28px;
  --db-empty-gap: 7px;
  --db-empty-bg: rgba(251, 253, 255, .64);
  --db-empty-border: rgba(255, 255, 255, .72);
  --db-empty-shadow: rgba(255, 255, 255, .8) 0 1px 0 inset, rgba(50, 66, 96, .06) 0 18px 46px;
  --db-empty-title: #2f3a4e;
  --db-empty-text: #7c8498;
  --db-empty-icon: #9aa7b9;
  --db-empty-title-size: 17px;
  --db-empty-title-weight: 600;
  --db-empty-title-line: 1.3;
  --db-empty-text-size: 11.5px;
  --db-empty-text-line: 1.5;
  --db-empty-action-bg: #6f63c8;
  --db-empty-action-text: #fff;
}

.db-empty-state {
  box-sizing: border-box;
  width: min(var(--db-empty-width), calc(100% - 32px));
  min-height: var(--db-empty-min-height) !important;
  margin: 24px auto 0;
  padding: var(--db-empty-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--db-empty-gap);
  text-align: center;
  border: 1px solid var(--db-empty-border);
  border-radius: var(--db-empty-radius);
  background: var(--db-empty-bg);
  box-shadow: var(--db-empty-shadow);
  -webkit-backdrop-filter: saturate(125%) blur(18px);
  backdrop-filter: saturate(125%) blur(18px);
  color: var(--db-empty-title);
}

.db-empty-state > span,
.db-empty-state > svg,
.db-empty-state .db-empty-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 0 2px;
  color: var(--db-empty-icon);
  font-size: 28px !important;
  line-height: 1;
  flex: 0 0 auto;
}

.db-empty-state h2,
.db-empty-state > b,
.db-empty-state .db-empty-title {
  display: block;
  margin: 0;
  color: var(--db-empty-title);
  font-size: var(--db-empty-title-size) !important;
  font-weight: var(--db-empty-title-weight) !important;
  line-height: var(--db-empty-title-line) !important;
  letter-spacing: -.015em;
}

.db-empty-state p,
.db-empty-state .db-empty-text {
  max-width: 430px;
  margin: 0;
  color: var(--db-empty-text) !important;
  font-size: var(--db-empty-text-size) !important;
  font-weight: 400 !important;
  line-height: var(--db-empty-text-line) !important;
}

.db-empty-state button,
.db-empty-state .paf-button.is-primary,
.db-empty-state .paf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  margin-top: 7px;
  padding: 0 15px;
  border: 1px solid var(--db-empty-action-bg);
  border-radius: 10px;
  background: var(--db-empty-action-bg) !important;
  border-color: var(--db-empty-action-bg) !important;
  color: var(--db-empty-action-text) !important;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.db-empty-state button:hover,
.db-empty-state .paf-button.is-primary:hover {
  background: #6256b8;
  border-color: #6256b8;
  color: #fff;
}

/* The library empty state is anchored to the filter row; the old hidden grid
   still contributes its masonry padding in some browsers. */
.library-section #assetGrid[hidden] {
  display: none !important;
}
.app-shell:has(#libraryNav.active) .workspace.has-empty-state > .db-empty-state {
  margin: 8px auto 0 !important;
}
.workspace.has-empty-state > #resultNote {
  display: none !important;
}

/* Recommended tags: spacing only; content, order, type and click behavior stay. */
.library-section .library-search-suggestions-standalone {
  margin-top: -2px !important;
  padding-top: 0 !important;
}

@media (max-width: 768px) {
  .db-empty-state {
    min-height: 190px !important;
    padding: 28px 20px;
  }
}
