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

        html {
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        body {
            font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: #ffffff;
            color: #1e293b;
            line-height: 1.5;
            padding: 48px 24px;
            min-height: 100vh;
            font-weight: 400;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
        }

        .container {
            max-width: 900px;
            margin: 0 auto;
            box-sizing: border-box;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #64748b;
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            margin-bottom: 48px;
            transition: color 0.15s ease;
        }

        .back-link:hover {
            color: #0f172a;
        }

        .back-link:focus-visible {
            outline: 2px solid #3b82f6;
            outline-offset: 2px;
            border-radius: 4px;
        }

        .header-section {
            text-align: center;
            margin-bottom: 64px;
        }

        .logo {
            font-size: 0.75rem;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            margin-bottom: 24px;
        }

        h1 {
            font-weight: 400;
            font-size: 2.75rem;
            margin-bottom: 16px;
            color: #0f172a;
            letter-spacing: -0.025em;
            line-height: 1.2;
        }

        .subtitle {
            color: #64748b;
            font-size: 1rem;
            font-weight: 400;
            max-width: 560px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .upload-section {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 64px 56px;
            box-shadow: none;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .upload-area {
            border: 2px dashed #cbd5e1;
            border-radius: 12px;
            padding: 64px 48px;
            text-align: center;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: default;
            background: #f8fafc;
            position: relative;
        }

        .upload-area:hover {
            border-color: #cbd5e1;
            background: #f8fafc;
        }

        .upload-area:focus-within {
            border-color: #10b981;
            outline: 2px solid #10b981;
            outline-offset: 2px;
        }

        .upload-area.dragover {
            border-color: #059669;
            background: #dcfce7;
        }

        .upload-icon {
            font-size: 3rem;
            margin-bottom: 24px;
            display: block;
            opacity: 0.6;
        }

        .upload-text {
            font-size: 1.125rem;
            font-weight: 500;
            color: #0f172a;
            margin-bottom: 8px;
            letter-spacing: -0.01em;
        }

        .upload-hint {
            font-size: 0.875rem;
            color: #64748b;
            margin-bottom: 32px;
            font-weight: 400;
        }

        .privacy-notice {
            font-size: 0.8125rem;
            color: #94a3b8;
            margin-bottom: 24px;
            font-weight: 400;
            font-style: italic;
        }

        .upload-btn {
            display: inline-block;
            padding: 12px 32px;
            background: #10b981;
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-size: 0.9375rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            min-height: 44px;
            min-width: 44px;
            touch-action: manipulation;
        }

        .upload-btn:hover {
            background: #059669;
        }

        .upload-btn:focus-visible {
            outline: 2px solid #3b82f6;
            outline-offset: 2px;
        }

        .upload-btn:active {
            transform: scale(0.98);
        }

        #fileInput {
            display: none;
        }

        #cameraInput {
            display: none;
        }

        .upload-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }

        .secondary-btn {
            background: #0f172a;
        }

        .secondary-btn:hover {
            background: #1e293b;
        }

        .support-note {
            font-size: 0.875rem;
            color: #475569;
            margin-top: 4px;
            margin-bottom: 12px;
            text-align: center;
            line-height: 1.4;
        }

        .support-note.warning {
            color: #b45309;
        }

        .selected-count {
            font-size: 0.875rem;
            color: #0f172a;
            font-weight: 600;
            text-align: center;
            margin-bottom: 8px;
        }

        .image-preview-container {
            margin-top: 40px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 20px;
            min-height: 0;
        }

        .image-preview-container:empty {
            display: none;
        }

        .image-preview-container:empty + .submit-section {
            margin-top: 0;
        }

        .image-preview {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #e2e8f0;
            aspect-ratio: 1;
            background: #f8fafc;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: none;
            opacity: 0;
            transform: scale(0.95);
            animation: fadeInScale 0.2s ease forwards;
        }

        @keyframes fadeInScale {
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .image-preview:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border-color: #cbd5e1;
        }

        .image-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
            display: block;
            max-width: 100%;
        }

        .image-preview:hover img {
            transform: scale(1.05);
        }

        .image-preview .remove-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(239, 68, 68, 0.95);
            color: white;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            cursor: pointer;
            font-size: 1.125rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            opacity: 0;
            transform: scale(0.8);
        }

        .image-preview:hover .remove-btn {
            opacity: 1;
            transform: scale(1);
        }

        .image-preview .remove-btn:hover {
            background: rgba(220, 38, 38, 1);
            transform: scale(1.15);
            box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4);
        }

        .submit-section {
            margin-top: 40px;
            text-align: center;
            padding-top: 40px;
            border-top: 1px solid #e2e8f0;
        }

        .submit-btn {
            padding: 14px 40px;
            background: #0f172a;
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-size: 0.9375rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            position: relative;
            min-height: 44px;
            min-width: 44px;
            touch-action: manipulation;
        }

        .submit-btn:hover:not(:disabled) {
            background: #1e293b;
        }

        .submit-btn:focus-visible {
            outline: 2px solid #3b82f6;
            outline-offset: 2px;
        }

        .submit-btn:active:not(:disabled) {
            transform: scale(0.98);
        }

        .submit-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .error-message {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #991b1b;
            padding: 14px 18px;
            border-radius: 8px;
            margin-top: 24px;
            display: none;
            font-size: 0.875rem;
            font-weight: 500;
            animation: slideIn 0.2s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .error-message.show {
            display: block;
        }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(8px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            flex-direction: column;
            gap: 20px;
            opacity: 0;
            transition: opacity 0.2s ease;
            text-align: center;
        }

        .loading-overlay.show {
            display: flex;
            animation: fadeIn 0.2s ease forwards;
        }

        @keyframes fadeIn {
            to {
                opacity: 1;
            }
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #f1f5f9;
            border-top-color: #0f172a;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

        .loading-text {
            font-size: 1rem;
            font-weight: 500;
            color: #0f172a;
            letter-spacing: -0.01em;
        }

        .loading-subtext {
            font-size: 0.875rem;
            color: #64748b;
            font-weight: 400;
        }

        @media (max-width: 768px) {
            body {
                padding: clamp(24px, 6vw, 32px) clamp(16px, 4vw, 24px);
            }

            .container {
                padding-inline: clamp(12px, 3vw, 20px);
            }

            .back-link {
                margin-bottom: clamp(32px, 6vw, 40px);
                font-size: clamp(0.8rem, 2vw, 0.875rem);
            }

            .header-section {
                margin-bottom: clamp(32px, 6vw, 40px);
            }
            
            h1 {
                font-size: clamp(1.75rem, 6vw, 2rem);
                margin-bottom: clamp(12px, 3vw, 16px);
            }

            .subtitle {
                font-size: clamp(0.9rem, 2.8vw, 1rem);
                padding: 0 clamp(8px, 3vw, 16px);
            }

            .upload-section {
                padding: clamp(32px, 6vw, 40px) clamp(20px, 5vw, 24px);
            }

            .upload-area {
                padding: clamp(32px, 6vw, 40px) clamp(20px, 5vw, 24px);
            }

            .upload-text {
                font-size: clamp(1rem, 3vw, 1.125rem);
            }

            .upload-hint {
                font-size: clamp(0.8rem, 2.5vw, 0.875rem);
                margin-bottom: clamp(24px, 5vw, 32px);
            }

            .upload-btn {
                padding: clamp(10px, 2.5vw, 12px) clamp(24px, 6vw, 32px);
                font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
            }

            .image-preview-container {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: clamp(12px, 3vw, 16px);
                margin-top: clamp(32px, 6vw, 40px);
            }

            .submit-section {
                margin-top: clamp(32px, 6vw, 40px);
                padding-top: clamp(32px, 6vw, 40px);
            }

            .submit-btn {
                padding: clamp(12px, 3vw, 14px) clamp(32px, 7vw, 40px);
                font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
            }

            .error-message {
                padding: clamp(12px, 3vw, 14px) clamp(16px, 4vw, 18px);
                font-size: clamp(0.8rem, 2.5vw, 0.875rem);
                margin-top: clamp(20px, 4vw, 24px);
            }
        }

        @media (max-width: 480px) {
            body {
                padding: clamp(20px, 5vw, 24px) clamp(12px, 3vw, 16px);
            }

            .container {
                padding-inline: clamp(8px, 2vw, 12px);
            }

            .upload-section {
                padding: clamp(24px, 5vw, 32px) clamp(16px, 4vw, 20px);
            }

            .upload-area {
                padding: clamp(28px, 5vw, 32px) clamp(16px, 4vw, 20px);
            }

            .image-preview-container {
                grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
                gap: 12px;
            }

            .image-preview .remove-btn {
                width: clamp(28px, 6vw, 32px);
                height: clamp(28px, 6vw, 32px);
                font-size: clamp(1rem, 2.5vw, 1.125rem);
                top: 6px;
                right: 6px;
            }
        }

        @media (max-width: 360px) {
            .image-preview-container {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
                gap: 10px;
            }
        }
    
    