/* Skill edit page — small additions on top of styles.css / agent-edit.css /
   agent-prompt.css / agent-capacita.css. No <select>: Versione is a stepper. */

/* Generale: Nome (flessibile) + Versione (stretta) sulla stessa riga. */
.sk-gen-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 22px;
  align-items: start;
}

/* Versione — stepper numerico (niente select). */
.sk-stepper {
  display: inline-flex; align-items: center; gap: 6px;
}
.sk-step-btn {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: var(--bg-app); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.sk-step-btn:hover:not(:disabled) { border-color: var(--border-strong); background: var(--bg-card); }
.sk-step-btn:disabled { opacity: .4; cursor: default; }
.sk-step-input {
  width: 72px; height: 38px; text-align: center;
  background: var(--bg-content); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text-strong); font-size: 15px; font-weight: 600; font-family: var(--mono);
}
.sk-step-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sk-step-input::-webkit-outer-spin-button,
.sk-step-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sk-step-input { -moz-appearance: textfield; }

/* Valore centrale cliccabile dello stepper (MCP: NumberStepper). Sostituisce
   l'input number con un button che, al click, diventa un input inline. */
.sk-step-val {
  flex: 1; height: 38px; min-width: 56px; padding: 0 12px;
  display: grid; place-items: center; text-align: center;
  background: var(--bg-content); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text-strong); font-size: 15px; font-weight: 600; font-family: var(--mono);
  cursor: text; transition: border-color .12s, box-shadow .12s;
}
.sk-step-val:hover { border-color: var(--border-strong); }
.sk-step-val.edit, .sk-step-val:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
input.sk-step-val { width: 100%; }
input.sk-step-val::-webkit-outer-spin-button,
input.sk-step-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Suffisso unità accanto allo stepper (es. "s" per il timeout). */
.sk-ver-tag {
  font-size: 12.5px; color: var(--text-dim); font-family: var(--mono);
}

/* Asset thumbnail — pastiglia con l'estensione del file. */
.sk-asset-thumb {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: -.02em; border-radius: 11px;
  font-family: var(--mono);
}

/* Dropzone (stato vuoto) — feedback al drag. */
.sk-asset-drop { transition: border-color .15s, background .15s; }
.sk-asset-drop.drag {
  border-color: var(--accent) !important;
  background: var(--accent-soft);
}

@media (max-width: 820px) {
  .sk-gen-grid { grid-template-columns: 1fr; gap: 18px; }
}
