/* Minimal styling -- this is a dev tool for tuning the generator, not the
   polished end-client product (see CLAUDE.md). Keep it plain. */

body {
  font-family: system-ui, sans-serif;
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #1a1a1a;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

input {
  font-size: 1rem;
  padding: 0.4rem 0.5rem;
}

button {
  align-self: flex-start;
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
}

.preview {
  border: 1px solid #ccc;
  padding: 1rem;
  background: #fff;
}

.preview svg {
  width: 100%;
  height: auto;
}

/* Editable fields (see static/editor.js) -- shown as draggable even before
   "Edytuj" is clicked, since a cursor hint is free and harmless. */
.preview svg text {
  cursor: move;
  touch-action: none;
  /* Default SVG text hit-testing only counts actual glyph ink, so clicking
     between letters (well within the visible field) can miss. `all` makes
     the whole element hittable, matching what a user expects to be able
     to grab. */
  pointer-events: all;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.download-btn {
  display: inline-block;
}

.wing-overrides {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem 0.75rem 0.75rem;
  display: flex;
  gap: 1rem;
}

.wing-overrides legend {
  font-size: 0.85rem;
  color: #555;
  padding: 0 0.25rem;
}

.wing-overrides label {
  flex: 1;
}

.field-props {
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.field-props caption {
  text-align: left;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.35rem;
}

.field-props th,
.field-props td {
  border: 1px solid #ddd;
  padding: 0.3rem 0.5rem;
  text-align: left;
}

.field-props input {
  width: 6rem;
  padding: 0.2rem 0.3rem;
  font-size: 0.9rem;
}
