.iwell-ai-menu-item,
.iwell-ai-columns-item {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: flex-start;
  cursor: pointer;
  letter-spacing: 0;
}

.iwell-ai-menu-item.is-active,
.iwell-ai-columns-item.is-active {
  color: var(--el-menu-active-color, #409eff);
}

html.iwell-ai-page-active .sidebar-container .el-menu-item.is-active:not(.iwell-ai-menu-item) {
  color: var(--el-menu-text-color, inherit) !important;
  background-color: transparent !important;
}

html.iwell-ai-page-active .layout-columns-aside .item-menu-wrap.active-menu:not(.iwell-ai-columns-item) {
  color: inherit !important;
  background-color: transparent !important;
}

.iwell-ai-menu-item {
  min-height: var(--el-menu-item-height, 56px);
}

.iwell-ai-menu-item:hover,
.iwell-ai-menu-item:focus-visible,
.iwell-ai-columns-item:hover,
.iwell-ai-columns-item:focus-visible {
  color: var(--el-menu-hover-text-color, #409eff);
  background: var(--el-menu-hover-bg-color, #ecf5ff);
  outline: none;
}

.iwell-ai-columns-item {
  min-height: 48px;
  padding: 0 14px;
}

.iwell-ai-nav-icon {
  width: 1em;
  flex: 0 0 1em;
  margin-right: 4px;
  font-size: 18px;
  text-align: center;
}

.iwell-ai-student-picker {
  display: grid;
  grid-template-columns: 120px minmax(240px, 420px);
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 0;
  border-top: 1px solid #e5eaf0;
  border-bottom: 1px solid #e5eaf0;
}

.iwell-ai-student-picker label {
  color: #4f5d70;
  font-size: 14px;
  font-weight: 700;
}

.iwell-ai-student-picker select {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 12px;
  color: #273447;
  font: inherit;
  letter-spacing: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
}

.iwell-ai-student-picker select:focus {
  border-color: #409eff;
  outline: 2px solid rgba(64, 158, 255, 0.15);
}

.iwell-ai-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: #9b2c2c;
  font-size: 14px;
  background: #fff1f1;
  border: 1px solid #efb7b7;
  border-radius: 5px;
}

.iwell-ai-copy-button:disabled {
  color: #8b95a4;
  background: #f3f5f7;
  border-color: #d7dde5;
  cursor: not-allowed;
}

#iwell-ai-analysis-panel {
  position: relative;
  display: none;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: auto;
  color: #202a38;
  letter-spacing: 0;
  background: #f4f7fa;
  box-sizing: border-box;
}

#iwell-ai-analysis-panel.is-open {
  display: block;
}

.app-main > .iwell-ai-host-hidden {
  display: none !important;
}

.iwell-ai-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 34px 22px;
  background: #ffffff;
  border-bottom: 1px solid #dfe5ec;
}

.iwell-ai-page-header h1,
.iwell-ai-section-heading h2,
.iwell-ai-score-section h3 {
  margin: 0;
  letter-spacing: 0;
}

.iwell-ai-page-header h1 {
  font-size: 26px;
  line-height: 1.3;
}

.iwell-ai-page-header p,
.iwell-ai-section-heading p {
  margin: 6px 0 0;
  color: #687386;
  font-size: 14px;
}

.iwell-ai-eyebrow {
  margin-bottom: 4px;
  color: #1976ad;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.iwell-ai-header-actions {
  display: flex;
  gap: 8px;
}

.iwell-ai-icon-button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #344154;
  font-size: 20px;
  background: #ffffff;
  border: 1px solid #d9e1ec;
  border-radius: 6px;
  cursor: pointer;
}

.iwell-ai-icon-button:hover,
.iwell-ai-icon-button:focus-visible {
  color: #1267a5;
  border-color: #7ab6da;
  outline: none;
}

.iwell-ai-status-band {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 28px;
  padding: 0 34px;
  color: #526074;
  font-size: 14px;
  background: #e9eef4;
  border-bottom: 1px solid #d8e0e9;
}

.iwell-ai-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.iwell-ai-status i {
  width: 8px;
  height: 8px;
  background: #bf7b17;
  border-radius: 50%;
}

.iwell-ai-status.is-ready i {
  background: #24865b;
}

.iwell-ai-page-body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 34px 48px;
}

.iwell-ai-student-section,
.iwell-ai-score-section,
.iwell-ai-json-section {
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
}

.iwell-ai-student-section {
  margin-bottom: 20px;
  padding: 22px 24px;
}

.iwell-ai-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.iwell-ai-section-heading h2 {
  font-size: 18px;
  line-height: 1.4;
}

.iwell-ai-student-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 20px 0 0;
  border-top: 1px solid #e5eaf0;
}

.iwell-ai-student-grid > div {
  min-width: 0;
  padding: 17px 18px 0 0;
}

.iwell-ai-student-grid dt {
  margin-bottom: 5px;
  color: #7b8696;
  font-size: 12px;
}

.iwell-ai-student-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 650;
}

.iwell-ai-text-button,
.iwell-ai-copy-button {
  min-height: 36px;
  padding: 0 14px;
  color: #1267a5;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #9fc9e1;
  border-radius: 5px;
  cursor: pointer;
}

.iwell-ai-text-button:hover,
.iwell-ai-copy-button:hover {
  background: #eef7fc;
}

.iwell-ai-tabs {
  display: flex;
  gap: 0;
  padding: 0 34px;
  background: #ffffff;
  border-bottom: 1px solid #dfe5ec;
}

.iwell-ai-tabs button {
  position: relative;
  min-height: 46px;
  padding: 0 18px;
  color: #657185;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.iwell-ai-tabs button.is-active {
  color: #1267a5;
  border-bottom-color: #2687bd;
}

.iwell-ai-tabs button i {
  position: absolute;
  top: 10px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #bf7b17;
  border-radius: 50%;
}

.iwell-ai-submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5eaf0;
}

.iwell-ai-submit-row span {
  color: #6f7b8d;
  font-size: 13px;
}

.iwell-ai-primary-button {
  min-height: 40px;
  padding: 0 18px;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  background: #1976ad;
  border: 1px solid #1976ad;
  border-radius: 5px;
  cursor: pointer;
}

.iwell-ai-primary-button:hover {
  background: #105f8e;
}

.iwell-ai-primary-button:disabled {
  color: #8b95a4;
  background: #eef1f5;
  border-color: #d7dde5;
  cursor: not-allowed;
}

.iwell-ai-history-section,
.iwell-ai-report-view {
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
}

.iwell-ai-report-view {
  margin-top: 20px;
}

.iwell-ai-job-list {
  margin-top: 18px;
  border-top: 1px solid #e5eaf0;
}

.iwell-ai-job-row {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #e9edf2;
}

.iwell-ai-job-row > div:first-child {
  display: grid;
  gap: 4px;
}

.iwell-ai-job-row span,
.iwell-ai-job-row small {
  color: #707c8f;
  font-size: 12px;
}

.iwell-ai-job-row small {
  color: #9b2c2c;
}

.iwell-ai-empty {
  padding: 36px 12px;
  color: #707c8f;
  text-align: center;
}

.iwell-ai-report-view pre {
  margin: 18px 0 0;
  overflow: visible;
  color: #2a3545;
  font: 14px/1.8 "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.iwell-ai-content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(460px, 1.22fr);
  gap: 20px;
  align-items: start;
}

.iwell-ai-score-section,
.iwell-ai-json-section {
  padding: 22px 24px;
}

.iwell-ai-score-section h3 {
  margin-top: 22px;
  padding-bottom: 9px;
  color: #344154;
  font-size: 14px;
  border-bottom: 1px solid #e5eaf0;
}

.iwell-ai-score-section h3.iwell-ai-subheading {
  margin-top: 26px;
}

.iwell-ai-score-row {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eef1f5;
}

.iwell-ai-score-row strong {
  color: #1267a5;
  font-variant-numeric: tabular-nums;
}

.iwell-ai-score-row strong.is-missing {
  color: #a06413;
  font-size: 13px;
  font-weight: 600;
}

.iwell-ai-json-section pre {
  min-height: 430px;
  max-height: 610px;
  margin: 20px 0 14px;
  padding: 20px;
  overflow: auto;
  color: #d9e3ef;
  font: 13px/1.65 Consolas, "Courier New", monospace;
  white-space: pre;
  background: #202938;
  border-radius: 5px;
}

.iwell-ai-validation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iwell-ai-validation span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: #925c0e;
  font-size: 12px;
  font-weight: 700;
  background: #fff5df;
  border: 1px solid #efd39e;
  border-radius: 4px;
}

.iwell-ai-validation span.is-valid {
  color: #246b4d;
  background: #e9f6ef;
  border-color: #b8ddc8;
}

@media (max-width: 900px) {
  .iwell-ai-page-header,
  .iwell-ai-status-band,
  .iwell-ai-tabs,
  .iwell-ai-page-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .iwell-ai-status-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .iwell-ai-content-grid,
  .iwell-ai-student-grid {
    grid-template-columns: 1fr;
  }

  .iwell-ai-student-picker {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .iwell-ai-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .iwell-ai-submit-row,
  .iwell-ai-job-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Report workspace */
.iwell-ai-emphasis-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 5px; border-radius: 4px; font: 700 16px/1 Arial, sans-serif; vertical-align: middle; }
.iwell-ai-emphasis-icon.is-strength { color: #23785d; background: #e7f4ed; }
.iwell-ai-emphasis-icon.is-low { color: #c94d4d; background: #fdecec; }
.iwell-ai-emphasis-icon.is-middle { color: #9b7113; background: #fff4d8; }
.iwell-ai-emphasis-icon.is-challenge { color: #976019; background: #fff3dc; }
.iwell-ai-emphasis-icon.is-gap { color: #256f9b; background: #eaf3fa; }
.iwell-ai-emphasis-icon.is-summary { color: #59677c; background: #eef1f5; }
.iwell-ai-score-category .iwell-ai-emphasis-icon { width: 14px; height: 17px; margin-right: 2px; font-size: 13px; }
.iwell-ai-pie-section { margin-top: 26px; padding-top: 8px; border-top: 1px solid #e6ebf0; }
.iwell-ai-report-copy .iwell-ai-pie-note { color: #6c798b; font-size: 12px; margin-bottom: 20px; }
.iwell-ai-pie-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.iwell-ai-pie-figure { margin: 0; min-width: 0; }
.iwell-ai-pie-figure figcaption { margin-bottom: 18px; font-weight: 700; color: #344457; }
.iwell-ai-pie-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.iwell-ai-pie { width: 190px; max-width: 100%; aspect-ratio: 1; flex: 0 0 190px; border-radius: 50%; }
.iwell-ai-pie.is-empty { display: flex; align-items: center; justify-content: center; background: #eef1f5; color: #758397; font-size: 13px; }
.iwell-ai-report-copy .iwell-ai-pie-legend { flex: 1 1 155px; margin: 0; padding: 0; list-style: none; }
.iwell-ai-report-copy .iwell-ai-pie-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) 45px; align-items: center; gap: 9px; margin: 0; min-height: 30px; font-size: 13px; }
.iwell-ai-pie-legend strong { text-align: right; font-variant-numeric: tabular-nums; }
.iwell-ai-pie-swatch { width: 10px; height: 10px; border-radius: 2px; }
@media (max-width: 950px) { .iwell-ai-pie-grid { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 440px) { .iwell-ai-pie-layout { flex-direction: column; align-items: stretch; } .iwell-ai-pie { align-self: center; flex-basis: auto; } .iwell-ai-report-copy .iwell-ai-pie-legend { flex-basis: auto; } }
#iwell-ai-analysis-panel { color: #263444; background: #f5f7fa; }
.iwell-ai-page-header { padding: 20px 32px 14px; }
.iwell-ai-page-header h1 { font-size: 22px; }
.iwell-ai-page-body { padding-top: 22px; }
.iwell-ai-student-section { padding: 18px 22px; }
.iwell-ai-student-picker { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; border: 0; }
.iwell-ai-student-picker label { flex: 0 0 auto; }
.iwell-ai-student-picker select { width: min(100%, 420px); }
.iwell-ai-student-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding-top: 12px; color: #69778a; border-top: 1px solid #edf0f4; }
.iwell-ai-student-meta strong { color: #263444; }
.iwell-ai-score-section { padding: 22px 24px; }
.iwell-ai-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.iwell-ai-score-group h3, .iwell-ai-report-score-group h3 { margin: 22px 0 8px; color: #46566a; font-size: 14px; }
.iwell-ai-score-row { display: grid; grid-template-columns: minmax(90px, 112px) minmax(70px, 1fr) 52px; align-items: center; gap: 12px; min-height: 42px; border-bottom: 1px solid #eef1f4; }
.iwell-ai-score-name { min-width: 0; color: #394a5e; overflow-wrap: anywhere; }
.iwell-ai-score-track { height: 9px; overflow: hidden; background: #e9edf2; border-radius: 4px; }
.iwell-ai-score-track > span { display: block; height: 100%; border-radius: inherit; }
.iwell-ai-score-track > span.is-low { background: #d95c5c; }
.iwell-ai-score-track > span.is-middle { background: #d5a126; }
.iwell-ai-score-track > span.is-high { background: #32966f; }
.iwell-ai-score-row strong { color: #263444; font-variant-numeric: tabular-nums; text-align: right; }
.iwell-ai-score-scale { max-width: 640px; margin: 24px auto 4px; }
.iwell-ai-score-scale-bar { display: grid; grid-template-columns: 30fr 40fr 30fr; height: 8px; overflow: hidden; border-radius: 4px; }
.iwell-ai-score-scale-bar .is-low { background: #d95c5c; }
.iwell-ai-score-scale-bar .is-middle { background: #d5a126; }
.iwell-ai-score-scale-bar .is-high { background: #32966f; }
.iwell-ai-score-scale-labels { display: grid; grid-template-columns: 30fr 40fr 30fr; margin-top: 8px; color: #526176; font-size: 12px; }
.iwell-ai-score-scale-labels > span { display: grid; grid-template-columns: 9px auto; column-gap: 6px; align-items: center; }
.iwell-ai-score-scale-labels > span:nth-child(2) { justify-content: center; }
.iwell-ai-score-scale-labels > span:nth-child(3) { justify-content: end; }
.iwell-ai-score-scale-labels i { width: 8px; height: 8px; border-radius: 50%; }
.iwell-ai-score-scale-labels i.is-low { background: #d95c5c; }
.iwell-ai-score-scale-labels i.is-middle { background: #d5a126; }
.iwell-ai-score-scale-labels i.is-high { background: #32966f; }
.iwell-ai-score-scale-labels strong { font-size: 12px; font-weight: 600; }
.iwell-ai-score-scale-labels small { grid-column: 2; color: #7b8797; font-size: 11px; }
.iwell-ai-score-scale p { margin: 7px 0 0; color: #8994a3; font-size: 11px; text-align: center; }
.iwell-ai-data-note { margin: 18px 0 0; color: #965b20; }
.iwell-ai-data-note.is-partial { color: #53676f; border-left: 3px solid #d3a735; padding-left: 12px; }
.iwell-ai-report-view { margin-top: 20px; padding: 0; background: transparent; border: 0; }
.iwell-ai-report-view > .iwell-ai-section-heading { margin-bottom: 14px; }
.iwell-ai-report-section { margin-bottom: 16px; padding: 22px 24px; background: #fff; border: 1px solid #dfe5ec; border-radius: 6px; }
.iwell-ai-report-section > h2 { margin: 0 0 15px; padding-bottom: 11px; font-size: 17px; border-bottom: 1px solid #e6ebf0; }
.iwell-ai-report-copy { color: #344457; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.iwell-ai-report-copy p { margin: 0 0 12px; }
.iwell-ai-report-copy h3 { margin: 22px 0 10px; color: #234e6c; font-size: 15px; }
.iwell-ai-report-copy ul { margin: 0 0 12px; padding-left: 22px; }
.iwell-ai-report-copy li { margin: 5px 0; }
.iwell-ai-report-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.iwell-ai-report-score-group .iwell-ai-score-row { grid-template-columns: minmax(90px, 112px) minmax(65px, 1fr) 46px minmax(68px, 82px); gap: 9px; }
.iwell-ai-score-category { color: #66758a; font-size: 12px; white-space: nowrap; }
.iwell-ai-score-category .is-low { color: #c94d4d; background: #fdecec; }
.iwell-ai-score-category .is-middle { color: #9b7113; background: #fff4d8; }
.iwell-ai-citation { color: #176ea4; text-decoration: underline; text-underline-offset: 2px; }
.iwell-ai-report-sources { padding: 16px 24px; background: #fff; border: 1px solid #dfe5ec; border-radius: 6px; }
.iwell-ai-report-sources summary { color: #176ea4; font-weight: 700; cursor: pointer; }
.iwell-ai-report-sources .iwell-ai-report-copy { margin-top: 14px; }

@media (max-width: 950px) {
  .iwell-ai-content-grid, .iwell-ai-report-scores { grid-template-columns: 1fr; gap: 8px; }
  .iwell-ai-scale { display: none; }
}

@media (max-width: 600px) {
  .iwell-ai-page-header { padding: 16px 18px 12px; }
  .iwell-ai-page-body { padding: 18px 12px 34px; }
  .iwell-ai-student-section, .iwell-ai-score-section, .iwell-ai-history-section, .iwell-ai-report-section { padding: 16px; }
  .iwell-ai-student-picker { flex-wrap: wrap; }
  .iwell-ai-student-picker select { flex: 1 1 190px; }
  .iwell-ai-score-row { grid-template-columns: minmax(82px, 106px) minmax(50px, 1fr) 42px; gap: 7px; }
  .iwell-ai-report-score-group .iwell-ai-score-row { grid-template-columns: minmax(82px, 106px) minmax(45px, 1fr) 38px; }
  .iwell-ai-report-score-group .iwell-ai-score-category { grid-column: 2 / 4; margin-top: -8px; padding-bottom: 5px; }
  .iwell-ai-score-scale-labels { font-size: 11px; }
  .iwell-ai-score-scale-labels strong { font-size: 11px; }
  .iwell-ai-job-row { align-items: flex-start; flex-direction: column; }
}

/* AI report layout, October 2026 */
@font-face { font-family: iwell-ai-icons; src: url('./iconfont.61241a19.woff2') format('woff2'); font-display: block; }
#iwell-ai-analysis-panel { background: #f6f8f9; }
#iwell-ai-analysis-panel * { box-sizing: border-box; letter-spacing: 0; }
#iwell-ai-analysis-panel .iwell-ai-page-header { padding: 24px 28px 12px; }
#iwell-ai-analysis-panel .iwell-ai-page-header h1 { font-size: 22px; margin: 0; }
#iwell-ai-analysis-panel .iwell-ai-page-body { max-width: 1540px; margin: auto; padding: 8px 28px 48px; }
.iwell-ai-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 18px 20px; background: white; border: 1px solid #e0e6e9; border-radius: 6px; }
.iwell-ai-toolbar .iwell-ai-student-picker { flex: 1 1 260px; min-width: 0; gap: 12px; }
.iwell-ai-toolbar .iwell-ai-student-picker select { min-width: 0; width: 100%; max-width: 350px; }
.toolbar-fact { display: grid; gap: 4px; font-size: 13px; min-width: 48px; }
.toolbar-fact small { color: #75818c; font-size: 11px; }
.toolbar-fact strong { color: #35434d; font-weight: 500; }
.toolbar-latest { min-width: 115px; }
.iwell-ai-toolbar .iwell-ai-primary-button { margin: 0; white-space: nowrap; background: #287d72; border-color: #287d72; border-radius: 4px; min-height: 40px; padding: 8px 20px; }
.iwell-ai-toolbar .iwell-ai-primary-button:disabled { background: #e8edec; color: #8c9995; border-color: #e0e6e3; cursor: not-allowed; }
#iwell-ai-analysis-panel .iwell-ai-tabs { display: flex; gap: 24px; padding: 0; margin: 18px 0 0; background: transparent; border-bottom: 1px solid #dce4e6; }
#iwell-ai-analysis-panel .iwell-ai-tabs button { position: relative; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 14px 4px; font: 500 14px inherit; background: transparent; color: #78858d; }
#iwell-ai-analysis-panel .iwell-ai-tabs button.is-active { color: #216e65; border-bottom-color: #287d72; }
#iwell-ai-analysis-panel button:focus-visible, #iwell-ai-analysis-panel summary:focus-visible { outline: 2px solid #287d72; outline-offset: 3px; }
#iwell-ai-analysis-panel .iwell-ai-score-section { padding: 24px 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.iwell-ai-assessment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.iwell-ai-assessment h3 { font-size: 15px; font-weight: 600; margin: 8px 0 14px; color: #33494e; }
.assessment-learning { border-left: 1px solid #e2e8ea; padding-left: 32px; }
.iwell-ai-radar { margin: 0 auto 10px; max-width: 390px; }
.iwell-ai-radar svg { display: block; width: 100%; height: auto; aspect-ratio: 420 / 360; overflow: visible; }
.iwell-ai-radar text { fill: #56666e; font-size: 12px; font-family: inherit; }
.iwell-ai-radar .radar-tick { font-size: 9px; fill: #8a969b; }
.radar-data { fill: #408f8030; stroke: #388c7b; stroke-width: 2; }
.radar-dot { stroke: white; stroke-width: 1.5; }
.radar-dot.is-low { fill: #d95c5c; }
.radar-dot.is-middle { fill: #d5a126; }
.radar-dot.is-high { fill: #32966f; }
.iwell-ai-radar figcaption { text-align: center; color: #78858b; font-size: 12px; }
.iwell-ai-metric-list { border-top: 1px solid #e2e8ea; }
.iwell-ai-metric { display: grid; grid-template-columns: minmax(0, 1fr) 50px 84px; align-items: center; gap: 8px; font-size: 13px; padding: 12px 0; }
.iwell-ai-metric.is-compact { padding: 7px 0; border-bottom: 1px solid #edf0f1; }
.iwell-ai-metric strong { text-align: right; color: #263d43; font-variant-numeric: tabular-nums; }
.metric-label { font-size: 11px; text-align: right; }
.metric-label.is-low { color: #bf4444; }
.metric-label.is-middle { color: #926d16; }
.metric-label.is-high { color: #267b5d; }
.iwell-ai-metric.is-no-record { color: #7b878c; }
.iwell-ai-metric.is-no-record strong,
.iwell-ai-metric.is-no-record .metric-label { color: #7b878c; }
.iwell-ai-metric .iwell-ai-score-track { grid-column: 1 / -1; margin-top: 7px; height: 10px; background: #e5eaec; }
.iwell-ai-learning-bars { padding-top: 32px; display: grid; gap: 24px; }
.iwell-ai-assessment .iwell-ai-score-scale { margin-top: 42px; }
.iwell-ai-score-scale-labels { gap: 7px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.iwell-ai-score-scale-labels > span { grid-template-columns: 1fr; justify-content: start !important; text-align: center; }
.iwell-ai-score-scale-labels i { display: none; }
.iwell-ai-score-scale-labels small { grid-column: 1; font-size: 10px; white-space: normal; }
.iwell-ai-emphasis-icon.iconfont { font-family: iwell-ai-icons !important; font-size: 18px; font-weight: 400; width: 24px; height: 24px; border-radius: 0; background: transparent; margin-right: 8px; }
#iwell-ai-analysis-panel .iwell-ai-history-section { margin-top: 24px; border: 1px solid #e0e6e9; background: white; border-radius: 6px; padding: 18px 20px; }
.iwell-ai-section-heading h2 { font-size: 16px; }
.iwell-ai-section-heading h2 small { font-size: 12px; margin-left: 8px; color: #819098; font-weight: 400; }
.iwell-ai-history-scroll { overflow-x: auto; }
.iwell-ai-history-table { border-collapse: collapse; width: 100%; min-width: 610px; text-align: left; font-size: 13px; }
.iwell-ai-history-table th { color: #76838b; background: #f6f8f9; font-weight: 500; }
.iwell-ai-history-table td, .iwell-ai-history-table th { padding: 14px 12px; border-bottom: 1px solid #edf0f1; }
.iwell-ai-history-table tr.is-selected td { background: #f0f7f5; }
.iwell-ai-history-table td:last-child { text-align: right; }
.iwell-ai-status { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #eef1f3; color: #65747f; white-space: nowrap; font-size: 12px; }
.status-completed { background: #eaf5ef; color: #287959; }
.status-running { background: #eaf2fa; color: #3577a7; }
.status-queued { background: #fff4d9; color: #927025; }
.status-failed { background: #fceeee; color: #b95151; }
.job-error { display: block; max-width: 280px; margin-top: 6px; color: #b95151; overflow-wrap: anywhere; }
#iwell-ai-analysis-panel .iwell-ai-report-view { background: white; padding: 28px 32px; margin-top: 28px; border: 1px solid #e0e6e9; border-radius: 6px; }
#iwell-ai-analysis-panel .iwell-ai-report-section { margin: 0; padding: 28px 0; border: 0; border-top: 1px solid #e5ebed; border-radius: 0; background: transparent; }
#iwell-ai-analysis-panel .iwell-ai-report-section > h2 { padding: 0; border: 0; margin: 0 0 20px; font-size: 18px; color: #2c464c; display: flex; align-items: center; }
.iwell-ai-report-copy { line-height: 1.95; color: #52616a; }
.analysis-detail { margin-left: 8px; }
.report-relationships .analysis-detail { display: block; margin-left: 0; }
.iwell-ai-report-copy h3 { border-left: 3px solid #3e9280; padding: 4px 12px; background: #f3f8f6; font-size: 15px; color: #2e6258; margin: 28px 0 14px; }
.iwell-ai-report-copy .iwell-ai-assessment h3 { padding: 0; background: none; border: 0; margin-top: 8px; }
.report-profile .iwell-ai-report-copy > p:first-child { padding: 16px 20px; background: #f2f7f5; border-left: 3px solid #398b77; }
.report-profile .iwell-ai-report-copy > ul { list-style: none; padding: 0; }
.report-profile .iwell-ai-report-copy > ul > li { margin: 0; padding: 14px 0; border-bottom: 1px solid #edf0f1; }
.report-profile .iwell-ai-report-copy > ul > li > strong:first-child { color: #355962; }
.report-relationships .iwell-ai-report-copy ul { padding: 0; list-style: none; }
.report-relationships .iwell-ai-report-copy li { margin: 0; padding: 12px 0; border-bottom: 1px solid #edf0f1; }
.report-relationships .iwell-ai-report-copy li > strong:first-child { display: block; color: #355962; margin-bottom: 4px; }
.report-synthesis .iwell-ai-report-copy { max-width: 960px; }
.report-recommendations ol { padding-left: 26px; }
.report-recommendations li { padding: 8px 0 15px 8px; border-bottom: 1px solid #edf0f1; }
.report-recommendations li::marker { color: #287d72; font-weight: 700; }
.iwell-ai-citation { display: inline-block; background: #edf4f7; color: #39728d; padding: 0 5px; border-radius: 3px; font-size: 11px; line-height: 1.7; text-decoration: none; vertical-align: baseline; }
#iwell-ai-analysis-panel .iwell-ai-report-sources { padding: 18px 0; border: 0; border-top: 1px solid #e0e6e9; background: transparent; border-radius: 0; }
@media (max-width: 900px) {
  .iwell-ai-assessment { grid-template-columns: 1fr; gap: 28px; }
  .assessment-learning { padding: 24px 0 0; border-left: 0; border-top: 1px solid #e2e8ea; }
  .iwell-ai-learning-bars { padding-top: 0; gap: 12px; }
}
@media (max-width: 600px) {
  #iwell-ai-analysis-panel .iwell-ai-page-body { padding: 8px 14px 30px; }
  #iwell-ai-analysis-panel .iwell-ai-page-header { padding: 20px 14px 10px; }
  .iwell-ai-toolbar { gap: 14px; padding: 14px; }
  .iwell-ai-toolbar .iwell-ai-student-picker { flex-basis: 100%; }
  .iwell-ai-toolbar .iwell-ai-primary-button { margin-left: auto; padding: 8px 12px; }
  .toolbar-latest { min-width: 85px; }
  #iwell-ai-analysis-panel .iwell-ai-report-view { padding: 18px 14px; }
  #iwell-ai-analysis-panel .iwell-ai-history-section { padding: 14px; }
  .iwell-ai-history-section .iwell-ai-section-heading { flex-direction: row; align-items: center; }
  .iwell-ai-history-table { min-width: 0; display: block; }
  .iwell-ai-history-table thead { display: none; }
  .iwell-ai-history-table tbody { display: block; }
  .iwell-ai-history-table tr { display: block; border-top: 1px solid #e2e8ea; padding: 12px 0; }
  .iwell-ai-history-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 0; flex-wrap: wrap; }
  .iwell-ai-history-table td::before { content: attr(data-label); color: #78858b; }
  .iwell-ai-history-table tr.is-selected td { background: transparent; }
  .iwell-ai-history-table td.job-actions { justify-content: flex-end; padding-top: 10px; }
  .iwell-ai-history-table td.job-actions::before { display: none; }
  .iwell-ai-metric { grid-template-columns: minmax(0,1fr) 44px 80px; }
}
/* Keep the brand aligned with the navigation icons instead of centering the group. */
.sidebar-logo-container {
  text-align: left !important;
}

.sidebar-logo-container .sidebar-logo-link {
  box-sizing: border-box;
  display: block;
  padding-left: 18px;
}

#iwell-ai-analysis-panel .iwell-ai-metric-detail { border-bottom: 1px solid #edf0f1; }
#iwell-ai-analysis-panel .iwell-ai-metric-detail > summary {
  cursor: pointer;
  list-style: none;
  border: 0;
  padding-left: 2px;
  padding-right: 2px;
}
#iwell-ai-analysis-panel .iwell-ai-metric-detail > summary::-webkit-details-marker { display: none; }
#iwell-ai-analysis-panel .iwell-ai-metric-detail > summary:hover { background: #f5f8f8; }
#iwell-ai-analysis-panel .iwell-ai-metric-detail > summary:focus-visible { outline: 2px solid #3577a7; outline-offset: -2px; }
#iwell-ai-analysis-panel .iwell-ai-metric-detail .metric-name { min-width: 0; }
#iwell-ai-analysis-panel .iwell-ai-metric-detail .metric-name::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0 2px 8px;
  border-right: 1.5px solid #667b82;
  border-bottom: 1.5px solid #667b82;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
#iwell-ai-analysis-panel .iwell-ai-metric-detail[open] .metric-name::after { transform: rotate(225deg); }
#iwell-ai-analysis-panel .iwell-ai-metric-detail > summary.is-compact { border-bottom: 0; }
#iwell-ai-analysis-panel .iwell-ai-metric-coverage {
  display: flex;
  gap: 5px 14px;
  flex-wrap: wrap;
  padding: 10px 12px 14px;
  background: #f6f8f8;
  color: #415c64;
  font-size: 12px;
  line-height: 1.55;
}
#iwell-ai-analysis-panel .iwell-ai-metric-coverage > small { display: block; flex-basis: 100%; color: #6f7f84; font-size: 11px; }
#iwell-ai-analysis-panel .iwell-ai-game-share-status,
#iwell-ai-analysis-panel .iwell-ai-game-shares {
  flex-basis: 100%;
  min-width: 0;
  margin: 5px 0 0;
  padding-top: 9px;
  border-top: 1px solid #dde5e7;
}
#iwell-ai-analysis-panel .iwell-ai-game-share-status { color: #6f7f84; }
#iwell-ai-analysis-panel .iwell-ai-game-share-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 4px; }
#iwell-ai-analysis-panel .iwell-ai-game-share-heading > strong { color: #263f48; }
#iwell-ai-analysis-panel .iwell-ai-game-share-heading > span { color: #6f7f84; font-variant-numeric: tabular-nums; }
#iwell-ai-analysis-panel .iwell-ai-game-share-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.2fr) minmax(70px, 1fr) 48px 50px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #e4eaea;
}
#iwell-ai-analysis-panel .iwell-ai-game-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#iwell-ai-analysis-panel .iwell-ai-game-share-row > .iwell-ai-game-count,
#iwell-ai-analysis-panel .iwell-ai-game-share-row > strong { text-align: right; white-space: nowrap; }
#iwell-ai-analysis-panel .iwell-ai-game-share-track {
  height: 6px;
  overflow: hidden;
  background: #dfe8e8;
}
#iwell-ai-analysis-panel .iwell-ai-game-share-track > span { display: block; height: 100%; background: #428f83; }
#iwell-ai-analysis-panel .iwell-ai-game-share-more { display: grid; place-items: center; width: 30px; height: 30px; margin: 6px auto 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #287d72; cursor: pointer; }
#iwell-ai-analysis-panel .iwell-ai-game-share-more:hover { background: #e6f1ee; }
#iwell-ai-analysis-panel .iwell-ai-game-share-more i { display: block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
#iwell-ai-analysis-panel .iwell-ai-game-share-more[aria-expanded="true"] i { transform: translateY(2px) rotate(225deg); }
#iwell-ai-analysis-panel .iwell-ai-game-shares > small { display: block; margin-top: 8px; color: #6f7f84; font-size: 11px; }
@media (max-width: 600px) {
  #iwell-ai-analysis-panel .iwell-ai-metric-coverage { padding: 9px 8px 12px; }
  #iwell-ai-analysis-panel .iwell-ai-game-share-row { grid-template-columns: minmax(0, 1fr) 55px 46px; gap: 4px 6px; }
  #iwell-ai-analysis-panel .iwell-ai-game-share-track { grid-column: 1 / -1; grid-row: 2; }
}

