/* Design Brain V0.2 real local data states */

.import-wrap { position: relative; }
.import-menu { top: 41px; right: 0; width: 230px; padding: 6px; }
.import-menu > button { display: grid; gap: 3px; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.import-menu > button:hover { background: #efefed; }
.import-menu > button span { font-size: 11px; font-weight: 560; }
.import-menu > button small { color: var(--muted); font-size: 9px; }

.workspace.loading .masonry { opacity: .42; pointer-events: none; }
.workspace.loading:after { content: "正在读取本地资料库…"; position: fixed; top: 50%; left: calc(50% + 100px); color: #777; font-size: 11px; transform: translate(-50%, -50%); }

.tags-section { padding-top: 17px; }
.personal-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.personal-tag { padding: 5px 8px; border: 0; border-radius: 6px; background: #eeeeec; color: #51514f; font-size: 10px; }
.personal-tags .empty-tag { color: #979793; font-size: 10px; }
.tag-editor input, .category-creator input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #cececa; border-radius: 7px; outline: 0; background: #fff; font-size: 11px; }
.tag-editor input:focus, .category-creator input:focus { border-color: #888; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.tag-editor > div, .category-creator > div { display: flex; justify-content: flex-end; gap: 6px; margin-top: 7px; }
.tag-editor button, .category-creator button { padding: 6px 9px; border: 0; border-radius: 6px; background: #ededeb; font-size: 10px; }
.tag-editor .primary-small, .category-creator .primary-small { background: #222; color: #fff; }

.category-popover { bottom: 76px; }
.category-popover .create-category-option { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; color: #555; }
.category-creator { margin: 10px 0 3px; padding: 10px; border-radius: 8px; background: #f0f0ee; }
.archive-action { width: 100%; margin-top: 13px; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: #8f3838; text-align: left; font-size: 10px; }
.archive-action:hover { background: #f5eaea; }

.import-status { position: fixed; z-index: 750; right: 22px; bottom: 22px; width: 330px; overflow: hidden; border: 1px solid rgba(0,0,0,.13); border-radius: 10px; background: #fbfbfa; box-shadow: 0 16px 44px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.07); }
.import-status > header { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 13px 9px; }
.import-status > header > div { display: grid; gap: 3px; }
.import-status b { font-size: 11px; }
.import-status header span { color: var(--muted); font-size: 9px; }
.import-status header button { width: 22px; height: 22px; border: 0; border-radius: 5px; background: transparent; color: #888; font-size: 16px; }
.import-progress { height: 2px; background: #e5e5e2; }
.import-progress i { display: block; width: 0; height: 100%; background: #282827; transition: width .18s ease; }
.import-results { max-height: 176px; overflow-y: auto; padding: 7px 13px 11px; }
.import-result { display: grid; grid-template-columns: 13px minmax(0,1fr); gap: 7px; padding: 5px 0; color: #646462; font-size: 9px; }
.import-result span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-result.success span:first-child { color: #2f8750; }
.import-result.duplicate span:first-child { color: #9a7b34; }
.import-result.error span:first-child { color: #a34040; }

.save-state { display: inline-flex; align-items: center; gap: 5px; color: #888; font-size: 9px; }
.save-state:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #2f9b54; }

.asset-card.is-saving { opacity: .72; }
.source-placeholder .preview-warning { display: block; margin-top: 5px; color: #999; font-size: 9px; }
.document-preview:after { content: "PDF"; }

@media (max-width: 1180px) {
  .import-status { right: 14px; bottom: 14px; }
}
