@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --canvas: #f2f3ee;
  --panel: #fbfcfa;
  --panel-strong: #ffffff;
  --ink: #0a0d0b;
  --ink-2: #252924;
  --muted: #72776f;
  --muted-2: #a3a79f;
  --line: #e1e3db;
  --line-strong: #cfd2c9;
  --lime: #a8ff39;
  --lime-strong: #8ded13;
  --lime-soft: #eaffcf;
  --red: #f15c57;
  --orange: #ff9d54;
  --blue: #6485ff;
  --violet: #9f72ff;
  --teal: #36bfae;
  --radius-xl: 28px;
  --radius-lg: 21px;
  --radius-md: 15px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(20, 25, 15, 0.06);
  --shadow-soft: 0 8px 28px rgba(20, 25, 15, 0.045);
  --sidebar: 248px;
  --topbar: 76px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: var(--ink); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; background-clip: padding-box; background-color: #c6c9c0; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

.boot-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.boot-mark, .brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.08em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.14);
}
.boot-screen strong { display: block; font-size: 15px; }
.boot-screen span { color: var(--muted); font-size: 12px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  padding: 24px 18px 18px;
  background: rgba(247, 248, 244, 0.94);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; height: 43px; padding: 0 7px; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; font-size: 17px; }
.brand-word { line-height: 1; }
.brand-word strong { display: block; font-size: 15px; letter-spacing: -.03em; }
.brand-word span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }

.workspace-switch {
  margin: 26px 4px 20px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  cursor: pointer;
}
.workspace-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--lime-soft); color: #527c0e; font-size: 11px; font-weight: 800; }
.workspace-switch div { min-width: 0; flex: 1; }
.workspace-switch strong { display: block; font-size: 11.5px; }
.workspace-switch span { display: block; color: var(--muted); font-size: 9.5px; }
.workspace-switch svg { color: var(--muted); }

.side-label { margin: 0 11px 8px; color: var(--muted-2); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nav-list { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  position: relative;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #5d625a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s ease;
}
.nav-item:hover { background: rgba(255,255,255,.72); color: var(--ink); }
.nav-item.active { background: var(--ink); color: white; box-shadow: 0 8px 24px rgba(17,22,16,.12); }
.nav-item.active::before { content: ""; position: absolute; left: -7px; width: 3px; height: 20px; border-radius: 9px; background: var(--lime); }
.nav-icon { display: grid; place-items: center; width: 18px; height: 18px; }
.nav-icon svg { width: 16px; height: 16px; stroke-width: 1.8; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: #e8eae3; color: #5c6159; font-family: "DM Mono", monospace; font-size: 9px; }
.nav-item.active .nav-badge { background: var(--lime); color: var(--ink); }

.sidebar-spacer { flex: 1; }
.harness-card {
  margin: 16px 3px 14px;
  padding: 15px;
  border: 1px solid #daddd3;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff, #f3f6ef);
}
.harness-head { display: flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 700; }
.harness-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-strong); box-shadow: 0 0 0 4px rgba(168,255,57,.18); }
.harness-card p { margin: 9px 0 11px; color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.harness-meta { display: flex; justify-content: space-between; font-family: "DM Mono", monospace; font-size: 8.5px; color: var(--muted); }
.harness-bars { display: flex; gap: 3px; margin-top: 10px; }
.harness-bars i { flex: 1; height: 4px; border-radius: 4px; background: var(--lime); opacity: .9; }
.harness-bars i:nth-child(3) { opacity: .45; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px 0; }
.user-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: linear-gradient(135deg, #c8ff71, #7fd51e); font-size: 10px; font-weight: 800; }
.side-user div { flex: 1; min-width: 0; }
.side-user strong { display: block; font-size: 10.5px; }
.side-user span { color: var(--muted); font-size: 9px; }
.side-user button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }

.main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar);
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(225,227,219,.78);
  background: rgba(242,243,238,.82);
  backdrop-filter: blur(18px);
}
.mobile-menu { display: none; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.breadcrumbs strong { color: var(--ink); font-weight: 700; }
.breadcrumbs svg { width: 12px; height: 12px; color: var(--muted-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.command-search {
  width: 228px;
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
}
.command-search span { flex: 1; }
.command-search kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: #f7f7f3; color: var(--muted); font-family: "DM Mono", monospace; font-size: 8px; }
.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  cursor: pointer;
  transition: .18s ease;
}
.icon-button:hover, .button:hover { transform: translateY(-1px); }
.icon-button svg { width: 16px; height: 16px; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 2px solid white; border-radius: 50%; background: var(--red); box-sizing: content-box; }
.page { padding: 32px 34px 70px; max-width: 1680px; margin: 0 auto; }
.page-enter { animation: rise .36s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; display: flex; align-items: center; gap: 7px; color: #6d7567; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 16px; height: 2px; border-radius: 3px; background: var(--lime-strong); }
.page-title { margin: 0; font-size: clamp(28px, 3vw, 43px); line-height: 1.04; letter-spacing: -.052em; font-weight: 650; }
.page-subtitle { max-width: 720px; margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; flex-shrink: 0; }
.button {
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}
.button svg { width: 14px; height: 14px; }
.button.primary { border-color: var(--lime); background: var(--lime); color: var(--ink); box-shadow: 0 8px 24px rgba(137,218,31,.17); }
.button.dark { border-color: var(--ink); background: var(--ink); color: white; }
.button.ghost { border-color: transparent; background: transparent; }
.button.danger { color: var(--red); }
.button.small { height: 32px; padding: 0 11px; border-radius: 9px; font-size: 9.5px; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 9.5px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--ink); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(252,253,250,.94);
  box-shadow: var(--shadow-soft);
}
.card.padded { padding: 20px; }
.card.dark-card { border-color: #1a1e19; background: #101310; color: white; box-shadow: 0 20px 48px rgba(10,13,11,.16); }
.card-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.card-head.compact { margin-bottom: 12px; }
.card-title { margin: 0; font-size: 12px; font-weight: 750; letter-spacing: -.015em; }
.card-sub { margin: 4px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.card-actions { display: flex; align-items: center; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: 8.5px; font-weight: 700; white-space: nowrap; }
.pill.lime { border-color: #d4f7a6; background: var(--lime-soft); color: #537d12; }
.pill.dark { border-color: #2c322b; background: #1a1f19; color: white; }
.pill.red { border-color: #ffd2cf; background: #fff0ef; color: #b13c37; }
.pill.blue { border-color: #d5ddff; background: #f0f3ff; color: #4965bf; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.status-dot.live { background: var(--lime-strong); box-shadow: 0 0 0 4px rgba(168,255,57,.16); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(168,255,57,0); } }

.hero-grid { display: grid; grid-template-columns: 1.56fr .84fr; gap: 16px; margin-bottom: 16px; }
.hero-card {
  position: relative;
  min-height: 316px;
  /* Reserve the band occupied by the absolutely positioned .hero-stats;
     without it the .hero-actions buttons overlap the stat chips. */
  padding: 29px 29px 96px;
  overflow: hidden;
  border-color: #151a14;
  border-radius: var(--radius-xl);
  background: #101410;
  color: white;
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -150px;
  top: -185px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,255,57,.28), rgba(168,255,57,0) 68%);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to left, black, transparent 72%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; height: 27px; padding: 0 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.05); color: #c9d0c3; font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-card h1 { max-width: 680px; margin: 21px 0 13px; font-size: clamp(32px, 4.25vw, 59px); line-height: .99; letter-spacing: -.062em; font-weight: 580; }
.hero-card h1 em { color: var(--lime); font-style: normal; }
.hero-card p { max-width: 610px; margin: 0; color: #9da59a; font-size: 11.5px; line-height: 1.72; }
.hero-actions { margin-top: 24px; display: flex; align-items: center; gap: 9px; }
.hero-stats { position: absolute; z-index: 2; left: 29px; right: 29px; bottom: 22px; display: flex; align-items: center; gap: 27px; }
.hero-stat strong { display: block; color: white; font-family: "DM Mono", monospace; font-size: 14px; font-weight: 500; }
.hero-stat span { display: block; margin-top: 3px; color: #758075; font-size: 8.5px; }
.hero-stat-divider { width: 1px; height: 27px; background: rgba(255,255,255,.11); }
.hero-orbit { position: absolute; z-index: 2; right: 28px; top: 31px; width: 146px; height: 146px; }
.hero-orbit svg { width: 100%; height: 100%; }
.hero-orbit .orbit-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; }
.hero-orbit .orbit-label strong { display: block; font-family: "DM Mono", monospace; font-size: 22px; font-weight: 500; }
.hero-orbit .orbit-label span { color: #7f8a7e; font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; }

.quick-upload { padding: 22px; display: flex; flex-direction: column; }
.quick-upload h3 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.quick-upload > p { margin: 8px 0 14px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.dropzone {
  position: relative;
  min-height: 128px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 17px;
  background: #f7f8f4;
  cursor: pointer;
  transition: .2s ease;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--lime-strong); background: #f4fbe9; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 9px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.upload-icon svg { width: 16px; height: 16px; }
.dropzone strong { font-size: 10.5px; }
.dropzone span { margin-top: 4px; color: var(--muted); font-size: 8.5px; }
.quick-upload-footer { margin-top: auto; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.runtime-list { display: flex; gap: 5px; }
.runtime-chip { padding: 4px 7px; border-radius: 7px; background: #f0f1ec; color: var(--muted); font-family: "DM Mono", monospace; font-size: 7.5px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { min-height: 126px; padding: 17px; position: relative; overflow: hidden; }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-label { color: var(--muted); font-size: 9.5px; font-weight: 650; }
.metric-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #f0f1eb; color: #60655d; }
.metric-icon svg { width: 14px; height: 14px; }
.metric-value { margin-top: 15px; font-family: "DM Mono", monospace; font-size: 24px; font-weight: 500; letter-spacing: -.05em; }
.metric-value small { margin-left: 2px; color: var(--muted); font-size: 10px; }
.metric-foot { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8.5px; }
.metric-change { color: #5e8b16; font-weight: 700; }
.metric-change.down { color: var(--red); }
.sparkline { position: absolute; right: 11px; bottom: 11px; width: 68px; height: 24px; opacity: .7; }

.dashboard-main { display: grid; grid-template-columns: 1.52fr .84fr; gap: 16px; margin-bottom: 16px; }
.activity-card { min-height: 336px; }
.activity-wrap { height: 215px; display: flex; flex-direction: column; }
.activity-bars { flex: 1; display: flex; align-items: flex-end; gap: 8px; padding: 10px 2px 0; border-bottom: 1px solid var(--line); background-image: linear-gradient(to bottom, transparent 24%, rgba(225,227,219,.58) 25%, transparent 26%, transparent 49%, rgba(225,227,219,.58) 50%, transparent 51%, transparent 74%, rgba(225,227,219,.58) 75%, transparent 76%); }
.activity-bar-group { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.activity-bar { width: min(18px, 68%); min-height: 6px; border-radius: 5px 5px 2px 2px; background: var(--ink); transition: height .5s ease; }
.activity-bar.tasks { width: min(18px, 68%); background: var(--lime); opacity: .88; }
.activity-bar-group:hover .activity-bar { background: var(--blue); }
.activity-bar-group:hover .activity-bar.tasks { background: var(--lime-strong); }
.activity-labels { height: 21px; padding-top: 7px; display: flex; gap: 8px; }
.activity-labels span { flex: 1; text-align: center; color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 7px; }
.chart-legend { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 8.5px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--ink); }
.legend-dot.lime { background: var(--lime); }

.live-card { min-height: 336px; }
.live-list { display: flex; flex-direction: column; gap: 10px; }
.live-run { padding: 11px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.live-run.clickable { cursor: pointer; }
.live-run.clickable:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.live-ring { position: relative; width: 38px; height: 38px; flex: 0 0 auto; }
.live-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.live-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: "DM Mono", monospace; font-size: 7.5px; }
.live-copy { min-width: 0; flex: 1; }
.live-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.live-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 8.5px; }
.live-stage { max-width: 92px; text-align: right; color: var(--muted); font-family: "DM Mono", monospace; font-size: 7.5px; text-transform: uppercase; }
.empty-live { min-height: 190px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 10px; }
.empty-orb { width: 56px; height: 56px; margin: 0 auto 13px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--lime-strong); font-size: 21px; }

.table-card { overflow: hidden; }
.table-toolbar { padding: 17px 19px 13px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.table-toolbar .card-head { margin: 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { height: 38px; padding: 0 14px; color: var(--muted); background: #f8f9f5; font-size: 8px; font-weight: 750; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { height: 59px; padding: 0 14px; border-top: 1px solid var(--line); font-size: 10px; vertical-align: middle; }
.data-table tbody tr { transition: .14s ease; }
.data-table tbody tr:hover { background: #fafbf7; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table .num { font-family: "DM Mono", monospace; font-variant-numeric: tabular-nums; }
.rank-badge { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #f0f1ec; color: #60645d; font-family: "DM Mono", monospace; font-size: 9px; }
.rank-badge.top { background: var(--ink); color: var(--lime); }
.agent-cell { display: flex; align-items: center; gap: 10px; min-width: 195px; }
.agent-logo { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: white; font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; }
.agent-copy strong { display: block; font-size: 10px; }
.agent-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.score-cell { min-width: 122px; }
.score-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.score-line strong { font-family: "DM Mono", monospace; font-size: 10px; }
.score-line span { color: var(--muted); font-size: 7.5px; }
.score-bar { height: 4px; overflow: hidden; border-radius: 4px; background: #eceee8; }
.score-bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.score-bar i.lime { background: var(--lime-strong); }
.trend { font-family: "DM Mono", monospace; font-size: 8.5px; }
.trend.up { color: #5e8b16; }
.trend.down { color: var(--red); }
.trace-button { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.trace-button svg { width: 13px; height: 13px; }

.system-list { display: flex; flex-direction: column; }
.system-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.system-item:last-child { border-bottom: 0; }
.system-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #f1f2ed; color: var(--muted); }
.system-mark svg { width: 13px; height: 13px; }
.system-copy { flex: 1; min-width: 0; }
.system-copy strong { display: block; font-size: 9.5px; }
.system-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.system-status { color: #628a1f; font-family: "DM Mono", monospace; font-size: 7.5px; }

.dataset-tabs { display: flex; align-items: center; gap: 7px; padding-bottom: 1px; overflow-x: auto; }
.dataset-tab { height: 34px; padding: 0 12px; display: flex; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); font-size: 9.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.dataset-tab:hover { background: white; }
.dataset-tab.active { border-color: var(--line); background: white; color: var(--ink); box-shadow: var(--shadow-soft); }
.dataset-tab i { width: 7px; height: 7px; border-radius: 50%; background: var(--dataset-accent, var(--lime)); }
.leaderboard-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.filter-panel { position: sticky; top: 94px; }
.filter-group { padding: 15px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-label { margin-bottom: 10px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.filter-radio { display: flex; align-items: center; gap: 7px; margin: 8px 0; color: #525750; font-size: 9.5px; cursor: pointer; }
.filter-radio input, .switch input { accent-color: #647d30; }
.filter-select, .field-input, .field-select, .field-textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; outline: 0; transition: .18s ease;
}
.filter-select { height: 36px; padding: 0 10px; font-size: 9.5px; }
.filter-select:focus, .field-input:focus, .field-select:focus, .field-textarea:focus { border-color: #abcf75; box-shadow: 0 0 0 3px rgba(168,255,57,.14); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #525750; font-size: 9.5px; }
.leaderboard-stage { min-width: 0; }
.podium-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.podium-card { position: relative; min-height: 159px; padding: 18px; overflow: hidden; }
.podium-card.winner { background: var(--ink); color: white; border-color: var(--ink); }
.podium-card.winner::after { content: ""; position: absolute; right: -46px; top: -42px; width: 126px; height: 126px; border-radius: 50%; background: rgba(168,255,57,.14); }
.podium-rank { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.winner .podium-rank { color: #98a094; }
.podium-agent { position: relative; z-index: 2; margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.podium-agent .agent-logo { width: 37px; height: 37px; }
.winner .agent-logo { border-color: #30362e; background: #1d221c; color: var(--lime); }
.podium-agent h3 { margin: 0; font-size: 12px; letter-spacing: -.02em; }
.podium-agent span { display: block; margin-top: 3px; color: var(--muted); font-size: 8.5px; }
.winner .podium-agent span { color: #8e978a; }
.podium-score { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 15px; display: flex; align-items: flex-end; justify-content: space-between; }
.podium-score strong { font-family: "DM Mono", monospace; font-size: 24px; font-weight: 500; letter-spacing: -.06em; }
.podium-score span { color: var(--muted); font-size: 7.5px; }
.winner .podium-score span { color: #90998c; }
.podium-delta { color: #608b1d; font-family: "DM Mono", monospace; font-size: 8.5px; }
.winner .podium-delta { color: var(--lime); }

.chart-card { padding: 19px; margin-bottom: 14px; }
.scatter-wrap { position: relative; height: 220px; padding: 11px 8px 28px 42px; }
.scatter-wrap::before { content: ""; position: absolute; inset: 11px 8px 28px 42px; background-image: linear-gradient(to bottom, transparent 24%, rgba(225,227,219,.7) 25%, transparent 26%, transparent 49%, rgba(225,227,219,.7) 50%, transparent 51%, transparent 74%, rgba(225,227,219,.7) 75%, transparent 76%), linear-gradient(to right, transparent 24%, rgba(225,227,219,.7) 25%, transparent 26%, transparent 49%, rgba(225,227,219,.7) 50%, transparent 51%, transparent 74%, rgba(225,227,219,.7) 75%, transparent 76%); }
.scatter-point { position: absolute; width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; background: var(--point, var(--blue)); box-shadow: 0 2px 7px rgba(0,0,0,.15); transform: translate(-50%,50%); cursor: pointer; transition: .18s ease; }
.scatter-point:hover { width: 15px; height: 15px; z-index: 4; }
.scatter-point.best { width: 15px; height: 15px; background: var(--lime-strong); box-shadow: 0 0 0 5px rgba(168,255,57,.22); }
.scatter-axis-y, .scatter-axis-x { position: absolute; color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 7px; }
.scatter-axis-y { left: 0; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left top; }
.scatter-axis-x { left: 50%; bottom: 0; transform: translateX(-50%); }

.upload-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) .75fr; gap: 16px; align-items: start; }
.step-line { display: flex; align-items: center; gap: 8px; margin-bottom: 19px; }
.step-item { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8.5px; }
.step-number { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 8px; background: white; font-family: "DM Mono", monospace; font-size: 8px; }
.step-item.active { color: var(--ink); font-weight: 700; }
.step-item.active .step-number { border-color: var(--ink); background: var(--ink); color: var(--lime); }
.step-arrow { color: var(--line-strong); }
.runtime-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 16px; }
.runtime-tab { min-height: 66px; padding: 10px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; }
.runtime-tab.active { border-color: #a9d568; background: var(--lime-soft); box-shadow: inset 0 0 0 1px rgba(141,237,19,.13); }
.runtime-tab strong { display: block; font-size: 9.5px; }
.runtime-tab span { display: block; margin-top: 4px; color: var(--muted); font-size: 7.8px; line-height: 1.4; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #555a53; font-size: 8.5px; font-weight: 700; }
.field-label span { color: var(--muted-2); font-weight: 400; }
.field-input, .field-select { height: 40px; padding: 0 12px; font-size: 10px; }
.field-textarea { min-height: 82px; padding: 11px 12px; resize: vertical; font-size: 10px; line-height: 1.55; }
.upload-main-drop { min-height: 150px; margin-bottom: 14px; }
.upload-main-drop .dropzone { height: 100%; min-height: 150px; }
.card-upload-drop { min-height: 126px; }
.card-upload-drop .dropzone { min-height: 126px; }
.card-json-input { min-height: 190px; font-family: "DM Mono", monospace; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.privacy-note { display: flex; gap: 9px; padding: 11px; border: 1px solid #dcead0; border-radius: 12px; background: #f6fbef; color: #617153; font-size: 8.5px; line-height: 1.55; }
.privacy-note svg { width: 14px; height: 14px; flex: 0 0 auto; color: #71933d; }
.protocol-code { margin: 0; padding: 14px; overflow-x: auto; border: 1px solid #272d25; border-radius: 14px; background: #111510; color: #c9d2c3; font-family: "DM Mono", monospace; font-size: 8px; line-height: 1.7; }
.protocol-code .key { color: var(--lime); }
.protocol-code .string { color: #9eb9ff; }

.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.agent-card { position: relative; min-height: 218px; padding: 18px; display: flex; flex-direction: column; }
.agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.agent-card-head { display: flex; align-items: flex-start; gap: 11px; }
.agent-card-head .agent-logo { width: 40px; height: 40px; }
.agent-card-head div:nth-child(2) { flex: 1; min-width: 0; }
.agent-card h3 { margin: 1px 0 4px; font-size: 12px; letter-spacing: -.02em; }
.agent-card-head p { margin: 0; color: var(--muted); font-size: 8.5px; }
.agent-card-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 19px 0; }
.agent-stat { padding: 9px 7px; border-radius: 11px; background: #f5f6f1; text-align: center; }
.agent-stat strong { display: block; font-family: "DM Mono", monospace; font-size: 10px; }
.agent-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 7.5px; }
.agent-card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.agent-card-foot .button { margin-left: auto; }
.verified-check { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 8px; }

.runs-layout { display: grid; grid-template-columns: minmax(0, 1.22fr) .78fr; gap: 16px; align-items: start; }
.run-list { display: flex; flex-direction: column; }
.run-row { padding: 15px 16px; display: grid; grid-template-columns: minmax(190px, 1.3fr) .75fr .7fr .55fr 30px; align-items: center; gap: 14px; border-top: 1px solid var(--line); cursor: pointer; transition: .16s ease; }
.run-row:first-child { border-top: 0; }
.run-row:hover, .run-row.selected { background: #f8faf4; }
.run-agent { display: flex; align-items: center; gap: 10px; min-width: 0; }
.run-agent .agent-logo { width: 31px; height: 31px; }
.run-agent div:last-child { min-width: 0; }
.run-agent strong { display: block; overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.run-agent span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.run-metric { color: var(--muted); font-size: 8px; }
.run-metric strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: "DM Mono", monospace; font-size: 9.5px; font-weight: 500; }
.run-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.progress-track { position: relative; width: 100%; height: 6px; overflow: hidden; border-radius: 5px; background: #eceee8; }
.progress-track i { display: block; height: 100%; border-radius: 5px; background: var(--lime-strong); transition: width .35s ease; }
.run-detail-card { position: sticky; top: 94px; padding: 20px; }
.run-detail-hero { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.run-detail-hero .agent-cell { align-items: flex-start; }
.run-detail-hero .agent-logo { width: 42px; height: 42px; }
.run-detail-meta { margin-top: 15px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.meta-box { padding: 10px; border-radius: 11px; background: #f5f6f1; }
.meta-box strong { display: block; font-family: "DM Mono", monospace; font-size: 11px; }
.meta-box span { display: block; margin-top: 3px; color: var(--muted); font-size: 7.5px; }
.stage-flow { margin: 18px 0; }
.stage { position: relative; padding: 0 0 15px 24px; }
.stage:last-child { padding-bottom: 0; }
.stage::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: -2px; width: 1px; background: var(--line); }
.stage:last-child::before { display: none; }
.stage-dot { position: absolute; left: 2px; top: 3px; width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; background: #d8dbd3; box-shadow: 0 0 0 1px var(--line); }
.stage.complete .stage-dot { background: var(--lime-strong); box-shadow: 0 0 0 1px #9bda48; }
.stage.active .stage-dot { background: var(--ink); box-shadow: 0 0 0 4px var(--lime-soft); }
.stage-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stage-copy strong { font-size: 9px; }
.stage-copy span { color: var(--muted); font-family: "DM Mono", monospace; font-size: 7.5px; }
.run-log { max-height: 192px; overflow-y: auto; padding: 11px; border-radius: 13px; background: #111510; color: #b8c1b3; font-family: "DM Mono", monospace; font-size: 7.5px; line-height: 1.65; }
.log-line { display: flex; gap: 8px; margin-bottom: 5px; }
.log-time { color: #5f695d; flex: 0 0 auto; }
.log-line.success .log-text { color: var(--lime); }
.log-line.warning .log-text { color: #ffbd6b; }
.log-line.error .log-text { color: #ff7b76; }

.trace-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.trace-task-list { max-height: 650px; overflow-y: auto; }
.trace-task { padding: 13px 14px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); cursor: pointer; }
.trace-task:first-child { border-top: 0; }
.trace-task:hover, .trace-task.active { background: #f8faf4; }
.trace-task-icon { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 9px; background: #eef0e9; font-size: 9px; }
.trace-task-icon.passed { background: var(--lime-soft); color: #5d8919; }
.trace-task-icon.failed { background: #fff0ef; color: var(--red); }
.trace-task-copy { min-width: 0; flex: 1; }
.trace-task-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.trace-task-copy span { display: block; margin-top: 3px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 7.5px; }
.trace-detail { overflow: hidden; }
.trace-head { padding: 19px; border-bottom: 1px solid var(--line); }
.trace-head h2 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.trace-head p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.trace-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 15px; }
.trace-metric { padding: 9px; border-radius: 10px; background: #f5f6f1; }
.trace-metric strong { display: block; font-family: "DM Mono", monospace; font-size: 9.5px; }
.trace-metric span { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }
.waterfall { padding: 19px; display: flex; flex-direction: column; gap: 13px; }
.trace-step { display: grid; grid-template-columns: 150px minmax(0, 1fr) 58px; align-items: center; gap: 13px; }
.trace-step-copy { min-width: 0; }
.trace-step-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 9px; white-space: nowrap; }
.trace-step-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 7.5px; }
.trace-lane { position: relative; height: 10px; border-radius: 5px; background: #f0f1ec; overflow: hidden; }
.trace-lane i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--ink); }
.trace-lane i.warning { background: var(--orange); }
.trace-lane i.failed { background: var(--red); }
.trace-duration { color: var(--muted); font-family: "DM Mono", monospace; font-size: 7.5px; text-align: right; }
.trace-detail-list { padding: 0 19px 19px; }
.trace-event { position: relative; margin-left: 8px; padding: 0 0 18px 24px; border-left: 1px solid var(--line); }
.trace-event:last-child { padding-bottom: 0; }
.trace-event::before { content: ""; position: absolute; left: -5px; top: 2px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.trace-event.warning::before { background: var(--orange); }
.trace-event.failed::before { background: var(--red); }
.trace-event-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trace-event-head strong { font-size: 9.5px; }
.trace-event-head span { color: var(--muted); font-family: "DM Mono", monospace; font-size: 7.5px; }
.trace-event p { margin: 6px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.55; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(10,13,11,.44); backdrop-filter: blur(8px); animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(760px, 100%); max-height: min(820px, 90vh); overflow: auto; border: 1px solid var(--line); border-radius: 25px; background: var(--panel-strong); box-shadow: 0 30px 100px rgba(0,0,0,.25); animation: modal-in .24s ease; }
@keyframes modal-in { from { opacity: 0; transform: scale(.98) translateY(8px); } }
.modal-head { position: sticky; top: 0; z-index: 3; min-height: 65px; padding: 16px 19px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.modal-head h2 { flex: 1; margin: 0; font-size: 14px; letter-spacing: -.02em; }
.modal-close { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.modal-body { padding: 21px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--line); }
.command-modal .modal { width: min(620px, 100%); }
.command-input-wrap { height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.command-input-wrap input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 11px; }
.command-list { padding: 9px; }
.command-item { width: 100%; padding: 11px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 11px; background: transparent; text-align: left; cursor: pointer; }
.command-item:hover { background: #f4f6ef; }
.command-item svg { width: 15px; height: 15px; color: var(--muted); }
.command-item div { flex: 1; }
.command-item strong { display: block; font-size: 10px; }
.command-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.command-item kbd { color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 8px; }
.form-error { margin: 0 0 12px; padding: 9px 11px; border: 1px solid #ffd3cf; border-radius: 11px; background: #fff2f1; color: #b14540; font-size: 9px; }
.form-success { margin: 0 0 12px; padding: 11px; border: 1px solid #d9edc5; border-radius: 11px; background: #f5fbeD; color: #587b1d; font-size: 9px; line-height: 1.5; }
.form-success strong { display: block; margin-bottom: 3px; }

.toast-root { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { min-width: 280px; max-width: 420px; padding: 12px 14px; display: flex; gap: 10px; border: 1px solid #2b312a; border-radius: 13px; background: #111510; color: white; box-shadow: 0 18px 50px rgba(0,0,0,.22); font-size: 9.5px; line-height: 1.45; animation: toast-in .25s ease; pointer-events: auto; }
.toast.success::before { content: "✓"; color: var(--lime); font-weight: 800; }
.toast.error::before { content: "!"; color: #ff817a; font-weight: 800; }
.toast.info::before { content: "i"; color: #9eb9ff; font-weight: 800; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.skeleton { position: relative; overflow: hidden; border-radius: 10px; background: #e9ebe5; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.loading-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.loading-card { height: 126px; border-radius: 21px; }
.error-state { min-height: 300px; display: grid; place-items: center; text-align: center; }
.error-state strong { display: block; font-size: 16px; }
.error-state p { color: var(--muted); font-size: 10px; }
.muted { color: var(--muted); }
.mono { font-family: "DM Mono", monospace; }
.hide { display: none !important; }

@media (max-width: 1280px) {
  .hero-grid { grid-template-columns: 1.3fr .8fr; }
  .hero-orbit { display: none; }
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaderboard-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .data-table .optional { display: none; }
}
@media (max-width: 1080px) {
  :root { --sidebar: 218px; }
  .page, .topbar { padding-left: 24px; padding-right: 24px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .dashboard-main, .upload-layout, .runs-layout, .trace-layout { grid-template-columns: 1fr; }
  .quick-upload { min-height: 260px; }
  .filter-panel, .run-detail-card { position: static; }
  .run-detail-card { order: -1; }
  .trace-task-list { max-height: 260px; }
}
@media (max-width: 840px) {
  :root { --sidebar: 0px; --topbar: 66px; }
  .sidebar { transform: translateX(-100%); transition: .24s ease; box-shadow: 20px 0 60px rgba(0,0,0,.12); }
  .app-shell.menu-open .sidebar { transform: none; }
  .main { margin-left: 0; }
  .mobile-menu { display: grid; }
  .command-search { width: 38px; padding: 0; justify-content: center; }
  .command-search span, .command-search kbd { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .leaderboard-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .podium-grid { grid-template-columns: 1fr; }
  .podium-card { min-height: 135px; }
  .agent-grid { grid-template-columns: 1fr; }
  .run-row { grid-template-columns: minmax(160px, 1fr) .7fr 30px; }
  .run-row > :nth-child(3), .run-row > :nth-child(4) { display: none; }
}
@media (max-width: 620px) {
  .page, .topbar { padding-left: 15px; padding-right: 15px; }
  .page { padding-top: 22px; }
  .breadcrumbs { display: none; }
  .topbar { justify-content: flex-end; }
  .top-actions { margin-left: 0; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 112px; padding: 14px; }
  .metric-value { font-size: 20px; }
  .hero-card { min-height: 385px; padding: 23px; }
  .hero-card h1 { font-size: 39px; }
  .hero-card { padding-bottom: 132px; }
  .hero-stats { left: 23px; right: 23px; gap: 14px; flex-wrap: wrap; }
  .hero-stat-divider { display: none; }
  .activity-labels span:nth-child(even) { visibility: hidden; }
  .data-table th:nth-child(3), .data-table td:nth-child(3), .data-table th:nth-child(4), .data-table td:nth-child(4) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .runtime-tabs { grid-template-columns: 1fr; }
  .trace-metrics { grid-template-columns: repeat(2, 1fr); }
  .trace-step { grid-template-columns: 100px minmax(0, 1fr) 45px; gap: 7px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { border-radius: 24px 24px 0 0; max-height: 94vh; }
}

/* Runtime fixes verified by headless rendering */
svg { width: 16px; height: 16px; flex: 0 0 auto; }
/* Buttons keep the icon and the label side by side, never overlapping. */
.button { white-space: nowrap; }
.button svg { flex: 0 0 auto; }
.workspace-switch svg { width: 13px; height: 13px; }
.command-search span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 840px) { .sidebar { width: 248px; } }


.source-banner {
  margin-bottom: 16px;
  min-height: 44px;
  padding: 10px 12px 10px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffd2cf;
  border-radius: 15px;
  background: #fff7f5;
  color: #6f4a46;
  font-size: 9.5px;
  line-height: 1.5;
}
.source-banner strong { color: #a83f39; white-space: nowrap; }
.source-banner span:nth-child(2) { flex: 1; }

/* Run progress and failure states */
.progress-track i.running { background: var(--blue); }
.progress-track i.completed { background: var(--lime-strong); }
.progress-track i.failed { background: var(--red); }
.failed-text { color: var(--red) !important; }
.meta-box.failure { background: #fff0ef; color: #a13d38; }
.run-failure, .run-partial {
  margin-top: 13px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 11px;
  font-size: 8.5px;
  line-height: 1.45;
}
.run-failure { border: 1px solid #ffd2cf; background: #fff1ef; color: #9d403a; }
.run-partial { border: 1px solid #ffe0b8; background: #fff8eb; color: #8a5a18; }
.run-failure strong, .run-partial strong { font-size: 9.5px; }
.stage.failed .stage-dot { background: var(--red); box-shadow: 0 0 0 4px #fff0ef; }

/* Marketplace review pipeline */
.agent-card-foot { flex-wrap: wrap; }
.agent-review-strip {
  margin-top: 12px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7f8f3;
}
.agent-review-strip > div { display: flex; align-items: baseline; gap: 8px; }
.agent-review-strip span { font-size: 7.5px; }
.agent-review-strip strong { font-family: "DM Mono", monospace; font-size: 14px; letter-spacing: -.04em; }
.review-consent { align-items: center; }
.review-case-input { min-height: 82px; line-height: 1.55; }

.review-funnel { margin-bottom: 16px; overflow: hidden; }
.review-stage-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.review-stage-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 5%;
  right: 5%;
  top: 49px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.review-stage {
  position: relative;
  z-index: 1;
  min-height: 145px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8f9f5;
}
.review-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-stage-top span { font-size: 9px; font-weight: 800; }
.review-stage-top i { color: var(--muted); font-size: 6.5px; font-style: normal; font-family: "DM Mono", monospace; letter-spacing: .08em; }
.review-stage > strong { display: block; margin-top: 10px; font-family: "DM Mono", monospace; font-size: 30px; line-height: 1; letter-spacing: -.07em; }
.review-stage p { min-height: 28px; margin: 8px 0 12px; color: var(--muted); font-size: 7.5px; line-height: 1.45; }
.review-stage-track { height: 5px; overflow: hidden; border-radius: 999px; background: #e5e8df; }
.review-stage-track i { display: block; height: 100%; border-radius: inherit; background: var(--line-strong); }
.review-stage.pass { border-color: #d6ecbc; background: #f7fcef; }
.review-stage.pass .review-stage-top i { color: #5d811f; }
.review-stage.pass .review-stage-track i { background: var(--lime-strong); }
.review-stage.fail { border-color: #ffd4d1; background: #fff7f5; }
.review-stage.fail .review-stage-top i { color: var(--red); }
.review-stage.fail .review-stage-track i { background: var(--red); }
.review-stage.running { border-color: #cfd9ff; background: #f7f9ff; }
.review-stage.running .review-stage-top i { color: var(--blue); }
.review-stage.running .review-stage-track i { background: var(--blue); }

.review-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.review-agent-list { position: sticky; top: calc(var(--topbar) + 18px); overflow: hidden; }
.review-agent-rows { max-height: 690px; overflow: auto; padding: 7px; }
.review-agent-row {
  width: 100%;
  padding: 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.review-agent-row:hover { background: #f5f7f1; }
.review-agent-row.active { border-color: #d9edc5; background: var(--lime-soft); }
.review-agent-row .agent-logo.small { width: 34px; height: 34px; border-radius: 11px; font-size: 10px; }
.review-agent-row > div:nth-child(2) { min-width: 0; }
.review-agent-row > div:nth-child(2) strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.review-agent-row > div:nth-child(2) span { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.review-agent-score { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.review-agent-score > strong { font-family: "DM Mono", monospace; font-size: 12px; }
.review-agent-score .pill { height: 15px; padding: 0 5px; font-size: 6px; }
.review-detail-panel { min-width: 0; padding: 19px; }
.review-detail-head { padding-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.review-score-orb {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f5f6f1;
}
.review-score-orb strong { display: block; font-family: "DM Mono", monospace; font-size: 25px; line-height: 1; letter-spacing: -.06em; }
.review-score-orb span { display: block; margin-top: 5px; color: var(--muted); font-size: 6.5px; text-transform: uppercase; letter-spacing: .08em; }
.review-score-orb.approved { border-color: #cdebac; background: var(--lime-soft); }
.review-score-orb.conditional { border-color: #ffe1b9; background: #fff8eb; }
.review-score-orb.rejected { border-color: #ffd2cf; background: #fff3f1; }
.review-summary-line {
  padding: 15px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.review-summary-line > div { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9f5; }
.review-summary-line span { display: block; color: var(--muted); font-size: 7px; }
.review-summary-line strong { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.review-progress { margin: 0 0 15px; padding: 12px; border: 1px solid #cfd9ff; border-radius: 13px; background: #f7f9ff; }
.review-progress > div:first-child { margin-bottom: 8px; display: flex; justify-content: space-between; font-size: 8px; }
.review-actions-list { margin: 0 0 16px; padding: 12px; display: grid; gap: 7px; border: 1px solid #ffe0b8; border-radius: 13px; background: #fff9ef; }
.review-actions-list strong { font-size: 9px; color: #7d561b; }
.review-actions-list span { position: relative; padding-left: 13px; color: #795d32; font-size: 8px; line-height: 1.45; }
.review-actions-list span::before { content: "→"; position: absolute; left: 0; color: #b77a1d; }
.review-check-groups { display: grid; gap: 12px; }
.review-check-group { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfa; }
.review-check-head { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: #f6f8f2; }
.review-check-head strong { display: block; font-size: 9px; }
.review-check-head span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
.review-check-row { min-height: 52px; padding: 10px 12px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 32px; align-items: center; gap: 10px; border-bottom: 1px solid #edf0e8; }
.review-check-row:last-child { border-bottom: 0; }
.review-check-row strong { font-size: 8.5px; }
.review-check-row p { margin: 3px 0 0; color: var(--muted); font-size: 7.4px; line-height: 1.45; }
.review-check-pill { width: fit-content; height: 18px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 999px; background: #eceee8; color: var(--muted); font-family: "DM Mono", monospace; font-size: 6px; letter-spacing: .05em; }
.review-check-pill.pass { background: var(--lime-soft); color: #5b7f1f; }
.review-check-pill.failed { background: #fff0ef; color: #b3443f; }
.review-check-pill.warning { background: #fff5e7; color: #9b671d; }
.review-check-pill.not_run { background: #eef0f4; color: #778092; }
.review-check-score { text-align: right; font-family: "DM Mono", monospace; font-size: 11px; }
.review-check-empty { padding: 16px; color: var(--muted); text-align: center; font-size: 8px; }
.review-empty { min-height: 420px; }
.review-empty strong { display: block; margin-top: 7px; font-size: 13px; }
.review-empty p { max-width: 420px; margin: 7px auto 0; color: var(--muted); font-size: 8.5px; line-height: 1.6; }

@media (max-width: 1080px) {
  .review-layout { grid-template-columns: 1fr; }
  .review-agent-list { position: static; }
  .review-agent-rows { max-height: 300px; }
}
@media (max-width: 840px) {
  .review-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-stage-grid::before { display: none; }
  .review-summary-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .review-stage-grid { grid-template-columns: 1fr; }
  .review-funnel { padding: 14px; }
  .review-detail-panel { padding: 13px; }
  .review-detail-head { align-items: flex-start; }
  .review-score-orb { width: 74px; height: 74px; }
  .review-score-orb strong { font-size: 20px; }
  .review-summary-line { grid-template-columns: 1fr 1fr; }
  .review-check-row { grid-template-columns: 54px minmax(0, 1fr) 26px; gap: 7px; }
}
.review-inline-pill {
  padding: 2px 5px;
  border-radius: 999px;
  background: #eceee8;
  color: var(--muted);
  font-size: 6.5px;
  font-weight: 700;
}
.review-inline-pill.lime { background: var(--lime-soft); color: #587b1d; }
.review-inline-pill.warning { background: #fff5e7; color: #94631e; }
.review-inline-pill.red { background: #fff0ef; color: #b3443f; }
.review-stage.done { border-color: #dfe2da; background: #f7f8f4; }
.review-stage.done .review-stage-top i { color: #6f756d; }
.review-stage.done .review-stage-track i { background: #aeb4aa; }
.review-evidence-note {
  margin: 0 0 14px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #d8e3ff;
  border-radius: 13px;
  background: #f7f9ff;
  color: #52617c;
  font-size: 7.8px;
  line-height: 1.55;
}
.review-evidence-note svg { margin-top: 1px; color: var(--blue); }
.review-evidence-note strong { color: #33415d; }

/* Skills.sh-inspired leaderboard */
.leaderboard-page { display: flex; flex-direction: column; gap: 14px; }
.leaderboard-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 4px 0 2px; }
.leaderboard-title { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: .98; letter-spacing: -.055em; }
.leaderboard-subtitle { margin: 9px 0 0; max-width: 720px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.leaderboard-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); overflow: hidden; }
.leaderboard-summary-item { min-width: 0; padding: 13px 15px; border-left: 1px solid var(--line); }
.leaderboard-summary-item:first-child { border-left: 0; }
.leaderboard-summary-item span { display: block; color: var(--muted); font-family: "DM Mono", monospace; font-size: 7.5px; text-transform: uppercase; letter-spacing: .08em; }
.leaderboard-summary-item strong { display: block; margin-top: 6px; font-family: "DM Mono", monospace; font-size: 18px; font-weight: 500; letter-spacing: -.05em; }
.leaderboard-summary-item small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted-2); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-controls { padding: 0; overflow: hidden; }
.leaderboard-datasets { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.leaderboard-datasets .dataset-tab { white-space: nowrap; }
.leaderboard-filterbar { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; }
.leaderboard-sort-tabs { display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 10px; background: #f0f1ec; }
.board-sort-tab { height: 29px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-family: "DM Mono", monospace; font-size: 8px; cursor: pointer; }
.board-sort-tab.active { background: var(--ink); color: var(--lime); }
.leaderboard-search { height: 36px; min-width: 0; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: #f8f9f5; }
.leaderboard-search svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--muted); }
.leaderboard-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.leaderboard-search kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted-2); font-family: "DM Mono", monospace; font-size: 7px; }
.board-verified { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.board-verified input { accent-color: #647d30; }
.leaderboard-table-card { overflow: hidden; }
.leaderboard-table-head { padding: 15px 16px; }
.leaderboard-table-meta { display: flex; align-items: center; gap: 10px; }
.leaderboard-table-meta .muted { font-size: 8px; }
.leaderboard-table-wrap { overflow-x: auto; }
.leaderboard-table { width: 100%; min-width: 1020px; border-collapse: collapse; }
.leaderboard-table th { height: 38px; padding: 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8f9f5; color: var(--muted); font-family: "DM Mono", monospace; font-size: 7px; font-weight: 500; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.leaderboard-table th:first-child, .leaderboard-table td:first-child { width: 46px; text-align: center; }
.leaderboard-table th:last-child, .leaderboard-table td:last-child { width: 44px; text-align: right; }
.leaderboard-table td { height: 69px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: #343934; font-size: 9.5px; vertical-align: middle; }
.leaderboard-entry { cursor: pointer; transition: background .14s ease; }
.leaderboard-entry:hover { background: #f7f9f2; }
.leaderboard-entry.rank-1 { background: linear-gradient(90deg, rgba(141,237,19,.10), transparent 52%); }
.leaderboard-entry.rank-2 { background: linear-gradient(90deg, rgba(100,133,255,.08), transparent 52%); }
.leaderboard-entry.rank-3 { background: linear-gradient(90deg, rgba(255,141,107,.07), transparent 52%); }
.leaderboard-entry.collapsed { display: none; }
.leaderboard-entry.collapsed.search-visible { display: table-row; }
.leaderboard-rank { color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; }
.rank-1 .leaderboard-rank, .rank-2 .leaderboard-rank, .rank-3 .leaderboard-rank { color: var(--ink); font-weight: 700; }
.leaderboard-agent-cell { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.leaderboard-agent-cell .agent-logo { width: 28px; height: 28px; border-radius: 9px; font-size: 8px; }
.leaderboard-agent-copy { min-width: 0; }
.leaderboard-agent-copy strong { display: flex; align-items: center; gap: 5px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-agent-copy span { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-agent-copy small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 7px; }
.source-chip { padding: 2px 4px; border: 1px solid currentColor; border-radius: 4px; font-family: "DM Mono", monospace; font-size: 5.8px; letter-spacing: .04em; }
.source-chip.live { color: #5f891f; }
.source-chip.demo { color: #b96757; }
.track-badge { display: inline-flex; padding: 4px 7px; border-radius: 7px; background: #eef2e9; color: #4f5a46; font-family: "DM Mono", monospace; font-size: 7px; }
.track-sub { display: block; max-width: 150px; margin-top: 4px; overflow: hidden; color: var(--muted-2); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-score { display: block; font-family: "DM Mono", monospace; font-size: 13px; font-weight: 600; }
.score-delta { display: block; margin-top: 3px; font-family: "DM Mono", monospace; font-size: 7px; }
.score-delta.up, .leaderboard-runs .up { color: #608b1d; }
.score-delta.down, .leaderboard-runs .down { color: #bf5f50; }
.leaderboard-success strong, .leaderboard-runs strong { display: block; font-family: "DM Mono", monospace; font-size: 10px; }
.leaderboard-success > span { display: block; width: 82px; height: 4px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: #e7e9e2; }
.leaderboard-success > span i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.leaderboard-runs small { display: block; margin-top: 3px; font-family: "DM Mono", monospace; font-size: 7px; }
.leaderboard-table td > small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }
.leaderboard-group-summary td { height: 37px; padding: 0 12px; background: #fbfcf8; }
.leaderboard-group-button { width: 100%; padding: 0; border: 0; background: transparent; color: var(--muted); font-family: "DM Mono", monospace; font-size: 7.5px; text-align: left; cursor: pointer; }
.leaderboard-group-button span { margin-left: 5px; color: var(--ink); }
.leaderboard-empty { padding: 44px 15px; color: var(--muted); font-size: 10px; text-align: center; }
.leaderboard-empty-search td { height: 80px; color: var(--muted); text-align: center !important; }
@media (max-width: 1080px) {
  .leaderboard-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .leaderboard-summary-item:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .leaderboard-summary-item:nth-child(5) { border-top: 1px solid var(--line); }
  .leaderboard-filterbar { grid-template-columns: 1fr auto; }
  .leaderboard-sort-tabs { grid-column: 1 / -1; width: max-content; }
}
@media (max-width: 620px) {
  .leaderboard-titlebar { align-items: stretch; flex-direction: column; }
  .leaderboard-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaderboard-summary-item { border-top: 1px solid var(--line); }
  .leaderboard-summary-item:nth-child(odd) { border-left: 0; }
  .leaderboard-filterbar { grid-template-columns: 1fr; }
  .board-verified { justify-self: start; }
  .leaderboard-search { width: 100%; }
}
/* Agent Card detail page */
.leaderboard-agent-link { color: inherit; text-decoration: none; }
.leaderboard-agent-link:hover strong { text-decoration: underline; text-decoration-color: #9bc94f; text-underline-offset: 3px; }
.leaderboard-runs .new { color: #5f891f; }
.agent-detail-page { display: flex; flex-direction: column; gap: 15px; }
.agent-detail-breadcrumbs { display: flex; align-items: center; gap: 7px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 8px; }
.agent-detail-breadcrumbs button { padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.agent-detail-breadcrumbs button:hover { color: var(--ink); }
.agent-detail-breadcrumbs svg { width: 11px; height: 11px; }
.agent-detail-breadcrumbs strong { color: var(--ink); }
.agent-detail-hero { padding: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.agent-detail-identity { display: flex; align-items: flex-start; gap: 15px; min-width: 0; }
.agent-detail-identity .agent-logo { width: 54px; height: 54px; border-radius: 16px; font-size: 15px; }
.agent-detail-identity h1 { margin: 4px 0 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.05em; line-height: 1; }
.agent-detail-identity p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.detail-kicker { color: #6f8f31; font-family: "DM Mono", monospace; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.agent-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.agent-detail-tags span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; background: #f7f8f3; color: #5d6458; font-family: "DM Mono", monospace; font-size: 7px; }
.agent-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.agent-detail-summary { padding: 14px 16px; border: 1px solid #dcead0; border-radius: 14px; background: #f6fbef; color: #536247; font-size: 10px; line-height: 1.65; }
.agent-detail-summary p { margin: 0; }
.agent-detail-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 15px; align-items: start; }
.agent-detail-main, .agent-detail-side { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.detail-section { padding: 18px; }
.detail-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.detail-section-head span { color: var(--muted); font-family: "DM Mono", monospace; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.detail-section-head h2 { margin: 5px 0 0; font-size: 15px; letter-spacing: -.03em; }
.agent-detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.agent-detail-facts > div { min-width: 0; padding: 10px; background: #fafbf7; }
.agent-detail-facts span, .detail-side-facts span { display: block; color: var(--muted); font-size: 7px; }
.agent-detail-facts strong, .detail-side-facts b { display: block; margin-top: 4px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.agent-prompt { max-height: 440px; margin: 14px 0 0; padding: 15px; overflow: auto; border: 1px solid #272d25; border-radius: 13px; background: #111510; color: #c9d2c3; font-family: "DM Mono", monospace; font-size: 8.5px; line-height: 1.7; white-space: pre-wrap; }
.agent-tool-list { display: grid; gap: 8px; margin-top: 14px; }
.agent-tool-card { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf7; }
.agent-tool-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.agent-tool-card strong { font-size: 10px; }
.agent-tool-card > div span { color: var(--muted); font-family: "DM Mono", monospace; font-size: 7px; }
.agent-tool-card p { margin: 7px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.55; }
.agent-tool-card details { margin-top: 9px; }
.agent-tool-card summary { color: #668b29; font-size: 8px; cursor: pointer; }
.agent-tool-card pre { margin: 8px 0 0; padding: 10px; overflow: auto; border-radius: 9px; background: #f0f2eb; color: #4b5347; font-family: "DM Mono", monospace; font-size: 7.5px; }
.agent-dimension-list { display: grid; gap: 10px; margin-top: 15px; }
.agent-dimension-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 6px 12px; align-items: center; }
.agent-dimension-row strong { display: block; font-size: 9.5px; }
.agent-dimension-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 7.5px; }
.agent-dimension-row b { font-family: "DM Mono", monospace; font-size: 10px; text-align: right; }
.agent-dimension-row i { grid-column: 1 / -1; display: block; height: 5px; overflow: hidden; border-radius: 4px; background: #e7e9e2; }
.agent-dimension-row i span { height: 100%; margin: 0; border-radius: inherit; background: var(--ink); }
.detail-chip-group { margin-top: 14px; }
.detail-chip-group label { display: block; margin-bottom: 7px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 7px; text-transform: uppercase; }
.detail-chip-group > div { display: flex; flex-wrap: wrap; gap: 5px; }
.detail-chip-group > div span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: #f7f8f3; color: #4e5748; font-size: 8px; }
.detail-chip-group em { color: var(--muted); font-size: 8px; }
.detail-api-list { display: grid; gap: 6px; margin-top: 14px; }
.detail-api-list > div { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf7; }
.detail-api-list strong { color: #5f891f; font-family: "DM Mono", monospace; font-size: 7px; }
.detail-api-list code { overflow: hidden; font-family: "DM Mono", monospace; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.detail-api-list span { color: var(--muted); font-size: 7.5px; }
.detail-side-card { padding: 16px; }
.detail-side-label { color: var(--muted); font-family: "DM Mono", monospace; font-size: 7px; letter-spacing: .08em; }
.detail-side-score { display: block; margin: 8px 0 12px; font-family: "DM Mono", monospace; font-size: 34px; font-weight: 500; letter-spacing: -.06em; }
.detail-side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-side-grid div { padding: 8px; border-radius: 9px; background: #f5f6f1; }
.detail-side-grid span { display: block; color: var(--muted); font-size: 7px; }
.detail-side-grid b { display: block; margin-top: 4px; font-size: 9px; }
.detail-side-facts { display: grid; gap: 9px; margin-top: 12px; }
.detail-side-facts > div { display: flex; justify-content: space-between; gap: 10px; }
.detail-side-facts b { max-width: 58%; margin-top: 0; text-align: right; }
.detail-related-list { display: flex; flex-direction: column; margin-top: 9px; }
.detail-related-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.detail-related-list a:first-child { border-top: 0; }
.detail-related-list strong { font-size: 9px; }
.detail-related-list span { color: var(--muted); font-size: 7px; text-align: right; }
.detail-empty { padding: 16px 0; color: var(--muted); font-size: 8.5px; }
@media (max-width: 1080px) {
  .agent-detail-layout { grid-template-columns: 1fr; }
  .agent-detail-side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .agent-detail-hero { flex-direction: column; padding: 17px; }
  .agent-detail-actions { justify-content: flex-start; }
  .agent-detail-facts { grid-template-columns: 1fr 1fr; }
  .agent-detail-side { grid-template-columns: 1fr; }
}
/* Suite composition and benchmark details */
.suite-composition-toggle { width: 100%; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.suite-eyebrow { display: block; margin-bottom: 5px; color: #6f8f31; font-family: "DM Mono", monospace; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.suite-composition-toggle .card-title b { margin-left: 7px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 8px; font-weight: 500; }
.suite-toggle-label { flex: 0 0 auto; color: #63892a; font-family: "DM Mono", monospace; font-size: 8px; }
.suite-composition-panel { border-top: 1px solid var(--line); background: #fbfcf8; }
.suite-composition-head { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.suite-composition-head strong { display: block; font-size: 10px; }
.suite-composition-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.suite-benchmark-list { display: flex; flex-direction: column; }
.suite-benchmark-row { min-height: 64px; padding: 10px 15px; display: grid; grid-template-columns: minmax(220px, 1.35fr) 70px minmax(100px, .8fr) minmax(160px, 1fr) 74px 28px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.suite-benchmark-row:last-child { border-bottom: 0; }
.suite-benchmark-row.disabled { opacity: .45; }
.suite-benchmark-main { min-width: 0; }
.suite-benchmark-name { padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 10px; font-weight: 700; text-align: left; cursor: pointer; }
.suite-benchmark-name:hover { text-decoration: underline; text-decoration-color: #9bc94f; text-underline-offset: 3px; }
.suite-benchmark-main span { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.suite-benchmark-weight { text-align: right; }
.suite-benchmark-weight strong { display: block; font-family: "DM Mono", monospace; font-size: 12px; }
.suite-benchmark-weight span { display: block; margin-top: 3px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 6.5px; }
.suite-weight-bar { height: 5px; overflow: hidden; border-radius: 4px; background: #e6e9df; }
.suite-weight-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.suite-dimension-map { display: flex; flex-wrap: wrap; gap: 4px; }
.suite-dimension-map span { padding: 3px 5px; border-radius: 5px; background: #eef2e9; color: #596451; font-family: "DM Mono", monospace; font-size: 6.5px; }
.suite-dimension-map em { color: var(--muted); font-size: 7px; }
.suite-benchmark-link { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); }
.suite-benchmark-link svg { width: 12px; height: 12px; }
.suite-editor-note { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #dcead0; border-radius: 11px; background: #f6fbef; color: #617153; font-size: 8.5px; }
.suite-editor-group { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.suite-editor-group-head { padding: 9px 11px; display: flex; justify-content: space-between; background: #f6f7f2; color: var(--muted); font-size: 8px; }
.suite-composition-editor-row { min-height: 52px; padding: 8px 11px; display: grid; grid-template-columns: 18px minmax(180px, 1fr) 56px 12px 62px; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.suite-composition-editor-row input[data-role="enabled"] { accent-color: #647d30; }
.suite-editor-main { min-width: 0; }
.suite-editor-main strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.suite-editor-main span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
.suite-editor-weight { width: 56px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px; font-family: "DM Mono", monospace; font-size: 8px; }
.suite-editor-percent { color: var(--muted); font-size: 8px; }
.suite-editor-required { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 7.5px; }
.benchmark-detail-page { display: flex; flex-direction: column; gap: 14px; }
.benchmark-detail-hero { padding: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.benchmark-detail-hero h1 { margin: 6px 0 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.055em; }
.benchmark-detail-hero p { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.benchmark-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.benchmark-detail-actions a { text-decoration: none; }
.benchmark-detail-meta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: white; }
.benchmark-detail-meta > div { min-width: 0; padding: 12px 13px; border-left: 1px solid var(--line); }
.benchmark-detail-meta > div:first-child { border-left: 0; }
.benchmark-detail-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .6fr); gap: 14px; align-items: start; }
.benchmark-long-description { margin: 15px 0; color: #555d52; font-size: 10px; line-height: 1.75; }
.benchmark-metric-list { display: flex; flex-wrap: wrap; gap: 6px; }
.benchmark-metric-list div { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: #f8f9f5; font-size: 8px; }
.benchmark-membership-list { display: flex; flex-direction: column; margin-top: 12px; }
.benchmark-membership { padding: 12px 0; display: grid; grid-template-columns: minmax(0, 1fr) 50px minmax(140px, .8fr) auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.benchmark-membership:first-child { border-top: 0; }
.benchmark-membership strong { display: block; font-size: 9.5px; }
.benchmark-membership span { display: block; margin-top: 3px; color: var(--muted); font-size: 7.5px; }
.benchmark-membership > b { font-family: "DM Mono", monospace; font-size: 11px; text-align: right; }
.benchmark-result-empty { padding: 26px 16px; display: flex; align-items: center; gap: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: #fafbf7; color: var(--muted); }
.benchmark-result-empty svg { width: 25px; height: 25px; }
.benchmark-result-empty strong { display: block; color: var(--ink); font-size: 10px; }
.benchmark-result-empty p { margin: 5px 0 0; font-size: 8.5px; line-height: 1.55; }
.benchmark-source-links { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.benchmark-source-links a, .benchmark-source-links > div { display: block; color: inherit; text-decoration: none; }
.benchmark-source-links span { display: block; color: var(--muted); font-size: 7px; }
.benchmark-source-links strong { display: block; margin-top: 4px; overflow: hidden; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1080px) {
  .benchmark-detail-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benchmark-detail-meta > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .benchmark-detail-meta > div:nth-child(5), .benchmark-detail-meta > div:nth-child(6) { border-top: 1px solid var(--line); }
  .benchmark-detail-layout { grid-template-columns: 1fr; }
  .suite-benchmark-row { grid-template-columns: minmax(180px, 1fr) 60px minmax(90px, .7fr) minmax(130px, .9fr) 65px 24px; gap: 8px; }
}
@media (max-width: 720px) {
  .benchmark-detail-hero { flex-direction: column; }
  .benchmark-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suite-benchmark-row { grid-template-columns: 1fr 60px 24px; }
  .suite-benchmark-row .suite-weight-bar, .suite-benchmark-row .suite-dimension-map, .suite-benchmark-row .pill { display: none; }
  .benchmark-membership { grid-template-columns: 1fr 45px; }
  .benchmark-membership .suite-dimension-map, .benchmark-membership .button { grid-column: 1 / -1; }
}
/* Benchmark-level results */
.benchmark-result-note { margin: 13px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.55; }
.benchmark-result-table-wrap { margin-top: 13px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.benchmark-result-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.benchmark-result-table th { height: 34px; padding: 0 10px; background: #f7f8f3; color: var(--muted); font-family: "DM Mono", monospace; font-size: 6.5px; text-align: left; text-transform: uppercase; }
.benchmark-result-table td { min-height: 46px; padding: 9px 10px; border-top: 1px solid var(--line); font-size: 8.5px; vertical-align: top; }
.benchmark-result-table a { color: inherit; font-weight: 700; text-decoration: none; }
.benchmark-result-table a:hover { text-decoration: underline; text-decoration-color: #9bc94f; text-underline-offset: 3px; }
.benchmark-judge-detail { display: block; max-width: 430px; color: var(--muted); font-size: 7.5px; line-height: 1.45; }

/* ===== 双轨评测经济控制台：漏斗选榜 / 双轨榜单 / 积分账本 ===== */
.eco-split { display: grid; grid-template-columns: minmax(0, 1.15fr) .85fr; gap: 16px; align-items: start; }
.eco-list { display: flex; flex-direction: column; }
.eco-list-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 14px 18px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: .14s ease; }
.eco-list-item:first-child { border-top: 0; }
.eco-list-item:hover { background: #fafbf7; }
.eco-list-item.active { background: #f4fbeb; box-shadow: inset 3px 0 0 var(--lime-strong); }
.eco-list-item strong { font-size: 11px; }
.eco-list-item .card-sub { margin: 4px 0 0; }
.eco-list-meta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.eco-tabs { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #f8f9f5; flex-wrap: wrap; }
.eco-tab { height: 26px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; cursor: pointer; }
.eco-tab.active { background: var(--ink); color: white; }
.eco-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.eco-inline-form { display: flex; align-items: center; gap: 8px; }
.eco-inline-form .field-input { height: 34px; width: 190px; }
.eco-result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.eco-result { padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf8; }
.eco-result span { display: block; color: var(--muted); font-size: 8.5px; font-weight: 650; }
.eco-result strong { display: block; margin-top: 6px; font-family: "DM Mono", monospace; font-size: 13px; letter-spacing: -.02em; }
.eco-profile-block { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.eco-profile-block:last-child { border-bottom: 0; }
.eco-label { color: var(--muted); font-size: 9px; font-weight: 700; padding-top: 5px; }
.eco-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.eco-match { display: flex; align-items: center; gap: 9px; min-width: 130px; }
.eco-match .num { font-size: 10px; font-weight: 700; }
.eco-bar { width: 78px; }
.eco-code { display: inline-block; max-width: 320px; padding: 2px 6px; border-radius: 6px; background: #f2f4ec; color: #4a5049; font-family: "DM Mono", monospace; font-size: 8.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.eco-json { max-height: 420px; overflow: auto; margin: 10px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #0f120f; color: #d8f7a7; font-family: "DM Mono", monospace; font-size: 10px; line-height: 1.6; }
.eco-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--line); }
.eco-run-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 15px 18px; border-bottom: 1px solid var(--line); background: #fbfcf8; }
.eco-run-form .field { min-width: 170px; }
.eco-board-meta { display: flex; align-items: center; gap: 6px; }
@media (max-width: 1180px) {
  .eco-split { grid-template-columns: minmax(0, 1fr); }
  .eco-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 双轨榜单：目录卡片 + 详情标签页（对标 eval.ai challenge page）===== */
.eco-filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eco-search { height: 32px; min-width: 240px; margin-left: auto; }
.eco-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.eco-challenge-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.eco-challenge-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.eco-challenge-head h3 { margin: 8px 0 2px; font-size: 15px; letter-spacing: -.02em; }
.eco-card-flags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eco-challenge-score { text-align: right; flex-shrink: 0; }
.eco-challenge-score span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.eco-challenge-score strong { font-family: "DM Mono", monospace; font-size: 20px; }
.eco-card-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.eco-card-meta div span { display: block; color: var(--muted); font-size: 8px; }
.eco-card-meta div strong { display: block; margin-top: 4px; font-size: 10px; }
.eco-card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.eco-card-foot .button { margin-left: auto; }
.eco-challenge-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-bottom: 14px; }
.eco-challenge-hero h1 { margin: 10px 0 4px; font-size: 24px; letter-spacing: -.03em; }
.eco-hero-times { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 10px; color: var(--muted); font-size: 9.5px; }
.eco-hero-times strong { color: var(--ink); }
.eco-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eco-tabbar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcf8; overflow-x: auto; }
.eco-top-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 10.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.eco-top-tab svg { width: 13px; height: 13px; }
.eco-top-tab.active { color: var(--ink); border-bottom-color: var(--lime-strong); }
.eco-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.eco-paragraph { margin: 0 0 12px; color: #40453f; font-size: 10.5px; line-height: 1.75; }
.eco-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eco-kv > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf8; }
.eco-kv span { display: block; color: var(--muted); font-size: 8.5px; }
.eco-kv strong { display: block; margin-top: 5px; font-size: 10.5px; word-break: break-all; }
.eco-kv a { color: #43610f; font-weight: 700; }
.eco-timeline { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.eco-timeline div span { display: block; color: var(--muted); font-size: 8.5px; }
.eco-timeline div strong { display: block; margin-top: 4px; font-size: 10.5px; }
.eco-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 12px; }
.eco-steps li strong { display: block; font-size: 11px; }
.eco-steps li span { display: block; margin-top: 3px; color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.eco-board-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eco-board-controls .field-select { height: 30px; font-size: 9.5px; }
.eco-modal-title { margin: 16px 0 8px; font-size: 11px; }
.eco-modal-wide { max-width: 720px; }
@media (max-width: 1180px) {
  .eco-card-grid, .eco-detail-grid, .eco-challenge-hero { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 计费面板与漏斗（对标 AgentOps dashboard 的指标卡与图表）===== */
.eco-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eco-stat { min-height: 118px; padding: 16px 17px; display: flex; flex-direction: column; gap: 8px; }
.eco-stat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9.5px; font-weight: 650; }
.eco-stat-head .metric-icon { width: 26px; height: 26px; }
.eco-tip { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 50%; background: #f7f8f3; color: var(--muted); font-size: 8.5px; font-style: normal; font-weight: 700; cursor: help; }
.eco-stat-value { font-family: "DM Mono", monospace; font-size: 22px; letter-spacing: -.05em; }
.eco-stat-foot { margin-top: auto; color: var(--muted); font-size: 9px; line-height: 1.5; }
.eco-stat.lime .eco-stat-value { color: #4c7a10; }
.eco-stat.warn .eco-stat-value { color: #b07b12; }
.eco-stat.danger .eco-stat-value { color: var(--red); }
.eco-progress { margin-top: 12px; }
.eco-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; }
.eco-progress-head strong { color: var(--ink); font-family: "DM Mono", monospace; font-size: 10px; }
.eco-progress-track { margin-top: 6px; width: 100%; height: 7px; overflow: hidden; border-radius: 6px; background: #eceee8; }
.eco-progress-track i { display: block; height: 100%; border-radius: 6px; background: var(--lime-strong); transition: width .3s ease; }
.eco-progress.warn .eco-progress-track i { background: #f0c14b; }
.eco-progress.danger .eco-progress-track i { background: var(--red); }
.eco-progress.warn .eco-progress-head strong { color: #b07b12; }
.eco-progress.danger .eco-progress-head strong { color: var(--red); }
.eco-mini-bars { display: flex; align-items: flex-end; justify-content: flex-start; gap: 10px; height: 150px; padding: 10px 2px 0; overflow-x: auto; }
.eco-mini-bar { flex: 1 1 0; max-width: 76px; min-width: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.eco-mini-stack { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 100%; }
.eco-mini-stack i { flex: 1; border-radius: 4px 4px 0 0; min-height: 2px; }
.eco-mini-stack i.spend { background: #1a1e19; }
.eco-mini-stack i.income { background: var(--lime-strong); }
.eco-mini-bar span { color: var(--muted); font-size: 7.5px; font-family: "DM Mono", monospace; }
.eco-breakdown-row { margin-top: 10px; }
.eco-breakdown-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; }
.eco-breakdown-head span { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9.5px; }
.eco-breakdown-row .eco-progress-track { height: 6px; margin-top: 5px; }
.eco-breakdown-row.positive .eco-progress-track i { background: var(--lime-strong); }
.eco-funnel { display: flex; flex-direction: column; gap: 10px; }
.eco-funnel-stage { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(160px, 3fr) 150px; gap: 14px; align-items: center; }
.eco-funnel-label strong { display: block; font-size: 11px; }
.eco-funnel-label .card-sub { margin: 3px 0 0; }
.eco-funnel-bar { height: 26px; border-radius: 8px; background: #f2f4ec; overflow: hidden; }
.eco-funnel-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #b6f05a, #8ded13); }
.eco-funnel-meta { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; }
.eco-funnel-meta strong { font-size: 17px; }
.eco-funnel-meta span { color: var(--muted); font-size: 9px; }
@media (max-width: 1180px) {
  .eco-stat-grid, .eco-stat-grid[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .eco-funnel-stage { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 数据飞轮：四步闭环 ===== */
.eco-fly-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.eco-fly-step { position: relative; padding: 16px 17px; display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.eco-fly-step::after { content: '→'; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 14px; }
.eco-fly-step:last-child::after { content: ''; }
.eco-fly-kicker { color: var(--muted); font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eco-fly-step strong { font-size: 12px; }
.eco-fly-step .card-sub { margin: auto 0 0; }
@media (max-width: 1180px) {
  .eco-fly-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-fly-step::after { content: ''; }
}
