.panel-section {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.panel-section + .panel-section {
  margin-top: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.section-head h2 {
  margin-bottom: 2px;
  font-size: 15px;
}

.section-head p,
.help-text {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.compact-field,
.field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.compact-field input,
.field input,
.field select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 9px 10px;
  outline: none;
}

.compact-field input {
  height: 38px;
}

.project-name-field {
  width: 230px;
}

.compact-field:not(.project-name-field) {
  width: 74px;
}

.field {
  margin-bottom: 12px;
}

.field input[type="range"] {
  padding: 0;
}

.toggle-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.mode-tab {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
  font-size: 12px;
}

.mode-tab.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(36, 87, 214, .22);
}

.file-drop {
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 106px;
  padding: 16px;
  border: 1px dashed #9fb0c8;
  border-radius: 15px;
  background: #f8fbff;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  margin-bottom: 13px;
}

.file-drop input {
  display: none;
}

.file-drop strong {
  color: var(--text);
  font-size: 14px;
}

.file-drop span {
  font-size: 12px;
}

details summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--text);
}

textarea {
  margin-top: 10px;
  min-height: 210px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.45;
}
