/* properties-panel.css — theme-token-based right-side properties panel.
 *
 * The legacy .props rules in workflow.html resolve via --panel / --card,
 * which are workflow.html-local tokens. This stylesheet asserts the same
 * panel via the modern semantic tokens defined in theme.css so the panel
 * stays correct even if a local override is missing or stale-cached.
 *
 * Rules are scoped via .cg-properties-panel (added to .props in workflow.html)
 * AND keyed off .props as a fallback so existing markup keeps working. */

.cg-properties-panel,
aside.props.cg-properties-panel {
  background: var(--surface);
  color: var(--text);
  border-left: 1px solid var(--border);
}

.cg-properties-panel h3,
.cg-properties-panel .cg-panel-title {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
}

.cg-properties-panel .empty,
.cg-properties-panel .cg-empty-state {
  color: var(--text-muted);
  font-size: 12.5px;
  padding: 24px 10px;
  text-align: center;
}

.cg-properties-panel .prop-row label,
.cg-properties-panel .cg-property-label {
  color: var(--text-secondary);
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}

.cg-properties-panel input,
.cg-properties-panel textarea,
.cg-properties-panel select {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 12.5px;
  width: 100%;
}

.cg-properties-panel input:focus,
.cg-properties-panel textarea:focus,
.cg-properties-panel select:focus {
  border-color: var(--accent);
  outline: none;
}

.cg-properties-panel textarea {
  min-height: 80px;
  resize: vertical;
}
