/* G18: compact, in-place asset selection controls. */
.library-section .library-batch-controls {
  position: relative;
  z-index: 12;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.library-section .library-batch-select {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  padding: 0;
  border: 1px solid #9aa9bb;
  border-radius: 4px;
  background: #fff;
  color: #315f91;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.library-section .library-batch-select[aria-pressed="true"] { border-color: #5b82b5; background: #e7f0fa; }
.library-section .library-batch-selected-actions { display: inline-flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
.library-section .library-batch-count { color: #51657d; font-size: 11px; line-height: 28px; }
.library-section .library-batch-operations { position: relative; }
.library-section .library-batch-operations summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #d5dfeb;
  border-radius: 7px;
  background: #f8fafc;
  color: #405a78;
  font-size: 11px;
  cursor: pointer;
  list-style: none;
}
.library-section .library-batch-operations summary::-webkit-details-marker { display: none; }
.library-section .library-batch-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  display: grid;
  min-width: 178px;
  gap: 2px;
  padding: 5px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(40, 64, 92, .15);
}
.library-section .library-batch-menu button {
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #405a78;
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.library-section .library-batch-menu button:hover { background: #edf3fa; color: #2d5c8e; }
.library-section .library-batch-move-menu { display: grid; gap: 2px; margin: 3px 2px 1px; padding-top: 4px; border-top: 1px solid #edf1f6; }
.library-section .library-batch-move-menu::before { padding: 2px 7px 3px; color: #8a99aa; content: "移动到分类"; font-size: 10px; }
.library-section .library-batch-move-empty { margin: 0; padding: 5px 7px; color: #8795a5; font-size: 10px; line-height: 1.45; }
.library-section .asset-card.library-selected { outline: 2px solid rgba(77, 118, 181, .54); outline-offset: 2px; }
.library-section .asset-library-select { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #afbdcc; border-radius: 5px; background: rgba(255,255,255,.94); color: #315f91; font-weight: 700; cursor: pointer; }
.library-section .asset-card.library-selected .asset-library-select { border-color: #4d76b5; background: #4d76b5; color: #fff; }
.library-section .library-batch-bar,
.library-section .canvas-batch-add,
.library-section .asset-canvas-select { display: none !important; }

/* Project cards: cold blue-gray empty/preview surface and a compact info zone. */
.project-archive-figma .paf-project-card { background: #fff !important; }
.project-archive-figma .paf-cover,
.project-archive-figma .paf-cover-wrap,
.project-archive-figma .paf-cover.neutral-folder { background: #e9eff6 !important; }
.project-archive-figma .paf-card-body {
  min-height: 76px !important;
  height: 76px;
  margin-top: 0 !important;
  padding: 10px 12px 9px !important;
  border-radius: 0 0 11px 11px !important;
  background: #eef3f8 !important;
  box-shadow: none !important;
}
.project-archive-figma .paf-card-copy { grid-template-rows: 1fr auto; gap: 4px; min-height: 0; }
.project-archive-figma .paf-card-copy strong { min-width: 0; overflow: hidden; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.project-archive-figma .paf-card-meta-line { min-height: 17px; }
.project-archive-figma .paf-preview-generation-state { color: #5a76a0; font-size: 10px; }

@media (max-width: 1024px) {
  .library-section .library-figma-row { align-items: center; }
  .library-section .library-batch-controls { order: -1; }
}
@media (max-width: 390px) {
  .library-section .library-figma-row { gap: 7px !important; }
  .library-section .library-batch-selected-actions { gap: 4px; }
  .library-section .library-batch-count { font-size: 10px; }
  .library-section .library-batch-operations summary { padding-inline: 6px; font-size: 10px; }
}
