/* Agent problems: the red button in the Inbox and Drafts headers, its list, and the menu mark. */
.ah-slot:empty { display: none; }
.ah-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--hb-danger, #c2362f) 45%, transparent);
  border-radius: 9px; background: var(--hb-danger-soft, #fde8e6); color: var(--hb-danger, #c2362f); font: 650 13px var(--hb-font, inherit); cursor: pointer; white-space: nowrap; }
.ah-btn:hover { border-color: var(--hb-danger, #c2362f); }
.ah-btn svg { width: 15px; height: 15px; }

#ah-pop { position: fixed; z-index: 10050; max-height: min(70vh, 640px); overflow: auto; padding: 6px; border: 1px solid var(--border, #d8e0e3); border-radius: 12px;
  background: var(--bg2, #fff); color: var(--text, #1f2937); box-shadow: 0 18px 48px rgba(15, 23, 42, .18); font-family: var(--hb-font, inherit); }
.ah-pop-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border, #d8e0e3); }
.ah-pop-head strong { font-size: 14px; }
.ah-pop-head span { font-size: 12.5px; color: var(--text2, #475569); }
.ah-row { display: flex; gap: 10px; padding: 12px 10px; border-left: 4px solid var(--hb-danger, #c2362f); margin: 8px 2px 2px; border-radius: 8px; background: color-mix(in srgb, var(--hb-danger-soft, #fde8e6) 45%, transparent); }
.ah-row > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--hb-danger, #c2362f); }
.ah-main { flex: 1; min-width: 0; }
.ah-title { font-size: 13.5px; font-weight: 650; }
.ah-ref { font-size: 12.5px; margin-top: 2px; color: var(--text2, #475569); }
.ah-detail { font-size: 12.5px; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9.5em; overflow: auto; color: var(--text2, #334155); }
.ah-meta { font-size: 12px; margin-top: 4px; color: var(--text3, #64748b); }
.ah-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ah-act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font: 600 12.5px var(--hb-font, inherit); border-radius: 8px;
  border: 1px solid var(--border, #d8e0e3); background: var(--bg2, #fff); color: var(--text, #1f2937); cursor: pointer; }
.ah-act:hover { border-color: var(--hb-accent, #0f766e); }
.ah-act svg { width: 14px; height: 14px; }

/* The menu: a red dot on Inbox and Drafts while an agent keeps failing. */
.ah-nav-mark { flex: none; width: 9px; height: 9px; margin-left: auto; border-radius: 50%; background: var(--hb-danger, #c2362f); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hb-danger, #c2362f) 25%, transparent); }
.hb-nav-badge + .ah-nav-mark, .ah-nav-mark + .hb-nav-badge { margin-left: 6px; }
#app.lisa-atlas-shell.sidebar-collapsed .ah-nav-mark { position: absolute; top: 4px; left: 6px; margin: 0; }
