/* 탭 링크가 버튼과 같은 높이와 글꼴로 보이도록 맞춥니다. */
.mode-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* 안내창이 페이지 첫 방문 시 중앙에 표시되도록 합니다. */
#infoPopup.show {
    opacity: 1;
    pointer-events: auto;
}

/* 파일별 선택 해제 버튼을 메모 입력란 옆에 배치합니다. */
.file-memo-item {
    grid-template-columns: 140px minmax(0, 1fr) 32px;
}

.remove-file-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.remove-file-btn:hover {
    background: #fecaca;
}

@media (max-width: 560px) {
    .file-memo-item {
        grid-template-columns: minmax(0, 1fr) 32px;
    }

    .file-memo-item span {
        grid-column: 1;
    }

    .file-memo-item input {
        grid-column: 1;
    }

    .remove-file-btn {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}
