.benchmark-page-root {
  --bg: var(--background-color, #f8fafc);
  --panel: var(--white-color, #ffffff);
  --panel-strong: var(--white-color, #ffffff);
  --panel-soft: var(--background-color, #f8fafc);
  --ink: var(--text-primary, #1e293b);
  --muted: var(--text-secondary, #64748b);
  --line: var(--border-light-color, #ced4da);
  --line-soft: var(--border-color, #e2e8f0);
  --line-strong: rgba(var(--primary-light-rgb, 59, 130, 246), 0.24);
  --accent: var(--primary-color, #1e43a8);
  --accent-light: var(--primary-light, #3b82f6);
  --accent-soft: var(--secondary-color, #ebf2f9);
  --accent-strong: var(--primary-color, #1e43a8);
  --accent-gradient: var(--primary-gradient, linear-gradient(135deg, #1e43a8 0%, #3b82f6 100%));
  --ok: var(--success-color, #059669);
  --warn: var(--warning-color, #d97706);
  --danger: var(--danger-color, #dc2626);
  --shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
  --shadow-strong: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
  --radius: var(--border-radius-lg, 16px);
  --radius-md: var(--border-radius, 12px);
  --radius-sm: 8px;
  --radius-control: 10px;
  --radius-chip: 8px;
  --page-content-inset: 36px;
  --benchmark-shell-width: 1480px;
  --font: 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", monospace;
}

.benchmark-page-root,
.benchmark-page-root * {
  box-sizing: border-box;
}

body.benchmark-standalone {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
  min-height: 100vh;
}

.benchmark-page-root {
  color: var(--ink);
  font-family: var(--font);
}

.benchmark-page-root[data-i18n-ready="false"] .shell,
.benchmark-page-root[data-i18n-ready="false"] .modal-root {
  visibility: hidden;
}

.shell {
  width: min(var(--benchmark-shell-width), calc(100vw - 28px), 100%);
  margin: 14px auto 32px;
}

.hero,
.panel,
.work-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 12px var(--page-content-inset) 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  min-width: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.hero-more-link {
  display: inline-block;
  margin-top: 2px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}

.hero-more-link:hover {
  text-decoration: underline;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-control);
  background: var(--panel);
  border: 1px solid var(--line);
}

.lang-button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.lang-button.is-active {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 960px;
  line-height: 1.7;
}

.hero .hero-description {
  font-size: 14px;
  max-width: none;
  width: 100%;
}

.panel {
  margin-top: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.tabbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.benchmark-page-root .tab-button,
.benchmark-page-root .type-pill,
.benchmark-page-root button {
  font: inherit;
}

.tab-button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 18px;
  background: var(--accent-soft);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.benchmark-page-root .tab-button:hover,
.benchmark-page-root button:hover,
.benchmark-page-root .type-pill:hover,
.benchmark-page-root .entity-card:hover,
.benchmark-page-root .subset-card:hover {
  transform: translateY(-1px);
}

.tab-button.is-active,
.benchmark-page-root .type-pill.is-active {
  background: var(--accent-gradient);
  border-color: var(--accent-light);
  color: #fff;
  box-shadow: var(--shadow);
}

.tab-panel {
  display: none;
  padding: 18px;
}

.tab-panel.is-active {
  display: block;
}

.panel > .tabbar {
  display: none;
}

.benchmark-layout {
  display: grid;
  gap: 16px;
}

.filters {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}

.filter-field,
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.release-month-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filter-field label,
.form-field label,
.section-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.benchmark-page-root select,
.benchmark-page-root input,
.benchmark-page-root textarea {
  font: inherit;
}

.benchmark-page-root input[type="text"],
.benchmark-page-root input[type="month"],
.benchmark-page-root select,
.benchmark-page-root textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.benchmark-page-root select[multiple] {
  min-height: 128px;
  padding: 8px;
}

.benchmark-page-root textarea {
  min-height: 96px;
  resize: vertical;
}

.benchmark-page-root button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 16px;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

.benchmark-page-root button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.primary-button {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow);
}

.benchmark-page-root .secondary-button {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
}

.benchmark-page-root .danger-button {
  background: rgba(196, 75, 58, 0.12);
  color: var(--danger);
  border: 1px solid rgba(196, 75, 58, 0.18);
}

.multi-filter {
  position: relative;
}

.benchmark-page-root .multi-filter-trigger {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 1px 1px rgba(15, 23, 42, 0.03);
}

.benchmark-page-root .multi-filter.is-open .multi-filter-trigger {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(var(--primary-light-rgb, 59, 130, 246), 0.14);
}

.multi-filter-summary {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-filter-arrow {
  color: var(--muted);
  font-size: 12px;
  transition: transform 120ms ease;
}

.multi-filter.is-open .multi-filter-arrow {
  transform: rotate(180deg);
}

.multi-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  display: none;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow-strong);
}

.multi-filter.is-open .multi-filter-panel {
  display: block;
}

#risk-entity-filter .multi-filter-panel {
  right: auto;
  width: min(420px, calc(100vw - 64px));
}

.multi-filter-actions,
.toolbar,
.action-row,
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.multi-filter-actions {
  justify-content: space-between;
  margin-bottom: 8px;
}

.benchmark-page-root .multi-filter-action {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
}

.multi-filter-search {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  margin-bottom: 8px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.multi-filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.multi-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 120ms ease;
  text-transform: none;
  letter-spacing: normal;
}

.multi-filter-option span {
  text-transform: none;
  letter-spacing: normal;
}

.multi-filter-option.is-hidden {
  display: none;
}

.multi-filter-search-empty {
  display: none;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.multi-filter-search-empty.is-visible {
  display: block;
}

.multi-filter-option:hover {
  background: rgba(var(--primary-light-rgb, 59, 130, 246), 0.08);
}

.multi-filter-option input,
.checkbox-line input {
  margin: 0;
  accent-color: var(--accent);
}

.multi-filter-empty,
.empty {
  color: var(--muted);
}

.editor-multi-filter .multi-filter-panel {
  z-index: 24;
}

.editor-multi-filter.is-compact .multi-filter-options {
  max-height: 180px;
}

.filter-hint,
.helper {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.table-wrap {
  overflow: auto;
  border-top: 1px solid var(--line);
}

.benchmark-page-root table {
  width: 100%;
  min-width: 1260px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.benchmark-page-root th,
.benchmark-page-root td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.benchmark-page-root thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.benchmark-page-root .table-sort-button {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: inherit;
  line-height: normal;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
  transition: none;
}

.benchmark-page-root .table-sort-button:hover {
  transform: none;
}

.impact-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.impact-header .table-sort-button {
  width: auto;
}

.impact-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  cursor: help;
  opacity: 0.75;
}

tbody tr:nth-child(even) {
  background: rgba(var(--background-rgb, 248, 250, 252), 0.45);
}

tbody tr:hover {
  background: rgba(var(--primary-light-rgb, 59, 130, 246), 0.06);
}

.sticky-col {
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 1;
}

.benchmark-page-root thead .sticky-col {
  z-index: 2;
  background: var(--panel-soft);
}

.benchmark-row {
  cursor: pointer;
}

.benchmark-row.is-expanded {
  background: rgba(var(--primary-light-rgb, 59, 130, 246), 0.08);
}

.benchmark-row td:first-child {
  position: relative;
  padding-left: 28px;
}

.benchmark-row td:first-child::before {
  content: ">";
  position: absolute;
  left: 12px;
  top: 14px;
  color: var(--accent);
  font-size: 12px;
  transition: transform 120ms ease;
}

.benchmark-row.is-expanded td:first-child::before {
  transform: rotate(90deg);
}

.detail-row td {
  padding: 0;
  background: var(--panel-soft);
}

.detail-card,
.work-card {
  padding: 18px;
}

.detail-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.benchmark-detail-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .benchmark-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .benchmark-detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 76px;
}

.detail-item.wide,
.form-field.wide {
  grid-column: 1 / -1;
}

.benchmark-risk-field .multi-filter-panel {
  right: auto;
  min-width: min(460px, calc(100vw - 80px));
}

.detail-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.detail-value {
  line-height: 1.6;
  word-break: break-word;
}

.detail-empty,
.empty {
  padding: 18px;
  text-align: center;
}

.link {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.link:hover {
  text-decoration: underline;
}

.name-with-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.benchmark-name-cell,
.subset-cell {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-light-rgb, 59, 130, 246), 0.3);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
  cursor: help;
  flex: 0 0 auto;
}

.code-chip,
.relation-chip,
.mini-chip,
.benchmark-page-root .type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-chip);
  line-height: 1.5;
}

.code-chip,
.relation-chip,
.mini-chip {
  padding: 3px 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

.mini-chip {
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.availability-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(var(--success-rgb, 5, 150, 105), 0.12);
}

.availability-dot.is-true {
  background: var(--ok);
}

.availability-dot.is-partial {
  background: var(--warn);
}

.availability-dot.is-false {
  background: var(--danger);
}

.reason-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.status {
  font-size: 12px;
  min-height: 18px;
  color: var(--muted);
  margin: 4px 0 10px;
}

.status.ok {
  color: var(--ok);
}

.status.error {
  color: var(--warn);
}

#tab-risk-model,
#tab-risk-model > .work-card {
  min-width: 0;
  overflow-x: hidden;
}

#risk-model-canvas {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
}

.risk-blueprint {
  display: grid;
  grid-template-columns: 200px 290px 200px 290px 350px;
  width: max-content;
  gap: 16px;
  align-items: start;
  padding-bottom: 4px;
  position: relative;
}

.risk-link-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
  background: transparent;
  display: block;
}

.risk-card,
.risk-row {
  position: relative;
  z-index: 2;
}

.risk-column {
  position: relative;
}

.risk-link-path {
  fill: none;
  stroke: rgba(var(--primary-light-rgb, 59, 130, 246), 0.34);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.risk-column {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.risk-column > .panel-title {
  min-height: 40px;
  align-items: center;
}

.risk-note {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.risk-list {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
  padding-right: 2px;
}

.risk-card,
.risk-row,
.risk-editor,
.risk-summary {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.risk-card,
.risk-row {
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.risk-card.is-active,
.risk-row.is-active {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(var(--primary-light-rgb, 59, 130, 246), 0.12);
  background: var(--panel);
}

.risk-card.is-drag-source,
.risk-row.is-drag-source {
  opacity: 0.6;
}

.risk-card.is-drop-target {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(var(--primary-light-rgb, 59, 130, 246), 0.18);
  background: var(--panel);
}

.risk-card-head,
.risk-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.risk-card-head > :first-child,
.risk-row-head > :first-child {
  flex: 1;
  min-width: 0;
}

.risk-card-head h3,
.risk-row-head h3,
.risk-editor h3,
.risk-summary h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
}

.risk-card p,
.risk-summary p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.risk-row {
  cursor: pointer;
}

.risk-row strong {
  display: block;
  font-size: 22px;
  color: var(--accent-strong);
  margin-top: 6px;
}

.risk-actions-tight {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.benchmark-page-root .ghost-button,
.benchmark-page-root .mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.benchmark-page-root .mini-button {
  min-height: 28px;
  font-size: 12px;
}

.card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.card-actions .mini-button {
  min-width: 52px;
}

.benchmark-page-root .ghost-button.is-active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

.risk-helper {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.risk-empty {
  padding: 18px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  background: var(--panel-soft);
}

.risk-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.risk-editor .form-grid {
  margin-top: 10px;
}

.risk-editor .action-row {
  margin-top: 12px;
}

.risk-chip-row {
  margin-top: 10px;
}

.risk-impact-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--accent-strong);
}

.risk-card-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.risk-card-meta strong {
  display: inline;
  font-size: inherit;
  color: inherit;
  margin: 0;
}

.risk-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.risk-picker-select {
  width: 100%;
}

.risk-stacked-section {
  display: grid;
  gap: 10px;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.modal-root.is-open {
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31, 41, 51, 0.38);
  backdrop-filter: blur(2px);
}

.modal-card {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: 0 24px 56px rgba(31, 41, 51, 0.2);
}

.modal-card.modal-wide {
  width: min(1120px, calc(100vw - 32px));
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.benchmark-page-root .icon-button {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.clickable-card {
  cursor: pointer;
}

.modal-card .subset-candidate-list,
.modal-card .risk-list {
  max-height: 360px;
}

.risk-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.risk-sidebar,
.risk-main {
  display: grid;
  gap: 16px;
}

.type-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.benchmark-page-root .type-pill {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.entity-list,
.subset-list {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
  padding-right: 2px;
}

.entity-card,
.subset-card,
.lane-card,
.workspace-center {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.entity-card,
.subset-card {
  cursor: pointer;
}

.entity-card.is-active,
.subset-card.is-active {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(var(--primary-light-rgb, 59, 130, 246), 0.12);
  background: var(--panel);
}

.entity-card h3,
.subset-card h3,
.workspace-center h3,
.lane-card h4,
.card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.entity-meta,
.subset-meta,
.card-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.workspace-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.workspace-center {
  background: var(--panel);
  border-color: var(--line);
  min-height: 220px;
}

.workspace-center .hero-id {
  font-family: var(--mono);
  font-size: 18px;
  margin-top: 10px;
  color: var(--accent-strong);
}

.workspace-center .hero-description {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.lane-stack {
  display: grid;
  gap: 12px;
}

.lane-card h4 {
  margin-bottom: 10px;
}

.lane-card .helper {
  margin-bottom: 10px;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.panel-title > :first-child {
  flex: 1;
  min-width: 0;
}

.panel-title button,
.panel-title .muted-number {
  flex: 0 0 auto;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 18px;
}

.muted-number {
  color: var(--muted);
  font-size: 13px;
}

.row-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

@media (max-width: 1240px) {
  .risk-layout,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-lanes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .benchmark-page-root {
    --page-content-inset: 28px;
  }

  .shell {
    width: min(100vw - 14px, 100%);
    margin-top: 10px;
  }

  .hero,
  .panel,
  .work-card {
    border-radius: var(--radius);
  }

  .tab-panel,
  .detail-card,
  .work-card {
    padding: 14px;
  }

  .filters,
  .row-split {
    grid-template-columns: 1fr;
  }

  .benchmark-page-root table {
    min-width: 1100px;
  }
}
