.psg { max-width: 900px; }
.psg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.psg-tab {
  padding: 8px 12px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; cursor: pointer; color: #27331f;
}
.psg-tab-active { background: #19616a; border-color: #19616a; color: #fff; }
.psg-panel { display: flex; flex-direction: column; gap: 12px; }
.psg-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #27331f; }
.psg-panel input { padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; }
.psg-panel input:focus { outline: 2px solid #19616a; outline-offset: 1px; }
.psg-search-row { display: flex; flex-direction: column; gap: 4px; }
.psg-count { font-size: 12.5px; color: #5b6b56; margin: 0; }
.psg-table { display: flex; flex-direction: column; gap: 8px; }
.psg-head-row {
  display: grid; gap: 10px; padding: 8px 12px; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em; color: #5b6b56;
}
.psg-row {
  display: grid; gap: 10px; align-items: start;
  padding: 10px 12px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
}
.psg-row .psg-col-primary { font-weight: 700; color: #19616a; font-size: 13.5px; font-family: ui-monospace, monospace; word-break: break-all; }
.psg-row .psg-col { font-size: 13px; color: #27331f; }
.psg-row .psg-col-muted { font-size: 12.5px; color: #5b6b56; }
.psg-empty { padding: 14px 12px; font-size: 13px; color: #5b6b56; background: #f3f4f8; border: 1px dashed #d9e0d4; border-radius: 6px; }
.psg-note { margin-top: 16px; font-size: 13px; color: #5b6b56; }

/* command cell with inline copy button */
.psg-col-cmd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.psg-cmd-code {
  flex: 1 1 auto; min-width: 0; word-break: break-all;
  font-family: ui-monospace, monospace; font-size: 13px; font-weight: 700; color: #19616a;
}
.psg-copy-btn {
  flex: 0 0 auto; padding: 6px 12px; font-size: 12.5px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; color: #27331f; cursor: pointer; white-space: nowrap;
}
.psg-copy-btn:hover { border-color: #19616a; }
.psg-copy-btn:focus { outline: 2px solid #19616a; outline-offset: 1px; }

/* Column layouts per tab (desktop) */
.psg-cols-particles { grid-template-columns: 1.3fr 1.6fr 1.8fr 1.3fr; }
.psg-cols-sounds { grid-template-columns: 1.6fr 1.5fr 0.7fr 1.8fr; }

@media (max-width: 780px) {
  .psg-head-row { display: none; }
  .psg-row { grid-template-columns: 1fr !important; gap: 4px; }
  .psg-row .psg-col::before,
  .psg-row .psg-col-muted::before {
    content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.02em; color: #5b6b56; margin-bottom: 1px;
  }
  .psg-col-cmd { flex-direction: column; align-items: stretch; }
  .psg-copy-btn { align-self: flex-start; }
}
