@font-face {
    font-family: 'DnfBitbeatV2';
    src: url('//cdn.df.nexon.com/img/common/font/DNFBitBitv2.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

/* ✨ 디자인 시스템: Card Layout + Black/Pink Theme */
:root {
    --bg: #f3f4f6;
    /* 전체 배경 (쿨그레이) */
    --card-bg: #ffffff;
    /* 카드 배경 */
    --bd: #e5e7eb;
    /* 테두리 */
    --text: #111827;
    /* 메인 텍스트 */
    --text-muted: #6b7280;

    --primary: #000000;
    /* 메인 블랙 */
    --mint-bg: #d1fae5;
    /* 카테고리 배경 민트 */
    --action-pink: #f43f5e;
    /* 포인트 핑크 */

    /* 💡 카드형 디자인을 위한 깊은 그림자 */
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.locked-ui {
    opacity: 0.4 !important;
    pointer-events: none !important;
    filter: grayscale(0.8);
    transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- Share Popup --- */
.share-popup-layer {
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.share-popup-card {
    width: 440px;
    background: #fff;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-bottom: 40px;
}

.share-popup-title {
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    margin: 0;
    padding: 24px 0;
    color: #000;
    letter-spacing: -0.5px;
}

.share-popup-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin-bottom: 35px;
}

.share-popup-input-group {
    width: 100%;
    padding: 0 45px;
    margin-bottom: 35px;
}

.share-popup-input-label {
    font-size: 14px;
    font-weight: 800;
    color: #000;
    margin-bottom: 12px;
    margin-left: 2px;
}

.share-popup-card .url-input {
    width: 100%;
    height: 48px;
    background: #f4f4f4;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    color: #111;
    transition: all 0.2s;
}

.share-popup-card .url-input.invalid {
    background-color: #fef2f2;
    border-color: #ef4444;
    outline: 2px solid rgba(239, 68, 68, 0.15);
}

.share-popup-card .url-input::placeholder {
    color: #999;
}

.share-popup-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 45px;
    margin-bottom: 35px;
}

.share-popup-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.share-popup-stat-label {
    font-size: 15px;
    font-weight: 800;
    color: #000;
}

.share-popup-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #000;
}

.share-popup-stat-divider {
    width: 1px;
    height: 30px;
    background: #f1f5f9;
    margin: 0;
}

.share-popup-notice {
    font-size: 12px;
    color: #ff0000;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
}

.btn-share-start {
    width: 140px;
    height: 48px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-share-start:hover {
    background: #222;
}

.btn-share-start:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-popup-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    color: #999;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media screen and (max-width: 480px) {
    .share-popup-card {
        width: 90%;
        border-radius: 24px;
    }

    .share-popup-input-group,
    .share-popup-stats {
        padding: 0 25px;
    }
}

/* --- Top Bar --- */
.topbar {
    height: 64px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: #fff;
    z-index: 20;
    border-bottom: 1px solid var(--bd);
    flex-shrink: 0;
    /* 높이 고정 */
}

.logo-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.logo-area img {
    width: 250px;
}

.logo-area .beta01 {
    position: absolute;
    right: 0;
    top: 0;
    color: var(--action-pink);
    font-weight: 700;
    font-size: 16px;
    transform: translate(90%, -25%);
}

.top-msg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.top-btns {
    display: flex;
}

/* --- LAYERS --- */
.overlay-layer {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-layer.active {
    opacity: 1;
    pointer-events: auto;
}

.layer {
    display: none;
    flex: 1;
    overflow: hidden;
}

.layer.active {
    display: flex;
}

/* --- 💡 WORKSPACE: CARD LAYOUT --- */
.workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 300px 1fr 340px;
    /* 3단 컬럼 */
    gap: 20px;
    /* 💡 카드 사이의 간격 */
    padding: 24px;
    /* 💡 전체 화면 테두리 여백 */
    overflow: hidden;
    background: var(--bg);
}

/* 💡 독립된 카드 패널 스타일 */
.col {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 16px;
    /* 둥근 모서리 */
    box-shadow: var(--shadow-card);
    /* 붕 떠있는 그림자 효과 */
    border: 1px solid var(--bd);
    overflow: hidden;
}

.col-hd {
    padding: 0 20px;
    height: 56px;
    border-bottom: 1px solid var(--bd);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    flex-shrink: 0;
}

/* 단계 뱃지 */
.step-badge {
    display: none;
    /* 일시 숨김 */
    font-size: 10px;
    font-weight: 800;
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 8px;
    letter-spacing: 0.5px;
}

.col-title {
    font-family: 'DnfBitbeatV2', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #444;
    letter-spacing: 0.5px;
}

.col-bd {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Buttons --- */
button {
    cursor: pointer;
    border: none;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-std {
    background: #f3f4f6;
    color: #333;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
}

.btn-std:hover:not(:disabled) {
    background: #e5e7eb;
}

.btn-black {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
}

.btn-black:hover:not(:disabled) {
    background: #333;
}

.btn-pink {
    background: var(--action-pink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
}

.btn-pink:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-blue {
    background: #3b82f6;
    color: #fff;
    padding: 10px 20px;
}

/* --- Left Column (Upload) --- */
.btn-capture {
    width: 100%;
    padding: 24px;
    border: 2px dashed #d1d5db;
    background: #f9fafb;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-capture:hover {
    background: #eff6ff;
    border-color: var(--primary);
}

.req-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transform: scale(0.99);
    transition: 0.2s;
    cursor: pointer;
}

.req-card:hover {
    border-color: var(--primary);
    transform: scale(1);
}

.req-card.editing {
    border: 2px solid var(--action-pink);
    background: #fff1f2;
}

.req-card img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--bd);
}

.tag {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #555;
    font-weight: 700;
    border: 1px solid #e5e7eb;
}

.tag-dark {
    background: #111;
    color: #fff;
}

.tag-pink {
    border-color: #fecdd3;
    color: var(--action-pink);
    background: #fff1f2;
}




/* --- Center Column (Canvas) --- */
.canvas-controls {
    padding: 20px;
    border-bottom: 1px solid var(--bd);
    display: none;
    /* Changed from flex to none */
    flex-direction: column;
    gap: 16px;
    background: #fff;
}

.input-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}

.url-input {
    width: 100%;
    background: #fff;
    border: 1px solid var(--bd);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
}

.url-input:focus {
    border-color: var(--primary);
}

.cat-wrapper {
    padding: 8px;
    background: var(--bg);
    border-radius: 10px;
}

.cat-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.cat-btn {
    background: #f3f4f6;
    color: var(--text-muted);
    padding: 8px 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid transparent;
    position: relative;
    /* 추가: 가상 요소 배치를 위한 기준점 */
}

.cat-btn:hover {
    background: #e5e7eb;
}

.cat-btn.active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cat-icon {
    font-size: 16px;
}

.cat-btn.invalid-target {
    min-width: 0;
    /* 가상 요소에서 애니메이션 처리를 하므로 비어있지 않도록 조치 */
}

/* 물결이 번져나가는 효과를 위한 가상 요소 설정 */
.cat-btn.invalid-target::before,
.cat-btn.invalid-target::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0px rgba(244, 63, 94, 0.7);
    animation: pulseBorder 3s infinite cubic-bezier(0, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
    /* 버튼 내용 위에 그려지도록 설정 */
}

/* 두 번째 물결은 1.5초 뒤에 시작하여 완벽한 중첩 효과 부여 */
.cat-btn.invalid-target::after {
    animation-delay: 1.5s;
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0px rgba(244, 63, 94, 0.7);
        opacity: 1;
    }

    100% {
        box-shadow: 0 0 0 10px rgba(244, 63, 94, 0);
        opacity: 0;
    }
}

.canvas-area-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #e5e7eb;
    overflow: hidden;
    position: relative;
}

.canvas-scroll-container {
    flex: 1;
    overflow: auto;
    display: block;
    padding: 60px;
    cursor: default;
    text-align: center;
}

/* 🎨 커스텀 스크롤바 (슬림/반투명 고수) */
.canvas-scroll-container::-webkit-scrollbar {
    width: 5px;
    /* 세로 스크롤 폭 */
    height: 5px;
    /* 가로 스크롤 높이 */
}

.canvas-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.canvas-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    /* 반투명한 회색 */
    border-radius: 10px;
    /* 둥근 형태 */
}

.canvas-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}


.canvas-content {
    position: relative;
    display: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    background: #fff;
    transform-origin: top center;
    border-radius: 4px;
}

canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* Center Footer */
.center-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid var(--bd);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.desc-input {
    width: 100%;
    height: 60px;
    background: #f9fafb;
    border: 1px solid var(--bd);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    resize: none;
    outline: none;
}

.desc-input:focus {
    border-color: var(--primary);
    background: #fff;
}

.center-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Right Column (Memo) --- */
.guide-box {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    border: 1px dashed var(--bd);
    border-radius: 12px;
    background: #f9fafb;
}

.memo-panel {
    background: #fff;
    border: 2px solid var(--primary);
    padding: 20px;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    animation: slideUp 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.memo-panel.active {
    display: flex;
}

.memo-input {
    width: 100%;
    height: 100px;
    background: #f9fafb;
    border: 1px solid var(--bd);
    padding: 12px;
    border-radius: 8px;
    resize: none;
    font-size: 13px;
    outline: none;
}

.memo-input:focus {
    border-color: var(--primary);
    background: #fff;
}

.anno-list-container {
    flex: 1;
    overflow-y: auto;
}

/* --- 🚦 REQUEST QUEUE (Special Case) --- */
.queue-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: 0 !important;
}

.queue-header {
    padding: 15px 20px 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--action-pink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
}

.queue-tabs-row {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eee;
}

#queueCount {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 10px;
    flex-shrink: 0;
}

#reqList {
    flex: 1;
    overflow-y: auto;
    border-top: 2px solid #eee;
    /* 탭과 스크롤 사이 선 추가 */
    background: #fff;
    padding: 10px 20px;
}

/* 📥 URL & Text Inputs */
.url-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    outline: 2px solid transparent;
    transition: outline 0.2s, border-color 0.2s;
}

.url-input:focus {
    border-color: var(--primary);
    outline-color: rgba(59, 130, 246, 0.1);
}

.url-input.invalid {
    border-color: #ef4444;
    outline: 2px solid rgba(239, 68, 68, 0.2);
    background-color: #fef2f2;
}

.anno-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: 10px;
    transform: scale(0.99);
    transition: 0.2s;
    cursor: pointer;
}

.anno-item:hover {
    border-color: var(--primary);
    transform: scale(1);
}

.anno-item.selected {
    border-color: var(--action-pink);
    background: #fff1f2;
}

.anno-badge {
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.qr-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    pointer-events: none;
    display: none;
}

.qr-overlay img {
    display: block;
    width: 80px;
    height: 80px;
}

/* --- TUTORIAL OVERLAY --- */
#tutorialOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    pointer-events: none;
    /* Allow events through to children */
}

#tutorialBg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: auto;
    /* Block events to elements behind the tutorial */
    z-index: 1;
}

/* 마스킹을 통한 구멍 뚫기 효과는 JS에서 tutorialBg에 설정 */

.tut-spotlight {
    position: absolute;
    border-radius: 12px;
    box-shadow: none;
    /* 개별 그림자 제거 (중첩 방지) */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    border: 2px solid var(--action-pink);
    z-index: 10000;
    opacity: 0;
    /* JS에서 1로 설정하여 나타나게 함 */
}

.tut-card {
    pointer-events: auto;
    position: absolute;
    z-index: 10100;
    /* 스포트라이트보다 위에 배치 */
    width: 450px;
    height: 330px;
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tut-step {
    color: var(--action-pink);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.tut-title {
    font-family: 'DnfBitbeatV2', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--primary);
    margin: 0;
}

.tut-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: auto 0;
}

.tut-btn {
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 800;
}

.tut-btn-skip {
    background: transparent;
    color: var(--action-pink);
}

.tut-btn-skip:hover {
    background: rgba(244, 63, 94, 0.1);
}

.tut-back-btn {
    width: 36px;
    height: 36px;
    background: #4b5563;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tut-back-btn:hover:not(:disabled) {
    background: #374151;
    transform: scale(1.1);
}

.tut-back-btn:disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none !important;
}

.tut-back-btn svg {
    stroke: #fff;
}

/* --- VSCode Minimap --- */
.minimap-container {
    width: 150px;
    background: rgba(255, 255, 255, 0.5);
    border-left: 1px solid var(--bd);
    overflow: hidden;
    cursor: pointer;
    display: none;
    flex-shrink: 0;
    position: relative;
}

.minimap-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#minimapCanvas {
    display: block;
    width: 100%;
}

.minimap-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.6);
    pointer-events: none;
    box-sizing: border-box;
    border-radius: 4px;
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .minimap-container {
        display: none !important;
    }
}

/* --- Asset Mode Overlay --- */
.asset-mode-overlay {
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 50;
    overflow-y: auto;
    padding: 0;
    /* Changed from 24px to allow grid-container to manage its own padding */
    animation: fadeInMode 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
    align-items: flex-start;
    /* Fix: changed from center to flex-start to allow top scrolling */
    justify-content: flex-start;
}

.asset-grid-container {
    width: 100%;
    max-width: 800px;
    /* Reduced from 1100px for single column */
    height: auto;
    background: transparent;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr;
    /* Changed from 1fr 1fr */
    gap: 10px;
    /* Reduced to 10px */
    align-content: start;
    overflow: visible;
    margin: 0 auto;
}

.asset-group {
    margin-bottom: 0;
    /* space-around에 의해 여백이 자동 결정되므로 제거 */
    flex-shrink: 1;
    min-height: 0;
    padding: 0 8px;
}

.asset-group:last-child {
    margin-bottom: 0;
}

.asset-group-title {
    font-size: min(2vh, 13px);
    font-weight: 800;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: min(1.5vh, 12px);
}

.asset-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #f1f5f9, transparent);
}

.asset-items {
    display: grid;
    grid-template-columns: 1fr;
    /* Force 1 column */
    gap: 10px;
}

.asset-item {
    display: flex;
    flex-direction: row;
    /* Changed from column to row for horizontal layout */
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 6px;
    /* Tightened to 6px */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.asset-item:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.asset-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) inset;
}

.asset-icon {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    /* Reduced from 24px */
    flex-shrink: 0;
}

.asset-name {
    font-size: 13px;
    /* Slightly reduced for compact layout */
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
    word-break: keep-all;
    text-align: left;
}

.asset-item.input-mode {
    cursor: default;
    background: #fff;
    border-color: var(--primary);
    transform: none;
    /* 드래그 효과 방지 */
}

.asset-item.input-mode .asset-name {
    display: none;
}

.asset-item.selected .asset-icon {
    background: #dbeafe;
}

@keyframes fadeInMode {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}