        :root {
          --bg1: #0f172a;
          --bg2: #071026;
          --card: #0f1724;
          --muted: #94a3b8;
          --accent: #7c5cff;
          --glass: rgba(255, 255, 255, .04);
          --success: #22c55e;
          --danger: #ef4444;
          --radius: 14px;
          color: #e6eef8;
        }

        /* LIGHT MODE */
        [data-theme="light"] {
          --bg1: #f8fafc;
          --bg2: #eef2ff;
          --card: #fff;
          --glass: rgba(15, 23, 42, .04);
          --muted: #475569;
          --accent: #6b21a8;
          --success: #16a34a;
          --danger: #dc2626;
          color: #0f172a;
        }

        * {
          box-sizing: border-box;
          font-family: Inter, system-ui
        }

        body {
          margin: 0;
          min-height: 100vh;
          background: linear-gradient(135deg, var(--bg1), var(--bg2));
          display: flex;
          justify-content: center;
          align-items: center;
        }

        .card {
          background: var(--card);
          border-radius: var(--radius);
          padding: 24px;
          width: 100%;
          max-width: 1100px;
          box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
          animation: fade .4s ease;
        }

        @keyframes fade {
          from {
            opacity: 0;
            transform: translateY(8px)
          }

          to {
            opacity: 1
          }
        }

        header {
          display: flex;
          justify-content: space-between;
          align-items: center
        }

        h1 {
          margin: 0;
          font-size: 20px
        }

        .muted {
          color: var(--muted);
          font-size: 13px
        }

        .grid {
          display: grid;
          grid-template-columns: 1fr 360px;
          gap: 20px
        }

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

        input {
          width: 100%;
          padding: 12px;
          border-radius: 10px;
          border: 1px solid rgba(255, 255, 255, .1);
          background: var(--glass);
          color: inherit;
          font-size: 16px;
        }

        .btn {
          padding: 10px 14px;
          border-radius: 10px;
          border: none;
          background: var(--accent);
          color: #fff;
          font-weight: 600;
          cursor: pointer;
        }

        .btn.secondary {
          background: transparent;
          border: 1px solid rgba(255, 255, 255, .2);
          color: var(--muted)
        }

        .btn:active {
          transform: scale(.97)
        }

        .actions {
          display: flex;
          flex-wrap: wrap;
          gap: 8px;
          margin-top: 10px
        }

        .result {
          margin-top: 16px;
          padding: 14px;
          border-radius: 10px;
          background: var(--glass);
          min-height: 80px;
        }

        .badge {
          display: inline-block;
          margin: 4px;
          padding: 6px 10px;
          border-radius: 999px;
          font-size: 13px;
          font-weight: 600;
        }

        .good {
          background: #052e1f;
          color: var(--success)
        }

        .bad {
          background: #2a0d0d;
          color: var(--danger)
        }

        .panel {
          margin-top: 16px;
          padding: 14px;
          border-radius: 12px;
          background: var(--glass)
        }

        .list {
          max-height: 160px;
          overflow: auto;
          font-size: 13px
        }

        .history-item {
          padding: 6px;
          border-bottom: 1px solid rgba(255, 255, 255, .1);
          cursor: pointer;
        }