/* 모바일 최적화 - 터치 및 GPU 가속 */
* {
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
input, textarea, select {
	-webkit-user-select: auto;
	-moz-user-select: auto;
	-ms-user-select: auto;
	user-select: auto;
}

/* 번쩍임 방지 - body 전환 효과 제거 */
body {
	-webkit-transition: none !important;
	-moz-transition: none !important;
	-o-transition: none !important;
	transition: none !important;
}

/* 플로팅 요소는 페이지 레이아웃에 영향 없음 */
#wsn-floating-banner,
#wsn-floating-modal,
#wsn-modal {
	contain: layout style paint;
}

/* 일반 스타일 */
.wsn-table { width: 100%; border-collapse: collapse; }
.wsn-table th, .wsn-table td { padding: 12px 15px; border-bottom: 1px solid #f0f0f1; text-align: left; vertical-align: middle; }
.wsn-table thead th { background: #f9f9f9; }
.notification-row { 
	cursor: pointer; 
	transition: background-color 0.2s ease-in-out;
	will-change: auto;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}
.notification-row:hover { background-color: #f5f5f5; }
.notification-row.unread td { font-weight: bold; }
.wsn-box { background: #fff; border: 1px solid #e5e5e5; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }

/* 모달 - 부드러운 애니메이션 + 모바일 최적화 */
body > #wsn-modal.wsn-modal-overlay { 
	position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
	background: rgba(0, 0, 0, 0); z-index: 99998;
	display: flex; align-items: center; justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease-out, 
	            visibility 0.2s ease-out,
	            background 0.2s ease-out;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	will-change: opacity, visibility;
}
body > #wsn-modal.wsn-modal-overlay.show { 
	opacity: 1;
	visibility: visible;
	background: rgba(0, 0, 0, 0.6);
}
.wsn-modal-content { 
	background: #fff; padding: 0; border-radius: 16px; 
	box-shadow: 0 10px 30px rgba(0,0,0,0.2); width: 90%; max-width: 500px;
	display: flex; flex-direction: column; max-height: 700px;
	transform: scale(0.95) translateY(10px);
	transition: transform 0.2s ease-out;
	-webkit-transform: translateZ(0) scale(0.95) translateY(10px);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	will-change: transform;
}
body > #wsn-modal.wsn-modal-overlay.show .wsn-modal-content {
	transform: scale(1) translateY(0);
	-webkit-transform: translateZ(0) scale(1) translateY(0);
}
.wsn-modal-close { position: absolute; top: 12px; right: 15px; font-size: 28px; font-weight: bold; color: #aaa; background: none; border: none; cursor: pointer; z-index: 10; }
.wsn-modal-header { 
	flex-shrink: 0; border-bottom: 1px solid #e5e5e5; padding: 15px 20px;
	background: #fff; border-radius: 16px 16px 0 0;
}
.wsn-modal-body { 
	flex-grow: 1; overflow-y: auto; padding: 20px 15px; background: #fff;
	border-radius: 0 0 16px 16px;
	-webkit-overflow-scrolling: touch; /* 모바일 스크롤 최적화 */
}
.wsn-modal-body img {
	max-width: 100%;
	height: auto;
	display: block;
	will-change: auto;
}

/* 로딩 스켈레톤/스피너 */
.wsn-loading { padding: 24px; }
.wsn-loading #wsn-progress-bar,
body.wsn-loading #wsn-progress-bar {
	opacity: 1 !important;
}

#wsn-progress-bar {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0;
	background: linear-gradient(90deg, #007aff, #00c2ff);
	z-index: 1000002;
	opacity: 0;
	transition: width 0.2s ease, opacity 0.2s ease;
}

body.wsn-loading #wsn-progress-bar {
	width: 100%;
	/* 부드러운 전환 */
	transition: none !important;
}

/* 로딩 중에도 페이지 레이아웃 변경 방지 */
body.wsn-loading {
	/* 기본 스타일 유지 - 레이아웃 변경 없음 */
}
.wsn-spinner {
	width: 28px; height: 28px;
	border: 3px solid rgba(0,0,0,0.08);
	border-top-color: #007aff;
	border-radius: 50%;
	animation: wsn-spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
	margin-bottom: 16px;
}
@keyframes wsn-spin { to { transform: rotate(360deg); } }
@keyframes wsnFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.wsn-skeleton-line { 
	height: 12px; background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
	background-size: 200% 100%; 
	border-radius: 6px; margin: 10px 0;
	animation: wsnShimmer 1.5s ease-in-out infinite;
}
@keyframes wsnShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 메시지 리스트 아이템 애니메이션 */
.wsn-floating-item {
	animation: wsnSlideIn 0.3s ease forwards;
	opacity: 0;
}
.wsn-floating-item:nth-child(1) { animation-delay: 0.05s; }
.wsn-floating-item:nth-child(2) { animation-delay: 0.1s; }
.wsn-floating-item:nth-child(3) { animation-delay: 0.15s; }
.wsn-floating-item:nth-child(4) { animation-delay: 0.2s; }
.wsn-floating-item:nth-child(5) { animation-delay: 0.25s; }
@keyframes wsnSlideIn { to { opacity: 1; transform: translateX(0); } from { opacity: 0; transform: translateX(20px); } }

/* 모바일 반응형 최적화 */
@media only screen and (max-width: 768px) {
	#wsn-floating-modal {
		width: calc(100vw - 20px) !important;
		right: 10px !important;
		bottom: 80px !important;
		max-height: 70vh !important;
	}
	
	.wsn-modal-content {
		width: 95% !important;
		max-height: 85vh !important;
	}
	
	#wsn-floating-banner {
		bottom: 15px !important;
		right: 15px !important;
		width: 56px !important;
		height: 56px !important;
	}
	
	/* 애니메이션 간소화 (모바일 성능) */
	.wsn-floating-item {
		animation-duration: 0.2s;
	}
	.wsn-floating-item:nth-child(n+6) {
		animation: none;
		opacity: 1;
	}
	
	.wsn-modal-content {
		transition-duration: 0.15s;
	}
	
	body > #wsn-modal.wsn-modal-overlay {
		transition-duration: 0.15s;
	}
}

/* [수정] 대화 스레드 아이템 스타일 */
.wsn-thread-item {
	display: flex;
	align-items: flex-end; /* 말풍선과 시간을 아래 기준으로 정렬 */
	margin-bottom: 8px;
	max-width: 85%;
	clear: both; /* float 속성 초기화 */
}
.wsn-thread-item.me {
	float: right;
	flex-direction: row-reverse; /* 내 메시지는 순서를 반전 (시간, 말풍선 순) */
}
.wsn-thread-item.them {
	float: left;
}

/* [수정] 메시지 텍스트 */
.wsn-thread-message p {
	margin: 0;
	font-size: 15px;
}

/* [수정] 메시지 텍스트 */
.wsn-thread-message p {
	margin: 0;
	font-size: 15px;
}

/* [추가] 말풍선을 감싸는 컨테이너 */
.wsn-thread-message-content {
	padding: 10px 16px;
	border-radius: 20px;
	word-wrap: break-word;
	line-height: 1.5;
}
.wsn-thread-item.me .wsn-thread-message-content {
	background: #007aff;
	color: white;
	border-bottom-right-radius: 4px;
}
.wsn-thread-item.them .wsn-thread-message-content {
	background: #f2f2f7;
	border-bottom-left-radius: 4px;
}

/* [수정] iOS 메시지 앱 스타일 답장 영역 */
.wsn-modal-reply { 
	flex-shrink: 0; padding: 8px 10px 12px; border-top: 1px solid #e5e5e5;
	background: #fff; border-radius: 0 0 16px 16px;
}
#wsn-reply-form { 
	display: flex; align-items: center; gap: 8px;
}

/* [추가됨] 첨부파일 버튼 (+) */
#wsn-attachment-button {
	flex-shrink: 0;
	background: transparent;
	border: 1.5px solid #d1d1d6;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238e8e93" width="20px" height="20px"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>');
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 50%;
	width: 34px; height: 34px;
	cursor: pointer;
	transition: background-color 0.2s;
}

/* [수정] 텍스트 입력창 래퍼 */
.wsn-reply-input-wrapper {
	flex-grow: 1;
	display: flex; align-items: center;
	background-color: #f2f2f7;
	border: 1px solid #f2f2f7;
	border-radius: 21px;
	padding: 0;
	min-height: 36px;
}
.wsn-reply-input-wrapper textarea {
	flex-grow: 1; border: none; background: transparent; padding: 8px 15px;
	resize: none; outline: none; box-shadow: none; font-size: 16px;
	max-height: 100px; overflow-y: auto; color: #000;
}
.wsn-reply-input-wrapper textarea::placeholder {
	color: #aeaeb2;
}

/* [수정] 전송 버튼 (화살표 아이콘) */
#wsn-reply-form button[type="submit"] {
	flex-shrink: 0;
	background-color: #007aff;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="16px" height="16px"><path d="M3.4,20.3l17.3-8.3L3.4,3.7V10l12.6,2L3.4,14V20.3z"/></svg>');
	background-repeat: no-repeat;
	background-position: center;
	border: none; border-radius: 50%;
	width: 34px; height: 34px;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
	transform: scale(0.5);
	opacity: 0;
	display: none;
}
#wsn-reply-form button[type="submit"].visible {
	display: block;
	transform: scale(1);
	opacity: 1;
}

#wsn-reply-form button[type="submit"]:hover { background-color: #0056b3; }

/* 첨부파일 영역 스타일 */
.wsn-form-attachments {
	text-align: center;
	padding: 12px 0 5px 0;
}
.wsn-form-attachments label { 
	font-size: 13px; color: #555; cursor: pointer;
	padding: 5px 10px;
	border-radius: 15px;
	transition: background-color 0.2s;
}
.wsn-form-attachments label:hover {
	background-color: #f0f0f0;
}

/* 목록 숫자 뱃지 */
.wsn-unread-badge {
	display: inline-block; background-color: #ff3b30; color: #fff;
	font-size: 12px; font-weight: bold; padding: 0 7px;
	min-width: 20px; height: 20px; line-height: 20px;
	border-radius: 10px; margin-left: 8px; vertical-align: middle; text-align: center;
}

/* 토스트 알림 (iOS 스타일) */
#wsn-toast-notification {
	position: fixed; top: -120px; left: 50%;
	transform: translateX(-50%);
	background-color: rgba(255, 255, 255, 0.95);
	color: #000; padding: 12px 16px; border-radius: 20px;
	box-shadow: 0 8px 16px rgba(0,0,0,0.15);
	z-index: 100002; cursor: pointer; font-size: 15px;
	width: 90%; max-width: 380px; display: flex; align-items: center;
	transition: top 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
#wsn-toast-notification.show { top: 20px; }
#wsn-toast-icon {
	width: 32px; height: 32px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007aff"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7L4 6h16l-8 5z"/></svg>');
	background-size: cover; margin-right: 12px;
}
#wsn-toast-text { flex-grow: 1; }
#wsn-toast-close {
	background: none; border: none; color: #8e8e93; font-size: 18px;
	line-height: 1; cursor: pointer; padding: 5px; opacity: 0.8;
}

/* 목록의 시간 및 액션 셀 스타일 */
.wsn-actions-cell {
	position: relative; text-align: right; width: 150px;
}
.wsn-sent-time { transition: opacity 0.2s ease-in-out; }
.wsn-sent-time {
	color: #8e8e93;
	font-size: 12px;
	margin: 0 8px;
	flex-shrink: 0; /* 시간이 줄어들지 않도록 함 */
	white-space: nowrap;
	padding-bottom: 4px; /* 말풍선과 세로 위치 조절 */
}
.wsn-delete-button {
	position: absolute; top: 50%; right: 15px;
	transform: translateY(-50%);
	background: #e74c3c; color: white;
	border: none; border-radius: 50%;
	width: 22px; height: 22px; line-height: 22px;
	text-align: center; font-size: 16px; font-weight: bold;
	cursor: pointer; opacity: 0; visibility: hidden;
	transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}
.notification-row:hover .wsn-delete-button {
	opacity: 1; visibility: visible;
}
.notification-row:hover .wsn-sent-time { opacity: 0; }
.wsn-delete-button:hover { background: #c0392b; }

/* 플로팅 알림 배너 */
#wsn-floating-banner {
	position: fixed !important;
	bottom: 20px !important;
	right: 20px !important;
	width: 60px !important;
	height: 60px !important;
	background: linear-gradient(135deg, #007aff, #0056b3) !important;
	border-radius: 50% !important;
	box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3) !important;
	cursor: pointer !important;
	z-index: 999999 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
	border: 3px solid rgba(255, 255, 255, 0.2) !important;
	overflow: visible !important; /* ensure badge outside isn't clipped */
}

#wsn-floating-banner:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 25px rgba(0, 122, 255, 0.4);
}

#wsn-floating-banner .wsn-banner-icon {
	width: 28px;
	height: 28px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7L4 6h16l-8 5z"/></svg>');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	position: relative;
	z-index: 0;
}

#wsn-floating-banner.open .wsn-banner-icon {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>');
}

#wsn-floating-banner .wsn-banner-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff3b30;
    color: white;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
	box-shadow: 0 0 0 2px rgba(0,0,0,0.05), 0 4px 8px rgba(0,0,0,0.15);
    pointer-events: none; /* never block clicks on the button */
	z-index: 1000001; /* ensure above inner icon and any shadows */
    display: none;
}

#wsn-floating-banner .wsn-banner-badge.show {
	display: flex;
}

/* 플로팅 배너 대화 리스트 모달 - 모바일 최적화 */
#wsn-floating-modal {
	position: fixed !important;
	bottom: 90px !important;
	right: 20px !important;
	width: 400px !important;
	max-height: 500px !important;
	background: white !important;
	border-radius: 16px !important;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
	z-index: 999998 !important;
	display: flex !important;
	flex-direction: column !important;
	border: 1px solid rgba(0, 0, 0, 0.1) !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px) scale(0.98);
	-webkit-transform: translateZ(0) translateY(10px) scale(0.98);
	transition: opacity 0.2s ease-out,
	            visibility 0.2s ease-out,
	            transform 0.2s ease-out;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	will-change: opacity, visibility, transform;
}

#wsn-floating-modal.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	-webkit-transform: translateZ(0) translateY(0) scale(1);
}

#wsn-floating-modal .wsn-floating-header {
	padding: 16px 20px;
	border-bottom: 1px solid #f0f0f1;
	border-radius: 16px 16px 0 0;
	background: #f8f9fa;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#wsn-floating-modal .wsn-floating-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

#wsn-floating-modal .wsn-floating-body {
	flex-grow: 1;
	overflow-y: auto;
	max-height: 400px;
}

#wsn-floating-modal .wsn-floating-list {
	list-style: none;
	margin: 0;
	padding: 0;
	-webkit-overflow-scrolling: touch; /* 모바일 스크롤 최적화 */
	overflow-y: auto;
}

#wsn-floating-modal .wsn-floating-item {
	padding: 12px 20px;
	border-bottom: 1px solid #f0f0f1;
	cursor: pointer;
	transition: background-color 0.2s;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#wsn-floating-modal .wsn-floating-item:hover {
	background-color: #f8f9fa;
}

#wsn-floating-modal .wsn-floating-item:last-child {
	border-bottom: none;
}

#wsn-floating-modal .wsn-floating-item.unread {
	background-color: #f0f8ff;
	font-weight: 600;
}

#wsn-floating-modal .wsn-floating-item .wsn-item-content {
	flex-grow: 1;
}

#wsn-floating-modal .wsn-floating-item .wsn-item-name {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 2px;
}

#wsn-floating-modal .wsn-floating-item .wsn-item-message {
	font-size: 13px;
	color: #666;
	line-height: 1.3;
}

#wsn-floating-modal .wsn-floating-item .wsn-item-time {
	font-size: 11px;
	color: #999;
	white-space: nowrap;
	margin-left: 10px;
}

#wsn-floating-modal .wsn-floating-item .wsn-item-badge {
	background: #ff3b30;
	color: white;
	border-radius: 10px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: bold;
	margin-left: 8px;
}

/* 새 메시지 작성 버튼 */
.wsn-compose-btn {
	background: #007aff !important;
	color: white !important;
	border: none !important;
	padding: 8px 16px !important;
	border-radius: 20px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: background-color 0.2s !important;
}

.wsn-compose-btn:hover {
	background: #0056b3 !important;
}

/* 새 메시지 작성 모달 */
#wsn-compose-modal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgba(0, 0, 0, 0.6) !important;
	z-index: 999999 !important;
	display: none !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: hidden !important;
	opacity: 0 !important;
	transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

#wsn-compose-modal.show {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

#wsn-compose-modal .wsn-modal-content {
	background: white !important;
	border-radius: 16px !important;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
	width: 90% !important;
	max-width: 600px !important;
	overflow-y: auto !important;
}

#wsn-compose-modal .wsn-modal-header {
	padding: 20px !important;
	border-bottom: 1px solid #e5e5e5 !important;
	border-radius: 16px 16px 0 0 !important;
}

#wsn-compose-modal .wsn-modal-header h3 {
	margin: 0 !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	color: #333 !important;
}

#wsn-compose-modal .wsn-modal-body {
	padding: 20px !important;
}

.wsn-form-group {
	margin-bottom: 20px !important;
}

.wsn-form-group label {
	display: block !important;
	margin-bottom: 8px !important;
	font-weight: 600 !important;
	color: #333 !important;
}

.wsn-form-group select,
.wsn-form-group textarea,
.wsn-form-group input[type="file"] {
	width: 100% !important;
	padding: 12px !important;
	border: 1px solid #ddd !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	box-sizing: border-box !important;
}

.wsn-form-group textarea {
	resize: vertical !important;
	min-height: 150px !important;
}

.wsn-recipient-info {
	padding: 12px !important;
	background: #f8f9fa !important;
	border: 1px solid #e9ecef !important;
	border-radius: 8px !important;
	color: #666 !important;
	font-size: 14px !important;
	margin-top: 8px !important;
}

.wsn-form-actions {
	display: flex !important;
	justify-content: flex-end !important;
	gap: 12px !important;
	margin-top: 20px !important;
}

.wsn-btn-cancel,
.wsn-btn-send {
	padding: 12px 24px !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: background-color 0.2s !important;
}

.wsn-btn-cancel {
	background: #f8f9fa !important;
	color: #666 !important;
	border: 1px solid #ddd !important;
}

.wsn-btn-cancel:hover {
	background: #e9ecef !important;
}

.wsn-btn-send {
	background: #007aff !important;
	color: white !important;
}

.wsn-btn-send:hover {
	background: #0056b3 !important;
}

.wsn-btn-send:disabled {
	background: #ccc !important;
	cursor: not-allowed !important;
}

/* 로그인 안내 모달 */
#wsn-login-modal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgba(0, 0, 0, 0.6) !important;
	z-index: 999999 !important;
	display: none !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: hidden !important;
	opacity: 0 !important;
	transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

#wsn-login-modal.show {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* 첨부파일 스타일 */
.wsn-attachments {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	margin-top: 10px !important;
}

.wsn-attachment-image {
	display: inline-block !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	transition: transform 0.2s ease !important;
}

.wsn-attachment-image:hover {
	transform: scale(1.05) !important;
}

.wsn-attachment-image img {
	max-width: 150px !important;
	max-height: 150px !important;
	object-fit: cover !important;
	border-radius: 8px !important;
}

.wsn-attachment-video,
.wsn-attachment-pdf,
.wsn-attachment-archive,
.wsn-attachment-file {
	display: inline-block !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 8px !important;
	padding: 12px !important;
	background: #f9f9f9 !important;
	min-width: 200px !important;
	max-width: 250px !important;
	transition: all 0.2s ease !important;
	text-decoration: none !important;
}

.wsn-attachment-video:hover,
.wsn-attachment-pdf:hover,
.wsn-attachment-archive:hover,
.wsn-attachment-file:hover {
	background: #f0f0f0 !important;
	border-color: #007aff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.wsn-attachment-video a,
.wsn-attachment-pdf a,
.wsn-attachment-archive a,
.wsn-attachment-file a {
	display: flex !important;
	align-items: center !important;
	text-decoration: none !important;
	color: inherit !important;
	gap: 12px !important;
}

.wsn-file-icon {
	font-size: 24px !important;
	line-height: 1 !important;
	flex-shrink: 0 !important;
}

.wsn-file-info {
	flex: 1 !important;
	min-width: 0 !important;
}

.wsn-file-name {
	font-weight: 600 !important;
	color: #333 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	word-break: break-word !important;
	margin-bottom: 4px !important;
}

.wsn-file-type {
	font-size: 12px !important;
	color: #666 !important;
	line-height: 1.2 !important;
}

/* 파일 타입별 색상 */
.wsn-attachment-video {
	border-color: #ff6b6b !important;
}

.wsn-attachment-video:hover {
	border-color: #ff5252 !important;
}

.wsn-attachment-pdf {
	border-color: #4dabf7 !important;
}

.wsn-attachment-pdf:hover {
	border-color: #339af0 !important;
}

.wsn-attachment-archive {
	border-color: #69db7c !important;
}

.wsn-attachment-archive:hover {
	border-color: #51cf66 !important;
}

.wsn-attachment-file {
	border-color: #adb5bd !important;
}

.wsn-attachment-file:hover {
	border-color: #868e96 !important;
}

/* 반응형 처리 */
@media (max-width: 768px) {
	.wsn-attachment-video,
	.wsn-attachment-pdf,
	.wsn-attachment-archive,
	.wsn-attachment-file {
		min-width: 150px !important;
		max-width: 200px !important;
	}
	
	.wsn-attachment-image img {
		max-width: 120px !important;
		max-height: 120px !important;
	}
	
	#wsn-floating-modal {
		width: calc(100vw - 40px);
		right: 20px;
		left: 20px;
	}
	
	#wsn-compose-modal .wsn-modal-content {
		width: 95% !important;
		margin: 20px !important;
	}
	
	.wsn-form-actions {
		flex-direction: column !important;
	}
	
	.wsn-btn-cancel,
	.wsn-btn-send {
		width: 100% !important;
	}
}