.aigc-hero { margin-bottom: 18px; }
.aigc-mode-tabs {
  display: inline-flex;
  gap: 0;
  margin: 0 0 18px;
  border: 1px solid #d5d0c6;
  background: #fffcf7;
}
.aigc-mode-tab {
  border: 0;
  background: transparent;
  color: #6a655c;
  padding: 12px 22px;
  cursor: pointer;
  letter-spacing: .08em;
  font-weight: 600;
}
.aigc-mode-tab.active {
  background: #0a3161;
  color: #faf8f3;
}
.aigc-mode-pane { display: none; }
.aigc-mode-pane.active { display: block; }
.aigc-paste-field { display: grid; gap: 8px; margin-top: 4px; }
.aigc-paste-field > span { color: #6a655c; font-size: 12px; letter-spacing: .06em; }
.aigc-upload-box {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin: 4px 0 14px;
  padding: 18px 18px 16px;
  border: 1px dashed #cfc8bb;
  background: #f7f4ee;
}
.aigc-upload-box strong {
  font: 600 20px/1.2 var(--serif, "Cormorant Garamond", Georgia, serif);
  color: #041429;
}
.aigc-upload-box p {
  margin: 0;
  color: #6a655c;
  font-size: 13px;
  line-height: 1.7;
  max-width: 42em;
}
.aigc-upload-box small {
  color: #8a8376;
  font-size: 12px;
  line-height: 1.5;
}
.aigc-report {
  margin: 0 0 14px;
  padding: 16px 16px 14px;
  border: 1px solid #d5d0c6;
  background: #fffcf7;
}
.aigc-report.paperpass {
  padding: 0;
  overflow: hidden;
}
.aigc-report-cover {
  padding: 22px 20px 18px;
  background:
    linear-gradient(180deg, rgba(10, 49, 97, .04), transparent 40%),
    #fffcf7;
  border-bottom: 1px solid #ebe6db;
}
.aigc-report-cover h3 {
  margin: 0 0 10px;
  text-align: center;
  font: 700 28px/1.2 "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  color: #041429;
  letter-spacing: .12em;
}
.aigc-report-overall-label {
  margin: 0;
  text-align: center;
  color: #6a655c;
  font-size: 13px;
}
.aigc-report-overall {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 16px;
  color: #c62828;
}
.aigc-report-overall b {
  font: 700 54px/1 "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
}
.aigc-report-overall span {
  font-size: 22px;
  font-weight: 700;
}
.aigc-report-weighted {
  margin: -6px 0 14px;
  text-align: center;
  color: #6a655c;
  font-size: 13px;
}
.aigc-report-weighted b { color: #041429; }
.aigc-report-weighted small { color: #8a8376; }
.aigc-report-dist {
  list-style: none;
  margin: 0 auto 16px;
  padding: 0;
  max-width: 420px;
  display: grid;
  gap: 8px;
}
.aigc-report-dist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #ebe6db;
  background: #f7f4ee;
  font-size: 13px;
  color: #4d5548;
}
.aigc-report-dist b { color: #041429; font-weight: 700; }
.aigc-report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.aigc-report-meta > div {
  padding: 10px 12px;
  border: 1px solid #ebe6db;
  background: #fff;
}
.aigc-report-meta small {
  display: block;
  color: #8a8376;
  font-size: 11px;
  letter-spacing: .06em;
}
.aigc-report-meta b {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #0a3161;
  word-break: break-word;
}
.aigc-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.aigc-legend.paperpass {
  padding: 12px 16px 14px;
  gap: 6px 10px;
}
.aigc-legend.paperpass span {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: .02em;
  border: 1px solid transparent;
}
.aigc-legend-high {
  background: #fde8e6;
  color: #9a4236;
  border-color: #e7b4ad !important;
}
.aigc-legend-medium {
  background: #ffe8d4;
  color: #b35b12;
  border-color: #efc39a !important;
}
.aigc-legend-light {
  background: #efe6fb;
  color: #6b3f9c;
  border-color: #d2bce8 !important;
}
.aigc-legend-clean {
  background: #f1f1f1;
  color: #222;
  border-color: #d0d0d0 !important;
}
.aigc-legend-skip {
  background: #ececec;
  color: #777;
  border-color: #d5d5d5 !important;
}
.aigc-highlight-view {
  min-height: 280px;
  max-height: 560px;
  overflow: auto;
  border: 1px solid #d5d0c6;
  border-radius: 2px;
  background: #fffcf7;
  color: #1a1f28;
  padding: 14px 16px;
  line-height: 1.9;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  white-space: normal;
  word-break: break-word;
}
.aigc-highlight-view.paperpass {
  font-size: 14px;
}
.aigc-highlight-view.is-empty {
  color: #8a8376;
}
.aigc-frag-high {
  color: #c62828;
  background: rgba(198, 40, 40, .08);
}
.aigc-frag-medium {
  color: #e65100;
  background: rgba(230, 81, 0, .08);
}
.aigc-frag-light {
  color: #7b1fa2;
  background: rgba(123, 31, 162, .07);
}
.aigc-frag-clean { color: #1a1f28; }
.aigc-frag-skip { color: #9a9a9a; }
.aigc-ai-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: baseline;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .92;
}
.aigc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}
.aigc-panel,
.aigc-score-panel,
.aigc-result-panel {
  padding: 24px 24px 20px;
}
.aigc-form textarea,
#aigcInput,
#aigcUploadPreview,
#aigcOutput {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 1px solid #d5d0c6;
  border-radius: 2px;
  background: #fffcf7;
  color: #1a1f28;
  padding: 14px 16px;
  line-height: 1.75;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
#aigcUploadPreview { min-height: 220px; }
#aigcOutput {
  min-height: 240px;
  background: #f7f4ee;
}
.aigc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}
.aigc-status {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d5d0c6;
  background: #f3efe6;
  color: #4d5548;
  font-size: 13px;
  line-height: 1.6;
}
.aigc-status.busy {
  border-color: rgba(10, 49, 97, .28);
  background: rgba(10, 49, 97, .06);
  color: #0a3161;
}
.aigc-side {
  display: grid;
  gap: 18px;
}
@media (max-width: 1100px) {
  .aigc-shell { grid-template-columns: 1fr; }
  .aigc-report-meta { grid-template-columns: 1fr; }
}
