:root {
        --bg: #0f1724;
        --card: #0b1220;
        --muted: #9aa4b2;
        --accent: #2dd4bf;
        --accent-2: #60a5fa;
        --glass: rgba(255, 255, 255, 0.03);
        --success: #10b981;
        --danger: #ef4444;
        --card-radius: 12px;
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
          Roboto, "Helvetica Neue", Arial;
        color-scheme: dark;
      }

      html,
      body {
        height: 100%;
      }
      body {
        margin: 0;
        background: linear-gradient(180deg, #071026 0%, #071029 60%);
        color: #e6eef6;
        padding: 24px;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        line-height: 1.35;
      }

      .container {
        max-width: 1100px;
        margin: 0 auto;
        background: linear-gradient(
          180deg,
          rgba(255, 255, 255, 0.02),
          rgba(255, 255, 255, 0.01)
        );
        border-radius: var(--card-radius);
        box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, 0.03);
      }

      header {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
      }
      header .title {
        display: flex;
        gap: 12px;
        align-items: center;
      }
      .notes-inputs {
        width: 60px;
        padding: 6px 8px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.04);
        background: var(--glass);
        color: inherit;
        outline: none;
        text-align: center;
      }
      .notes-totale {
        width: auto;
        font-weight: 700;
        font-size: 1rem;
        text-align: center;
        margin: 0 20px 0 0;
        color: var(--accent-2);
        text-align: center;
      }
      .logo {
        width: 46px;
        height: 46px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: #052026;
        box-shadow: 0 4px 18px rgba(45, 212, 191, 0.12);
        font-family: monospace;
      }
      h1 {
        font-size: 1.15rem;
        margin: 0;
      }
      p.small {
        margin: 0;
        color: var(--muted);
        font-size: 0.9rem;
      }

      .controls {
        margin-top: 30px;
        display: flex;
        gap: 8px;
        align-items: center;
      }
      .controls input[type="search"] {
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.04);
        background: var(--glass);
        color: inherit;
        outline: none;
        min-width: 220px;
      }
      .btn {
        padding: 8px 12px;
        border-radius: 10px;
        border: 0;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
        color: #052026;
        cursor: pointer;
        font-weight: 600;
      }
      .btn.ghost {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.04);
        color: var(--muted);
      }
      .btn:hover {
        opacity: 0.9;
        transform: translateY(-1px);
        transition: all 0.2s ease;
      }

      /* table */
      .table-wrap {
        overflow: auto;
        margin-top: 14px;
        border-radius: 10px;
      }
      table {
        width: 100%;
        border-collapse: collapse;
        min-width: 860px;
      }
      th,
      td {
        padding: 12px 14px;
        text-align: left;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        font-size: 0.95rem;
      }
      .Total-section {
        margin-top: 50px;
        text-align: center;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--accent-2);
      }
      thead th {
        position: sticky;
        top: 0;
        background: linear-gradient(
          180deg,
          rgba(7, 16, 38, 0.85),
          rgba(7, 16, 38, 0.75)
        );
        backdrop-filter: blur(6px);
        z-index: 2;
        color: var(--muted);
        font-weight: 700;
        letter-spacing: 0.02em;
      }
      tbody tr:hover {
        background: rgba(255, 255, 255, 0.02);
      }
      .TTotal {
        margin: 0;
        padding: 5px 10px;
        background: rgba(96, 165, 250, 0.08);
        border-radius: 999px;
        display: inline-block;
        text-align: center;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--accent-2);
        margin-left: 6px;
      }
      .grade {
        font-weight: 700;
        padding: 6px 10px;
        border-radius: 999px;
        display: inline-block;
        min-width: 54px;
        text-align: center;
      }
      .grade.high {
        background: rgba(16, 185, 129, 0.12);
        color: var(--success);
      }
      .grade.mid {
        background: rgba(96, 165, 250, 0.08);
        color: var(--accent-2);
      }
      .grade.low {
        background: rgba(239, 68, 68, 0.06);
        color: var(--danger);
      }

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

      /* responsive */
      @media (max-width: 880px) {
        .controls input[type="search"] {
          min-width: 140px;
        }
        table {
          min-width: 720px;
        }
      }
      @media (max-width: 520px) {
        header {
          flex-direction: column;
          align-items: flex-start;
          gap: 8px;
        }
        .controls {
          width: 100%;
          justify-content: space-between;
        }
        .controls input[type="search"] {
          flex: 1;
          margin-right: 6px;
        }
      }