:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --warn: #b45309;
  --bad: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
.topbar { min-height: 88px; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #fff; }
h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: 0; }
p { margin: 5px 0 0; color: var(--muted); }
button { height: 36px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 6px; cursor: pointer; }
main { max-width: 1280px; margin: 0 auto; padding: 24px; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.status-card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.status-card { padding: 16px; min-height: 108px; display: flex; flex-direction: column; justify-content: space-between; }
.label, .panel-head span { color: var(--muted); font-size: 13px; }
.status-card strong { font-size: 22px; line-height: 1.2; }
.status-card small { color: var(--muted); overflow-wrap: anywhere; }
.ok { color: var(--accent); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.panel { margin-top: 18px; overflow: hidden; }
.panel-head { padding: 16px 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1180px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; background: #fbfcfd; }
td code { font-weight: 700; color: var(--accent-2); }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 999px; background: #eef4ff; color: #1849a9; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.production { background: #ecfdf3; color: #027a48; }
.badge.enabled, .badge.route-opened { background: #fff7ed; color: #b45309; }
.badge.not_supported, .badge.not-tested { background: #fef3f2; color: #b42318; }
.badge.passed { background: #ecfdf3; color: #027a48; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.project { border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-height: 190px; }
.project h3 { margin: 0 0 8px; font-size: 16px; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.45; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.timeline { padding: 6px 18px 18px; }
.run { padding: 12px 0; border-bottom: 1px solid var(--line); }
.run:last-child { border-bottom: 0; }
.run strong { display: block; margin-bottom: 5px; }
@media (max-width: 900px) { .status-grid, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .topbar { align-items: flex-start; flex-direction: column; } main { padding: 14px; } .status-grid, .cards { grid-template-columns: 1fr; } }
.eval-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 420px; }
.eval-cell small { display: block; width: 100%; color: var(--muted); line-height: 1.35; }
.run pre { margin: 8px 0 0; padding: 10px; background: #f2f4f7; border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; font-size: 12px; }
.score { font-size: 18px; }
.gap { color: var(--muted); line-height: 1.35; margin: 2px 0; }
.score-model { padding: 16px; }
.formula { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; color: var(--ink); margin-bottom: 14px; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.model-grid h3 { margin: 0 0 10px; font-size: 15px; }
.metric-row, .target-row { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; background: #fff; }
.metric-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.metric-row small { grid-column: 1 / -1; color: var(--muted); line-height: 1.35; }
.target-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.badge.p0 { background: #fef3f2; color: #b42318; }
.badge.p1 { background: #fff7ed; color: #b45309; }
.badge.p2 { background: #eef4ff; color: #1849a9; }
@media (max-width: 900px) { .model-grid { grid-template-columns: 1fr; } }
.lang-cell { display: grid; gap: 4px; min-width: 96px; }
.lang-cell code { font-size: 15px; font-weight: 700; color: var(--accent-2); }
.lang-cell span { color: var(--ink); font-size: 13px; line-height: 1.25; }

.voice-grid { padding: 16px; display: grid; gap: 16px; }
.vi-summary { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fbfcfd; }
.vi-summary strong { display: block; margin-bottom: 6px; }
.vi-summary small { color: var(--muted); }
.vi-section h3 { margin: 0 0 10px; font-size: 15px; }
.vi-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vi-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-height: 132px; display: grid; gap: 8px; align-content: start; }
.vi-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vi-card small, .api-row small { color: var(--muted); line-height: 1.35; }
.api-row { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.api-row small { grid-column: 2 / -1; }
@media (max-width: 900px) { .vi-cards { grid-template-columns: 1fr; } .api-row { grid-template-columns: 64px 1fr; } .api-row .badge { justify-self: start; } }
