/* Super Admin AI Helper: top-bar button + panel. Scoped to .aih-wrap so other screens stay unchanged.
   --ai* variables come from whats_next.css. */
.aih-wrap { position: relative; display: inline-flex; }
.aih-pop { position: absolute; top: calc(100% + 10px); right: 0; width: min(720px, 94vw); max-height: min(80vh, 44rem); overflow: auto; z-index: 61;
  background: var(--surface); color: var(--ink); border: 1px solid var(--ai-line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(76, 29, 149, 0.18); padding: 0.75rem 0.85rem 0.65rem; text-align: left; }
.aih-pop[hidden] { display: none; }
.aih-pop::before { content: ""; position: absolute; top: -8px; right: 48px; width: 14px; height: 14px; background: var(--surface);
  border-left: 1px solid var(--ai-line); border-top: 1px solid var(--ai-line); transform: rotate(45deg); }
.aih-head h2 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.aih-head .muted, .aih-note { font-size: 0.82rem; margin: 0 0 0.55rem; }
.aih-prompt-label { display: block; font-size: 0.78rem; font-weight: 700; margin: 0.2rem 0 0.2rem; }
.aih-pop textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.92rem; padding: 0.4rem 0.5rem; border: 1px solid var(--line);
  border-radius: 6px; resize: vertical; min-height: 4.2rem; background: var(--field-bg); color: var(--field-ink); }
.aih-tips { margin: 0.45rem 0 0.55rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.7rem; }
.aih-tips .link, .topbar .aih-tips .link { background: none; border: 0; padding: 0; color: var(--ai-ink, var(--brand)); font: inherit; font-size: 0.8rem;
  font-weight: 500; text-decoration: underline; cursor: pointer; }
.aih-actions { display: flex; gap: 0.45rem; align-items: center; margin: 0.2rem 0 0.45rem; }
.aih-status { margin: 0.2rem 0 0.4rem; }
.aih-status[data-kind="error"] { color: var(--danger-text); }
.aih-status[data-kind="ok"] { color: var(--ok-text); }
.aih-result { margin: 0.3rem 0 0.6rem; }
.aih-result h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.aih-answer { white-space: pre-wrap; font-size: 0.9rem; margin: 0 0 0.5rem; }
.aih-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; background: var(--surface); }
.aih-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 2px solid var(--line); padding: 0.35rem 0.4rem; }
.aih-table td { border-bottom: 1px solid var(--line); padding: 0.35rem 0.4rem; vertical-align: top; }
.aih-table .from { color: var(--muted); text-decoration: line-through; margin-right: 0.3rem; }
.aih-confirm { margin-top: 0.55rem; }
.aih-note { margin-top: 0.4rem; }
