* { box-sizing: border-box; }
body {
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f7fa; color: #1a1f36; margin: 0;
}
.topbar {
  background: #1f2937; color: #fff; padding: 12px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar h1 { margin: 0; font-size: 18px; font-weight: 600; }
.user { display: flex; align-items: center; gap: 12px; }
.user button { padding: 6px 12px; }
main { max-width: 1100px; margin: 24px auto; padding: 0 24px; }
section { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
h2 { margin: 0 0 16px; font-size: 20px; }
form label {
  display: block; margin-bottom: 12px; font-weight: 500;
}
form input, form select, form button {
  display: block; width: 100%;
  padding: 8px 12px; font-size: 14px; border-radius: 6px; border: 1px solid #d1d5db;
  margin-top: 4px;
}
form input:focus { outline: 2px solid #3b82f6; border-color: transparent; }
button {
  background: #2563eb; color: #fff; border: 0; cursor: pointer; font-weight: 500;
}
button:hover { background: #1d4ed8; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.tabs {
  display: flex; gap: 4px; border-bottom: 2px solid #e5e7eb; margin-bottom: 16px;
}
.tabs button {
  background: none; color: #6b7280; border-radius: 6px 6px 0 0;
  padding: 10px 18px; width: auto;
}
.tabs button.active { background: #2563eb; color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#ruote-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0;
}
.ruota-row {
  border: 1px solid #e5e7eb; border-radius: 6px; padding: 12px; background: #f9fafb;
}
.ruota-row__title {
  font-weight: 600; margin-bottom: 8px; color: #374151;
}
.ruota-row__inputs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
}
.ruota-row__inputs input {
  width: 100%; text-align: center; font-variant-numeric: tabular-nums;
  padding: 6px 4px; margin: 0;
}
.ruota-row__inputs input.oro { background: #fef3c7; }
.actions { margin-top: 20px; display: flex; align-items: center; gap: 16px; }
.actions button { width: auto; padding: 10px 24px; }
.status { margin: 0; font-size: 13px; }
.status.ok { color: #047857; }
.status.error { color: #b91c1c; }
.error { color: #b91c1c; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 13px; }
th { background: #f9fafb; font-weight: 600; }
pre {
  background: #1f2937; color: #f3f4f6; padding: 12px; border-radius: 6px;
  overflow-x: auto; font-size: 12px;
}
