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

      body {
        background: #f3f4f6;
        color: #111827;
        font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        line-height: 1.6;
      }

      .ad-banner-top {
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        padding: 15px;
        text-align: center;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
      }

      .ad-placeholder {
        background: #f9fafb;
        border: 2px dashed #d1d5db;
        color: #9ca3af;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 999px;
      }

      .page {
        max-width: 1000px;
        margin: 0 auto;
        padding: 40px 24px;
      }

      .nav {
        margin-bottom: 24px;
      }

      .nav a {
        color: #6b7280;
        text-decoration: none;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: color 0.2s;
      }

      .nav a:hover {
        color: #111827;
      }

      .header {
        margin-bottom: 32px;
      }

      .badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        border-radius: 999px;
        background: #e5f2ff;
        color: #1d4ed8;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 12px;
      }

      .header h1 {
        font-size: 2rem;
        font-weight: 600;
        letter-spacing: -0.03em;
        margin-bottom: 8px;
      }

      .header p {
        color: #4b5563;
        font-size: 1rem;
      }

      .tool-section {
        background: #ffffff;
        border-radius: 14px;
        border: 1px solid #e5e7eb;
        padding: 24px;
        margin-bottom: 20px;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
      }

      .upload-area {
        border: 2px dashed #d1d5db;
        border-radius: 12px;
        padding: 40px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        background: #f9fafb;
      }

      .upload-area:hover {
        border-color: #2563eb;
        background: #eff6ff;
      }

      .upload-area.dragover {
        border-color: #2563eb;
        background: #eff6ff;
      }

      .upload-icon {
        font-size: 3rem;
        margin-bottom: 12px;
      }

      .upload-text {
        font-size: 1.1rem;
        font-weight: 500;
        color: #111827;
        margin-bottom: 8px;
      }

      .upload-hint {
        font-size: 0.9rem;
        color: #6b7280;
      }

      .file-input {
        display: none;
      }

      .settings-section {
        display: none;
        margin-top: 24px;
      }

      .settings-section.show {
        display: block;
      }

      .setting-group {
        margin-bottom: 20px;
      }

      .setting-label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 500;
        margin-bottom: 8px;
        font-size: 0.95rem;
      }

      .quality-value {
        color: #2563eb;
        font-weight: 600;
      }

      input[type="range"] {
        width: 100%;
        height: 8px;
        border-radius: 4px;
        background: #e5e7eb;
        outline: none;
        -webkit-appearance: none;
      }

      input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #2563eb;
        cursor: pointer;
      }

      input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #2563eb;
        cursor: pointer;
        border: none;
      }

      .format-options {
        display: flex;
        gap: 12px;
      }

      .format-option {
        flex: 1;
        padding: 12px;
        border: 2px solid #d1d5db;
        border-radius: 8px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        font-weight: 500;
      }

      .format-option:hover {
        border-color: #2563eb;
      }

      .format-option.active {
        border-color: #2563eb;
        background: #eff6ff;
        color: #2563eb;
      }

      .comparison-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
      }

      .comparison-card {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px;
      }

      .card-title {
        font-weight: 600;
        margin-bottom: 12px;
        color: #111827;
      }

      .image-preview {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
      }

      .image-stats {
        display: flex;
        justify-content: space-between;
        font-size: 0.85rem;
        color: #6b7280;
      }

      .stat-item {
        text-align: center;
      }

      .stat-value {
        font-weight: 600;
        color: #111827;
        display: block;
        margin-bottom: 2px;
      }

      .stat-label {
        font-size: 0.8rem;
      }

      .savings-badge {
        background: #10b981;
        color: #ffffff;
        padding: 8px 16px;
        border-radius: 999px;
        font-weight: 600;
        font-size: 1.1rem;
        display: inline-block;
        margin: 16px 0;
      }

      .button-group {
        display: flex;
        gap: 12px;
        margin-top: 20px;
      }

      .btn {
        padding: 12px 24px;
        border: none;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        flex: 1;
      }

      .btn-primary {
        background: #111827;
        color: #ffffff;
      }

      .btn-primary:hover {
        background: #1f2937;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      }

      .btn-success {
        background: #10b981;
        color: #ffffff;
      }

      .btn-success:hover {
        background: #059669;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
      }

      .btn-secondary {
        background: #ffffff;
        color: #111827;
        border: 1px solid #d1d5db;
      }

      .btn-secondary:hover {
        background: #f3f4f6;
      }

      .info-box {
        background: #eff6ff;
        border-left: 3px solid #2563eb;
        border-radius: 8px;
        padding: 16px;
        margin-top: 20px;
      }

      .info-box h3 {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 8px;
        color: #1d4ed8;
      }

      .info-box ul {
        margin-left: 20px;
        font-size: 0.9rem;
        color: #374151;
      }

      .info-box li {
        margin-bottom: 4px;
      }

      .ad-banner-bottom {
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        padding: 20px;
        text-align: center;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 32px;
        width: 100%;
      }

      .footer {
        margin-top: 12px;
        font-size: 0.78rem;
        color: #9ca3af;
        text-align: center;
      }

      @media (max-width: 768px) {
        .page {
          padding: 24px 16px;
        }

        .header h1 {
          font-size: 1.6rem;
        }

        .tool-section {
          padding: 20px;
        }

        .comparison-grid {
          grid-template-columns: 1fr;
        }

        .format-options {
          flex-direction: column;
        }

        .button-group {
          flex-direction: column;
        }
      }