/* V4.13 AI择校次数与记录入口修复 */
.xls-ai-usage-strip {
  margin: 10px 0 12px;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  border: 1px solid #dceaff;
  background: rgba(247, 251, 255, .92);
  color: #173b72;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}
.xls-ai-usage-strip b { color: #1f63d8; font-weight: 1000; }
.xls-ai-usage-strip a {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf5ff;
  color: #1f63d8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  white-space: nowrap;
}
.xls-ai-usage-strip.is-member { background: #eefcf5; border-color: #c7f1d8; color: #166534; }
.xls-ai-usage-strip.is-member b { color: #087a42; }
.xls-ai-usage-strip.is-member a { background: #daf8e6; color: #087a42; }
.xls-ai-usage-strip.is-warn { background: #fff8e8; border-color: #ffe1a6; color: #8a5a00; }
.xls-ai-usage-strip.is-warn b { color: #b45d09; }
.xls-ai-usage-strip.is-loading { opacity: .82; }

/* 停用 V4.11 移动端大卡片，当前页只保留精巧状态条 */
#xlsAiUsageCardV411,
#xlsAiHistoryV411,
body.zsb-ai-page #xlsAiUsageCardV411,
body.zsb-ai-page #xlsAiHistoryV411 {
  display: none !important;
}
body.zsb-ai-page #xlsAiFeatureStatus {
  display: flex !important;
}

@media (max-width: 520px) {
  .xls-ai-usage-strip {
    border-radius: 18px;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 12px;
    margin: 8px 0 12px;
  }
  .xls-ai-usage-strip a { width: 100%; justify-content: center; }
}

.ai-records-page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 72px;
  color: #12396d;
}
.ai-records-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.ai-records-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #12396d;
  text-decoration: none;
  font-weight: 1000;
}
.ai-records-logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg,#2f80ff,#69a8ff);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 1000;
  box-shadow: 0 12px 28px rgba(47,128,255,.20);
}
.ai-records-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.ai-records-action,
#clearAiRecordsBtn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #cfe1ff;
  background: rgba(255,255,255,.86);
  color: #12396d;
  font-weight: 950;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(47,128,255,.08);
  cursor: pointer;
}
.ai-records-card {
  background: rgba(255,255,255,.92);
  border: 1px solid #dceaff;
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 20px 52px rgba(47,128,255,.08);
}
.ai-records-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.ai-records-head h1 { margin: 0; font-size: 34px; color: #12396d; }
.ai-records-head p { margin: 8px 0 0; color: #65748c; line-height: 1.7; }
.ai-records-list { display: grid; gap: 12px; }
.ai-record-item {
  border: 1px solid #e4efff;
  background: linear-gradient(135deg,#fff,#f8fbff);
  border-radius: 22px;
  padding: 18px;
}
.ai-record-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ai-record-item b { color: #12396d; font-size: 18px; }
.ai-record-item small { display:block; margin-top: 4px; color:#65748c; font-weight: 800; }
.ai-record-item p { margin: 10px 0 0; color:#51647f; line-height: 1.7; font-weight: 800; }
.ai-record-summary { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background:#f4f8ff; color:#344a63; line-height:1.7; }
.ai-record-schools { display:flex; flex-wrap:wrap; gap:8px; margin-top: 12px; }
.ai-record-schools span { min-height:30px; padding:0 10px; border-radius:999px; background:#edf5ff; color:#1f63d8; display:inline-flex; align-items:center; font-weight:1000; font-size:13px; }
.ai-record-empty { padding: 20px; border:1px dashed #cfe1ff; background:#f8fbff; border-radius:18px; color:#65748c; font-weight:850; line-height:1.8; }
.ai-record-login { color:#1f63d8; font-weight:1000; text-decoration:none; }
@media (max-width: 720px) {
  .ai-records-page { width: calc(100% - 20px); padding: 12px 0 88px; }
  .ai-records-topbar { align-items: flex-start; flex-direction: column; }
  .ai-records-actions { width:100%; display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
  .ai-records-action, #clearAiRecordsBtn { width:100%; min-height:40px; padding:0 10px; font-size:13px; }
  .ai-records-card { border-radius:24px; padding:18px; }
  .ai-records-head { display:block; }
  #clearAiRecordsBtn { margin-top:12px; }
  .ai-records-head h1 { font-size:28px; }
}
