/* プロジェクトの素材(一覧 / フォルダ / ZIP) — project-assets.js
   業務ツールの文法: 1px の実線・角丸なし・影なし・表で詰める */
#gs-assets-panel {
  position: fixed;
  inset: 0;
  z-index: 150000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  font: 13px/1.4 system-ui, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
#gs-assets-panel .gspa-box {
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: var(--surface, #353535);
  color: var(--text, #e0e0e0);
  border: 1px solid var(--border, #4a4a4a);
}
#gs-assets-panel .gspa-head,
#gs-assets-panel .gspa-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg, #2d2d2d);
}
#gs-assets-panel .gspa-head { border-bottom: 1px solid var(--border, #4a4a4a); justify-content: space-between; font-size: 14px; }
#gs-assets-panel .gspa-foot { border-top: 1px solid var(--border, #4a4a4a); }
#gs-assets-panel .gspa-gap { flex: 1 1 auto; }
#gs-assets-panel .gspa-foot2 { justify-content: flex-end; color: var(--text-muted, #a8a8a8); font-size: 12px; }
#gs-assets-panel .gspa-body { display: flex; flex-direction: column; min-height: 0; padding: 8px; gap: 8px; }
#gs-assets-panel .gspa-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
#gs-assets-panel .gspa-table { min-height: 0; overflow: auto; border: 1px solid var(--border, #4a4a4a); }
#gs-assets-panel table { width: 100%; border-collapse: collapse; }
#gs-assets-panel th,
#gs-assets-panel td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--border, #4a4a4a);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
#gs-assets-panel th { position: sticky; top: 0; background: var(--bg, #2d2d2d); font-weight: 600; }
#gs-assets-panel td.gspa-num { text-align: right; }
#gs-assets-panel td.gspa-path { color: var(--text-muted, #a8a8a8); }
#gs-assets-panel td.gspa-empty { color: var(--text-muted, #a8a8a8); white-space: normal; }
#gs-assets-panel tr.gspa-ng td { color: var(--state-warning, #ffb800); }
#gs-assets-panel .gspa-note { color: var(--text-muted, #a8a8a8); font-size: 12px; }
#gs-assets-panel .gspa-warn { color: var(--state-warning, #ffb800); }
#gs-assets-panel button {
  padding: 4px 8px;
  border: 1px solid var(--border, #4a4a4a);
  border-radius: 0;
  background: transparent;
  color: var(--text, #e0e0e0);
  font: inherit;
  cursor: pointer;
}
#gs-assets-panel button:hover { background: rgba(255, 255, 255, 0.08); }
#gs-assets-panel button.gspa-primary { border-color: var(--accent, #7ee8a2); color: var(--accent, #7ee8a2); }
body.light-mode #gs-assets-panel button:hover { background: rgba(0, 0, 0, 0.06); }
body.gs-play-mode #gs-assets-panel { display: none; }
.io-menu-item:nth-child(5) { --ui-icon: url('logos/lucide/layers.svg'); }
