.pdf-db-app.is-empty {
  padding-bottom: 4rem;
}

.pdf-db-guide {
  margin: 2.5rem auto 0;
  width: min(980px, calc(100% - clamp(80px, 20.8vw, 160px)));
  line-height: 1.8;
  color: #2e3a40;
}

.pdf-db-guide-line {
  margin: 0;
}

.pdf-db-guide-line + .pdf-db-guide-line {
  margin-top: 0.15rem;
}

.pdf-db-controls {
  margin: 2.5rem auto;
  width: min(980px, calc(100% - clamp(80px, 20.8vw, 160px)));
  background: #f6f8f9;
  border: 1px solid #dbe7ec;
  border-radius: 12px;
  padding: 1.4rem;
}

.pdf-db-controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.pdf-db-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pdf-db-section-title {
  margin: 0;
  font-size: 1.1rem;
  color: #135f7a;
}

.pdf-db-all-btn {
  border: 1px solid #2a8dae;
  background: #ffffff;
  color: #2a8dae;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pdf-db-all-btn:hover {
  background: #2a8dae;
  color: #ffffff;
}

.pdf-db-maker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pdf-db-maker-btn {
  border: 1px solid #8fbfd0;
  border-radius: 999px;
  background: #ffffff;
  color: #186d89;
  padding: 0.3rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pdf-db-maker-btn:hover {
  border-color: #2a8dae;
}

.pdf-db-maker-btn.is-active {
  background: #2a8dae;
  border-color: #2a8dae;
  color: #ffffff;
}

.pdf-db-search-block {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pdf-db-search-block input {
  width: 100%;
  border: 1px solid #b7c9d2;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
}

.pdf-db-search-block input:focus {
  border-color: #2a8dae;
  outline: 2px solid rgba(42, 141, 174, 0.2);
}

.pdf-db-count {
  margin-top: 0.65rem;
  margin-bottom: 0;
  color: #2e3a40;
  font-size: 0.92rem;
}

.pdf-db-loading,
.pdf-db-error,
.pdf-db-empty {
  margin: 2rem auto;
  width: min(980px, calc(100% - clamp(80px, 20.8vw, 160px)));
  padding: 1rem 1.2rem;
  border-radius: 10px;
}

.pdf-db-loading {
  background: #f4f7f8;
  color: #2b5d71;
}

.pdf-db-error {
  background: #fff3f3;
  color: #9e2f2f;
  border: 1px solid #f0c6c6;
}

.pdf-db-empty {
  background: #f8f8f8;
  color: #3f4b50;
  border: 1px dashed #cad8de;
}

@media (max-width: 768px) {
  .pdf-db-app.is-empty {
    padding-bottom: 2.5rem;
  }

  .pdf-db-guide {
    margin: 1.5rem auto 0;
  }

  .pdf-db-controls {
    margin: 1.5rem auto;
    padding: 1rem;
    border-radius: 10px;
  }

  .pdf-db-controls-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdf-db-header-actions {
    width: 100%;
  }

  .pdf-db-maker-btn {
    font-size: 0.82rem;
    padding: 0.28rem 0.62rem;
  }
}
