/* humanWire minimal dark theme (offline, no external deps) */
:root {
  --primary: #1e90ff;
  --secondary: #32cd32;
  --accent: #800080;
  --bg: #0d1117;
  --panel: #0f141a;
  --text: #f1f5f9;
  --muted: #9aa5b1;
  --border: #1f2937;
  --warning: #f0b429;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 40px; height: 40px; }
.titles h1 { margin: 0; font-size: 20px; }
.tagline { margin: 2px 0 0 0; color: var(--muted); font-size: 12px; }
.disclaimer { color: var(--muted); font-size: 12px; }

.layout {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 12px;
  padding: 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  min-height: 60vh;
}

.panel-title { margin: 0 0 8px 0; font-size: 14px; color: var(--muted); }

.input-row { display: flex; }
.input { width: 100%; background: #0b0f14; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 10px; }
.form { display: grid; grid-template-columns: 1fr; gap: 6px; }
.label { font-size: 12px; color: var(--muted); }

.controls { margin-top: 8px; display: flex; gap: 8px; }
.btn {
  background: #121821;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.btn.primary { background: #13253a; border-color: #0b1b2f; }
.btn.secondary { background: #142a16; border-color: #0e1e10; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hint { margin-top: 8px; color: var(--muted); font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.textarea { width: 100%; min-height: 120px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.toolbar .group { display: flex; gap: 8px; }

.graph-container { position: relative; }
.status { color: var(--muted); font-size: 12px; margin-bottom: 6px; transition: color 0.3s ease; }
.status.success { color: #27ae60; }
.status.error { color: #e74c3c; }
.status.warning { color: #f39c12; }
.graph-target { background: #0b0f14; border: 1px solid var(--border); border-radius: 8px; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.dsl { background: #0b0f14; color: var(--text); border: 1px dashed var(--border); border-radius: 8px; padding: 10px; margin-top: 8px; overflow: auto; max-height: 200px; }
.warning { margin-top: 8px; background: #2a1f0a; color: #f8e5b5; border: 1px solid #a66f00; padding: 8px; border-radius: 8px; }

.details { color: var(--muted); font-size: 13px; }
.list { display: grid; gap: 6px; }
.list-item { display: flex; justify-content: space-between; align-items: center; background: #0b0f14; border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.list-item .text { color: var(--text); font-size: 12px; }
.list-item .actions { display: flex; gap: 6px; }
.list-item .edit { margin-top: 6px; display: grid; gap: 6px; width: 100%; }

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.select { background: #0b0f14; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }

@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .panel { min-height: unset; }
}