    /* ============================================
       ESTILS ESPECÍFICS DASHBOARD VALIDACIÓ
       ============================================ */
    .validation-hero {
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
      border-radius: 16px;
      padding: 32px;
      margin-bottom: 28px;
      border: 2px solid rgba(34, 197, 94, 0.3);
      position: relative;
      overflow: visible;
      display: grid;
      grid-template-columns: repeat(2, minmax(320px, 1fr));
      gap: 18px;
    }
    
    .validation-hero::before {
      content: "";
      position: absolute;
      top: -50%;
      right: -20%;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(34, 197, 94, 0.15), transparent 70%);
      pointer-events: none;
    }
    
    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 100%;
    }

    .hero-metrics {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .hero-metrics-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 14px;
    }

    @media (max-width: 480px) {
      .hero-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }
      .hero-metric {
        padding: 10px 12px;
      }
      .hero-metric .value {
        font-size: 18px;
      }
      .hero-metric .label {
        font-size: 11px;
      }
      .hero-metric .desc {
        font-size: 11px;
      }
    }

    .hero-metric {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(15, 23, 42, 0.12);
      border-radius: 14px;
      padding: 16px 18px;
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 10px;
      align-items: center;
    }
    .hero-metric--key {
      border: 2px solid rgba(34, 197, 94, 0.35);
      background: rgba(34, 197, 94, 0.06);
    }
    .metric-subtitle {
      font-size: 10px;
      color: var(--text-tertiary, #94a3b8);
      font-weight: 500;
      margin-top: -2px;
      margin-bottom: 2px;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }

    .hero-metric .icon {
      font-size: 20px;
      opacity: 0.8;
    }

    .hero-metric .label {
      font-size: 12px;
      font-weight: 800;
      color: var(--text-secondary);
      line-height: 1.35;
    }

    .hero-metric .value {
      font-size: 24px;
      font-weight: 900;
      color: var(--text-primary);
      line-height: 1.2;
    }

    .hero-metric .desc {
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.4;
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 6px;
    }

    .status-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      display: inline-block;
      background: #cbd5e1;
    }
    .status-good { background: #22c55e; }
    .status-warn { background: #f59e0b; }
    .status-bad { background: #ef4444; }
    
    .hero-title {
      font-size: 26px;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .hero-subtitle {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 20px;
      max-width: 580px;
      line-height: 1.5;
    }
    
    .hero-subtitle a {
      color: #0ea5e9;
      text-decoration: underline;
      font-weight: 700;
    }
    
    .hero-stats {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }
    
    .hero-stat {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .hero-stat-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      background: rgba(255, 255, 255, 0.8);
      border: 1px solid rgba(34, 197, 94, 0.2);
    }
    
    .hero-stat-content {
      display: flex;
      flex-direction: column;
    }
    
    .hero-stat-value {
      font-size: 26px;
      font-weight: 800;
      color: #22c55e;
      line-height: 1;
    }
    
    .hero-stat-label {
      font-size: 12px;
      color: var(--text-secondary);
      font-weight: 600;
      margin-top: 4px;
    }
    
    /* KPIs Grid */
    .kpis-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      margin-bottom: 32px;
    }
    
    .kpi-card {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 14px;
      padding: 24px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }
    
    .kpi-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
      border-color: #22c55e;
    }
    
    .kpi-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: linear-gradient(180deg, #22c55e, #10b981);
    }

    /* Quality overview */
    .quality-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 22px;
    }

    .quality-card {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 12px 14px;
      position: relative;
      overflow: hidden;
    }

    .quality-card::after {
      content: "";
      position: absolute;
      right: -30px;
      top: -40px;
      width: 120px;
      height: 120px;
      background: radial-gradient(circle, rgba(34,197,94,0.12), transparent 60%);
    }

    .quality-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
      position: relative;
      z-index: 1;
    }

    .quality-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-secondary);
    }

    .quality-tag {
      font-size: 10px;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.05);
      border: 1px solid var(--border-color);
      color: var(--text-secondary);
      font-weight: 700;
    }

    .quality-value {
      font-size: 22px;
      font-weight: 800;
      color: var(--text-primary);
      position: relative;
      z-index: 1;
      line-height: 1.1;
    }

    .quality-desc {
      font-size: 11px;
      color: var(--text-secondary);
      margin-top: 4px;
      position: relative;
      z-index: 1;
      line-height: 1.3;
    }

    /* Textos llargs dels blocs insight */
    #insightCoverage,
    #insightConfidence,
    #insightAnomalies {
      font-size: 13px;
      line-height: 1.35;
      font-weight: 700;
      color: var(--text-primary);
    }

    .quality-bar {
      height: 8px;
      background: rgba(15, 23, 42, 0.06);
      border-radius: 999px;
      margin-top: 8px;
      overflow: hidden;
    }

    .quality-fill {
      height: 100%;
      border-radius: 999px;
      width: 0%;
      transition: width 0.3s ease;
    }

    .quality-fill.success { background: linear-gradient(90deg, #22c55e, #16a34a); }
    .quality-fill.info { background: linear-gradient(90deg, #0ea5e9, #0284c7); }
    .quality-fill.warn { background: linear-gradient(90deg, #f59e0b, #d97706); }

    .hero-placeholder {
      background: rgba(15, 23, 42, 0.02);
      border: 1px dashed rgba(15, 23, 42, 0.12);
      border-radius: 12px;
      min-height: 120px;
    }

    .insight-item {
      background: rgba(15, 23, 42, 0.03);
      border: 1px dashed rgba(15, 23, 42, 0.1);
      border-radius: 12px;
      padding: 14px;
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }

    .insight-icon {
      font-size: 18px;
    }

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

    .insight-title {
      font-weight: 800;
      color: #0f172a;
      font-size: 14px;
    }

    .insight-text {
      font-size: 13px;
      color: #475569;
      line-height: 1.4;
    }
    
    .kpi-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    
    .kpi-label {
      font-size: 14px;
      color: var(--text-secondary);
      font-weight: 600;
    }
    
    .kpi-icon {
      font-size: 24px;
      opacity: 0.7;
    }
    
    .kpi-value {
      font-size: 42px;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1;
      margin-bottom: 12px;
    }
    
    .kpi-trend {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 600;
    }
    
    .kpi-trend.positive {
      color: #10b981;
    }
    
    .kpi-trend.negative {
      color: #ef4444;
    }
    
    .kpi-trend.neutral {
      color: #94a3b8;
    }
    
    /* Chart Cards */
    .chart-card-validation {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 14px;
      padding: 18px;
      margin-bottom: 18px;
    }

    .chart-wrapper {
      position: relative;
      width: 100%;
      max-width: 100%;
      height: 320px;
    }
    .chart-empty {
      position: absolute;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 12px;
      color: var(--text-secondary);
      font-weight: 700;
      background: rgba(15, 23, 42, 0.02);
      border: 1px dashed rgba(148, 163, 184, 0.35);
      border-radius: 12px;
    }

    .section-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
      gap: 16px;
      margin-bottom: 18px;
      align-items: stretch;
    }

    .section-grid.two-tight {
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 12px;
    }

    .chart-wrapper.short {
      height: 260px;
    }

    .chart-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 12px;
    }
    
    .chart-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--text-primary);
    }
    
    .chart-subtitle {
      font-size: 13px;
      color: var(--text-secondary);
      margin-top: 4px;
    }
    
    .chart-controls {
      display: flex;
      gap: 8px;
    }
    
    .chart-btn {
      padding: 8px 16px;
      border: 1px solid var(--border-color);
      background: transparent;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .chart-btn:hover {
      background: rgba(34, 197, 94, 0.1);
      border-color: #22c55e;
      color: var(--text-primary);
    }
    
    .chart-btn.active {
      background: #22c55e;
      border-color: #22c55e;
      color: white;
    }
    
    .chart-canvas {
      width: 100% !important;
      height: 100% !important;
      display: block;
    }

    .charts-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 12px;
    }

    .chart-controls.secondary button {
      border-color: rgba(148,163,184,0.5);
      color: var(--text-secondary);
    }
    
    /* Empty State */
    .empty-state {
      text-align: center;
      padding: 80px 40px;
      background: rgba(34, 197, 94, 0.05);
      border-radius: 12px;
      border: 2px dashed rgba(34, 197, 94, 0.2);
    }
    
    .empty-state-icon {
      font-size: 64px;
      margin-bottom: 20px;
      opacity: 0.4;
    }
    
    .empty-state-title {
      font-size: 22px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 12px;
    }
    
    .empty-state-text {
      font-size: 15px;
      color: var(--text-secondary);
      line-height: 1.6;
      max-width: 500px;
      margin: 0 auto 24px;
    }
    
    .empty-state-info {
      display: inline-block;
      padding: 16px 24px;
      background: rgba(34, 197, 94, 0.1);
      border-radius: 10px;
      font-size: 14px;
      color: var(--text-secondary);
    }
    
    .empty-state-info strong {
      color: #22c55e;
      font-weight: 700;
    }
    
    .metric-pills {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin: 4px 0 12px 0;
    }
    
    .pill-card {
      display: inline-flex;
      flex-direction: column;
      gap: 6px;
      padding: 10px 14px;
      border: 1px solid var(--border-color);
      border-radius: 10px;
      background: var(--card-bg);
      min-width: 120px;
    }
    
    .pill-card span {
      font-size: 12px;
      color: var(--text-secondary);
      font-weight: 600;
    }
    
    .pill-card strong {
      font-size: 18px;
      color: var(--text-primary);
      font-weight: 800;
    }
    
    /* Loading Skeleton */
    .skeleton-box {
      background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
      background-size: 200% 100%;
      animation: skeleton-loading 1.5s ease-in-out infinite;
      border-radius: 8px;
    }
    
    @keyframes skeleton-loading {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    
    /* Back Button */
    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      color: var(--text-secondary);
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
      transition: all 0.2s ease;
      margin-bottom: 20px;
    }
    
    .back-btn:hover {
      background: #22c55e;
      border-color: #22c55e;
      color: white;
      transform: translateX(-4px);
    }
    
    /* Responsive */
    @media (max-width: 768px) {
      .validation-hero {
        padding: 24px;
        grid-template-columns: 1fr;
      }
      
      .hero-title {
        font-size: 22px;
      }
      
      .hero-stats {
        flex-direction: column;
        gap: 16px;
      }
      
      .kpis-grid {
        grid-template-columns: 1fr;
      }
      
      .kpi-value {
        font-size: 32px;
      }
      
      .chart-canvas {
        height: 300px;
      }
      
      .chart-header {
        flex-direction: column;
        align-items: flex-start;
      }

      .quality-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 540px) {
      .quality-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Validació diària max/min */
    .daily-validation-card {
      margin: 16px 0;
      padding: 14px 16px;
      background: rgba(15, 23, 42, 0.03);
      border-radius: 10px;
      border: 1px solid rgba(15, 23, 42, 0.08);
    }

    .daily-validation-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    @media (max-width: 640px) {
      .daily-validation-list {
        grid-template-columns: 1fr;
      }
    }

    /* [7] Hover state amb elevació subtil */
    .daily-validation-item {
      padding: 12px 16px;
      border-radius: 10px;
      border: 1px solid rgba(148, 163, 184, 0.25);
      background: #fff;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
      transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
      cursor: default;
    }
    .daily-validation-item:hover {
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
      border-color: rgba(148, 163, 184, 0.45);
    }

    .daily-validation-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
      font-weight: 800;
      color: #0f172a;
    }

    /* Layout controlat: 2 sub-línies fixes, sense flex-wrap descontrolat */
    .daily-validation-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 4px;
      font-size: 0.88rem;
      line-height: 1.4;
    }

    .daily-validation-row-label {
      font-weight: 800;
      color: #475569;
      min-width: 54px;
      flex-shrink: 0;
    }

    /* Grup de valor amb micro-etiqueta — [9] font-size corregit */
    .val-group {
      display: inline-flex;
      align-items: baseline;
      gap: 3px;
      white-space: nowrap;
    }

    /* [2] Contrast corregit: #64748b sobre #fff = 4.6:1 (WCAG AA) */
    .val-microlabel {
      font-size: 0.72rem;
      font-weight: 600;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      flex-shrink: 0;
    }

    .val-number {
      font-weight: 700;
      color: #0f172a;
    }

    /* [6] Separador millorat: punt centrat amb contrast suficient */
    .val-sep {
      color: #94a3b8;
      font-weight: 700;
      font-size: 0.8rem;
      flex-shrink: 0;
    }

    /* DIFERÈNCIA DESTACADA — element visual protagonista */
    .val-diff-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 8px;
      border-radius: 6px;
      font-weight: 800;
      font-size: 0.92rem;
      white-space: nowrap;
      margin-left: auto;
    }
    .val-diff-badge-ok {
      color: #166534;
      background: #dcfce7;
    }
    .val-diff-badge-warn {
      color: #92400e;
      background: #fef3c7;
    }
    .val-diff-badge-bad {
      color: #991b1b;
      background: #fee2e2;
    }

    /* Mini-barra visual integrada al badge */
    .val-error-bar {
      display: inline-block;
      height: 6px;
      border-radius: 3px;
      min-width: 6px;
      max-width: 40px;
      flex-shrink: 0;
      transition: width 0.3s ease-out;
    }
    .val-error-bar-ok { background: #86efac; }
    .val-error-bar-warn { background: #fcd34d; }
    .val-error-bar-bad { background: #fca5a5; }

    /* Separador setmanal — [8] format llegible */
    .week-separator {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 0 4px;
    }
    .week-separator-line {
      flex: 1;
      height: 1px;
      background: #e2e8f0;
    }
    .week-separator-label {
      font-size: 0.74rem;
      font-weight: 700;
      color: #64748b;
      letter-spacing: 0.03em;
      white-space: nowrap;
    }

    /* Subtítol enriquit */
    .validation-trend {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.78rem;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 6px;
      margin-left: 6px;
    }
    .validation-trend-up { color: #15803d; background: #dcfce7; }
    .validation-trend-down { color: #dc2626; background: #fee2e2; }
    .validation-trend-flat { color: #64748b; background: #f1f5f9; }

    /* [1] Icones als chips per accessibilitat (no només color) */
    .chip-icon {
      display: inline-block;
      width: 12px;
      height: 12px;
      vertical-align: -1px;
      margin-right: 2px;
      flex-shrink: 0;
    }

    /* [11] prefers-reduced-motion */
    @media (prefers-reduced-motion: reduce) {
      .daily-validation-item { transition: none; }
      .val-error-bar { transition: none; }
    }

    .chip-ok {
      color: #15803d;
      background: #dcfce7;
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 0.82rem;
      font-weight: 700;
      white-space: nowrap;
    }
    .chip-warn {
      color: #b45309;
      background: #fef3c7;
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 0.82rem;
      font-weight: 700;
      white-space: nowrap;
    }
    .chip-bad {
      color: #9b2335;
      background: #fdf2f4;
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 0.82rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .muted { color: #94a3b8; }
    .tiny { font-size: 0.78rem; }

    /* Bloc rendiment real del model */
    .val-card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 14px;
      align-items: stretch;
    }
    .val-card {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 14px;
      padding: 16px;
    }
    .val-stat-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 10px;
      margin-top: 10px;
    }
    .val-stat {
      background: rgba(15,23,42,0.03);
      border: 1px solid rgba(15,23,42,0.08);
      border-radius: 10px;
      padding: 10px 12px;
    }
    .val-stat .label { font-size: 0.8rem; color: #475569; }
    .val-stat .value { font-size: 1.2rem; font-weight: 800; color: #0f172a; }
    .val-error-bars { margin-top: 12px; display: grid; gap: 8px; }
    .val-error-item { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: center; font-size: 0.9rem; }
    .val-error-track { background: rgba(148,163,184,0.15); height: 12px; border-radius: 999px; overflow: hidden; }
    .val-error-fill { height: 100%; border-radius: 999px; }

    /* Tooltips explicatius */
    .tooltip-wrapper {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .tooltip-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: rgba(59, 130, 246, 0.15);
      color: #3b82f6;
      font-size: 10px;
      font-weight: 800;
      cursor: help;
      transition: all 0.2s;
    }
    .tooltip-icon:hover {
      background: #3b82f6;
      color: white;
      transform: scale(1.1);
    }
    .tooltip-content {
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%);
      background: #1e293b;
      color: #f8fafc;
      padding: 12px 14px;
      border-radius: 10px;
      font-size: 12px;
      line-height: 1.5;
      width: 260px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.25);
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s;
      z-index: 9999;
      pointer-events: none;
    }
    .tooltip-content::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: #1e293b;
    }
    /* Tooltip dins mètriques hero: forçar visible per sobre de tot */
    .hero-metric {
      overflow: visible;
    }
    .tooltip-wrapper:hover .tooltip-content {
      opacity: 1;
      visibility: visible;
    }
    .tooltip-content strong {
      color: #22c55e;
      display: block;
      margin-bottom: 4px;
    }
    .tooltip-content .example {
      margin-top: 6px;
      padding-top: 6px;
      border-top: 1px solid rgba(255,255,255,0.15);
      font-style: italic;
      color: #94a3b8;
    }

    /* Glossari col·lapsable */
    .glossary-section {
      margin: 20px 0;
      background: rgba(59, 130, 246, 0.05);
      border: 1px solid rgba(59, 130, 246, 0.2);
      border-radius: 12px;
      overflow: hidden;
    }
    .glossary-toggle {
      width: 100%;
      padding: 14px 18px;
      background: transparent;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 14px;
      font-weight: 700;
      color: #3b82f6;
      transition: background 0.2s;
    }
    .glossary-toggle:hover {
      background: rgba(59, 130, 246, 0.08);
    }
    .glossary-toggle .arrow {
      transition: transform 0.3s;
    }
    .glossary-toggle.active .arrow {
      transform: rotate(180deg);
    }
    .glossary-content {
      display: none;
      padding: 0 18px 18px;
    }
    .glossary-content.active {
      display: block;
    }
    .glossary-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 12px;
    }
    .glossary-item {
      background: white;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 10px;
      padding: 14px;
    }
    .glossary-item .term {
      font-weight: 800;
      color: #0f172a;
      font-size: 14px;
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .glossary-item .term .badge {
      font-size: 10px;
      padding: 2px 6px;
      border-radius: 4px;
      background: #e0f2fe;
      color: #0369a1;
      font-weight: 700;
    }
    .glossary-item .definition {
      font-size: 13px;
      color: #475569;
      line-height: 1.5;
    }
    .glossary-item .scale {
      margin-top: 8px;
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .glossary-item .scale span {
      font-size: 10px;
      padding: 3px 8px;
      border-radius: 4px;
      font-weight: 700;
    }
    .scale-good { background: #dcfce7; color: #166534; }
    .scale-ok { background: #fef3c7; color: #92400e; }
    .scale-bad { background: #fee2e2; color: #991b1b; }
