/* 根因：display:contents 将新增履历/说明变成未定位的 grid 子项，挤乱目录列。 */
.criteria-profile-section .criteria-profile-entry { min-width: 0; }
.criteria-profile-section .criteria-profile-content { min-width: 0; text-align: left; }
.criteria-profile-section .criteria-profile-judgment,
.criteria-profile-section .criteria-profile-style {
  grid-column: 2 / -1;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--profile-directory-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 6px 0 0;
}
.criteria-profile-section .criteria-profile-judgment { grid-row: 3; }
.criteria-profile-section .criteria-profile-style { grid-row: 4; }
.criteria-profile-section .personal-resume-summary {
  grid-column: 2 / -1;
  grid-row: 5;
  min-width: 0;
  max-width: 100%;
  margin: 10px 0 4px;
  padding-top: 10px;
  border-top: 1px solid var(--profile-directory-line);
  color: var(--profile-directory-muted);
}
.criteria-profile-section .personal-resume-summary > span {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: 3.4em;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.7;
}
@media (min-width: 1200px) {
  .criteria-profile-section {
    --profile-directory-columns: 180px minmax(140px,1fr) 136px 48px minmax(140px,1fr) 60px 60px 82px;
    --profile-directory-gap: 12px;
  }
  .criteria-profile-section .criteria-profile-media { width: 180px !important; }
  .criteria-profile-section .criteria-profile-entry { padding-block: 16px !important; }
}
@media (max-width: 1199.98px) {
  .criteria-profile-section .criteria-profile-judgment { order: 5; }
  .criteria-profile-section .criteria-profile-style { order: 6; }
  .criteria-profile-section .personal-resume-summary { order: 7; }
  .criteria-profile-section .criteria-entry-action { order: 8; }
  .criteria-profile-section .criteria-profile-label,
  .criteria-profile-section .criteria-profile-summary { text-align: left !important; }
  .criteria-profile-section .criteria-profile-identity { align-self: stretch; }
  .criteria-profile-section .criteria-profile-media { align-self: start; }
}

/* 报告沿用站点酒红/金色与日夜主题，仅调整层级、宽度和阅读对比。 */
app-judge-profile-quick-result {
  --jl-text: #eee9df;
  --jl-muted: #b9b6b0;
  --jl-card: #1c2028;
  --jl-inset: #242a34;
  --jl-line: #444a54;
  --jl-accent: #e9cb7c;
}
html.light-mode app-judge-profile-quick-result {
  --jl-text: #292824;
  --jl-muted: #625e57;
  --jl-card: #fffdf7;
  --jl-inset: #f5f0e6;
  --jl-line: #ded6c8;
  --jl-accent: #8b1737;
}
app-judge-profile-quick-result .quick-result-shell {
  background: transparent !important;
  padding: 24px 16px 48px !important;
  color: var(--jl-text);
}
app-judge-profile-quick-result .quick-result-wrap { max-width: 1080px !important; margin-inline: auto; }
app-judge-profile-quick-result .hero-card,
app-judge-profile-quick-result .section-card,
app-judge-profile-quick-result .answer-section {
  background: var(--jl-card) !important;
  color: var(--jl-text) !important;
  border: 1px solid var(--jl-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  padding: 28px !important;
  min-width: 0;
}
app-judge-profile-quick-result .hero-card {
  display: grid;
  grid-template-columns: 160px minmax(0,1fr);
  gap: 12px 28px;
  text-align: left !important;
}
app-judge-profile-quick-result .hero-card > .eyebrow {
  grid-column: 1 / -1; grid-row: 1;
  color: var(--jl-accent) !important;
  margin: 0 0 8px !important;
}
app-judge-profile-quick-result .public-user { display: contents !important; }
app-judge-profile-quick-result .public-user > div {
  grid-column: 2; grid-row: 2;
  text-align: left;
  color: var(--jl-text);
}
app-judge-profile-quick-result .public-user > img { grid-column: 2; grid-row: 2; justify-self: end; width: 40px; height: 40px; border-radius: 50%; }
app-judge-profile-quick-result .public-user > div { padding-right: 52px; }
app-judge-profile-quick-result .public-user small { color: var(--jl-muted) !important; }
app-judge-profile-quick-result .quick-type-visual {
  grid-column: 1; grid-row: 2 / 5;
  margin: 0 !important;
  align-self: start;
}
app-judge-profile-quick-result .quick-type-portrait {
  width: 160px !important; height: 180px !important;
  margin: 0 !important; border-radius: 12px !important;
  overflow: hidden;
}
app-judge-profile-quick-result .quick-type-portrait img {
  width: 100%; height: 100%; object-fit: contain !important;
}
app-judge-profile-quick-result .hero-card > h1 {
  grid-column: 2; grid-row: 3;
  margin: 0 !important;
  font-size: clamp(22px,2.3vw,30px) !important;
  line-height: 1.5 !important;
  text-align: left !important;
  overflow-wrap: anywhere;
}
app-judge-profile-quick-result .hero-card > .provisional-note {
  grid-column: 2; grid-row: 4; margin: 0 !important;
}
app-judge-profile-quick-result .hero-card > p:not(.eyebrow):not(.provisional-note) {
  grid-column: 1 / -1; grid-row: 5;
  max-width: none !important;
  margin: 8px 0 0 !important;
}
app-judge-profile-quick-result .personal-resume-full {
  grid-column: 1 / -1; grid-row: 6;
  margin: 0 !important; border-color: var(--jl-line);
}
app-judge-profile-quick-result .hero-card > div:not(.public-user):not(.quick-type-visual) { grid-column: 1 / -1; }
app-judge-profile-quick-result .hero-card p,
app-judge-profile-quick-result .muted,
app-judge-profile-quick-result .disclaimer { color: var(--jl-muted) !important; line-height: 1.8; }
app-judge-profile-quick-result .result-grid { gap: 20px !important; margin-block: 20px !important; }
app-judge-profile-quick-result .section-card h2,
app-judge-profile-quick-result .answer-section h2 { font-size: 21px !important; font-weight: 700; }
app-judge-profile-quick-result .section-number { color: var(--jl-accent) !important; }
app-judge-profile-quick-result .metric-interpretation {
  background: var(--jl-inset) !important;
  border-left: 3px solid var(--jl-accent) !important;
  color: var(--jl-muted) !important;
  padding: 14px 16px !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
}
app-judge-profile-quick-result .metric-interpretation strong { color: var(--jl-text) !important; }
app-judge-profile-quick-result .axis-row > div,
app-judge-profile-quick-result .proof-row > div { gap: 16px; color: var(--jl-text); }
app-judge-profile-quick-result .axis-row > span { margin-inline: 8px; }
app-judge-profile-quick-result .answer-section { margin-top: 20px; }
app-judge-profile-quick-result .evidence-summary { display: flex !important; flex-direction: column; align-items: stretch; gap: 20px; }
app-judge-profile-quick-result .answer-stats { width: 100%; justify-content: space-between; }
app-judge-profile-quick-result .answer-stats strong,
app-judge-profile-quick-result .question-number,
app-judge-profile-quick-result .selected-summary { color: var(--jl-accent) !important; }
app-judge-profile-quick-result .topic-overview { border: 0 !important; padding: 0 !important; }
app-judge-profile-quick-result .topic-overview p,
app-judge-profile-quick-result .answer-section header p { color: var(--jl-muted) !important; }
app-judge-profile-quick-result .reveal-button { align-self: flex-start; min-height: 44px; border-radius: 8px; }
app-judge-profile-quick-result .answer-item { margin-top: 16px; border: 1px solid var(--jl-line) !important; border-radius: 10px; background: var(--jl-card); }
app-judge-profile-quick-result .answer-item > summary { padding: 16px !important; gap: 12px; color: var(--jl-text); }
app-judge-profile-quick-result .answer-body { padding: 0 18px 20px !important; }
app-judge-profile-quick-result .question-content { padding: 16px !important; background: var(--jl-inset) !important; color: var(--jl-text) !important; line-height: 1.9; }
app-judge-profile-quick-result .question-prompt { color: var(--jl-text) !important; font-weight: 700; }
app-judge-profile-quick-result .scale-choice > span { color: var(--jl-muted) !important; line-height: 1.8; }
app-judge-profile-quick-result .scale-choice > strong {
  background: var(--jl-accent) !important;
  color: var(--jl-card) !important;
  border-radius: 8px;
  min-width: 56px;
  min-height: 44px;
  align-self: center;
}
app-judge-profile-quick-result .answer-section * { overflow-wrap: anywhere; }

.profile-resume-collapsible:not(.profile-resume-expanded) > span {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: 5.25em;
  overflow: hidden;
}
.profile-resume-expanded > span { max-height: none !important; overflow: visible !important; }
.profile-resume-toggle {
  display: inline-flex; align-items: center;
  min-height: 44px; margin-top: 6px; padding: 8px 12px;
  border: 1px solid currentColor; border-radius: 8px;
  background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer;
}
.profile-resume-toggle:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media (max-width: 700px) {
  app-judge-profile-quick-result .quick-result-shell { padding: 16px 12px 32px !important; }
  app-judge-profile-quick-result .hero-card,
  app-judge-profile-quick-result .section-card,
  app-judge-profile-quick-result .answer-section { padding: 18px !important; border-radius: 12px !important; }
  app-judge-profile-quick-result .hero-card { display: flex; flex-direction: column; gap: 12px; }
  app-judge-profile-quick-result .hero-card > .eyebrow { order: 0; }
  app-judge-profile-quick-result .public-user > div { order: 1; }
  app-judge-profile-quick-result .quick-type-visual { order: 2; }
  app-judge-profile-quick-result .quick-type-portrait { width: 112px !important; height: 128px !important; }
  app-judge-profile-quick-result .hero-card > h1 { order: 3; }
  app-judge-profile-quick-result .hero-card > .provisional-note { order: 4; }
  app-judge-profile-quick-result .hero-card > p:not(.eyebrow):not(.provisional-note) { order: 5; }
  app-judge-profile-quick-result .personal-resume-full { order: 6; }
  app-judge-profile-quick-result .result-grid { grid-template-columns: minmax(0,1fr) !important; }
  app-judge-profile-quick-result .scale-choice { display: flex !important; flex-direction: column; gap: 12px; align-items: stretch; }
  app-judge-profile-quick-result .scale-choice > strong { align-self: flex-start; }
  app-judge-profile-quick-result .answer-item > summary { grid-template-columns: 32px minmax(0,1fr) auto !important; }
  app-judge-profile-quick-result .answer-stats { flex-wrap: wrap; gap: 12px; }
  app-judge-profile-quick-result .answer-body { padding-inline: 12px !important; }
}
@media print {
  .profile-resume-collapsible > span { display: block !important; max-height: none !important; overflow: visible !important; }
  .profile-resume-toggle { display: none; }
}
