:root {
      --bg: #f5f5f7;
      --card: #ffffff;
      --accent: #2563eb;
      --accent-soft: #dbeafe;
      --text: #111827;
      --muted: #6b7280;
      --border: #e5e7eb;
      --danger: #b91c1c;
    }

    * { box-sizing: border-box; }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      margin: 0;
      padding: 0;
      color: var(--text);
    }

    h1 {
      font-size: 1.9rem;
      margin-bottom: 0.25rem;
    }

    p.lead {
      margin-top: 0;
      color: var(--muted);
      max-width: 720px;
    }

    .card {
      background: var(--card);
      border-radius: 16px;
      padding: 20px 20px 24px;
      box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(15, 23, 42, 0.02);
      margin-top: 16px;
    }

    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 4px;
    }

    .section-title {
      font-weight: 600;
      font-size: 1rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .badge {
      font-size: 0.75rem;
      padding: 2px 8px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent);
      font-weight: 500;
      white-space: nowrap;
    }

    details {
      border-radius: 12px;
      border: 1px solid var(--border);
      padding: 10px 12px 10px;
      background: #f9fafb;
      margin-top: 10px;
    }

    summary {
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    summary::-webkit-details-marker { display: none; }

    .question {
      margin-top: 12px;
      padding-top: 8px;
      border-top: 1px dashed #e5e7eb;
    }

    .question:first-of-type {
      border-top: none;
      padding-top: 4px;
    }

    .question-text {
      font-weight: 500;
      margin-bottom: 4px;
    }

    .question-hint {
      font-size: 0.8rem;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .options {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    label.option {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      padding: 4px 6px;
      border-radius: 8px;
      transition: background 0.15s ease, transform 0.05s ease;
    }

    label.option:hover {
      background: #eef2ff;
      transform: translateY(-1px);
    }

    label.option input {
      margin-top: 2px;
    }

    .option-text {
      flex: 1;
      font-size: 0.92rem;
    }

    .option-score {
      font-size: 0.75rem;
      color: var(--muted);
      padding-left: 4px;
    }

    .actions {
      margin-top: 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    button.primary {
      border: none;
      border-radius: 999px;
      padding: 10px 22px;
      background: var(--accent);
      color: white;
      font-weight: 600;
      font-size: 0.95rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow:
        0 10px 20px rgba(37, 99, 235, 0.40),
        0 0 0 1px rgba(37, 99, 235, 0.50);
      transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
    }

    button.primary:hover:not(:disabled) {
      transform: translateY(-1px);
      background: #1d4ed8;
      box-shadow:
        0 16px 30px rgba(37, 99, 235, 0.45),
        0 0 0 1px rgba(30, 64, 175, 0.6);
    }

    button.primary:active:not(:disabled) {
      transform: translateY(0);
      box-shadow:
        0 3px 10px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(15, 23, 42, 0.08);
    }

    button.primary:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      box-shadow: none;
    }

    .helper-text {
      font-size: 0.85rem;
      color: var(--muted);
    }

    .helper-text strong {
      color: var(--accent);
    }

    .warning {
      color: var(--danger);
      font-size: 0.85rem;
      margin-top: 6px;
    }

    .results-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
      gap: 16px;
      margin-top: 16px;
    }

    @media (max-width: 900px) {
      .results-grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.9rem;
    }

    thead tr {
      background: #f3f4f6;
    }

    th, td {
      padding: 6px 8px;
      text-align: left;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
    }

    th {
      font-weight: 600;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--muted);
    }

    tr:last-child td {
      border-bottom: none;
    }

    .score-bar {
      position: relative;
      height: 8px;
      border-radius: 999px;
      background: #e5e7eb;
      overflow: hidden;
      margin-top: 4px;
    }

    .score-bar-fill {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      border-radius: inherit;
	  background: linear-gradient(90deg, #22c55e, #16a34a);
    }

    .score-label {
      font-size: 0.8rem;
      color: var(--muted);
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      border-radius: 999px;
      padding: 2px 8px;
      font-size: 0.75rem;
      background: #ecfdf5;
      color: #15803d;
      font-weight: 500;
      white-space: nowrap;
    }

    .pill.overall {
      background: #eff6ff;
      color: #1d4ed8;
    }

    .eval-text {
      font-size: 0.85rem;
      color: var(--muted);
    }

    canvas {
      width: 100% !important;
      max-height: 260px;
    }

    .charts-column {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .charts-column-title {
      font-size: 0.8rem;
      color: var(--muted);
      margin-bottom: 4px;
      text-transform: uppercase;
      letter-spacing: .06em;
    }

    .benchmark-row {
      margin-top: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }

    .benchmark-control {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.85rem;
      color: var(--muted);
    }

    .benchmark-control input[type="range"] {
      accent-color: var(--accent);
    }