
    body { font-family: Inter, sans-serif; }
    .tool-card {
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 0.75rem;
      padding: 1.5rem;
      box-shadow: 0 3px 12px rgba(0,0,0,.04);
    }
    @keyframes fadeUp {
      from { opacity:0; transform:translateY(6px); }
      to   { opacity:1; transform:translateY(0); }
    }
    .fade-up { animation: fadeUp 0.3s ease-out; }

    /* Layout */
    .builder-wrap {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 1.25rem;
      align-items: start;
    }
    @media (max-width: 767px) { .builder-wrap { grid-template-columns: 1fr; } }

    /* Preview circle */
    .cover-preview {
      width: 200px; height: 200px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
      margin: 0 auto;
      box-shadow: 0 8px 32px rgba(0,0,0,0.15);
      transition: background 0.2s;
    }
    .cover-icon { font-size: 72px; line-height: 1; user-select: none; position: relative; z-index: 1; }
    .cover-label {
      position: absolute; bottom: 28px; left: 0; right: 0;
      text-align: center; font-size: 18px; font-weight: 700;
      letter-spacing: 0.02em; z-index: 1;
    }

    /* Gradient ring (Instagram style) */
    .ig-ring {
      width: 220px; height: 220px; border-radius: 50%;
      background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 1.5rem;
    }
    .ig-ring-inner {
      width: 210px; height: 210px; border-radius: 50%;
      background: #fff;
      display: flex; align-items: center; justify-content: center;
    }

    /* Icon grid */
    .icon-grid { display: flex; flex-wrap: wrap; gap: 6px; }
    .icon-btn {
      width: 42px; height: 42px; border-radius: 8px;
      border: 1.5px solid #e5e7eb; background: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 20px; cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
    }
    .icon-btn:hover { border-color: #059669; background: #f0fdf4; }
    .icon-btn.on { border-color: #059669; background: #ecfdf5; }

    /* Swatches */
    .sw {
      width: 28px; height: 28px; border-radius: 50%;
      cursor: pointer; border: 2.5px solid transparent;
      flex-shrink: 0; transition: transform 0.15s;
    }
    .sw:hover { transform: scale(1.12); }
    .sw.on { border-color: #111827; }
    .sw.lt { border-color: #e5e7eb !important; }

    /* Gradient presets */
    .grad-btn {
      width: 36px; height: 36px; border-radius: 50%;
      cursor: pointer; border: 2.5px solid transparent;
      flex-shrink: 0; transition: transform 0.15s;
    }
    .grad-btn:hover { transform: scale(1.1); }
    .grad-btn.on { border-color: #111827; }

    /* Text style pills */
    .style-pill {
      padding: 0.28rem 0.7rem; border-radius: 999px;
      border: 1px solid #e5e7eb; font-size: 0.72rem;
      font-weight: 500; cursor: pointer; background: #fff;
      transition: background 0.15s, border-color 0.15s;
    }
    .style-pill:hover, .style-pill.on { background: #ecfdf5; border-color: #059669; color: #065f46; }

    /* Download button */
    .dl-btn {
      display: flex; align-items: center; justify-content: center; gap: 0.4rem;
      padding: 0.55rem 1rem; border-radius: 0.6rem;
      background: #059669; color: #fff;
      font-size: 0.82rem; font-weight: 600;
      cursor: pointer; border: none; width: 100%;
      transition: opacity 0.15s, transform 0.1s;
    }
    .dl-btn:hover { opacity: 0.88; transform: translateY(-1px); }

    /* Batch strip */
    .batch-cover {
      width: 60px; height: 60px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 22px; cursor: pointer; border: 2px solid transparent;
      flex-shrink: 0; position: relative; overflow: hidden;
      transition: border-color 0.15s;
    }
    .batch-cover.on { border-color: #059669; }
    .batch-del {
      position: absolute; top: -2px; right: -2px;
      background: #ef4444; color: #fff; border-radius: 50%;
      width: 14px; height: 14px; font-size: 9px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; z-index: 10;
    }
    .batch-add {
      width: 60px; height: 60px; border-radius: 50%;
      border: 2px dashed #d1d5db; display: flex;
      align-items: center; justify-content: center;
      font-size: 22px; color: #9ca3af; cursor: pointer;
      flex-shrink: 0;
      transition: border-color 0.15s, color 0.15s;
    }
    .batch-add:hover { border-color: #059669; color: #059669; }

    input[type=range] { accent-color: #059669; width: 100%; }
    input[type=color] { width: 30px; height: 30px; padding: 2px; border: 1px solid #e5e7eb; border-radius: 6px; cursor: pointer; }
    #exportArea { position: fixed; left: -9999px; top: 0; }
