/* edenagen — Embedded Deus Ex Natura Asynchronous Generative Extended Nexus */

.edenagen-float-window {
  position: fixed;
  background: #0e1116;
  color: #d8e0e8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  border: 1px solid #2a2f38;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.edenagen-float-window.edenagen-maximized {
  border-radius: 0;
}
.edenagen-float-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(180deg, #161b22 0%, #10141a 100%);
  border-bottom: 1px solid #2a2f38;
  user-select: none;
  cursor: move;
}
.edenagen-float-titlebar-left { display: flex; align-items: center; gap: 8px; }
.edenagen-float-title { font-size: 13px; font-weight: 600; letter-spacing: 0.2px; color: #f0a86b; }
.edenagen-float-tag { font-size: 10px; color: #8a93a0; padding: 2px 6px; background: #1a1f27; border-radius: 4px; }
.edenagen-float-body { flex: 1; overflow: auto; padding: 14px 16px 16px; }

.eag-tabs { display: flex; gap: 4px; border-bottom: 1px solid #2a2f38; margin-bottom: 14px; }
.eag-tab {
  padding: 7px 14px; font-size: 12.5px; cursor: pointer;
  background: transparent; color: #8a93a0; border: 0;
  border-bottom: 2px solid transparent; transition: color .12s, border-color .12s;
}
.eag-tab:hover { color: #d8e0e8; }
.eag-tab.active { color: #f0a86b; border-bottom-color: #f0a86b; }

.eag-form { display: grid; gap: 12px; }
.eag-row { display: flex; flex-direction: column; gap: 5px; }
.eag-row.eag-row-inline { flex-direction: row; gap: 12px; }
.eag-row.eag-row-inline > * { flex: 1; }
.eag-label { font-size: 11.5px; color: #8a93a0; font-weight: 500; }
.eag-help { font-size: 10.5px; color: #5f6877; margin-top: -2px; line-height: 1.4; }
.eag-input, .eag-textarea, .eag-select {
  background: #161b22; color: #d8e0e8;
  border: 1px solid #2a2f38; border-radius: 6px;
  padding: 7px 10px; font-size: 12.5px;
  font-family: inherit;
  outline: none; transition: border-color .15s;
}
.eag-input:focus, .eag-textarea:focus, .eag-select:focus { border-color: #f0a86b; }
.eag-textarea { resize: vertical; min-height: 60px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }

.eag-classes-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.eag-chip { background: #1a1f27; color: #d8e0e8; border: 1px solid #2a2f38; padding: 3px 8px 3px 10px; border-radius: 12px; font-size: 11.5px; display: inline-flex; align-items: center; gap: 6px; }
.eag-chip-x { background: transparent; border: 0; color: #8a93a0; cursor: pointer; padding: 0 0 0 2px; font-size: 14px; line-height: 1; }
.eag-chip-x:hover { color: #ff6b6b; }

.eag-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.eag-checkbox input { accent-color: #f0a86b; }

.eag-btn {
  background: #f0a86b; color: #0e1116; font-weight: 600;
  border: 0; border-radius: 6px; padding: 9px 16px;
  font-size: 12.5px; cursor: pointer; transition: filter .12s;
  font-family: inherit;
}
.eag-btn:hover { filter: brightness(1.08); }
.eag-btn:disabled { background: #2a2f38; color: #5f6877; cursor: not-allowed; filter: none; }
.eag-btn-secondary { background: transparent; color: #8a93a0; border: 1px solid #2a2f38; }
.eag-btn-secondary:hover { color: #d8e0e8; border-color: #3a414c; filter: none; }
.eag-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }

.eag-status {
  margin-top: 12px; padding: 10px 12px;
  background: #161b22; border: 1px solid #2a2f38;
  border-radius: 6px; font-size: 11.5px; color: #8a93a0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.eag-status.eag-status-ok { border-color: #3d6b3d; color: #b6e0b6; }
.eag-status.eag-status-err { border-color: #6b3d3d; color: #e0b6b6; }
.eag-status.eag-status-busy { border-color: #6b5d3d; color: #e0d6b6; }

.eag-preview {
  margin-top: 14px; padding: 10px 12px;
  background: #0a0d12; border: 1px solid #2a2f38;
  border-radius: 6px; max-height: 280px; overflow: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px;
  line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.eag-preview-line { color: #b8c0cc; padding: 2px 0; }
.eag-preview-line + .eag-preview-line { border-top: 1px solid #161b22; }
.eag-preview-key { color: #f0a86b; }
.eag-preview-str { color: #b6e0b6; }

.eag-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: #8a93a0; margin: 6px 0 -4px; font-weight: 600; }
