.library-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 24px;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
}

.library-search-wrap svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.library-search-wrap input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #0f172a;
    width: 100%;
    background: transparent;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.lib2-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 120px;
    box-sizing: border-box;
}

.lib2-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.lib2-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lib2-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.lib2-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lib2-counts {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.lib2-dot {
    color: #cbd5e1;
}

.lib2-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.lib2-code {
    font-size: 11px;
    color: #94a3b8;
    font-family: monospace;
    background: #f8fafc;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.lib2-arrow {
    font-size: 14px;
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.lib2-card:hover .lib2-arrow {
    color: #94a3b8;
}

.lib2-add-card {
    border: 2px dashed #e2e8f0;
    background: #fafafa;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    min-height: 120px;
}

.lib2-add-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    transform: translateY(-2px);
    box-shadow: none;
}

.lib2-add-icon {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.lib2-add-label {
    font-size: 14px;
    font-weight: 500;
}

.library-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.share-code-btn:hover {
    opacity: 0.88;
}

.share-result-success {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
}

.share-result-error {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}