#clg {
      font-family: sans-serif;
      background: #f3f4f6;
      padding: 2rem;
    }
    #clg {
      background: white;
      padding: 2rem;
      border-radius: 12px;
      max-width: 800px;
      margin: auto;
      box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    }
    #clg .code-box {
      background: #f9fafb;
      border: 1px dashed #ccc;
      padding: 1rem;
      border-radius: 8px;
      font-family: monospace;
      margin-bottom: 1rem;
      white-space: pre-wrap;
    }
    #clg .drop {
      display: inline-block;
      min-width: 80px;
      padding: 4px;
      margin: 0 4px;
      background: #e0e7ff;
      border: 2px dashed #93c5fd;
      border-radius: 4px;
      text-align: center;
      cursor: pointer;
    }
    #clg .draggables {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-bottom: 1rem;
    }
    #clg .draggable {
      padding: 0.6rem 1rem;
      background: #dbeafe;
      border-radius: 6px;
      cursor: grab;
      user-select: none;
    }
    #clg .preview-box {
      width: 100%;
      height: 100px;
      background: lightgray;
      border-radius: 8px;
      margin: 1rem 0;
      transition: all 0.3s;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    /* Grid preview fix */
    #clg .grid-preview {
      display: grid !important;
      grid-template-columns: 2fr 1fr !important;
      gap: 10px;
      padding: 10px;
      background: #cbd5e1;
      color: #1e293b;
      height: 100px;
      box-sizing: border-box;
      border-radius: 8px;
    }
    #clg .grid-item {
      background: #2563eb;
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 6px;
      font-weight: bold;
    }
    #clg #feedback {
      font-weight: bold;
      text-align: center;
    }
    #clg button {
      background: #2563eb;
      color: white;
      padding: 0.6rem 1.2rem;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      display: block;
      margin: 1rem auto 0.5rem;
    }
    #clg .btn-reset {
      background: #ef4444;
      margin-top: 0.5rem;
    }