/* Global Tools — PID Library index */
.pid-global { display: flex; flex-direction: column; gap: 1rem; padding: 0 0 2rem; }
.pid-global-hero { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.pid-global-hero h2 { margin: 0.15rem 0 0; }
.pid-global-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.pid-global-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.pid-global-shell.has-detail { grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem); }
@media (max-width: 960px) {
  .pid-global-shell.has-detail { grid-template-columns: 1fr; }
}
.pid-global .pid-lib-table tbody tr { cursor: pointer; }
.pid-global .pid-lib-table tbody tr:hover { background: #f8fafc; }
.pid-import-panel { border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.85rem 1rem; background: #fff; }
.pid-import-panel pre { max-height: 16rem; overflow: auto; font-size: 0.8rem; background: #0f172a; color: #e2e8f0;
  padding: 0.7rem; border-radius: 8px; }
.pid-add-form { display: grid; gap: 0.45rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.85rem 1rem; background: #fff; }
.pid-add-form label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; color: #475569; font-weight: 650; }
.pid-add-form input, .pid-add-form textarea, .pid-add-form select {
  border: 1px solid #cbd5e1; border-radius: 8px; padding: 0.35rem 0.5rem; font: inherit; font-weight: 400; color: #0f172a;
}
