/* sigle.css — espansione delle sigle (iniziali → nome intero) */

.sg-modal {
  position: fixed;
  inset: 0;
  z-index: 9700;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sg-modal[hidden] { display: none; }

.sg-box {
  background: #1d2128;
  color: #e8e8e8;
  width: min(560px, 92vw);
  max-height: 82vh;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sg-head {
  padding: 14px 18px;
  border-bottom: 1px solid #2c313a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sg-head h3 { margin: 0; font-size: 16px; }
.sg-head button {
  background: #3a414d; color: #e8e8e8; border: none;
  border-radius: 6px; padding: 6px 12px; cursor: pointer;
}

.sg-add { display: flex; gap: 8px; padding: 14px 18px; }
.sg-add input {
  padding: 9px 12px; border-radius: 6px; border: 1px solid #3a414d;
  background: #11141a; color: #e8e8e8; font-size: 14px;
}
.sg-add input:focus { outline: none; border-color: #007bff; }
.sg-add .sg-k { width: 110px; text-transform: lowercase; }
.sg-add .sg-v { flex: 1; }
.sg-add button {
  background: #28a745; color: white; border: none;
  border-radius: 6px; padding: 9px 16px; cursor: pointer; font-weight: bold;
}

.sg-list { overflow-y: auto; padding: 0 18px 14px; }
.sg-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #262b33; font-size: 14px;
}
.sg-row .sg-key {
  background: #333a45; border-radius: 4px; padding: 3px 9px;
  font-family: 'Courier New', monospace; min-width: 64px; text-align: center;
}
.sg-row .sg-val { flex: 1; }
.sg-row .sg-del {
  background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 16px;
}
.sg-row.sg-auto { opacity: 0.65; }
.sg-row.sg-auto .sg-key { background: #2a3340; }

.sg-foot { padding: 10px 18px 16px; color: #8b95a5; font-size: 12px; line-height: 1.5; }
.sg-foot b { color: #e8e8e8; background: #333a45; border-radius: 4px; padding: 2px 7px; font-weight: normal; }

.sg-flash {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85); color: #ffd600;
  padding: 9px 18px; border-radius: 8px; font-size: 14px; z-index: 9800; pointer-events: none;
}

.sg-open-btn {
  background: #fd7e14; color: white; border: none;
  padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: bold;
}
.sg-open-btn:hover { background: #e06d0a; }
