/* Reset básico */
* { box-sizing: border-box; }

/* Base */
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
}

header {
  padding: 16px;
  background: #0e7490;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

main {
  padding: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Layout */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.grid {
  display: grid;
  gap: 8px;
}

.label {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

/* Form */
input, textarea, button {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

textarea {
  width: 100%;
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Buttons */
button {
  background: #0ea5e9;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
}
button:hover { opacity: 0.9; }
button.secondary { background: #64748b; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.success { background: #10b981; }
button.primary { background: #0ea5e9; }

/* Helpers */
.hidden { display: none !important; }
.muted { color: #64748b; }
.linklike { text-decoration: underline; cursor: pointer; }

/* Fieldset */
.fieldset { margin-bottom: 12px; }
