[hidden] { display: none !important; }

.ai-card {
  background: linear-gradient(145deg, #fff, #f3f8fa);
  border: 1px solid #b8d4df;
  padding: 25px;
  box-shadow: var(--shadow);
}
.ai-card-head { display: flex; justify-content: space-between; gap: 14px; }
.ai-card h2 { font-family: Georgia, serif; font-weight: 500; color: var(--navy); margin: 0 0 14px; }
.ai-status {
  height: max-content; border-radius: 20px; padding: 6px 9px; background: #fff0dc;
  color: #8b4b0a; font-size: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em;
}
.ai-status.enabled { background: #dff4e8; color: var(--green); }
.ai-readiness { font-size: 13px; line-height: 1.45; color: var(--muted); }
.ai-context { display: grid; gap: 7px; color: var(--navy); font-weight: 700; font-size: 12px; }
.ai-context textarea { min-height: 70px; margin-bottom: 12px; }
.ai-card > .primary { width: 100%; }
.ai-card > .primary:disabled { opacity: .6; cursor: wait; }
.ai-result { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.ai-result h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin: 16px 0 8px; }
.ai-result ul, .ai-result ol { margin: 0; padding-left: 20px; }
.ai-result li { font-size: 13px; line-height: 1.45; margin-bottom: 7px; }
.ai-summary { font-family: Georgia, serif; color: var(--navy); font-size: 18px; line-height: 1.4; }
.ai-assessment { background: var(--ice); padding: 10px 12px; color: var(--navy); font-size: 12px; line-height: 1.45; }
.ai-next-question { font-size: 15px; line-height: 1.45; color: var(--navy); font-weight: 700; }
.supervisor-audit { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.supervisor-audit summary { cursor: pointer; color: var(--blue); font-size: 12px; font-weight: 800; }
#ai-dialog { width:min(820px,94vw); }
.ai-dialog-card { width:100%; max-height:90vh; overflow:auto; }
.ai-conversation { max-height:280px; overflow:auto; display:grid; gap:10px; margin:14px 0 18px; padding:12px; background:#f5f8f9; border:1px solid var(--line); }
.ai-conversation-empty { color:var(--muted); font-size:13px; }
.ai-conversation-turn { background:#fff; padding:12px 14px; border-left:3px solid var(--blue); }
.ai-conversation-question { margin:0 0 7px; color:var(--navy); font-weight:800; }
.ai-conversation-answer { margin:0 0 7px; color:var(--ink); line-height:1.45; }
.ai-conversation-turn small { color:var(--muted); }
