/* Bot Management panel styles (Agent Bridge dashboard).
   2026-10-04 redesign: bridge_bots.js renders its own plain-language headings
   inside each container, so the static subheads and the long note from
   agent_bridge_gui.py are hidden here, and the sections are reordered into
   the order you use them: intro, waiting for review, your bots, add a bot,
   helpers, then Grok's spending limit. */
#bots-panel { max-width: 1600px; margin: 20px auto; padding: 14px 20px;
  display: flex; flex-direction: column; gap: 14px; }
#bots-panel .usage-head h2 { font-size: 15px; color: var(--accent); }
#bots-panel > .usage-note, #bots-panel > .bots-subhead { display: none; }
#bots-panel > .usage-head { order: 0; }
#bots-summary { order: 1; }
#bots-suggestions { order: 2; }
#bots-assignments { order: 3; }
#bots-form { order: 4; }
#bots-workers { order: 5; }
#bots-policy { order: 6; }

.bots-h { font-size: 14px; color: var(--text); margin: 0 0 8px; }
.bots-intro { margin: 0; font-size: 13px; color: var(--text); max-width: 900px; }
.bots-steps { margin: 6px 0 0; padding-left: 20px; font-size: 13px; color: var(--dim); }
.bots-steps li { margin-top: 2px; }
.bots-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bots-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(150,160,180,0.12); color: var(--dim); }
.bots-chip.ok { background: rgba(75,224,138,0.15); color: var(--ok); }
.bots-chip.attention { background: rgba(232,200,90,0.18); color: var(--run); font-weight: 700; }

.bots-card { background: var(--panel2, var(--panel)); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px; min-width: 0; }
.bots-cardhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.bots-cardhead b { overflow-wrap: anywhere; }
.bots-cardhead .bots-btn, .bots-cardhead .bots-review-btn { margin-left: auto; }
.bots-cardhead .pill.neutral { background: rgba(150,160,180,0.15); color: var(--dim); }
.bots-title { font-size: 15px; }
.bots-inbox-item { border-left: 3px solid var(--run); }

.bots-line { font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.bots-dim { color: var(--dim); font-size: 12px; }
.bots-yes { color: var(--ok); }
.bots-no { color: var(--dim); }
.bots-blocked { color: var(--err); font-size: 12px; margin-top: 6px; overflow-wrap: anywhere; }
.bots-empty { color: var(--dim); font-size: 13px; padding: 6px 2px; }
.bots-suggestion { white-space: pre-wrap; font-size: 13px; line-height: 1.5; max-height: 240px;
  overflow-y: auto; margin-top: 6px; padding: 8px 10px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; overflow-wrap: anywhere; }

.bots-disclosure { margin-top: 8px; font-size: 12px; }
.bots-disclosure > summary { cursor: pointer; color: var(--accent); }
.bots-disclosure > summary:hover { text-decoration: underline; }
.bots-add > summary, .bots-advanced > summary { font-size: 14px; font-weight: 700; }
.bots-add > summary { color: var(--accent); }
.bots-advanced > summary { color: var(--dim); }

.bots-helpers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.bots-helper { background: var(--panel2, var(--panel)); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; min-width: 0; }

.bots-formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px;
  margin-top: 10px; background: var(--panel2, var(--panel)); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px; }
.bots-field { display: flex; flex-direction: column; gap: 4px; color: var(--text); font-size: 13px; }
.bots-field input, .bots-field select, .bots-field textarea {
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 9px; font: inherit; font-size: 13px;
}
.bots-field input[type="checkbox"] { width: 18px; height: 18px; align-self: start; }
.bots-hint { color: var(--dim); font-size: 11px; }

.bots-btn { background: var(--accent-dim); color: #fff; border: none; border-radius: 6px;
  padding: 7px 14px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  align-self: end; }
.bots-btn:hover { background: var(--accent); }
.bots-btn:disabled { opacity: 0.5; cursor: default; }
.bots-btn.primary { font-size: 13px; padding: 9px 16px; }
.bots-review-btn { display: inline-block; background: var(--run); color: #111; border-radius: 6px;
  padding: 5px 12px; font-size: 12px; font-weight: 700; text-decoration: none; }
.bots-review-btn:hover { filter: brightness(1.1); }

.bots-evlink { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--accent);
  overflow-wrap: anywhere; }
.bots-evlink:hover { text-decoration: underline; }
