/* -- form fields -- */
#form-panel details { margin-bottom: 4px; }

#form-panel summary {
  cursor: pointer; font-weight: 600; font-size: 13px;
  padding: 6px 8px; background: #131a35; border-radius: 4px; user-select: none;
}
#form-panel summary:hover { background: #1a2345; }

.form-field {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 8px; gap: 8px;
}

.form-field label {
  font-size: 12px; opacity: 0.85; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
}

.form-field input[type="number"],
.form-field select {
  width: 90px; flex-shrink: 0; background: #1c2a52; color: #e7eaf3;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 4px;
  padding: 4px 6px; font-size: 12px; text-align: right;
}

.form-field input[type="number"]:focus,
.form-field select:focus { outline: none; border-color: rgba(76,201,240,0.5); }

.form-field input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: #4cc9f0; flex-shrink: 0;
}

/* -- materials -- */
#materials-details { padding: 0; }
#materials-details summary {
  cursor: pointer; font-weight: 600; font-size: 13px;
  padding: 6px 12px; background: #131a35; user-select: none;
}
#materials-details summary:hover { background: #1a2345; }

pre {
  white-space: pre-wrap; word-break: break-word;
  font-size: 11px; line-height: 1.4; opacity: 0.9;
  padding: 8px 12px; margin: 0;
}

/* -- scrollbar -- */
#download-panel {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(11,16,32,0.95); border-top: 1px solid rgba(76,201,240,0.3);
  padding: 12px 16px; z-index: 6;
}
.download-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.download-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-btn {
  background: #1c2a52; color: #e7eaf3; border: 1px solid rgba(76,201,240,0.3);
  border-radius: 4px; padding: 8px 14px; cursor: pointer; font-size: 12px;
}
.dl-btn:hover { background: #223364; border-color: #4cc9f0; }
.download-warning { font-size: 12px; color: #f0c040; margin-top: 8px; }

#btn-generate {
  background: #4cc9f0; color: #0b1020; font-weight: 700; border: none;
  padding: 5px 14px; border-radius: 4px; cursor: pointer; font-size: 12px;
}
#btn-generate:hover { background: #3ab8df; }

#token-display {
  display: flex; gap: 4px; align-items: center;
  background: #1c2a52; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; padding: 3px 10px; margin-left: auto;
}

#user-menu {
  display: flex; gap: 8px; align-items: center; margin-left: 8px;
}
#user-email { font-size: 12px; opacity: 0.7; }

#view-mode {
  background: #1c2a52; color: #e7eaf3;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 4px;
  padding: 7px 14px; font-size: 14px; min-width: 160px;
}

#form-panel::-webkit-scrollbar { width: 6px; }
#form-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
