/* Decision-first, compact layouts for the two high-density detail modules. */
.market-audit-module,
.model-collab-module {
  margin-top: 10px;
  border-color: rgba(121, 232, 163, .2);
  border-radius: 13px;
  background: linear-gradient(145deg, #10241b 0%, #0d1d16 100%);
}

.market-audit-module > summary,
.model-collab-module > summary {
  min-height: 56px;
  padding: 11px 14px;
}

.market-audit-module > summary > span,
.model-collab-module > summary > span {
  min-width: 0;
}

.rework-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 170px;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(121, 232, 163, .3);
  border-radius: 999px;
  color: var(--green);
  background: rgba(121, 232, 163, .08);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.rework-summary-badge.warn {
  border-color: rgba(239, 198, 108, .35);
  color: var(--gold);
  background: rgba(239, 198, 108, .08);
}

.rework-summary-badge.bad {
  border-color: rgba(255, 138, 125, .35);
  color: var(--red);
  background: rgba(255, 138, 125, .08);
}

.market-audit-body,
.model-collab-body {
  padding: 12px;
}

.rework-module-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .34fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(121, 232, 163, .16);
  border-radius: 11px;
  background: rgba(5, 17, 11, .28);
}

.rework-module-hero .eyebrow {
  margin-bottom: 5px;
  font-size: 10px;
}

.rework-module-hero h3 {
  margin: 0;
  color: #f2fff5;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.rework-module-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.rework-action-box {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 11px 12px;
  border-left: 1px solid rgba(121, 232, 163, .2);
  background: rgba(121, 232, 163, .045);
}

.rework-action-box span,
.rework-action-box small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.rework-action-box strong {
  color: #f2fff5;
  font-size: 15px;
  line-height: 1.35;
}

.rework-scan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.rework-metric,
.rework-collab-metric {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(222, 247, 230, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
}

.rework-metric > span,
.rework-collab-metric > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.rework-metric > strong,
.rework-collab-metric > strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #f2fff5;
  font-size: 15px;
  line-height: 1.25;
}

.rework-metric > p,
.rework-collab-metric > p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.rework-metric.warn,
.rework-collab-metric.warn {
  border-color: rgba(239, 198, 108, .24);
  background: rgba(239, 198, 108, .045);
}

.rework-metric.warn > strong,
.rework-collab-metric.warn > strong {
  color: var(--gold);
}

.rework-metric.bad,
.rework-collab-metric.bad {
  border-color: rgba(255, 138, 125, .24);
  background: rgba(255, 138, 125, .045);
}

.rework-metric.bad > strong,
.rework-collab-metric.bad > strong {
  color: var(--red);
}

.rework-evidence-section {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(222, 247, 230, .1);
  border-radius: 11px;
  background: rgba(5, 17, 11, .2);
}

.rework-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rework-section-head > div:first-child > p,
.rework-label,
.rework-trace-head > p {
  margin: 0 0 3px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rework-section-head h3 {
  margin: 0;
  color: #edf9f0;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.rework-section-head > div:first-child > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.rework-section-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.rework-audit-pill,
.rework-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(121, 232, 163, .2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(121, 232, 163, .05);
  font-size: 10px;
  line-height: 1.25;
}

.rework-audit-pill b,
.rework-pill b {
  color: #dceee2;
  font-weight: 700;
}

.rework-audit-pill small {
  color: var(--muted);
}

.rework-audit-pill.warn,
.rework-pill.warn {
  border-color: rgba(239, 198, 108, .25);
  color: var(--gold);
  background: rgba(239, 198, 108, .05);
}

.rework-audit-pill.bad,
.rework-pill.bad {
  border-color: rgba(255, 138, 125, .25);
  color: var(--red);
  background: rgba(255, 138, 125, .05);
}

.rework-evidence-grid,
.rework-collab-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.rework-evidence-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(222, 247, 230, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .032);
}

.rework-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.rework-card-head .rework-label {
  margin-bottom: 4px;
}

.rework-card-head h4 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #f0fff4;
  font-size: 14px;
  line-height: 1.3;
}

.rework-card-note,
.rework-card-foot {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.rework-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.rework-inline-stats b {
  color: #edf9f0;
}

.rework-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.rework-mini-grid .rework-metric {
  padding: 8px 9px;
  border-radius: 7px;
}

.rework-mini-grid .rework-metric > strong {
  font-size: 13px;
}

.rework-subblock {
  margin-top: 10px;
}

.rework-subblock > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.rework-compact-list,
.rework-trigger-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rework-compact-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
  font-size: 11px;
  line-height: 1.35;
}

.rework-compact-list li b {
  color: #e4f2e8;
}

.rework-compact-list li span {
  color: var(--muted);
  text-align: right;
}

.rework-observations {
  display: grid;
  gap: 5px;
}

.rework-observations > article,
.rework-trigger-list li {
  padding: 7px 8px;
  border-left: 2px solid rgba(121, 232, 163, .35);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, .035);
}

.rework-observations > article strong,
.rework-trigger-list li b {
  display: block;
  color: #e6f5eb;
  font-size: 11px;
}

.rework-observations > article span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.rework-observations > article p,
.rework-trigger-list li span {
  display: block;
  margin: 3px 0 0;
  color: #c6d6cc;
  font-size: 11px;
  line-height: 1.45;
}

.rework-trigger-list {
  margin-top: 10px;
}

.rework-trigger-list li {
  border-left-color: rgba(239, 198, 108, .42);
}

.rework-trigger-list li b {
  color: var(--gold);
}

.rework-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rework-tag-list span {
  display: inline-flex;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .055);
  color: #c7d8cd;
  font-size: 10px;
  line-height: 1.35;
}

.rework-signal-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border-left: 2px solid rgba(121, 232, 163, .4);
  border-radius: 0 7px 7px 0;
  background: rgba(255, 255, 255, .035);
}

.rework-signal-row > span {
  align-self: start;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(121, 232, 163, .1);
  color: var(--green);
  font-size: 10px;
}

.rework-signal-row strong {
  display: block;
  color: #e6f5eb;
  font-size: 11px;
}

.rework-signal-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.rework-signal-row.warn {
  border-left-color: rgba(239, 198, 108, .55);
}

.rework-signal-row.warn > span {
  color: var(--gold);
  background: rgba(239, 198, 108, .1);
}

.rework-signal-row.bad {
  border-left-color: rgba(255, 138, 125, .55);
}

.rework-signal-row.bad > span {
  color: var(--red);
  background: rgba(255, 138, 125, .1);
}

.rework-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.rework-more,
.rework-raw,
.rework-deep-trace {
  margin-top: 8px;
  border: 1px solid rgba(222, 247, 230, .1);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
}

.rework-more summary,
.rework-raw summary,
.rework-deep-trace summary {
  padding: 7px 8px;
  cursor: pointer;
  color: #cde6d5;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
}

.rework-more summary::-webkit-details-marker,
.rework-raw summary::-webkit-details-marker,
.rework-deep-trace summary::-webkit-details-marker {
  display: none;
}

.rework-more summary::before,
.rework-raw summary::before,
.rework-deep-trace summary::before {
  content: "+";
  display: inline-block;
  width: 15px;
  color: var(--green);
}

.rework-more[open] summary::before,
.rework-raw[open] summary::before,
.rework-deep-trace[open] summary::before {
  content: "−";
}

.rework-more > div,
.rework-raw > div,
.rework-deep-body {
  padding: 0 8px 8px;
}

.rework-raw {
  margin-top: 12px;
}

.rework-raw > p {
  margin: 0;
  padding: 0 8px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.rework-more-inline {
  border: 0;
  background: transparent;
}

.rework-more-inline summary {
  padding: 5px 0;
  color: var(--muted);
  font-size: 10px;
}

.rework-more-inline > div {
  padding: 0;
}

.rework-collab-columns {
  align-items: start;
}

.rework-collab-rows {
  display: grid;
  gap: 0;
  margin-top: 7px;
}

.rework-collab-row {
  display: grid;
  grid-template-columns: minmax(84px, .32fr) minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid rgba(222, 247, 230, .08);
}

.rework-collab-row:first-child {
  border-top: 0;
}

.rework-collab-row > span {
  color: var(--muted);
  font-size: 10px;
}

.rework-collab-row > strong {
  overflow-wrap: anywhere;
  color: #edf9f0;
  font-size: 12px;
  line-height: 1.35;
}

.rework-collab-row > small {
  grid-column: 2;
  margin-top: -5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.rework-advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.rework-advanced-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(222, 247, 230, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}

.rework-advanced-card > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.rework-advanced-card > strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #edf9f0;
  font-size: 12px;
  line-height: 1.3;
}

.rework-advanced-card > p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.rework-advanced-card.warn {
  border-color: rgba(239, 198, 108, .22);
}

.rework-advanced-card.warn > strong {
  color: var(--gold);
}

.rework-advanced-card.bad {
  border-color: rgba(255, 138, 125, .22);
}

.rework-advanced-card.bad > strong {
  color: var(--red);
}

.rework-deep-trace {
  margin-top: 12px;
}

.rework-deep-trace > summary {
  padding: 10px;
}

.rework-trace-section {
  margin-top: 9px;
  padding: 10px;
  border: 1px solid rgba(222, 247, 230, .09);
  border-radius: 8px;
  background: rgba(5, 17, 11, .2);
}

.rework-trace-section:first-child {
  margin-top: 0;
}

.rework-trace-head {
  margin-bottom: 7px;
}

.rework-trace-head h3 {
  margin: 0;
  color: #edf9f0;
  font-size: 13px;
}

.rework-model-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.rework-model-list > article {
  position: relative;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(222, 247, 230, .08);
  border-radius: 7px;
  background: rgba(255, 255, 255, .03);
}

.rework-model-list > article > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
}

.rework-model-list strong {
  overflow-wrap: anywhere;
  color: #edf9f0;
  font-size: 11px;
}

.rework-model-list span {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 10px;
}

.rework-model-list p {
  max-width: calc(100% - 80px);
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.rework-model-list em {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: rgba(207, 231, 215, .52);
  font-size: 9px;
  font-style: normal;
}

.rework-trace-block {
  margin-top: 10px;
}

.rework-trace-block:first-child {
  margin-top: 0;
}

.rework-trace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rework-trace-item {
  padding: 7px 8px;
  border-left: 2px solid rgba(121, 232, 163, .32);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, .03);
}

.rework-trace-item strong {
  color: #e6f5eb;
  font-size: 11px;
}

.rework-trace-item span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
}

.rework-trace-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.rework-advanced-grid-dense {
  margin-bottom: 8px;
}

.rework-source-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid rgba(121, 232, 163, .14);
  border-radius: 9px;
  background: rgba(121, 232, 163, .035);
}

.rework-source-strip > div {
  min-width: 0;
  padding: 8px 10px;
  border-left: 1px solid rgba(222, 247, 230, .08);
}

.rework-source-strip > div:first-child {
  border-left: 0;
}

.rework-source-strip span,
.rework-source-strip strong {
  display: block;
  overflow-wrap: anywhere;
}

.rework-source-strip span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.rework-source-strip strong {
  margin-top: 3px;
  color: #dfefe4;
  font-size: 11px;
  line-height: 1.35;
}

.rework-compact-disclosure {
  margin-top: 8px;
  border-top: 1px solid rgba(222, 247, 230, .08);
}

.rework-compact-disclosure > summary {
  padding: 7px 0 5px;
  cursor: pointer;
  color: #bdd0c3;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
}

.rework-compact-disclosure > summary::-webkit-details-marker {
  display: none;
}

.rework-compact-disclosure > summary::before {
  content: "+";
  display: inline-block;
  width: 14px;
  color: var(--green);
}

.rework-compact-disclosure[open] > summary::before {
  content: "−";
}

.rework-compact-disclosure .rework-compact-list,
.rework-compact-disclosure .rework-observations,
.rework-compact-disclosure > .rework-empty {
  margin-top: 3px;
}

.rework-condition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.rework-condition-grid > div {
  padding: 8px;
  border: 1px solid rgba(121, 232, 163, .16);
  border-radius: 7px;
  background: rgba(121, 232, 163, .035);
}

.rework-condition-grid > div.invalid {
  border-color: rgba(239, 198, 108, .2);
  background: rgba(239, 198, 108, .035);
}

.rework-condition-grid span {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.rework-condition-grid .invalid span {
  color: var(--gold);
}

.rework-condition-grid ul {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.rework-condition-grid li {
  color: #c6d6cc;
  font-size: 10px;
  line-height: 1.4;
}

.rework-state-dot {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(121, 232, 163, .08);
  font-size: 9px;
  line-height: 1.3;
}

.rework-state-dot.warn {
  color: var(--gold);
  background: rgba(239, 198, 108, .08);
}

.rework-state-dot.bad {
  color: var(--red);
  background: rgba(255, 138, 125, .08);
}

.rework-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(121, 232, 163, .18);
  border-radius: 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.rework-inline-link:hover {
  background: rgba(121, 232, 163, .07);
}

.rework-section-disclosure {
  margin-top: 12px;
  border: 1px solid rgba(121, 232, 163, .15);
  border-radius: 9px;
  background: rgba(5, 17, 11, .18);
}

.rework-section-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.rework-section-disclosure > summary::-webkit-details-marker {
  display: none;
}

.rework-section-disclosure > summary > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  flex: 1;
}

.rework-section-disclosure > summary b {
  color: #dceee2;
  font-size: 11px;
  line-height: 1.35;
}

.rework-section-disclosure > summary small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.rework-section-disclosure > summary i {
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  transition: transform .18s ease;
}

.rework-section-disclosure[open] > summary i {
  transform: rotate(180deg);
}

.rework-section-disclosure > div {
  padding: 0 9px 9px;
}

.rework-section-disclosure > div > .rework-evidence-section:first-child {
  margin-top: 0;
}

/* Expanded content is intentionally denser than the top-level scan. */
.market-audit-module .rework-more summary,
.model-collab-module .rework-more summary,
.model-collab-module .rework-deep-trace > summary {
  font-size: 10px;
}

.model-collab-module .rework-deep-body,
.market-audit-module .rework-compact-disclosure,
.model-collab-module .rework-compact-disclosure {
  font-size: 10px;
}

.rework-module-hero :focus-visible,
.rework-evidence-section :focus-visible,
.rework-deep-trace :focus-visible,
.rework-raw :focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .rework-scan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rework-advanced-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rework-source-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rework-source-strip > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(222, 247, 230, .08);
  }

  .rework-source-strip > div:nth-child(4) {
    border-top: 1px solid rgba(222, 247, 230, .08);
  }
}

@media (max-width: 640px) {
  .market-audit-module > summary,
  .model-collab-module > summary {
    align-items: flex-start;
    gap: 7px;
  }

  .rework-summary-badge {
    max-width: 104px;
    padding-inline: 6px;
    font-size: 10px;
  }

  .market-audit-body,
  .model-collab-body {
    padding: 9px;
  }

  .rework-module-hero {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 11px;
  }

  .rework-module-hero h3 {
    font-size: 18px;
  }

  .rework-action-box {
    border-top: 1px solid rgba(121, 232, 163, .18);
    border-left: 0;
    padding: 9px 0 0;
  }

  .rework-scan-grid,
  .rework-evidence-grid,
  .rework-collab-columns,
  .rework-advanced-grid,
  .rework-model-list {
    grid-template-columns: 1fr;
  }

  .rework-evidence-section {
    padding: 9px;
  }

  .rework-section-head {
    display: grid;
    gap: 7px;
  }

  .rework-section-pills {
    justify-content: flex-start;
  }

  .rework-mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rework-collab-row {
    grid-template-columns: minmax(74px, .38fr) minmax(0, 1fr);
  }

  .rework-condition-grid {
    grid-template-columns: 1fr;
  }
}

/* 所有单场详情折叠项共用同一套文字提示与独立箭头状态。 */
#matchDetail summary.detail-disclosure-summary::before,
#matchDetail summary.detail-disclosure-summary::after {
  display: none !important;
  content: none !important;
}

#matchDetail .detail-disclosure-affordance,
#matchDetail .detail-module > summary > .detail-disclosure-affordance {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: max-content;
  margin-left: auto;
}

#matchDetail .detail-expand-hint {
  color: #9fb6a8;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
}

#matchDetail details > summary .detail-expand-hint .when-open {
  display: none;
}

#matchDetail details[open] > summary .detail-expand-hint .when-closed {
  display: none;
}

#matchDetail details[open] > summary .detail-expand-hint .when-open {
  display: inline;
}

#matchDetail .detail-expand-arrow,
#matchDetail .detail-module[open] summary .detail-expand-arrow,
#matchDetail details[open] > summary .detail-expand-arrow {
  position: relative;
  display: inline-grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--green);
  font-size: 0;
  line-height: 1;
  transform: none !important;
}

#matchDetail .detail-expand-arrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transform-origin: center;
  transition: transform .18s ease;
}

#matchDetail details[open] > summary .detail-expand-arrow::before {
  transform: translateY(2px) rotate(225deg);
}

#matchDetail :is(.rework-compact-disclosure, .rework-deep-trace, .rework-section-disclosure, .rework-more) > summary.detail-disclosure-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

#matchDetail :is(.market-audit-module, .model-collab-module).warn .detail-expand-arrow {
  color: var(--gold);
}

#matchDetail :is(.market-audit-module, .model-collab-module).bad .detail-expand-arrow {
  color: var(--red);
}

@media (max-width: 640px) {
  #matchDetail .detail-disclosure-affordance {
    gap: 3px;
  }

  #matchDetail .detail-expand-hint {
    font-size: 8px;
  }

  #matchDetail .detail-expand-arrow {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
}

/* Rounded risk-console treatment for all visible containers and disclosures. */
.market-audit-module,
.model-collab-module {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.market-audit-module.warn,
.model-collab-module.warn {
  border-color: rgba(239, 198, 108, .48);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(239, 198, 108, .08);
}

.market-audit-module.bad,
.model-collab-module.bad {
  border-color: rgba(255, 138, 125, .56);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 138, 125, .1);
}

.rework-module-hero,
.rework-action-box,
.rework-metric,
.rework-collab-metric,
.rework-evidence-section,
.rework-evidence-card,
.rework-advanced-card,
.rework-trace-section,
.rework-model-list > article,
.rework-source-strip,
.rework-condition-grid > div,
.rework-inline-link,
.rework-compact-list li,
.rework-signal-row,
.rework-observations > article,
.rework-trigger-list li,
.rework-trace-item,
.rework-more,
.rework-raw,
.rework-deep-trace,
.rework-section-disclosure,
.rework-compact-disclosure {
  border-radius: 12px;
}

.rework-module-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.rework-module-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: var(--green);
}

.market-audit-module.warn .rework-module-hero::before,
.model-collab-module.warn .rework-module-hero::before {
  background: var(--gold);
}

.market-audit-module.bad .rework-module-hero::before,
.model-collab-module.bad .rework-module-hero::before {
  background: var(--red);
}

.rework-action-box {
  border: 1px solid rgba(121, 232, 163, .12);
}

.market-audit-module.warn .rework-action-box,
.model-collab-module.warn .rework-action-box {
  border-color: rgba(239, 198, 108, .22);
  background: rgba(239, 198, 108, .055);
}

.market-audit-module.bad .rework-action-box,
.model-collab-module.bad .rework-action-box {
  border-color: rgba(255, 138, 125, .26);
  background: rgba(255, 138, 125, .06);
}

.rework-source-strip {
  overflow: hidden;
}

.rework-mini-grid .rework-metric,
.rework-tag-list span,
.rework-state-dot,
.rework-audit-pill,
.rework-summary-badge {
  border-radius: 999px;
}

.rework-mini-grid .rework-metric {
  border-radius: 10px;
}

.rework-observations > article,
.rework-trigger-list li,
.rework-signal-row,
.rework-trace-item {
  border: 1px solid rgba(222, 247, 230, .09);
  border-left-width: 3px;
}

.rework-observations > article,
.rework-signal-row,
.rework-trace-item {
  border-left-color: rgba(121, 232, 163, .48);
}

.rework-trigger-list li {
  border-left-color: rgba(239, 198, 108, .58);
}

.rework-signal-row.warn,
.market-audit-module.warn .rework-alert-card {
  border-color: rgba(239, 198, 108, .28);
  background: rgba(239, 198, 108, .055);
}

.rework-signal-row.bad,
.market-audit-module.bad .rework-alert-card {
  border-color: rgba(255, 138, 125, .32);
  background: rgba(255, 138, 125, .06);
}

.rework-compact-disclosure {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid rgba(222, 247, 230, .1);
  background: rgba(7, 20, 13, .42);
  transition: border-color .18s ease, background .18s ease;
}

.rework-compact-disclosure > summary {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  color: #d8e9dd;
  font-size: 10px;
}

.rework-compact-disclosure > summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 1px solid rgba(121, 232, 163, .22);
  border-radius: 999px;
  color: var(--green);
  background: rgba(121, 232, 163, .07);
  line-height: 1;
}

.rework-compact-disclosure[open] {
  border-color: rgba(121, 232, 163, .24);
  background: rgba(10, 29, 19, .58);
}

.rework-compact-disclosure[open] > summary::before {
  content: "−";
}

.rework-compact-disclosure > .rework-compact-list,
.rework-compact-disclosure > .rework-observations,
.rework-compact-disclosure > .rework-empty {
  margin: 0 10px 10px;
}

.rework-section-disclosure,
.rework-deep-trace,
.rework-more {
  overflow: hidden;
  border-color: rgba(121, 232, 163, .16);
  background: linear-gradient(145deg, rgba(17, 43, 29, .58), rgba(8, 24, 15, .58));
}

.rework-section-disclosure > summary,
.rework-deep-trace > summary,
.rework-more > summary {
  min-height: 46px;
  padding: 9px 11px;
  transition: background .18s ease, color .18s ease;
}

.rework-section-disclosure > summary:hover,
.rework-deep-trace > summary:hover,
.rework-more > summary:hover {
  background: rgba(121, 232, 163, .055);
}

.rework-section-disclosure[open],
.rework-deep-trace[open],
.rework-more[open] {
  border-color: rgba(121, 232, 163, .28);
}

.rework-section-disclosure > summary i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(121, 232, 163, .2);
  border-radius: 999px;
  background: rgba(121, 232, 163, .07);
}

.market-audit-module.warn .rework-section-disclosure,
.market-audit-module.warn .rework-deep-trace {
  border-color: rgba(239, 198, 108, .22);
}

.market-audit-module.bad .rework-section-disclosure,
.market-audit-module.bad .rework-deep-trace {
  border-color: rgba(255, 138, 125, .26);
}

.rework-inline-link:focus-visible,
.rework-compact-disclosure > summary:focus-visible,
.rework-section-disclosure > summary:focus-visible,
.rework-deep-trace > summary:focus-visible,
.rework-more > summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.market-audit-module.warn .rework-section-disclosure > summary:focus-visible,
.market-audit-module.warn .rework-compact-disclosure > summary:focus-visible {
  outline-color: var(--gold);
}

.market-audit-module.bad .rework-section-disclosure > summary:focus-visible,
.market-audit-module.bad .rework-compact-disclosure > summary:focus-visible {
  outline-color: var(--red);
}

@media (max-width: 640px) {
  .rework-action-box {
    padding: 9px;
  }

  .rework-scan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rework-section-disclosure > summary {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rework-compact-disclosure,
  .rework-section-disclosure > summary,
  .rework-section-disclosure > summary i,
  .rework-deep-trace > summary,
  .rework-more > summary {
    transition: none;
  }
}

/* 单场详情的信息层级：正式结论最大，执行判断次之，证据与追溯最紧凑。 */
#matchDetail .detail-modules-head {
  padding: 17px 0 10px;
}

#matchDetail .detail-modules-head h2 {
  max-width: 620px;
  font-size: clamp(22px, 2.35vw, 28px);
  line-height: 1.16;
}

#matchDetail .detail-modules-head > p:last-child {
  margin-top: 7px;
  font-size: 12px;
}

#matchDetail .model-summary {
  padding: clamp(16px, 1.9vw, 22px);
  border-radius: 18px;
}

#matchDetail .model-summary-head {
  margin-bottom: 12px;
}

#matchDetail .model-summary-head h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.16;
}

#matchDetail .model-summary-head > div:first-child > p:last-child {
  margin-top: 6px;
  font-size: 12.5px;
}

#matchDetail .summary-card {
  min-height: 104px;
  padding: 12px;
  border-radius: 13px;
}

#matchDetail .summary-card strong,
#matchDetail .model-metric strong {
  margin-top: 5px;
  font-size: clamp(15px, 1.55vw, 18px);
}

#matchDetail .summary-card p,
#matchDetail .model-metric p {
  padding-top: 6px;
  font-size: 11.5px;
  line-height: 1.48;
}

#matchDetail .summary-key-reasons,
#matchDetail .model-explanation {
  margin-top: 10px;
  padding: 12px;
  border-radius: 13px;
}

#matchDetail .summary-key-reasons h3 {
  font-size: 16px;
}

#matchDetail .summary-key-reasons li {
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 11.5px;
}

#matchDetail .module-group {
  margin-top: 14px;
  padding: clamp(12px, 1.5vw, 16px);
  border-radius: 16px;
}

#matchDetail .module-group-head {
  margin-bottom: 9px;
}

#matchDetail .module-group-head h3 {
  font-size: clamp(18px, 1.9vw, 22px);
}

#matchDetail .module-group-head span {
  font-size: 11px;
}

#matchDetail .market-overview-module {
  padding: 14px;
  border-radius: 14px;
}

#matchDetail .market-overview-module-head h4 {
  font-size: 18px;
}

#matchDetail .market-overview-pane {
  padding: 14px;
  border-radius: 12px;
}

#matchDetail .market-overview-pane-head h5 {
  font-size: clamp(17px, 1.9vw, 21px);
}

#matchDetail .detail-module {
  border-radius: 16px;
}

#matchDetail .detail-module > summary {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 13px;
  gap: 10px;
}

#matchDetail .detail-module > summary > span {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
}

#matchDetail .detail-module > summary b {
  font-size: 14px;
  line-height: 1.25;
}

#matchDetail .detail-module > summary small {
  font-size: 10.5px;
  line-height: 1.35;
}

#matchDetail .detail-module > summary > i {
  display: grid;
  flex: 0 0 26px;
  align-self: center;
  place-items: center;
  width: 26px;
  height: 26px;
  line-height: 1;
}

#matchDetail :is(.rework-summary-badge, .detail-preview-badge) {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  justify-content: center;
  max-width: 168px;
  min-height: 28px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid rgba(121, 232, 163, .36);
  border-radius: 999px;
  color: var(--green);
  background: rgba(121, 232, 163, .08);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

#matchDetail :is(.rework-summary-badge, .detail-preview-badge).warn {
  border-color: rgba(239, 198, 108, .48);
  color: var(--gold);
  background: rgba(239, 198, 108, .085);
}

#matchDetail :is(.rework-summary-badge, .detail-preview-badge).bad {
  border-color: rgba(255, 138, 125, .5);
  color: var(--red);
  background: rgba(255, 138, 125, .085);
}

#matchDetail .detail-module-body {
  padding: 14px;
}

#matchDetail .asian-section {
  margin-top: 12px;
  padding: 13px;
  border-radius: 13px;
}

#matchDetail .asian-section-head {
  grid-template-columns: 76px minmax(0, 1fr);
  margin-bottom: 10px;
}

#matchDetail .asian-section-head h3 {
  font-size: 16px;
}

#matchDetail .asian-section-head span {
  font-size: 11px;
}

#matchDetail .asian-lead {
  padding-bottom: 15px;
}

#matchDetail .asian-lead h3 {
  font-size: clamp(20px, 2.3vw, 26px);
}

#matchDetail .asian-lead p:not(.eyebrow) {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.5;
}

#matchDetail .asian-metric {
  min-height: 92px;
  padding: 11px;
  border-radius: 11px;
}

#matchDetail .asian-metric strong {
  margin: 5px 0;
  font-size: 15px;
}

#matchDetail .asian-metric p,
#matchDetail .asian-metric span {
  font-size: 11px;
}

#matchDetail :is(.rework-module-hero, .rework-evidence-section, .rework-evidence-card, .rework-trace-section) {
  border-radius: 13px;
}

#matchDetail .rework-module-hero h3 {
  font-size: clamp(17px, 1.8vw, 21px);
}

#matchDetail .rework-evidence-section {
  margin-top: 10px;
  padding: 11px;
}

@media (max-width: 640px) {
  #matchDetail .model-summary,
  #matchDetail .module-group,
  #matchDetail .market-overview-module {
    padding: 11px;
  }

  #matchDetail .summary-read-grid,
  #matchDetail .summary-support-grid,
  #matchDetail .summary-key-reasons {
    grid-template-columns: 1fr;
  }

  #matchDetail .summary-card {
    min-height: 0;
  }

  #matchDetail .detail-module > summary {
    min-height: 58px;
    padding: 10px 11px;
  }

  #matchDetail .detail-module > summary small {
    max-width: 205px;
  }

  #matchDetail :is(.rework-summary-badge, .detail-preview-badge) {
    max-width: 94px;
    min-height: 26px;
    padding: 4px 8px;
    font-size: 10px;
  }

  #matchDetail .detail-module-body {
    padding: 11px;
  }

  #matchDetail .asian-section-head {
    grid-template-columns: 1fr;
  }
}

/* 资深玩家阅读阶梯：只重排市场快照、指数轨迹和四个专项模型，不改变数据或交互。 */
#matchDetail :is(
  .decision-evidence-module,
  .asian-index-module,
  .lottery-handicap-module,
  .score-model-module,
  .market-trajectory-module
) {
  --specialist-line: rgba(172, 215, 190, .2);
  --specialist-surface: rgba(4, 22, 14, .42);
  --specialist-soft: rgba(255, 255, 255, .025);
}

/* 亚盘市场：即时盘是执行基准，初盘是参照，盘差只在真实移动时着色。 */
#matchDetail .market-asian-pane {
  padding: 13px;
  border-color: rgba(121, 232, 163, .28);
  background:
    linear-gradient(120deg, rgba(121, 232, 163, .045), transparent 48%),
    rgba(4, 22, 14, .42);
}

#matchDetail .market-asian-pane .market-overview-pane-head {
  align-items: end;
  margin-bottom: 10px;
}

#matchDetail .market-asian-pane .market-overview-pane-head h5 {
  font-size: clamp(18px, 2vw, 22px);
}

#matchDetail .market-asian-pane .market-overview-pane-head > p {
  max-width: 48ch;
  font-size: 11px;
  line-height: 1.45;
}

#matchDetail .market-asian-grid {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

#matchDetail .market-asian-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78px;
  padding: 10px 11px;
  border-radius: 11px;
}

#matchDetail .market-asian-metric.is-opening {
  grid-column: span 2;
}

#matchDetail .market-asian-metric.is-current {
  grid-column: span 3;
  border-color: rgba(121, 232, 163, .52);
  background: rgba(121, 232, 163, .075);
}

#matchDetail .market-asian-metric.is-delta {
  grid-column: span 1;
  text-align: center;
}

#matchDetail .market-asian-metric.is-water {
  grid-column: span 2;
}

#matchDetail .market-asian-metric span,
#matchDetail .market-asian-metric small {
  font-size: 10.5px;
  line-height: 1.35;
}

#matchDetail .market-asian-metric strong {
  margin: 4px 0 2px;
  font-size: 14px;
  line-height: 1.25;
}

#matchDetail .market-asian-metric.is-current strong {
  color: #f3fff7;
  font-size: clamp(19px, 2.1vw, 24px);
}

#matchDetail .market-asian-metric.is-opening strong {
  font-size: 17px;
}

#matchDetail .market-asian-metric.is-moved {
  border-color: rgba(239, 198, 108, .66);
  color: var(--gold);
  background: rgba(239, 198, 108, .075);
}

#matchDetail .market-asian-metric.is-moved strong,
#matchDetail .market-asian-metric.is-moved small {
  color: var(--gold);
}

/* 指数轨迹：时间是元数据，首次/上次至今的变化才是主信息。 */
#matchDetail .market-trajectory-module .detail-module-body {
  padding: 12px;
}

#matchDetail .market-trajectory-module .market-command-lead {
  align-items: center;
  padding: 0 1px 13px;
  gap: 12px;
}

#matchDetail .market-trajectory-module .market-command-lead h3 {
  font-size: clamp(19px, 2.1vw, 24px);
}

#matchDetail .market-trajectory-module .market-command-lead p:not(.eyebrow) {
  max-width: 64ch;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
}

#matchDetail .market-trajectory-module .market-command-lead > span {
  min-height: 28px;
  font-size: 11px;
}

#matchDetail .market-trajectory-module .module-audit {
  margin: 10px 0;
  padding: 9px 11px;
  font-size: 11px;
}

#matchDetail .trajectory-summary-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

#matchDetail .trajectory-summary-grid .market-command-metric {
  min-height: 70px;
  padding: 9px 10px;
  border-radius: 10px;
}

#matchDetail .trajectory-summary-grid .market-command-metric.is-meta {
  grid-column: span 2;
  opacity: .86;
}

#matchDetail .trajectory-summary-grid .market-command-metric.is-key {
  grid-column: span 4;
  min-height: 84px;
  border-color: rgba(121, 232, 163, .38);
  background: rgba(121, 232, 163, .05);
}

#matchDetail .trajectory-summary-grid .market-command-metric span {
  font-size: 10px;
}

#matchDetail .trajectory-summary-grid .market-command-metric strong {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

#matchDetail .trajectory-summary-grid .market-command-metric.is-key strong {
  font-size: 14px;
}

#matchDetail .market-trajectory-module .trajectory-table-panel {
  padding: 10px;
  border-radius: 11px;
}

#matchDetail .market-trajectory-module .trajectory-table-panel + .trajectory-table-panel {
  margin-top: 10px;
}

#matchDetail .market-trajectory-module .market-overview-pane-head {
  margin-bottom: 8px;
}

#matchDetail .market-trajectory-module .market-overview-pane-head h5 {
  font-size: 15px;
}

#matchDetail .market-trajectory-module .market-scroll-hint {
  font-size: 10px;
}

#matchDetail .market-trajectory-module :is(.trajectory-segment-table, .trajectory-recent-table) th,
#matchDetail .market-trajectory-module :is(.trajectory-segment-table, .trajectory-recent-table) td {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

#matchDetail .market-trajectory-module .trajectory-direction {
  color: #edf9f1;
  font-weight: 800;
}

#matchDetail .market-trajectory-module .trajectory-recent-table tr.is-latest {
  background: rgba(121, 232, 163, .075);
}

#matchDetail .market-trajectory-module .trajectory-recent-table tr.is-latest th {
  color: var(--green);
}

/* 主结果决策模型：概率、风险和执行门控突出，解释与完整依据收紧。 */
#matchDetail .decision-evidence-module .model-evidence-body {
  padding: 12px;
}

#matchDetail .decision-evidence-module .decision-evidence-intro {
  margin-bottom: 10px;
  padding-bottom: 9px;
}

#matchDetail .decision-evidence-module .decision-evidence-intro p:last-child {
  font-size: 11px;
  line-height: 1.5;
}

#matchDetail .decision-evidence-module .decision-consistency {
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .8fr);
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px;
  border-radius: 12px;
}

#matchDetail .decision-evidence-module .decision-consistency h3 {
  font-size: 17px;
}

#matchDetail .decision-evidence-module .decision-consistency p:last-child,
#matchDetail .decision-evidence-module .decision-evidence-guide {
  font-size: 11px;
  line-height: 1.48;
}

#matchDetail .decision-evidence-module .decision-consistency dl div {
  padding: 7px 9px;
}

#matchDetail .decision-evidence-module .decision-evidence-section {
  margin-top: 9px;
  padding: 10px 11px 0;
  border: 1px solid rgba(172, 215, 190, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .018);
}

#matchDetail .decision-evidence-module .decision-evidence-section-head {
  gap: 3px;
  margin-bottom: 9px;
}

#matchDetail .decision-evidence-module .decision-evidence-section-head > p:first-child {
  font-size: 10px;
}

#matchDetail .decision-evidence-module .decision-evidence-section-head h3 {
  font-size: 16px;
}

#matchDetail .decision-evidence-module .model-metric {
  min-height: 78px;
  padding: 10px;
  border-radius: 10px;
}

#matchDetail .decision-evidence-module .model-metric > span {
  font-size: 10.5px;
}

#matchDetail .decision-evidence-module .model-metric strong {
  margin-top: 4px;
  font-size: 14px;
}

#matchDetail .decision-evidence-module .model-metric p {
  padding-top: 5px;
  font-size: 10.5px;
  line-height: 1.45;
}

#matchDetail .decision-evidence-module .model-metric.is-key {
  min-height: 88px;
  border-color: rgba(121, 232, 163, .45);
}

#matchDetail .decision-evidence-module .model-metric.is-key strong {
  font-size: 17px;
}

#matchDetail .decision-evidence-module .decision-evidence-section:has(.model-metric.bad) {
  border-color: rgba(255, 138, 125, .52);
}

#matchDetail .decision-evidence-module .decision-evidence-section:has(.model-metric.warn) {
  border-color: rgba(239, 198, 108, .44);
}

#matchDetail .decision-evidence-module [aria-labelledby="decision-score-title"] {
  padding-bottom: 10px;
}

#matchDetail .decision-evidence-module .decision-full-reasons {
  margin-top: 10px;
  padding-top: 8px;
}

#matchDetail .decision-evidence-module .decision-full-reasons > summary {
  min-height: 38px;
  font-size: 11px;
}

#matchDetail .decision-evidence-module .model-reasons p {
  margin: 6px 0;
  padding: 8px 9px;
  font-size: 11px;
  line-height: 1.5;
}

/* 亚洲指数、体彩让球、比分：01 是结论，03-06 是决策，02/07/08 为辅助。 */
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .detail-module-body {
  padding: 11px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .module-reading-path {
  margin-bottom: 9px;
  padding: 0 1px 9px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .module-reading-path p {
  margin-bottom: 3px;
  font-size: 10px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .module-reading-path strong {
  font-size: 10.5px;
  line-height: 1.45;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section {
  margin-top: 9px;
  padding: 11px;
  border-radius: 12px;
  background: var(--specialist-soft);
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section + .asian-section {
  margin-top: 9px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section + .asian-section::before {
  display: none;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section-head {
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section-head > p {
  font-size: 9.5px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section-head h3 {
  font-size: 15px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section-head span {
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.4;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section.is-primary {
  padding: 13px;
  border-color: rgba(121, 232, 163, .46);
  background:
    linear-gradient(135deg, rgba(121, 232, 163, .07), transparent 52%),
    rgba(4, 22, 14, .46);
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section.is-primary .asian-section-head h3 {
  font-size: 17px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section.is-meta,
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section.is-trace {
  padding: 9px 10px;
  border-color: rgba(172, 215, 190, .14);
  background: rgba(255, 255, 255, .012);
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section.is-meta .asian-section-head,
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section.is-trace .asian-section-head {
  margin-bottom: 6px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section.is-meta .asian-section-head h3,
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section.is-trace .asian-section-head h3 {
  font-size: 13px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section:has(.asian-metric.bad) {
  border-color: rgba(255, 138, 125, .48);
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section:has(.asian-metric.warn):not(:has(.asian-metric.bad)) {
  border-color: rgba(239, 198, 108, .4);
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-lead {
  align-items: center;
  gap: 14px;
  padding-bottom: 11px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-lead h3 {
  font-size: clamp(21px, 2.4vw, 27px);
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-lead p:not(.eyebrow) {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.48;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-line {
  min-width: 138px;
  padding: 10px;
  border-color: rgba(121, 232, 163, .38);
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-line strong {
  font-size: 20px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-grid {
  gap: 8px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-core,
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-subgrid {
  margin-top: 9px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric {
  min-height: 76px;
  padding: 9px 10px;
  border-radius: 10px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric span,
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric p {
  font-size: 10.5px;
  line-height: 1.42;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric strong {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.3;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric.is-key {
  min-height: 88px;
  border-color: rgba(121, 232, 163, .42);
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric.is-key strong {
  font-size: 17px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric.is-meta {
  min-height: 64px;
  opacity: .86;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) :is(.asian-relationship-note, .asian-watch-list, .asian-audit[role="status"]) {
  padding: 9px 10px;
  border-radius: 10px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-relationship-note {
  margin-bottom: 7px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) :is(.asian-relationship-note, .asian-watch-list, .asian-audit[role="status"]) :is(p, span, b, strong) {
  font-size: 10.5px;
  line-height: 1.45;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-tags {
  gap: 5px;
  margin-top: 7px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-tags span {
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.4;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-empty {
  margin-top: 7px;
  padding: 8px 9px;
  font-size: 10.5px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-raw {
  margin-top: 8px;
  padding-top: 7px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-raw > summary {
  min-height: 36px;
  font-size: 10.5px;
}

#matchDetail .score-model-module .score-pills {
  gap: 6px;
  margin-top: 7px;
}

#matchDetail .score-model-module .score-pills span {
  min-width: 92px;
  padding: 7px 8px;
  border-radius: 9px;
  font-size: 10.5px;
}

#matchDetail .score-model-module .score-pills b {
  font-size: 11px;
}

#matchDetail .score-model-module .score-pills.main span {
  border-color: rgba(121, 232, 163, .62);
  background: rgba(121, 232, 163, .09);
}

#matchDetail .score-model-module .score-probability-compare {
  gap: 8px;
}

#matchDetail .score-model-module .score-probability-compare > section {
  padding: 9px;
  border-radius: 10px;
}

#matchDetail .score-model-module .score-probability-compare > section:first-child {
  border-color: rgba(121, 232, 163, .4);
}

@media (max-width: 760px) {
  #matchDetail .market-asian-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #matchDetail .market-asian-metric:is(.is-opening, .is-current, .is-water) {
    grid-column: span 1;
  }

  #matchDetail .market-asian-metric.is-delta {
    grid-column: 1 / -1;
    min-height: 58px;
  }

  #matchDetail .trajectory-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #matchDetail .trajectory-summary-grid .market-command-metric.is-meta {
    grid-column: span 1;
  }

  #matchDetail .trajectory-summary-grid .market-command-metric.is-key {
    grid-column: 1 / -1;
  }

  #matchDetail .decision-evidence-module .decision-consistency {
    grid-template-columns: 1fr;
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section-head {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric:is(.is-key, .is-risk) {
    grid-column: 1 / -1;
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-lead {
    display: grid;
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-line {
    grid-template-columns: auto 1fr;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  #matchDetail .market-asian-pane {
    padding: 10px;
  }

  #matchDetail .market-asian-metric {
    min-height: 70px;
    padding: 9px;
  }

  #matchDetail .market-asian-metric.is-current strong {
    font-size: 18px;
  }

  #matchDetail .market-trajectory-module .market-command-lead {
    display: grid;
  }

  #matchDetail .market-trajectory-module .market-command-lead > span {
    width: max-content;
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section {
    padding: 9px;
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section.is-primary {
    padding: 10px;
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric {
    padding: 8px;
  }
}

/* 专项模型决策账本：结论优先、支持项成对、技术追溯收起。 */
#matchDetail .specialist-models :is(.detail-module-body, .model-evidence-body) {
  box-sizing: border-box;
  padding: 14px;
}

#matchDetail .decision-evidence-module .decision-evidence-section {
  box-sizing: border-box;
  padding: 12px;
  overflow: visible;
}

#matchDetail .decision-evidence-module .decision-evidence-grid.two,
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-grid,
#matchDetail .asian-adjustment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

#matchDetail .decision-evidence-module .decision-evidence-grid.one {
  grid-template-columns: minmax(0, 1fr);
}

#matchDetail .decision-evidence-module .model-metric,
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric {
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  padding: 12px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric:is(.is-key, .is-risk),
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric:last-child:nth-child(odd),
#matchDetail .asian-adjustment-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section {
  box-sizing: border-box;
  display: flow-root;
  padding: 14px;
  overflow: visible;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section > :last-child {
  margin-bottom: 0;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section :is(.asian-grid, .asian-watch-list, .asian-tags, .score-tier-stack, .score-probability-compare, .asian-adjustment-grid, .asian-settlement-summary) + :is(.asian-grid, .asian-watch-list, .asian-tags, .score-tier-stack, .score-probability-compare, .asian-adjustment-grid, .asian-settlement-summary) {
  margin-top: 12px;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section-head h3 {
  font-size: 18px;
  line-height: 1.28;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section-head span,
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric p {
  font-size: 12px;
  line-height: 1.55;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric strong {
  font-size: 15px;
  line-height: 1.38;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric.is-key strong {
  font-size: 19px;
}

#matchDetail .asian-trace-intro {
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(172, 215, 190, .18);
}

#matchDetail .asian-trace-intro strong {
  color: #effbf3;
  font-size: 16px;
}

#matchDetail .asian-trace-intro p {
  max-width: 70ch;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

#matchDetail .asian-adjustment-grid {
  margin-top: 12px;
}

#matchDetail .asian-adjustment-card {
  box-sizing: border-box;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(172, 215, 190, .24);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
}

#matchDetail .asian-adjustment-card > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

#matchDetail .asian-adjustment-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

#matchDetail .asian-adjustment-card strong {
  color: #effbf3;
  font-size: 15px;
  line-height: 1.35;
}

#matchDetail .asian-adjustment-card b {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 14px;
}

#matchDetail .asian-adjustment-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

#matchDetail .asian-adjustment-card.bad {
  border-color: rgba(255, 138, 125, .5);
}

#matchDetail .asian-adjustment-card.warn {
  border-color: rgba(239, 198, 108, .46);
}

#matchDetail .asian-settlement-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(121, 232, 163, .4);
  border-radius: 11px;
  background: rgba(121, 232, 163, .055);
}

#matchDetail .asian-settlement-summary > div {
  min-width: 0;
}

#matchDetail .asian-settlement-summary span {
  color: var(--muted);
  font-size: 11px;
}

#matchDetail .asian-settlement-summary strong {
  display: block;
  margin-top: 4px;
  color: #effbf3;
  font-size: 16px;
}

#matchDetail .asian-settlement-summary > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(172, 215, 190, .16);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

#matchDetail .score-model-module .score-pills,
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#matchDetail .score-model-module .score-pills span:last-child:nth-child(odd),
#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-tags span:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* 数据语义颜色：结论、风险、变化和中性信息使用不同信号，不以颜色代替文字。 */
#matchDetail :is(
  .summary-card,
  .model-metric,
  .asian-metric,
  .asian-adjustment-card,
  .market-command-metric,
  .fusion-metric
) {
  --specialist-tone: 172, 215, 190;
  border-color: rgba(var(--specialist-tone), .28);
  box-shadow: inset 3px 0 0 rgba(var(--specialist-tone), .52);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

#matchDetail :is(
  .summary-card,
  .model-metric,
  .asian-metric,
  .asian-adjustment-card,
  .market-command-metric,
  .fusion-metric
).good {
  --specialist-tone: 121, 232, 163;
  border-color: rgba(var(--specialist-tone), .54);
  background: rgba(var(--specialist-tone), .065);
}

#matchDetail :is(
  .summary-card,
  .model-metric,
  .asian-metric,
  .asian-adjustment-card,
  .market-command-metric,
  .fusion-metric
).warn {
  --specialist-tone: 239, 198, 108;
  border-color: rgba(var(--specialist-tone), .56);
  background: rgba(var(--specialist-tone), .06);
}

#matchDetail :is(
  .summary-card,
  .model-metric,
  .asian-metric,
  .asian-adjustment-card,
  .market-command-metric,
  .fusion-metric
).bad {
  --specialist-tone: 255, 138, 125;
  border-color: rgba(var(--specialist-tone), .6);
  background: rgba(var(--specialist-tone), .065);
}

#matchDetail :is(
  .summary-card,
  .model-metric,
  .asian-metric,
  .asian-adjustment-card,
  .market-command-metric,
  .fusion-metric
).info {
  --specialist-tone: 116, 184, 255;
  border-color: rgba(var(--specialist-tone), .5);
  background: rgba(var(--specialist-tone), .055);
}

#matchDetail .asian-metric.info strong,
#matchDetail .model-metric.info strong,
#matchDetail .market-command-metric.info strong {
  color: #b8dbff;
}

#matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section:has(.asian-metric.info):not(:has(.asian-metric.bad, .asian-metric.warn)) {
  border-color: rgba(116, 184, 255, .38);
}

@media (max-width: 760px) {
  #matchDetail .decision-evidence-module .decision-evidence-grid.two,
  #matchDetail .decision-evidence-module .decision-evidence-grid.one,
  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-grid,
  #matchDetail .asian-adjustment-grid,
  #matchDetail .score-model-module .score-pills,
  #matchDetail .score-model-module .score-probability-compare,
  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-tags,
  #matchDetail .asian-settlement-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric,
  #matchDetail .decision-evidence-module .model-metric {
    grid-column: auto;
    min-height: 0;
    padding: 12px;
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section {
    padding: 12px;
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-section-head {
    margin-bottom: 10px;
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-lead h3 {
    font-size: 23px;
  }

  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    width: 100%;
  }

  #matchDetail .asian-settlement-summary > p,
  #matchDetail .score-model-module .score-pills span:last-child:nth-child(odd),
  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-tags span:last-child:nth-child(odd),
  #matchDetail :is(.asian-index-module, .lottery-handicap-module, .score-model-module) .asian-metric:last-child:nth-child(odd),
  #matchDetail .asian-adjustment-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

}
