:root {
  color-scheme: dark;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #e9edf4;
  background: #10151c;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 48px, 1120px); margin: 0 auto; padding: 52px 0; }
header { margin-bottom: 26px; }
.kicker { color: #a3b2c5; font-size: .84rem; letter-spacing: .09em; margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; margin: 0 0 24px; }
.phase-one { --tint: #a9cdff; --fill: #1c2a3e; }
.phase-two { --tint: #9be5cc; --fill: #17332e; }
.rollout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; }
.rollout > div { background: var(--fill); border-radius: 10px; padding: 14px 16px; }
.rollout h2 { color: var(--tint); font-size: 1rem; margin: 0 0 5px; }
.rollout h2 span { margin-left: 4px; font: 600 .85em ui-monospace, monospace; }
.rollout p { font-size: .9rem; line-height: 1.65; margin: 0; }
code { overflow-wrap: anywhere; }

table { width: 100%; table-layout: fixed; border-spacing: 6px 0; }
thead th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 10px 4px;
  background: var(--fill, #242d3a);
  color: var(--tint, inherit);
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 650;
}
.case-label th {
  padding: 28px 0 10px;
  text-align: left;
  font-weight: normal;
  overflow-wrap: anywhere;
}
.case-number {
  margin: 0 0 4px;
  color: #9be5cc;
  font: 600 .78rem ui-monospace, monospace;
}
.case-label h2 { margin: 0 0 6px; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.35; }
.case-target { margin: 0 0 4px; font-size: .92rem; line-height: 1.55; }
.case-judge { margin: 0; color: #afbdd0; font-size: .8rem; line-height: 1.55; }
.case-judge span { color: #a9cdff; font-weight: 600; margin-right: 4px; }
td { padding: 0; vertical-align: top; }
.frame {
  display: block;
  aspect-ratio: 11 / 20;
  overflow: hidden;
  background: var(--fill, #191f29);
  border-radius: 8px;
}
.frame:hover, .frame:focus-visible { outline: 2px solid var(--tint, #a3b2c5); outline-offset: 2px; }
.frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.case-context td { padding-top: 8px; }
.case-context details { background: #171f2a; border: 1px solid #364354; border-radius: 7px; }
.case-context summary { padding: 8px 11px; color: #c0cbda; font-size: .86rem; cursor: pointer; }
.context-text {
  border-top: 1px solid #303c4b;
  padding: 12px 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #dce4f0;
  font-size: .9rem;
  line-height: 1.65;
}

dialog {
  width: min(92vw, 760px);
  max-height: 92dvh;
  border: 1px solid #384453;
  border-radius: 12px;
  padding: 12px;
  background: #141c26;
}
dialog::backdrop { background: #080c13df; }
.viewer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.viewer-head p, .viewer-head form { margin: 0; }
dialog img { display: block; width: 100%; max-height: 80dvh; object-fit: contain; }
button { color: inherit; font: inherit; padding: 4px 10px; border: 1px solid #536071; border-radius: 5px; background: #253042; cursor: pointer; }

@media (max-width: 620px) {
  main { width: calc(100% - 24px); padding-top: 28px; }
  .rollout { grid-template-columns: 1fr; gap: 8px; }
  table { border-spacing: 3px 0; }
  thead th { font-size: .78rem; padding-inline: 0; }
  .case-label th { padding-top: 22px; }
  .case-target { font-size: .86rem; }
  .frame { border-radius: 4px; }
}
