﻿    /* ── AVC view ── */
    #avc-view {
      width: min(960px, 96vw);
      padding: 48px 24px 120px;
      text-align: center;
      margin: 0 auto;
    }

    .avc-wrapper {
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(139, 32, 192, 0.25);
      border-radius: 14px;
      padding: 28px;
      backdrop-filter: blur(6px);
      text-align: left;
      max-width: 900px;
      margin: 0 auto;
    }

    .avc-section-title {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: var(--teal);
      margin-bottom: 14px;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(139, 32, 192, 0.3);
    }

    .avc-section { margin-bottom: 28px; }

    .avc-cards-row {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 12px;
      margin-bottom: 4px;
    }

    .avc-card {
      background: rgba(139, 32, 192, 0.07);
      border-left: 3px solid var(--teal);
      border-radius: 8px;
      padding: 14px 16px;
    }

    .avc-label {
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 4px;
    }

    .avc-value {
      font-size: 17px;
      font-weight: 700;
      color: var(--text);
      font-family: 'Orbitron', sans-serif;
    }

    .avc-kp-scale {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 6px;
    }

    .avc-kp-cell {
      padding: 10px 4px;
      border-radius: 6px;
      text-align: center;
      font-size: 11px;
      font-weight: 700;
      color: #fff;
      line-height: 1.4;
    }

    .avc-kp-cell.scale-active {
      outline: 2px solid #fff;
      transform: scale(1.06);
    }

    .avc-kp-0 { background: #3ab83a; }
    .avc-kp-2 { background: #87d87d; }
    .avc-kp-3 { background: #ffd500; color: #1a1a1a; }
    .avc-kp-5 { background: #ff9500; }
    .avc-kp-7 { background: #ff4444; }
    .avc-kp-8 { background: #8b0000; }

    .avc-chart-box {
      background: rgba(0,0,0,0.25);
      border-radius: 8px;
      padding: 16px;
      height: 260px;
      position: relative;
    }

    .avc-bottom {
      font-size: 11px;
      color: var(--text-muted);
      text-align: center;
      padding-top: 14px;
      border-top: 1px solid rgba(255,255,255,0.07);
      margin-top: 4px;
    }

    .avc-loading {
      text-align: center;
      padding: 48px 0;
      color: var(--teal);
      font-size: 14px;
    }

    .avc-error {
      background: rgba(236,55,84,0.12);
      border-left: 3px solid #ec3754;
      color: #ec3754;
      padding: 12px 16px;
      border-radius: 6px;
      font-size: 13px;
      margin-bottom: 16px;
      display: none;
    }

