/* ============================================================
   AI 报告与文书页
   ============================================================ */
.ai-balance {
  font-size: 12.5px;
  color: #6b7a74;
  background: #fff;
  border: 1px solid #e6ebe8;
  border-radius: 20px;
  padding: 7px 14px;
  white-space: nowrap;
}
.ai-balance b { color: #14261f; font-size: 14px; }
.ai-balance .sep { margin: 0 8px; color: #c9d5cf; }

.ai-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0 12px;
  background: #eef2f0;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}
.ai-tab {
  border: 0;
  background: transparent;
  color: #6b7a74;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 7px;
  cursor: pointer;
}
.ai-tab.on { background: #fff; color: #14261f; font-weight: 600; box-shadow: 0 1px 3px rgba(20, 38, 31, .08); }

.ai-card {
  background: #fff;
  border: 1px solid #e6ebe8;
  border-radius: 14px;
  padding: 20px 22px;
}
.ai-field { margin-bottom: 14px; }
.ai-field > label {
  display: block;
  font-size: 12px;
  color: #7c8b85;
  margin-bottom: 6px;
}
.ai-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dfe6e2;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #1f2d28;
  background: #fbfcfb;
  outline: none;
  font-family: inherit;
}
.ai-input:focus { border-color: #2f6f57; background: #fff; }
textarea.ai-input { resize: vertical; line-height: 1.7; }

.ai-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ai-student-pick { position: relative; }
.ai-student-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.ai-student-item {
  border: 1px solid #eef1ef;
  border-radius: 9px;
  padding: 9px 12px;
  cursor: pointer;
  background: #fbfcfb;
}
.ai-student-item:hover { border-color: #2f6f57; background: #f5faf7; }
.ai-student-item .n { font-size: 13.5px; font-weight: 600; }
.ai-student-item .m { font-size: 11.5px; color: #8a9992; margin-top: 2px; }
.ai-student-selected {
  margin-top: 8px;
  font-size: 12.5px;
  color: #237a52;
  background: #eaf5ef;
  border-radius: 8px;
  padding: 7px 11px;
}

.ai-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.ai-cost { font-size: 12px; color: #9a6a12; }
.ai-btn {
  border: 0;
  background: #14261f;
  color: #fff;
  border-radius: 9px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.ai-btn:hover { background: #1d3a2e; }
.ai-btn:disabled { opacity: .55; cursor: not-allowed; }

.ai-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: #8a9992;
  line-height: 1.8;
  border-top: 1px dashed #e6ebe8;
  padding-top: 12px;
}
.ai-hint { color: #8a9992; font-size: 12.5px; padding: 14px 2px; }

.ai-list { display: flex; flex-direction: column; }
.ai-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid #f0f3f1;
}
.ai-item:last-child { border-bottom: 0; }
.ai-item-main .t { font-size: 13.5px; font-weight: 600; }
.ai-item-main .m { font-size: 11.5px; color: #8a9992; margin-top: 4px; }
.ai-item-ops { display: flex; gap: 6px; flex-shrink: 0; }
.ai-mini {
  border: 1px solid #dfe6e2;
  background: #fff;
  color: #4a5d55;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.ai-mini:hover { border-color: #2f6f57; color: #237a52; }
.ai-mini.danger:hover { border-color: #a5342c; color: #a5342c; }

@media (max-width: 720px) {
  .ai-row2 { grid-template-columns: 1fr; }
  .ai-item { align-items: flex-start; flex-direction: column; }
}
