:root {
  color-scheme: dark;
  --ink: #dbe8f5;
  --muted: #657c94;
  --cyan: #63e8f4;
  --blue: #6d8ff8;
  --line: #8cb7d51c;
  font:
    13px/1.55 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    sans-serif;
  background: #060c15;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  height: 100dvh;
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
select,
a {
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
}
button {
  border: 1px solid var(--line);
  background: #0d1926;
  border-radius: 9px;
  padding: 8px 12px;
  transition:
    background 0.16s,
    border-color 0.16s,
    color 0.16s;
}
button:hover {
  background: #152939;
  border-color: #62d4e65c;
  color: #bff7ff;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
a {
  color: #8bc6ed;
  text-decoration: none;
}
a:hover {
  color: #c6f7ff;
}
select {
  background: #0c1826;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 28px 9px 12px;
  cursor: pointer;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.topbar {
  height: 76px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: linear-gradient(#080f1bee, #080f1b55);
  border-bottom: 1px solid #9ab7d108;
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dfedf8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brand-symbol {
  width: 31px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-weight: 750;
  background: #16374255;
  border: 1px solid #6bddeb42;
  border-radius: 9px;
  box-shadow: 0 0 20px #4bd7e212;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 3px;
  color: #647d97;
  margin-top: 2px;
  font-weight: 400;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.top-actions select {
  font-size: 12px;
  letter-spacing: 0.4px;
  background: #0b17248c;
  min-width: 145px;
}
.connection-dot {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 9px #64eafa88;
}
.top-actions button {
  font-size: 22px;
  line-height: 20px;
  background: transparent;
  border-color: transparent;
}
#viewport {
  position: fixed;
  inset: 76px 0 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
#viewport.dragging {
  cursor: grabbing;
}
.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 38%, #15384e33 0, transparent 52%),
    radial-gradient(ellipse at 90% 100%, #1b1f431f, transparent 55%);
}
.grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#6b95b327 0.65px, transparent 0.65px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 50%, #0008, transparent 75%);
}
#world {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  transform-origin: 0 0;
  will-change: transform;
}
.graph-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
}
.network-edge {
  fill: none;
  stroke: #6184a24a;
  stroke-width: 1.1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke 0.2s;
}
.network-edge.active {
  stroke: #73d4e391;
  filter: drop-shadow(0 0 4px #65d5f533);
  stroke-width: 1.4;
}
.preview-group {
  pointer-events: none;
  animation: preview-in 0.6s ease both;
}
.preview-group path {
  fill: none;
  stroke: #79b9cd;
  stroke-width: 0.8;
}
.preview-group circle {
  fill: #79cfe5;
  filter: drop-shadow(0 0 3px #65d5f5);
}
.preview-group .preview-halo {
  fill: #7ed9e3;
  opacity: 0.16;
  filter: blur(3px);
}
.graph-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 174px;
  height: 190px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  will-change: transform, opacity;
  pointer-events: none;
}
.node-core {
  position: relative;
  flex-shrink: 0;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #45688138;
  background: radial-gradient(circle at 40% 30%, #173b4b, #0a1825 72%);
  box-shadow:
    0 0 24px #5ddff409,
    inset 0 0 22px #68d8ec09;
  pointer-events: auto;
  transition:
    box-shadow 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.node-core:hover {
  background: radial-gradient(circle at 40% 30%, #204c5d, #0b1d2e 75%);
  border-color: #78ddeb6b;
  box-shadow:
    0 0 34px #5ddff422,
    inset 0 0 20px #75e9ff14;
}
.score-ring {
  position: absolute;
  inset: -7px;
  width: calc(100% + 14px);
  height: calc(100% + 14px);
  transform: rotate(-90deg);
  overflow: visible;
  pointer-events: none;
}
.score-ring circle {
  fill: none;
  stroke-width: 0.9;
}
.ring-track {
  stroke: #426a843f;
}
.ring-progress {
  stroke: #7ae5f0;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px #54d9ed66);
}
.node-value {
  color: #e1faff;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.node-unit {
  font-size: 6px;
  letter-spacing: 1.3px;
  color: #6ca0b4;
  margin-top: 7px;
}
.node-name {
  display: block;
  max-width: 202px;
  min-height: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.4;
  margin-top: 15px;
  color: #bfd5e5;
  overflow-wrap: anywhere;
}
.node-count {
  display: block;
  max-width: 210px;
  font-size: 8px;
  color: #597990;
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.graph-node.selected .node-core {
  box-shadow:
    0 0 45px #6ce4f421,
    inset 0 0 24px #61d2e318;
  border-color: #7ae5f06e;
}
.graph-node.selected .node-name {
  color: #9feefa;
}
.graph-node.unmeasured .node-value {
  color: #7690a6;
  font-size: 22px;
}
.graph-node.unmeasured .ring-progress {
  stroke: none;
}
.root-node {
  width: 244px;
  height: 252px;
}
.root-node .node-core {
  width: 188px;
  height: 188px;
  background: radial-gradient(circle at 43% 35%, #1b4456, #0a1c2c 72%);
  box-shadow:
    0 0 80px #5bdff415,
    inset 0 0 50px #5ddeee0a;
}
.root-node .node-value {
  font-size: 51px;
  letter-spacing: -2px;
}
.root-node .node-unit {
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 10px;
}
.root-node .node-name {
  font-size: 13px;
  letter-spacing: 0.6px;
  margin-top: 20px;
}
.root-node .node-count {
  font-size: 9px;
}
.root-node .score-ring {
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
}
.root-node .score-ring .ring-track {
  stroke-dasharray: 1 1;
  stroke-width: 0.6;
}
.breadcrumbs {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 75vw;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 4;
}
.breadcrumbs button {
  padding: 3px 7px;
  background: transparent;
  border: none;
  font-size: 10px;
  color: #69839c;
}
.breadcrumbs button:last-child {
  color: #a5c7d8;
}
.breadcrumbs span {
  font-size: 9px;
  color: #2b485e;
}
.loading {
  position: fixed;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #82b9ce;
  font-size: 12px;
  letter-spacing: 1px;
  z-index: 5;
}
.selection-bar {
  position: fixed;
  left: 50%;
  bottom: 65px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 13px;
  background: #0b1827db;
  border: 1px solid #82b9db20;
  border-radius: 14px;
  padding: 11px 13px 11px 17px;
  backdrop-filter: blur(22px);
  z-index: 6;
  max-width: calc(100vw - 32px);
  box-shadow: 0 12px 30px #0004;
  transition: opacity 0.25s;
}
.selection-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #78d5e5;
  box-shadow: 0 0 10px #78d5e54d;
  flex-shrink: 0;
}
.selection-bar strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selection-bar div > span {
  display: block;
  font-size: 9px;
  color: #6d8da7;
  margin-top: 3px;
}
.selection-bar button {
  font-size: 10px;
  padding: 8px 13px;
  white-space: nowrap;
  color: #95e2ed;
  background: #122d3c;
  border-color: #64bcdb28;
}
.selection-bar button span {
  margin-left: 12px;
  color: #699bb2;
}
.canvas-tools {
  position: fixed;
  bottom: 25px;
  right: 28px;
  z-index: 6;
  display: flex;
  align-items: center;
  padding: 4px;
  background: #0b1724b8;
  border: 1px solid var(--line);
  border-radius: 11px;
  backdrop-filter: blur(12px);
}
.canvas-tools button {
  padding: 4px 9px;
  font-size: 17px;
  background: transparent;
  border: 0;
}
.canvas-tools output {
  font-size: 9px;
  width: 42px;
  text-align: center;
  color: #6e8aa4;
  letter-spacing: 0.5px;
}
.tool-divider {
  width: 1px;
  height: 15px;
  background: var(--line);
  margin: 0 3px;
}
.canvas-hint {
  position: fixed;
  left: 30px;
  bottom: 22px;
  font-size: 10px;
  color: #7390a9;
  letter-spacing: 0.3px;
  pointer-events: none;
  z-index: 3;
  margin: 0;
}
.canvas-hint span {
  display: block;
  font-size: 8px;
  color: #3d566f;
  margin-top: 4px;
}
.settings {
  position: fixed;
  z-index: 35;
  right: 25px;
  top: 70px;
  width: 320px;
  max-height: calc(100dvh - 90px);
  overflow: auto;
  background: #0a1726f5;
  border: 1px solid #69a3c936;
  border-radius: 15px;
  padding: 19px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 90px #0009;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7898b0;
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 15px;
}
.panel-heading button {
  font-size: 20px;
  padding: 0 5px;
  background: none;
  border: 0;
}
.settings > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #8ca9bf;
  margin-bottom: 15px;
}
.settings select {
  font-size: 12px;
}
.settings > a {
  display: block;
  margin: 15px 0;
  font-size: 11px;
}
.settings details {
  font-size: 11px;
  color: #7d9bb4;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.settings summary {
  cursor: pointer;
}
.settings details p,
.settings-footnote {
  font-size: 10px;
  line-height: 1.8;
  color: #5c7c96;
}
.warning {
  font-size: 10px;
  color: #d0a56a;
}
.case-drawer {
  position: fixed;
  right: 16px;
  top: 88px;
  bottom: 18px;
  width: min(490px, 42vw);
  z-index: 15;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0a1624f0;
  border: 1px solid #719fc72e;
  border-radius: 20px;
  box-shadow: -20px 0 80px #02071066;
  backdrop-filter: blur(24px);
  transform: translateX(calc(100% + 35px));
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.28s;
  pointer-events: none;
}
.case-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.drawer-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 23px 22px 0;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  color: #56b9ce;
}
.drawer-heading h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  margin: 8px 0 0;
  color: #d4e9f4;
  overflow-wrap: anywhere;
}
.drawer-heading > button {
  border: 0;
  background: transparent;
  font-size: 22px;
  padding: 0 5px;
  color: #7898af;
}
.drawer-subtitle {
  font-size: 9px;
  color: #557690;
  margin: 10px 22px 17px;
  overflow-wrap: anywhere;
}
.drawer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #8fb5ce;
}
.drawer-toolbar select {
  font-size: 10px;
  padding: 5px 24px 5px 8px;
}
.examples-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 22px;
  scrollbar-width: thin;
  scrollbar-color: #263e55 transparent;
}
.example-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  animation: case-enter 0.28s ease both;
}
.example-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.example-title {
  font-size: 10px;
  overflow-wrap: anywhere;
  color: #92c2e3;
}
.example-score {
  font-size: 25px;
  color: #d9a86f;
  font-weight: 450;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.example-card p {
  font-size: 11px;
  color: #94acbf;
  line-height: 1.7;
  margin: 8px 0;
}
.example-top p {
  font-size: 9px;
  color: #53718a;
}
.example-card .tag-line {
  font-size: 9px;
  color: #54718a;
}
.example-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.example-media figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #5684a524;
  background: #101f2e;
}
.example-media figcaption {
  padding: 6px 8px;
  font-size: 8px;
  color: #7ca2bf;
  letter-spacing: 0.4px;
}
.example-media img {
  width: 100%;
  height: auto;
  display: block;
}
.example-evidence {
  font-size: 10px;
  margin: 15px 0;
  color: #8bafc7;
}
.example-evidence summary {
  cursor: pointer;
}
.example-evidence p {
  border-left: 1px solid #36556d;
  padding-left: 10px;
  font-size: 10px;
  color: #7e9bb4;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #54728a;
}
.pagination button {
  font-size: 10px;
  padding: 5px 9px;
}
.empty-state {
  padding: 36px 12px;
  text-align: center;
  font-size: 11px;
  color: #6c8ba4;
}
.skeleton {
  height: 120px;
  margin: 20px 0;
  background: linear-gradient(100deg, #122337, #1a3145, #122337);
  background-size: 200% 100%;
  border-radius: 9px;
  animation: shimmer 1.5s infinite;
}
.drawer-visible .selection-bar {
  opacity: 0;
  pointer-events: none;
}
.drawer-visible .canvas-tools {
  right: calc(min(490px, 42vw) + 35px);
}
@keyframes case-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes preview-in {
  from {
    opacity: 0;
  }
  to {
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 65px;
    padding: 0 16px;
  }
  .brand {
    font-size: 12px;
    gap: 8px;
  }
  .brand-symbol {
    width: 27px;
    height: 29px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions select {
    min-width: 105px;
    font-size: 10px;
    padding: 7px 18px 7px 8px;
  }
  .connection-dot {
    display: none;
  }
  #viewport {
    top: 65px;
  }
  .breadcrumbs {
    top: 76px;
    max-width: 94vw;
    gap: 1px;
  }
  .breadcrumbs button {
    font-size: 8px;
    padding: 2px 4px;
  }
  .canvas-tools {
    bottom: 16px;
    right: 14px;
  }
  .canvas-hint {
    left: 16px;
    bottom: 24px;
    font-size: 8px;
  }
  .canvas-hint span {
    display: none;
  }
  .selection-bar {
    bottom: 67px;
    padding: 9px 10px;
    gap: 9px;
  }
  .selection-bar strong {
    max-width: 170px;
    font-size: 10px;
  }
  .selection-bar div > span {
    font-size: 8px;
  }
  .selection-bar button {
    font-size: 9px;
    padding: 7px 10px;
  }
  .settings {
    right: 12px;
    top: 62px;
    width: min(320px, calc(100vw - 24px));
  }
  .case-drawer {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 67dvh;
    border-radius: 21px 21px 0 0;
    transform: translateY(110%);
  }
  .case-drawer.open {
    transform: translateY(0);
  }
  .drawer-heading {
    padding-top: 16px;
  }
  .drawer-heading h2 {
    font-size: 17px;
  }
  .drawer-subtitle {
    margin-bottom: 10px;
  }
  .drawer-visible .canvas-tools {
    right: 14px;
    bottom: calc(67dvh + 10px);
  }
  .drawer-visible .canvas-hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Node coordinates denote circle centers; labels live below the circle. */
.graph-node {
  height: 124px;
}
.root-node {
  height: 188px;
}
.node-name {
  position: absolute;
  top: 100%;
  margin-top: 17px;
  width: 202px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.node-count {
  position: absolute;
  top: calc(100% + 54px);
  margin: 0;
}
.root-node .node-name {
  margin-top: 21px;
}
.root-node .node-count {
  top: calc(100% + 53px);
}
/* Semantic hierarchy: metrics, navigation axes, cohorts and visual evidence. */
:root {
  --cyan: #8de6db;
}
.topbar {
  background: rgba(8, 15, 23, 0.88);
  border-bottom-color: #ffffff09;
}
.brand small {
  letter-spacing: 0.24em;
  color: #788f9c;
}
.node-unit,
.node-count {
  display: none;
}
.node-core {
  background: radial-gradient(ellipse at 35% 20%, #193b4566, #101b25 75%);
  box-shadow: 0 12px 40px #0003;
}
.graph-node.selected .node-core {
  box-shadow:
    0 0 0 7px #9ee9de06,
    0 0 48px #6cd9ca13;
}
.node-name {
  color: #c1d0d8;
  font-weight: 500;
}
.kind-axis .node-core {
  width: 158px;
  height: 82px;
  border-radius: 24px;
  border: 1px solid #83d5cd40;
  background: linear-gradient(135deg, #152c36, #0b1722);
}
.kind-axis .node-value {
  font-size: 18px;
  line-height: 1.5;
  max-width: 132px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.kind-axis .node-name {
  display: none;
}
.kind-axis .score-ring {
  opacity: 0.28;
  width: 78px;
  height: 78px;
  right: -15px;
  left: auto;
}
.kind-group .node-core {
  width: 160px;
  height: 114px;
  border-radius: 22px;
  background: #0d1b28;
  border: 1px solid #6895a62b;
}
.kind-group .score-ring {
  opacity: 0.35;
  width: 72px;
  height: 72px;
  left: 44px;
  top: 8px;
}
.kind-group .node-value {
  font-size: 23px;
  font-weight: 450;
}
.kind-group .node-name {
  top: calc(100% - 3px);
  font-size: 13px;
  max-width: 190px;
}
.graph-node:not(.on-path):not(.selected) .node-core {
  box-shadow: none;
}
.graph-node:hover {
  z-index: 3;
}
.graph-node .node-core:hover {
  border-color: #9deadd;
  filter: brightness(1.2);
}
.kind-case .node-core {
  width: 192px;
  height: 130px;
  border-radius: 14px;
  overflow: hidden;
  background: #152430;
  display: block;
  text-align: left;
  border: 1px solid #7faba94d;
}
.kind-case .node-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a1018;
}
.kind-case .node-core:after {
  content: "查看详情 ↗";
  position: absolute;
  bottom: 9px;
  left: 10px;
  font-size: 10px;
  color: white;
  text-shadow: 0 1px 4px #000;
}
.kind-case .node-value {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #09121bd9;
  font-size: 15px;
  color: #ffe1b6;
}
.kind-case .score-ring {
  display: none;
}
.kind-case .node-name {
  font-size: 12px;
  line-height: 1.6;
  color: #acbdc7;
}
.kind-case .image-unavailable:before {
  content: "预览暂不可用";
  display: block;
  text-align: center;
  padding-top: 40px;
  color: #819aa7;
}
.selection-bar {
  border: 1px solid #ffffff0c;
  background: #101d27cc;
  box-shadow: 0 8px 32px #0002;
}
.selection-indicator {
  display: none;
}
.selection-bar strong {
  font-size: 12px;
}
.selection-bar #selection-meta {
  color: #698392;
}
.case-detail-modal {
  width: min(1450px, 96vw);
  height: 94dvh;
  max-width: 96vw;
  max-height: 94dvh;
  padding: 0;
  border: 1px solid #2c424e;
  border-radius: 20px;
  background: #09131e;
  color: #dde8ee;
  overflow: hidden;
  box-shadow: 0 32px 120px #0009;
}
.case-detail-modal::backdrop {
  background: #02060ad6;
  backdrop-filter: blur(12px);
}
.case-detail-top {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid #ffffff10;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.case-detail-top small {
  margin-left: 20px;
  color: #78909e;
  letter-spacing: 0;
}
.case-detail-modal iframe {
  width: 100%;
  height: calc(100% - 55px);
  border: 0;
  display: block;
}
@media (max-width: 650px) {
  .case-detail-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .case-detail-top small {
    display: none;
  }
  .selection-bar {
    max-width: 85vw;
  }
  .kind-axis .node-value {
    font-size: 18px;
  }
}
.kind-axis .score-ring,
.kind-group .score-ring {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  transform: none;
  overflow: visible;
}
.kind-axis .ring-progress,
.kind-group .ring-progress {
  stroke-width: 1.3;
  transform: none;
  fill: none;
}
.kind-axis .ring-track,
.kind-group .ring-track {
  stroke-width: 1;
  fill: none;
}
.language-selector {
  font-size: 11px;
  min-width: 65px;
  padding: 7px 9px;
  border: 1px solid #ffffff14;
  background: #0e1a24;
  color: #c7dbdf;
  border-radius: 8px;
}
.case-detail-top .language-selector {
  margin-left: auto;
  margin-right: 14px;
}
.kind-case .node-core:after {
  content: attr(data-open-label);
}
.kind-case .image-unavailable:before {
  content: attr(data-empty-label);
}
html[lang="en"] .kind-axis .node-value {
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.35;
}
.kind-group .node-name {
  font-size: 14px;
  font-weight: 550;
  color: #c8d8df;
}
.graph-node:not(.selected):not(.on-path) .node-name {
  color: #c1cdd7;
}
.top-actions .language-selector {
  width: 65px;
  min-width: 65px;
  padding: 7px 8px;
}
@media (max-width: 650px) {
  .top-actions {
    gap: 6px;
  }
  .top-actions #model {
    width: 110px;
    min-width: 110px;
  }
  .brand > span:last-child {
    display: none;
  }
  .brand-symbol {
    margin-right: 0;
  }
  .connection-dot {
    display: none;
  }
}
.score-band {
  font-size: 10px;
  line-height: 1.5;
  padding: 3px 7px;
  border-radius: 5px;
  background: #263943;
  color: #d5e3e9;
  white-space: nowrap;
}
.band-low {
  background: #463529;
  color: #f3c897;
}
.band-medium {
  background: #283d53;
  color: #acd2f4;
}
.band-high {
  background: #234339;
  color: #ade5cd;
}
.kind-case .score-band {
  position: absolute;
  top: 8px;
  left: 8px;
}
.drawer-toolbar {
  flex-wrap: wrap;
  gap: 8px;
}
.drawer-toolbar #drawer-model {
  flex-basis: 100%;
}

.raw-score .ring-progress {
  opacity: 0.25;
}

/* Diagnostic branches share the metric shape, but do not contribute to Memory. */
.network-edge.diagnostic-edge,
.network-edge.diagnostic-edge.active {
  stroke: #6184a22e;
  stroke-width: 1;
  filter: none;
}
.comparison-legend {
  position: fixed;
  z-index: 12;
  bottom: 84px;
  right: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 16px;
  border: 1px solid #ffffff24;
  background: #0c1724ed;
  border-radius: 18px;
  max-width: min(520px, calc(100vw - 40px));
  max-height: 45vh;
  overflow: auto;
  box-shadow: 0 6px 24px #0004;
}
.comparison-legend::before {
  content: "图例";
  font-size: 12px;
  color: #a9c7d7;
}
.comparison-legend > * { display: none; }
.comparison-legend:is(:hover, :focus-visible, :has(:focus-visible)) > * { display: inline-flex; }
.comparison-legend:is(:hover, :focus-visible, :has(:focus-visible))::before { display: none; }
.comparison-legend:focus-visible { outline: 2px solid #67d9d0; outline-offset: 3px; }
@media (hover: none) {
  .comparison-legend:focus-within > * { display: inline-flex; }
  .comparison-legend:focus-within::before { display: none; }
}
.comparison-legend[hidden] {
  display: none;
}
.model-legend-chip {
  font-size: 12px;
  white-space: nowrap;
}
.model-legend-chip::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--model-color);
  box-shadow: 0 0 12px var(--model-color);
}
.compare-picker {
  color: #dcedf5;
  background: #0d1926;
  border: 1px solid #375167;
  border-radius: 24px;
  width: min(520px, 90vw);
  padding: 28px;
}
.compare-picker::backdrop {
  background: #020711ba;
  backdrop-filter: blur(10px);
}
#compare-options {
  display: grid;
  gap: 10px;
  max-height: 50vh;
  overflow: auto;
  margin: 24px 0;
}
#compare-options label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #ffffff05;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  cursor: pointer;
}
.compare-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
#compare-validation {
  color: #f3be78;
}
.comparison-node .node-core {
  width: auto;
  min-width: 160px;
  height: auto;
  min-height: 124px;
  padding: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 26px;
}
.comparison-node .node-core > .score-ring,
.comparison-node .node-core > .node-value,
.comparison-node .node-core > .node-unit {
  display: none;
}
.model-cluster {
  display: grid;
  gap: 5px;
  position: relative;
  z-index: 2;
}
.model-orb {
  width: 240px;
  min-height: 34px;
  padding: 6px 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--model-color);
  background: color-mix(in srgb, var(--model-color) 10%, #091421);
  border: 1px solid color-mix(in srgb, var(--model-color) 35%, transparent);
  border-radius: 9px;
}
.model-row-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
.model-orb strong {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.comparison-node.kind-case .node-core {
  background: #0b1824;
  border: 1px solid #284252;
  padding: 10px;
}
.comparison-node.kind-case .node-core > img {
  position: relative;
  width: 150px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}
.comparison-node.kind-case .score-band {
  position: relative;
  inset: auto;
  order: 3;
  margin-top: 8px;
}
.comparison-node.kind-case .node-name {
  font-size: 10px;
  max-width: 210px;
}
.comparison-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 12px;
  padding: 16px;
  height: calc(100% - 60px);
  overflow: auto;
}
.comparison-case-summary {
  grid-column: 1/-1;
  padding: 12px 18px;
  border: 1px solid #294152;
  border-radius: 12px;
}
.comparison-case-summary p {
  font-size: 12px;
  margin: 6px 0;
}
.comparison-case-grid section {
  min-width: 0;
}
.comparison-case-grid h3 {
  font-size: 14px;
  margin: 8px;
}
.comparison-case-grid iframe {
  width: 100%;
  height: 70vh;
  border: 1px solid #294152;
  border-radius: 12px;
}
@media (max-width: 650px) {
  .comparison-case-grid {
    grid-template-columns: 1fr;
  }
  .comparison-legend {
    right: 12px;
    bottom: 78px;
    max-width: calc(100vw - 24px);
    gap: 10px;
  }
  .top-actions {
    gap: 6px;
  }
}
.comparison-example-model img {
  width: 100%;
  border-radius: 10px;
}
.comparison-node.kind-case .node-core::after {
  display: none;
}
.comparison-node.kind-case .node-name {
  margin-top: 10px;
  line-height: 1.4;
}
#compare-toggle {
  font-size: 13px;
  padding: 9px 14px;
  border: 1px solid #ffffff1a;
  border-radius: 20px;
  background: #0b1a25;
}
.comparison-node {
  height: auto;
  min-height: 124px;
}
.comparison-node.kind-case .node-core {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.load-progress {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 30;
  width: min(360px, calc(100vw - 40px));
  max-height: 45vh;
  overflow: auto;
  padding: 12px 16px;
  border: 1px solid #284252;
  border-radius: 14px;
  background: #091421f2;
  box-shadow: 0 8px 30px #0006;
}
.load-progress[hidden] { display: none; }
.load-progress-row + .load-progress-row { margin-top: 12px; }
.load-progress-model { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.load-progress-status { font-size: 11px; color: #9bb6c5; }
.load-progress progress { width: 100%; height: 8px; accent-color: #67d9d0; }

.comparison-video-panel video { width: 100%; max-height: 360px; background: #000; border-radius: 10px; }
.comparison-prefix-panel, .comparison-video-controls, .comparison-media-status { grid-column: 1 / -1; }
.comparison-prefix-panel video { max-height: 260px; }
.comparison-video-controls { display: flex; align-items: center; gap: 12px; padding: 10px; }
.comparison-video-controls input[type="range"] { flex: 1; min-width: 40px; }
.comparison-video-controls output { white-space: nowrap; font-variant-numeric: tabular-nums; }
.comparison-video-panel details { margin-top: 10px; }
.comparison-video-panel h3 { color: var(--model-color, #d7e8ef); overflow-wrap: anywhere; }
