.container button{
      width: 100%;
    }

    #task {
      white-space: pre-line;
    }

    .filter-grid {
      display: grid;
      gap: 14px;
    }

    .tool-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
      gap: 8px;
      margin-top: 10px;
    }

    .tool-option {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 10px 12px;
      border: 1px solid #d8d8d8;
      border-radius: 10px;
      background: #fff;
      color: #333;
      min-height: 42px;
      line-height: 1.25;
      box-sizing: border-box;
    }

    .tool-option input {
      margin: 0;
      accent-color: #000;
    }

    .filter-summary {
      margin: 10px 0 0;
      color: #666;
      font-size: 14px;
    }

    #imageGenerationArea {
      display: none;
      text-align: center;
      gap: 14px;
      justify-items: center;
      padding: 20px 16px;
      border-radius: 16px;
      border: 1px solid #e5e5e5;
      background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    }

    #imageGenerationArea.is-visible {
      animation: cardReveal 420ms cubic-bezier(.22, .61, .36, 1);
    }

    #taskImagePreview {
      width: min(100%, 380px);
      height: auto;
      border-radius: 16px;
      border: 1px solid rgba(79, 70, 229, 0.15);
      box-shadow:
        0 20px 40px rgba(79, 70, 229, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
      background: #fff;
    }

    @keyframes cardReveal {
      from {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .toast-container {
      position: fixed;
      top: 16px;
      left: 50%;
      transform: translateX(-50%);
      width: min(92vw, 480px);
      display: grid;
      gap: 8px;
      z-index: 9999;
      pointer-events: none;
    }

    .toast {
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity 180ms ease, transform 180ms ease;
      border-radius: 12px;
      padding: 11px 14px;
      color: #fff;
      font-size: 14px;
      line-height: 1.4;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
      text-align: left;
      word-break: break-word;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .toast-info {
      background: linear-gradient(135deg, #444, #222);
    }

    .toast-success {
      background: linear-gradient(135deg, #2b7a4b, #1f5e39);
    }

    .toast-warning {
      background: linear-gradient(135deg, #9e641f, #7f4f17);
    }

    .toast-error {
      background: linear-gradient(135deg, #9b2f2f, #7a2222);
    }

    @media (max-width: 640px) {
      .tool-grid {
        grid-template-columns: repeat(2, minmax(118px, 1fr));
      }
    }
