/* Hermes agent editor. Full screen on phones, side panel from 768px. */

.ed {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column;
  background: #07080c; color: #e4e4e7;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.ed[hidden] { display: none !important; }
.ed-bar, .ed-scroll { padding: 14px 16px; }
.ed-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ed-title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.ed-scroll { flex: 1; overflow: auto; padding-bottom: 32px; }
.ed-section { margin: 14px 0 8px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #a1a1aa; }
.ed-hint, .ed-note { font-size: 12px; line-height: 1.45; }
.ed-note { min-height: 1.2em; color: #fda4af; }
.ed-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.ed-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #a1a1aa; }
.ed input, .ed select, .ed textarea {
  width: 100%; box-sizing: border-box; user-select: text;
  background: #12141c; color: #fff; border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px; padding: 10px 12px; font: 13px/1.4 'JetBrains Mono', ui-monospace, monospace;
}
.ed textarea { min-height: 72px; resize: vertical; }
.ed-row { display: flex; gap: 8px; }
.ed-row > * { flex: 1; min-width: 0; }
.ed-btn {
  min-height: 44px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  color: #e4e4e7; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font: 700 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .04em;
}
.ed-btn--primary { color: #041016; background: #67e8f9; border-color: #67e8f9; }
.ed-btn--danger { color: #fda4af; }
.ed-btn:disabled { opacity: .5; }
.ed-agent {
  display: block; width: 100%; margin-bottom: 6px; text-align: left;
  padding: 10px 12px; border-radius: 10px; color: #fff; background: transparent;
  border: 1px solid rgba(255, 255, 255, .08); font: 12px/1.3 'JetBrains Mono', ui-monospace, monospace;
}
.ed-agent small { color: #71717a; }
.ed-agent[data-level="L2"] { margin-left: 14px; width: calc(100% - 14px); }
.ed-agent[data-level="L1"] { margin-left: 28px; width: calc(100% - 28px); }
.ed-agent.is-on { border-color: #67e8f9; }
.ed-form { margin-top: 16px; }
.ed-steps { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ed-step { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.ed-flags { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #d4d4d8; }
.ed-flags input { width: auto; }

@media (min-width: 768px) {
  .ed { left: auto; width: min(420px, 100%); border-left: 1px solid rgba(255, 255, 255, .08); box-shadow: -20px 0 60px rgba(0, 0, 0, .35); }
}
