/* 브릭 에셋 목록 (public/assets-ui.js) */
.ba-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.ba-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 4px 0 16px;
  color: #778498;
  font-size: 12px;
}
.ba-meta .ba-warn {
  color: #b0661c;
  font-weight: 600;
}
.ba-meta .ba-running {
  color: var(--blue);
  font-weight: 600;
}
.ba-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.ba-tools input[type='search'] {
  flex: 1 1 320px;
  width: auto;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.ba-tools select {
  width: auto;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.ba-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4a5566;
  white-space: nowrap;
}
.ba-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.ba-cats button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4a5566;
  cursor: pointer;
  font-size: 13px;
}
.ba-cats button span {
  color: #9aa3af;
  font-size: 11px;
}
.ba-cats button[aria-selected='true'] {
  background: var(--nav);
  border-color: var(--nav);
  color: #fff;
}
.ba-cats button[aria-selected='true'] span {
  color: #c9cfd8;
}
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.ba-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.ba-card:hover,
.ba-card:focus-visible {
  border-color: #b9c2cf;
  box-shadow: 0 4px 16px #1b25360f;
}
.ba-thumb {
  display: block;
  aspect-ratio: 4/3;
  background: #f3ecdc;
}
.ba-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-nothumb {
  display: grid;
  place-items: center;
  height: 100%;
  color: #9aa3af;
  font-size: 12px;
}
.ba-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
  min-width: 0;
}
.ba-body b {
  font-size: 13px;
  line-height: 1.4;
}
.ba-body small,
.ba-nums {
  color: #778498;
  font-size: 11px;
}
.ba-body code {
  color: #9aa3af;
  font-size: 10.5px;
  overflow-wrap: anywhere;
}
.ba-items {
  margin-top: 4px;
  color: #8a6a1a;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ba-more {
  display: block;
  margin: 20px auto 0;
}
.ba-dialog {
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.ba-dialog::backdrop {
  background: #111b2a99;
  backdrop-filter: blur(4px);
}
.ba-dialog .dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
}
.ba-dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  max-height: calc(100vh - 32px);
}
.ba-stage {
  display: grid;
  place-items: center;
  min-height: 420px;
  background: #f3ecdc;
}
.ba-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 32px);
  object-fit: contain;
}
.ba-dialog-body.ba-3d {
  display: block;
  position: relative;
}
.ba-frame {
  display: block;
  width: 100%;
  height: min(820px, calc(100vh - 32px));
  border: 0;
}
.ba-back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.ba-side {
  padding: 24px 22px;
  overflow: auto;
  max-height: calc(100vh - 32px);
}
.ba-side-top p {
  text-align: left;
  margin: 0;
}
.ba-side-top h2 {
  margin: 2px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}
.ba-side h3 {
  margin: 20px 0 8px;
  font-size: 13px;
}
.ba-id {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ba-id code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ba-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 14px 0;
  font-size: 12.5px;
}
.ba-facts dt {
  color: #778498;
}
.ba-facts dd {
  margin: 0;
}
.ba-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ba-itemlist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
}
.ba-itemlist li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.ba-itemlist em {
  font-style: normal;
  font-size: 11px;
  color: #2f7d4f;
}
.ba-itemlist .ba-st-partial {
  color: #b0661c;
}
.ba-itemlist .ba-st-missing {
  color: #b23b3b;
}
.ba-code {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #161c27;
  color: #e9edf3;
  font-size: 11.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ba-siblings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.ba-sib {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.ba-sib.active {
  border-color: var(--nav);
  box-shadow: 0 0 0 1px var(--nav);
}
.ba-sib img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f3ecdc;
}
.ba-sib span {
  padding: 2px 5px 4px;
  font-size: 10px;
  line-height: 1.3;
  color: #4a5566;
}
@media (max-width: 900px) {
  .ba-dialog-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .ba-stage {
    min-height: 0;
  }
  .ba-side {
    max-height: none;
  }
}
@media (max-width: 520px) {
  .ba-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ba-body {
    padding: 8px;
  }
  .ba-tools select {
    flex: 1 1 140px;
  }
}
