body {
            font-family: 'Noto Sans KR', sans-serif;
            margin: 0;
            background-color: #f0f2f5;
            height: 100%;
            overflow: hidden;
            letter-spacing: -0.5px;
        }

        .chat-wrapper {
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
            background: #ffffff;
            display: flex;
            flex-direction: column;
            height: 100dvh;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        }

        .chat-header {
            background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
            color: white;
            padding: 16px 15px;
            text-align: center;
            flex-shrink: 0;
            z-index: 100;
            position: relative;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin: -20px -20px 20px -20px;
        }

        .chat-header h1 {
            margin: 0;
            font-size: 1.3em;
            font-weight: 700;
        }

        .chat-container {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 20px;
            background-color: #f9fafc;
        }

        /* [New] 퀵 메뉴 버튼 스타일 (스샷2 디자인 적용) */
        .quick-reply-btn {
            background-color: #ffffff;
            border: 1px solid #4A90E2;
            color: #4A90E2;
            padding: 8px 14px;
            margin: 4px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.9em;
            font-weight: 500;
            font-family: 'Noto Sans KR', sans-serif;
            transition: all 0.2s ease;
            display: inline-block;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .quick-reply-btn:hover {
            background-color: #e7f1ff;
            /* 마우스 오버 시 연한 하늘색 배경 */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .chat-bubble {
            width: fit-content;
            max-width: 85%;
            padding: 12px 16px;
            border-radius: 18px;
            margin-bottom: 12px;
            line-height: 1.5;
            position: relative;
            font-size: 1.05em;
            word-break: break-word;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .chat-bubble.user {
            background-color: #4A90E2;
            color: white;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
            margin-left: auto;
        }

        .chat-bubble.bot {
            background-color: #ffffff;
            color: #333;
            align-self: flex-start;
            border-bottom-left-radius: 4px;
            margin-right: auto;
            border: 1px solid #eee;
        }

        .chat-bubble.bot.welcome-card-bubble {
            width: calc(100% - 10px) !important;
            max-width: 95% !important;
            margin-left: 5px !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
            border: 1px solid #edf2f7 !important;
            border-radius: 16px !important;
            padding: 16px !important;
            box-sizing: border-box;
            background: white !important;
        }

        .chat-bubble.bot-loading-blue {
            background: #4A90E2;
            color: white;
            text-align: center;
            border-radius: 30px;
            animation: pulse 1.5s infinite;
            margin: 10px auto;
            display: table;
            min-width: 220px;
            border: 2px solid white;
            font-weight: 700;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.02);
            }

            100% {
                transform: scale(1);
            }
        }

        /* 입력창 스타일 */
        .chat-input-area {
            background-color: #fff;
            padding: 15px;
            border-top: 1px solid #eee;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
        }

        .input-row {
            display: flex;
            align-items: center;
            width: 100%;
        }

        .input-wrapper {
            position: relative;
            flex: 1;
            display: flex;
            align-items: center;
        }

        #userInput {
            width: 100%;
            padding: 14px;
            padding-right: 45px;
            border: 1px solid #ddd;
            border-radius: 30px;
            font-size: 1em;
            outline: none;
            background: #f8f9fa;
            box-sizing: border-box;
        }

        .camera-btn {
            position: absolute;
            right: 10px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
        }

        #sendButton {
            margin-left: 10px;
            padding: 14px 24px;
            background-color: #4A90E2;
            color: white;
            border: none;
            border-radius: 30px;
            font-weight: 700;
            cursor: pointer;
        }

        /* 다중 이미지 미리보기 스타일 */
        #preview-container {
            display: none;
            margin-bottom: 10px;
            text-align: left;
            overflow-x: auto;
            white-space: nowrap;
            padding-bottom: 5px;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        #preview-container::-webkit-scrollbar {
            display: none;
        }

        .preview-item {
            position: relative;
            display: inline-block;
            margin-right: 10px;
            vertical-align: top;
        }

        .preview-img {
            height: 90px;
            width: 90px;
            object-fit: cover;
            border-radius: 8px;
            border: 2px solid #ddd;
            display: block;
        }

        .preview-number {
            position: absolute;
            top: 5px;
            left: 5px;
            background: #e53e3e;
            color: white;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            font-size: 12px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            z-index: 10;
        }

        .preview-close {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #333;
            color: white;
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            z-index: 20;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        /* [New] 클릭 피드백 및 바운스 효과 애니메이션 */
        @keyframes scaleClick {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(0.92);
            }

            100% {
                transform: scale(1);
            }
        }

        .click-effect {
            animation: scaleClick 0.15s ease-out !important;
        }

        @keyframes pulseBg {
            0% {
                background-color: rgba(74, 144, 226, 0.1);
            }

            50% {
                background-color: rgba(74, 144, 226, 0.3);
            }

            100% {
                background-color: rgba(74, 144, 226, 0.1);
            }
        }

        .pulse-effect {
            animation: pulseBg 0.6s ease-out;
        }

        /* [New] 견적서 말풍선 가로폭 확대 (설명 가독성 확보) */
        .chat-bubble.bot:has(.quote-content) {
            width: calc(100% - 10px) !important;
            max-width: 95% !important;
            margin-left: 5px !important;
            box-sizing: border-box;
        }

        .chat-bubble.bot .quote-content {
            width: 100% !important;
        }

        /* [New] 간편견적 전체화면 모달 (Glassmorphism & 단일 스크롤) */
        .quick-quote-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100dvh;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 9999;
            display: flex;
            align-items: flex-end;
            justify-content: center;
        }

        .quick-quote-modal-content {
            width: 100%;
            max-width: 500px;
            height: 85vh;
            background: white;
            border-radius: 20px 20px 0 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            position: relative;
        }

        /* 모달 내 스크롤 영역 */
        .quick-quote-modal-body {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 15px;
            padding-bottom: 30px;
        }

        /* [New] 평형별 카드 그룹화 UI */
        .size-group-card {
            border: 1px solid #edf2f7;
            border-radius: 14px;
            background: #ffffff;
            padding: 16px;
            margin-bottom: 20px;
            text-align: left;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
            border-top: 3px solid #cbd5e1;
            /* 기본 상단 바 */
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .size-group-card.accent-orange {
            border-top-color: #f6ad55;
            background: #fffaf5;
            border-color: #ffe8cc;
        }

        .size-group-card.accent-blue {
            border-top-color: #4299e1;
        }

        .size-group-card.accent-green {
            border-top-color: #48bb78;
        }

        .size-group-card.accent-purple {
            border-top-color: #9f7aea;
        }

        .size-group-card.accent-teal {
            border-top-color: #38b2ac;
        }

        .size-group-card.accent-indigo {
            border-top-color: #667eea;
        }

        .size-group-header {
            font-size: 0.95em;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 12px;
            border-bottom: 1px solid #edf2f7;
            padding-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            letter-spacing: -0.3px;
        }

        /* 엑셀 표 스타일 레이아웃 (스샷2 형태 구현) */
        .excel-table {
            width: 100%;
            border-collapse: collapse;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 20px;
            background: #ffffff;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
        }

        .excel-table tr {
            border-bottom: 1px solid #cbd5e1;
        }

        .excel-table tr:last-child {
            border-bottom: none;
        }

        .excel-label {
            width: 95px;
            font-weight: 700;
            text-align: center;
            vertical-align: middle;
            border-right: 1px solid #cbd5e1;
            padding: 12px 6px;
            font-size: 1.0em;
            line-height: 1.4;
            word-break: keep-all;
        }

        /* 분류별 파스텔톤 배경색 및 글자색 */
        .excel-label.orange {
            background-color: #fff3e0;
            color: #e65100;
        }

        .excel-label.blue {
            background-color: #e3f2fd;
            color: #0d47a1;
        }

        .excel-label.teal {
            background-color: #e0f2f1;
            color: #004d40;
        }

        .excel-label.purple {
            background-color: #f3e5f5;
            color: #4a148c;
        }

        .excel-label.indigo {
            background-color: #e8eaf6;
            color: #1a237e;
        }

        .excel-value-container {
            padding: 0;
            vertical-align: top;
        }

        .excel-item-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            border-bottom: 1px solid #edf2f7;
            cursor: pointer;
            font-size: 1.1em;
            transition: all 0.2s;
            background: white;
            color: #333;
            text-align: left;
        }

        .excel-item-row:last-child {
            border-bottom: none;
        }

        .excel-item-row:hover {
            background-color: #f8fafc;
        }

        .excel-item-row.active {
            background-color: #ebf8ff;
            color: #2b6cb0;
            font-weight: bold;
        }

        .excel-item-badge {
            background: #e53e3e;
            color: white;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05em;
            font-weight: bold;
            margin-left: 6px;
            box-shadow: 0 1px 3px rgba(229, 62, 62, 0.3);
            flex-shrink: 0;
        }

        .excel-check-badge {
            background: #48bb78;
            color: white;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05em;
            font-weight: bold;
            box-shadow: 0 1px 3px rgba(72, 187, 120, 0.3);
            flex-shrink: 0;
        }

        /* [New] 개별 품목 수량 조작 컨트롤러 스타일 */
        .excel-qty-control {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .qty-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            cursor: pointer;
            border: 1px solid #cbd5e1;
            background: white;
            color: #4A90E2;
            font-size: 1.3em;
            padding: 0;
            line-height: 1;
            transition: all 0.2s;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .qty-btn:hover {
            background-color: #f1f5f9;
        }

        .qty-btn.remove {
            border-color: #feb2b2;
            background: #fff5f5;
            color: #e53e3e;
            font-size: 1.1em;
        }

        .qty-btn.remove:hover {
            background-color: #fed7d7;
        }

        /* [New] 커스텀 드롭다운 스타일 */
        .custom-dropdown {
            position: relative;
            width: 100%;
            box-sizing: border-box;
        }

        .custom-dropdown-trigger {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            font-size: 1.0em;
            font-weight: 500;
            color: #333;
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box;
        }

        .custom-dropdown-trigger:hover {
            border-color: #4A90E2;
        }

        .custom-dropdown-trigger .arrow {
            font-size: 0.8em;
            color: #888;
            transition: transform 0.2s;
        }

        .custom-dropdown.open .custom-dropdown-trigger .arrow {
            transform: rotate(180deg);
        }

        .custom-dropdown-options {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #ffffff;
            border: 1px solid #4A90E2;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            max-height: 200px;
            overflow-y: auto;
            margin-top: 4px;
            display: none;
            box-sizing: border-box;
        }

        .custom-dropdown.open .custom-dropdown-options {
            display: block;
        }

        .custom-dropdown-option {
            padding: 12px 14px;
            font-size: 0.95em;
            color: #333;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
            border-bottom: 1px solid #f1f5f9;
            text-align: left;
        }

        .custom-dropdown-option:last-child {
            border-bottom: none;
        }

        .custom-dropdown-option:hover {
            background: #ebf8ff;
            color: #2b6cb0;
            font-weight: bold;
        }

        .custom-dropdown-option.selected {
            background: #ebf8ff;
            color: #2b6cb0;
            font-weight: bold;
        }

        /* [New] 헤더 새로고침 버튼 스타일 (원형 아이콘 전용) */
        .header-refresh-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s ease;
            outline: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            padding: 0;
        }

        .header-refresh-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .header-refresh-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .header-refresh-btn svg {
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .header-refresh-btn:hover svg {
            transform: rotate(180deg);
        }

        /* Bounding Box Styles */
        .ai-detected-box {
            position: absolute;
            box-sizing: border-box;
            border: 2px solid #00f0ff;
            border-radius: 6px;
            background: rgba(0, 240, 255, 0.04);
            box-shadow: 0 0 10px rgba(0, 240, 255, 0.5), inset 0 0 6px rgba(0, 240, 255, 0.2);
            pointer-events: none;
            animation: ai-pulse-border 2.5s infinite ease-in-out;
            z-index: 4;
        }

        @keyframes ai-pulse-border {
            0% {
                border-color: rgba(0, 240, 255, 0.7);
                box-shadow: 0 0 8px rgba(0, 240, 255, 0.4), inset 0 0 4px rgba(0, 240, 255, 0.1);
            }
            50% {
                border-color: rgba(0, 240, 255, 1);
                box-shadow: 0 0 16px rgba(0, 240, 255, 0.8), inset 0 0 10px rgba(0, 240, 255, 0.3);
            }
            100% {
                border-color: rgba(0, 240, 255, 0.7);
                box-shadow: 0 0 8px rgba(0, 240, 255, 0.4), inset 0 0 4px rgba(0, 240, 255, 0.1);
            }
        }

        .ai-detected-label {
            position: absolute;
            top: 6px;
            left: 6px;
            background: rgba(0, 20, 30, 0.82);
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
            color: #00f0ff;
            border: 1px solid rgba(0, 240, 255, 0.4);
            font-size: 10px;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 4px;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-family: inherit;
            z-index: 5;
        }

        /* [New] 30초 카운트다운 로딩 화면 애니메이션 효과 */
        @keyframes blinkRed {
            0% { background-color: #ef4444; color: white; transform: scale(1.0); box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
            50% { background-color: #fee2e2; color: #ef4444; transform: scale(1.05); box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
            100% { background-color: #ef4444; color: white; transform: scale(1.0); box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
        }
        .blinking-red {
            animation: blinkRed 1.2s infinite ease-in-out !important;
        }

        @keyframes pulseIcon {
            0% { transform: scale(1.0) rotate(0deg); }
            50% { transform: scale(1.2) rotate(15deg); }
            100% { transform: scale(1.0) rotate(0deg); }
        }
        .loading-dots-pulse {
            display: inline-block;
            animation: pulseIcon 1.5s infinite ease-in-out;
        }

        /* ==========================================================================
           [New: 2026-06-14] 2단계 평면도 이미지 위 핀 꽂기 및 3단계 아파트 검색 UI/UX 스타일
           ========================================================================== */

        /* 아파트 검색 영역 */
        .pin-search-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 15px;
            padding: 12px;
            background: #f8fafc;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }

        .pin-search-row {
            display: flex;
            gap: 8px;
        }

        .pin-search-input {
            flex: 1;
            padding: 10px 14px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            font-size: 0.95em;
            outline: none;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }

        .pin-search-input:focus {
            border-color: #4A90E2;
        }

        .pin-search-btn {
            padding: 10px 18px;
            background: #4A90E2;
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .pin-search-btn:hover {
            background: #357ABD;
        }

        /* 아파트 검색 결과 리스트 */
        .pin-search-results {
            max-height: 150px;
            overflow-y: auto;
            background: white;
            border: 1px solid #edf2f7;
            border-radius: 8px;
            display: none;
        }

        .pin-search-result-item {
            padding: 10px 12px;
            border-bottom: 1px solid #f1f5f9;
            cursor: pointer;
            font-size: 0.9em;
            text-align: left;
            transition: background-color 0.2s;
        }

        .pin-search-result-item:hover {
            background-color: #f8fafc;
        }

        .pin-search-result-item:last-child {
            border-bottom: none;
        }

        /* 평형 타입 선택 영역 */
        .pin-pyeong-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
            justify-content: flex-start;
        }

        .pin-pyeong-btn {
            padding: 8px 12px;
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            color: #475569;
            border-radius: 6px;
            font-size: 0.88em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .pin-pyeong-btn.active {
            background: #4A90E2;
            color: white;
            border-color: #4A90E2;
            font-weight: bold;
        }

        /* 도면 캔버스/핀 이미지 컨테이너 */
        .pin-canvas-wrapper {
            position: relative;
            width: 100%;
            margin: 15px auto;
            border-radius: 12px;
            border: 2px solid #e2e8f0;
            background: #f8fafc;
            overflow: hidden;
            text-align: center;
            box-sizing: border-box;
        }

        .pin-canvas-image {
            display: block;
            width: 100%;
            height: auto;
            max-height: 50vh;
            object-fit: contain;
            user-select: none;
            -webkit-user-drag: none;
        }

        /* 핀 요소 스타일 */
        .flatplan-pin {
            position: absolute;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #e53e3e;
            color: white;
            font-weight: 800;
            font-size: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
            box-shadow: 0 4px 10px rgba(229, 62, 62, 0.4);
            cursor: pointer;
            z-index: 10;
            transform: translate(-50%, -50%);
            transition: transform 0.2s;
        }

        .flatplan-pin:hover {
            transform: translate(-50%, -50%) scale(1.15);
        }

        /* 핀 물결 파동 효과 */
        .flatplan-pin::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 2px solid #e53e3e;
            animation: pinPulse 1.8s infinite ease-out;
            pointer-events: none;
            top: -2px;
            left: -2px;
        }

        @keyframes pinPulse {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(2.2); opacity: 0; }
        }

        /* 핀 임시 마커 (품목 선택하기 전 깜빡임용) */
        .flatplan-pin.temp-pin {
            background: #e2e8f0;
            border-color: #4A90E2;
            color: #4A90E2;
            box-shadow: 0 4px 10px rgba(74, 144, 226, 0.4);
        }

        .flatplan-pin.temp-pin::after {
            border-color: #4A90E2;
        }

        /* 핀 도면 위에 품목을 고르는 시트 팝업 */
        .pin-select-popover {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-top: 1px solid #e2e8f0;
            padding: 15px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 20;
            animation: slideUp 0.25s ease-out;
            box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
        }

        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }

        .pin-popover-title {
            font-size: 0.95em;
            font-weight: bold;
            color: #1a202c;
            text-align: left;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 0;
        }

        .pin-popover-close {
            background: none;
            border: none;
            font-size: 1.3em;
            font-weight: bold;
            color: #a0aec0;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }

        .pin-item-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            max-height: 120px;
            overflow-y: auto;
            padding: 4px;
        }

        .pin-item-btn {
            padding: 8px;
            background: white;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            font-size: 0.82em;
            font-weight: bold;
            color: #334155;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }

        .pin-item-btn:hover {
            background: #edf2f7;
            border-color: #4A90E2;
        }

        .pin-item-btn.selected {
            background: #4A90E2;
            color: white;
            border-color: #4A90E2;
        }

        .pin-options-wrapper {
            display: flex;
            flex-direction: column;
            gap: 6px;
            text-align: left;
            display: none;
        }

        .pin-options-title {
            font-size: 0.82em;
            font-weight: bold;
            color: #4A90E2;
        }

        .pin-options-select {
            width: 100%;
            padding: 8px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            font-size: 0.88em;
            outline: none;
            background: white;
            box-sizing: border-box;
        }

        .pin-popover-actions {
            display: flex;
            gap: 8px;
        }

        .pin-popover-btn {
            flex: 1;
            padding: 10px;
            border-radius: 6px;
            font-size: 0.9em;
            font-weight: bold;
            cursor: pointer;
            border: none;
        }

        .pin-popover-btn.confirm {
            background: #4A90E2;
            color: white;
        }

        .pin-popover-btn.delete {
            background: #fee2e2;
            color: #ef4444;
        }

        .pin-popover-btn.cancel {
            background: #e2e8f0;
            color: #475569;
        }

        /* 핀 리스트 테이블 */
        .pin-list-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            font-size: 0.88em;
            text-align: left;
        }

        .pin-list-table th, .pin-list-table td {
            padding: 8px 10px;
            border-bottom: 1px solid #edf2f7;
        }

        .pin-list-table th {
            background: #f8fafc;
            color: #64748b;
            font-weight: bold;
        }

        .pin-list-table td .pin-badge {
            display: inline-flex;
            width: 18px;
            height: 18px;
            background: #e53e3e;
            color: white;
            border-radius: 50%;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
            margin-right: 5px;
        }

        .pin-item-delete-btn {
            background: none;
            border: none;
            color: #a0aec0;
            font-weight: bold;
            font-size: 1.1em;
            cursor: pointer;
        }

        .pin-item-delete-btn:hover {
            color: #ef4444;
        }

        .pin-info-note {
            font-size: 0.82em;
            color: #64748b;
            text-align: left;
            margin: 8px 0;
            line-height: 1.4;
        }