/* PNG⇆SVG tool page-specific styles (schema-driven options) */

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.field > label {
  grid-column: 1 / -1;
  font-weight: 600;
}

.field > .meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #aaa;
  font-size: 0.85rem;
}

.field .badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #2a2a2a;
  color: #ddd;
}
.field .badge.preset { background: #1f3b2f; color: #bfe6c9; }

.field .info {
  margin-left: auto;
  background: #333;
  border: 1px solid #444;
  color: #ddd;
  border-radius: 4px;
  padding: 0 0.4rem;
  line-height: 1.4;
  cursor: pointer;
}

.field input[type="number"],
.field input[type="text"],
.field select {
  grid-column: 1 / span 1;
  background: #121212;
  color: #f5f5f5;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.5rem;
}

.field .unit {
  grid-column: 2 / span 1;
  align-self: center;
  color: #bbb;
}

.field small { grid-column: 1 / -1; color: #aaa; }

/* Info popover */
.info-popover {
  position: absolute;
  max-width: 300px;
  background: #1b1b1b;
  color: #ddd;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Legend overhang fix */
.options-grid fieldset {
  position: relative;
  padding-top: 0.75rem;
}
.options-grid legend {
  position: relative;
  margin: 0 0 0.5rem 0.25rem;
  padding: 0 0.35rem;
  background: #1e1e1e;
}

/* Status/toast */
.status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #bbb;
}
.status.success { color: #b6e3b6; }
.status.error { color: #ff9c9c; }

/* Options JSON header */
.options-json-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.copy-json {
  background: #2a2a2a;
  color: #eee;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

