  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9fbfc;
  }

  header {
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .logo {
    color: #2563eb;
    font-weight: 600;
    font-size: 16px;
  }

  .container {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
  }

  h1 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #0f172a;
  }

  input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
  }

  .suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
  }

  .suggestion {
    background-color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
  }

  .btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .btn:hover {
    background-color: #0056b3;
  }

  .btn[disabled] {
    background-color: #60a5fa;
    cursor: not-allowed;
  }

  .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  .status-text {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0;
  }

  .image-box {
    border: 2px dashed #cbd5e1;
    padding: 32px;
    border-radius: 8px;
    background-color: #ffffff;
    min-height: 200px;
    margin-top: 16px;
  }

  img {
    max-width: 100%;
    max-height: 400px;
    margin: 0 auto;
  }

  .placeholder {
    color: #334155;
    font-size: 14px;
    font-weight: 500;
  }

  .history-carousel-title {
    margin-top: 32px;
    padding: 0 10px;
  }

  .history-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
  }

  .history-carousel::-webkit-scrollbar {
    height: 8px;
  }

  .history-carousel::-webkit-scrollbar-track {
    background: transparent;
  }

  .history-carousel::-webkit-scrollbar-thumb {
    background-color: #a0aec0;
    border-radius: 4px;
  }

  .history-item {
    flex: 0 0 auto;
    width: 200px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .history-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
  }

  .history-time {
    font-size: 12px;
    color: #6b7280;
    white-space: normal;
    line-height: 1.2;
  }

  @media (max-width: 600px) {
    header {
      flex-direction: column;
      align-items: flex-start;
    }

    .btn {
      width: 100%;
    }
  }